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 - 2013 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
893 BUILD_LIBHOSTNAME_FALSE
894 BUILD_LIBHOSTNAME_TRUE
895 USE_EMBEDDED_ARES_FALSE
896 USE_EMBEDDED_ARES_TRUE
906 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
907 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
908 CURL_LT_SHLIB_VERSIONED_FLAVOUR
952 DOING_NATIVE_WINDOWS_FALSE
953 DOING_NATIVE_WINDOWS_TRUE
954 BUILD_UNITTESTS_FALSE
958 USE_EXPLICIT_LIB_DEPS_FALSE
959 USE_EXPLICIT_LIB_DEPS_TRUE
961 CPPFLAG_CURL_STATICLIB
962 USE_CPPFLAG_CURL_STATICLIB_FALSE
963 USE_CPPFLAG_CURL_STATICLIB_TRUE
964 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
965 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
966 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
967 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
968 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
969 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
1002 AM_DEFAULT_VERBOSITY
1023 INSTALL_STRIP_PROGRAM
1054 MAINTAINER_MODE_FALSE
1055 MAINTAINER_MODE_TRUE
1083 program_transform_name
1096 enable_option_checking
1097 enable_maintainer_mode
1103 enable_symbol_hiding
1104 enable_hidden_symbols
1106 enable_dependency_tracking
1131 enable_libcurl_option
1141 with_gssapi_includes
1159 enable_versioned_symbols
1162 enable_threaded_resolver
1171 ac_precious_vars='build_alias
1180 ac_subdirs_all='ares'
1182 # Initialize some variables set by options.
1184 ac_init_version=false
1185 ac_unrecognized_opts=
1186 ac_unrecognized_sep=
1187 # The variables have the same names as the options, with
1188 # dashes changed to underlines.
1189 cache_file=/dev/null
1196 program_transform_name=s,x,x,
1204 # Installation directory options.
1205 # These are left unexpanded so users can "make install exec_prefix=/foo"
1206 # and all the variables that are supposed to be based on exec_prefix
1207 # by default will actually change.
1208 # Use braces instead of parens because sh, perl, etc. also accept them.
1209 # (The list follows the same order as the GNU Coding Standards.)
1210 bindir='${exec_prefix}/bin'
1211 sbindir='${exec_prefix}/sbin'
1212 libexecdir='${exec_prefix}/libexec'
1213 datarootdir='${prefix}/share'
1214 datadir='${datarootdir}'
1215 sysconfdir='${prefix}/etc'
1216 sharedstatedir='${prefix}/com'
1217 localstatedir='${prefix}/var'
1218 includedir='${prefix}/include'
1219 oldincludedir='/usr/include'
1220 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1221 infodir='${datarootdir}/info'
1226 libdir='${exec_prefix}/lib'
1227 localedir='${datarootdir}/locale'
1228 mandir='${datarootdir}/man'
1234 # If the previous option needs an argument, assign it.
1235 if test -n "$ac_prev"; then
1236 eval $ac_prev=\$ac_option
1242 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1247 # Accept the important Cygnus configure options, so we can diagnose typos.
1249 case $ac_dashdash$ac_option in
1253 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1255 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1256 bindir=$ac_optarg ;;
1258 -build | --build | --buil | --bui | --bu)
1259 ac_prev=build_alias ;;
1260 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1261 build_alias=$ac_optarg ;;
1263 -cache-file | --cache-file | --cache-fil | --cache-fi \
1264 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1265 ac_prev=cache_file ;;
1266 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1267 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1268 cache_file=$ac_optarg ;;
1270 --config-cache | -C)
1271 cache_file=config.cache ;;
1273 -datadir | --datadir | --datadi | --datad)
1275 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1276 datadir=$ac_optarg ;;
1278 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1279 | --dataroo | --dataro | --datar)
1280 ac_prev=datarootdir ;;
1281 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1282 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1283 datarootdir=$ac_optarg ;;
1285 -disable-* | --disable-*)
1286 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289 as_fn_error $? "invalid feature name: $ac_useropt"
1290 ac_useropt_orig=$ac_useropt
1291 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292 case $ac_user_opts in
1294 "enable_$ac_useropt"
1296 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1297 ac_unrecognized_sep=', ';;
1299 eval enable_$ac_useropt=no ;;
1301 -docdir | --docdir | --docdi | --doc | --do)
1303 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1304 docdir=$ac_optarg ;;
1306 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1308 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1309 dvidir=$ac_optarg ;;
1311 -enable-* | --enable-*)
1312 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1313 # Reject names that are not valid shell variable names.
1314 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1315 as_fn_error $? "invalid feature name: $ac_useropt"
1316 ac_useropt_orig=$ac_useropt
1317 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1318 case $ac_user_opts in
1320 "enable_$ac_useropt"
1322 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1323 ac_unrecognized_sep=', ';;
1325 eval enable_$ac_useropt=\$ac_optarg ;;
1327 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1328 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1329 | --exec | --exe | --ex)
1330 ac_prev=exec_prefix ;;
1331 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1332 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1333 | --exec=* | --exe=* | --ex=*)
1334 exec_prefix=$ac_optarg ;;
1336 -gas | --gas | --ga | --g)
1337 # Obsolete; use --with-gas.
1340 -help | --help | --hel | --he | -h)
1341 ac_init_help=long ;;
1342 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1343 ac_init_help=recursive ;;
1344 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1345 ac_init_help=short ;;
1347 -host | --host | --hos | --ho)
1348 ac_prev=host_alias ;;
1349 -host=* | --host=* | --hos=* | --ho=*)
1350 host_alias=$ac_optarg ;;
1352 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1354 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1356 htmldir=$ac_optarg ;;
1358 -includedir | --includedir | --includedi | --included | --include \
1359 | --includ | --inclu | --incl | --inc)
1360 ac_prev=includedir ;;
1361 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1362 | --includ=* | --inclu=* | --incl=* | --inc=*)
1363 includedir=$ac_optarg ;;
1365 -infodir | --infodir | --infodi | --infod | --info | --inf)
1367 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1368 infodir=$ac_optarg ;;
1370 -libdir | --libdir | --libdi | --libd)
1372 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1373 libdir=$ac_optarg ;;
1375 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1376 | --libexe | --libex | --libe)
1377 ac_prev=libexecdir ;;
1378 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1379 | --libexe=* | --libex=* | --libe=*)
1380 libexecdir=$ac_optarg ;;
1382 -localedir | --localedir | --localedi | --localed | --locale)
1383 ac_prev=localedir ;;
1384 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1385 localedir=$ac_optarg ;;
1387 -localstatedir | --localstatedir | --localstatedi | --localstated \
1388 | --localstate | --localstat | --localsta | --localst | --locals)
1389 ac_prev=localstatedir ;;
1390 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1391 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1392 localstatedir=$ac_optarg ;;
1394 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1396 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1397 mandir=$ac_optarg ;;
1399 -nfp | --nfp | --nf)
1400 # Obsolete; use --without-fp.
1403 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1404 | --no-cr | --no-c | -n)
1407 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1408 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1411 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1412 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1413 | --oldin | --oldi | --old | --ol | --o)
1414 ac_prev=oldincludedir ;;
1415 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1416 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1417 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1418 oldincludedir=$ac_optarg ;;
1420 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1422 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1423 prefix=$ac_optarg ;;
1425 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1426 | --program-pre | --program-pr | --program-p)
1427 ac_prev=program_prefix ;;
1428 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1429 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1430 program_prefix=$ac_optarg ;;
1432 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1433 | --program-suf | --program-su | --program-s)
1434 ac_prev=program_suffix ;;
1435 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1436 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1437 program_suffix=$ac_optarg ;;
1439 -program-transform-name | --program-transform-name \
1440 | --program-transform-nam | --program-transform-na \
1441 | --program-transform-n | --program-transform- \
1442 | --program-transform | --program-transfor \
1443 | --program-transfo | --program-transf \
1444 | --program-trans | --program-tran \
1445 | --progr-tra | --program-tr | --program-t)
1446 ac_prev=program_transform_name ;;
1447 -program-transform-name=* | --program-transform-name=* \
1448 | --program-transform-nam=* | --program-transform-na=* \
1449 | --program-transform-n=* | --program-transform-=* \
1450 | --program-transform=* | --program-transfor=* \
1451 | --program-transfo=* | --program-transf=* \
1452 | --program-trans=* | --program-tran=* \
1453 | --progr-tra=* | --program-tr=* | --program-t=*)
1454 program_transform_name=$ac_optarg ;;
1456 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1458 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1459 pdfdir=$ac_optarg ;;
1461 -psdir | --psdir | --psdi | --psd | --ps)
1463 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1466 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1467 | -silent | --silent | --silen | --sile | --sil)
1470 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1472 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1474 sbindir=$ac_optarg ;;
1476 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1477 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1478 | --sharedst | --shareds | --shared | --share | --shar \
1480 ac_prev=sharedstatedir ;;
1481 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1482 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1483 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1485 sharedstatedir=$ac_optarg ;;
1487 -site | --site | --sit)
1489 -site=* | --site=* | --sit=*)
1492 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1494 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1495 srcdir=$ac_optarg ;;
1497 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1498 | --syscon | --sysco | --sysc | --sys | --sy)
1499 ac_prev=sysconfdir ;;
1500 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1501 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1502 sysconfdir=$ac_optarg ;;
1504 -target | --target | --targe | --targ | --tar | --ta | --t)
1505 ac_prev=target_alias ;;
1506 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1507 target_alias=$ac_optarg ;;
1509 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1512 -version | --version | --versio | --versi | --vers | -V)
1513 ac_init_version=: ;;
1516 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1517 # Reject names that are not valid shell variable names.
1518 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1519 as_fn_error $? "invalid package name: $ac_useropt"
1520 ac_useropt_orig=$ac_useropt
1521 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1522 case $ac_user_opts in
1526 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1527 ac_unrecognized_sep=', ';;
1529 eval with_$ac_useropt=\$ac_optarg ;;
1531 -without-* | --without-*)
1532 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1533 # Reject names that are not valid shell variable names.
1534 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1535 as_fn_error $? "invalid package name: $ac_useropt"
1536 ac_useropt_orig=$ac_useropt
1537 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1538 case $ac_user_opts in
1542 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1543 ac_unrecognized_sep=', ';;
1545 eval with_$ac_useropt=no ;;
1548 # Obsolete; use --with-x.
1551 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1552 | --x-incl | --x-inc | --x-in | --x-i)
1553 ac_prev=x_includes ;;
1554 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1555 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1556 x_includes=$ac_optarg ;;
1558 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1559 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1560 ac_prev=x_libraries ;;
1561 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1562 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1563 x_libraries=$ac_optarg ;;
1565 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1566 Try \`$0 --help' for more information"
1570 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1571 # Reject names that are not valid shell variable names.
1572 case $ac_envvar in #(
1573 '' | [0-9]* | *[!_$as_cr_alnum]* )
1574 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1576 eval $ac_envvar=\$ac_optarg
1577 export $ac_envvar ;;
1580 # FIXME: should be removed in autoconf 3.0.
1581 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1582 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1583 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1584 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1590 if test -n "$ac_prev"; then
1591 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1592 as_fn_error $? "missing argument to $ac_option"
1595 if test -n "$ac_unrecognized_opts"; then
1596 case $enable_option_checking in
1598 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1599 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1603 # Check all directory arguments for consistency.
1604 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1605 datadir sysconfdir sharedstatedir localstatedir includedir \
1606 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1607 libdir localedir mandir
1609 eval ac_val=\$$ac_var
1610 # Remove trailing slashes.
1613 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1614 eval $ac_var=\$ac_val;;
1616 # Be sure to have absolute directory names.
1618 [\\/$]* | ?:[\\/]* ) continue;;
1619 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1621 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1624 # There might be people who depend on the old broken behavior: `$host'
1625 # used to hold the argument of --host etc.
1626 # FIXME: To remove some day.
1629 target=$target_alias
1631 # FIXME: To remove some day.
1632 if test "x$host_alias" != x; then
1633 if test "x$build_alias" = x; then
1634 cross_compiling=maybe
1635 elif test "x$build_alias" != "x$host_alias"; then
1641 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1643 test "$silent" = yes && exec 6>/dev/null
1646 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1647 ac_ls_di=`ls -di .` &&
1648 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1649 as_fn_error $? "working directory cannot be determined"
1650 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1651 as_fn_error $? "pwd does not report name of working directory"
1654 # Find the source files, if location was not specified.
1655 if test -z "$srcdir"; then
1656 ac_srcdir_defaulted=yes
1657 # Try the directory containing this script, then the parent directory.
1658 ac_confdir=`$as_dirname -- "$as_myself" ||
1659 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1660 X"$as_myself" : 'X\(//\)[^/]' \| \
1661 X"$as_myself" : 'X\(//\)$' \| \
1662 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1663 $as_echo X"$as_myself" |
1664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1682 if test ! -r "$srcdir/$ac_unique_file"; then
1686 ac_srcdir_defaulted=no
1688 if test ! -r "$srcdir/$ac_unique_file"; then
1689 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1690 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1692 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1694 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1696 # When building in place, set srcdir=.
1697 if test "$ac_abs_confdir" = "$ac_pwd"; then
1700 # Remove unnecessary trailing slashes from srcdir.
1701 # Double slashes in file names in object file debugging info
1702 # mess up M-x gdb in Emacs.
1704 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1706 for ac_var in $ac_precious_vars; do
1707 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1708 eval ac_env_${ac_var}_value=\$${ac_var}
1709 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1710 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1714 # Report the --help message.
1716 if test "$ac_init_help" = "long"; then
1717 # Omit some internal or obsolete options to make the list less imposing.
1718 # This message is too long to be a string in the A/UX 3.1 sh.
1720 \`configure' configures curl - to adapt to many kinds of systems.
1722 Usage: $0 [OPTION]... [VAR=VALUE]...
1724 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1725 VAR=VALUE. See below for descriptions of some of the useful variables.
1727 Defaults for the options are specified in brackets.
1730 -h, --help display this help and exit
1731 --help=short display options specific to this package
1732 --help=recursive display the short help of all the included packages
1733 -V, --version display version information and exit
1734 -q, --quiet, --silent do not print \`checking ...' messages
1735 --cache-file=FILE cache test results in FILE [disabled]
1736 -C, --config-cache alias for \`--cache-file=config.cache'
1737 -n, --no-create do not create output files
1738 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1740 Installation directories:
1741 --prefix=PREFIX install architecture-independent files in PREFIX
1742 [$ac_default_prefix]
1743 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1746 By default, \`make install' will install all the files in
1747 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1748 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1749 for instance \`--prefix=\$HOME'.
1751 For better control, use the options below.
1753 Fine tuning of the installation directories:
1754 --bindir=DIR user executables [EPREFIX/bin]
1755 --sbindir=DIR system admin executables [EPREFIX/sbin]
1756 --libexecdir=DIR program executables [EPREFIX/libexec]
1757 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1758 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1759 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1760 --libdir=DIR object code libraries [EPREFIX/lib]
1761 --includedir=DIR C header files [PREFIX/include]
1762 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1763 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1764 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1765 --infodir=DIR info documentation [DATAROOTDIR/info]
1766 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1767 --mandir=DIR man documentation [DATAROOTDIR/man]
1768 --docdir=DIR documentation root [DATAROOTDIR/doc/curl]
1769 --htmldir=DIR html documentation [DOCDIR]
1770 --dvidir=DIR dvi documentation [DOCDIR]
1771 --pdfdir=DIR pdf documentation [DOCDIR]
1772 --psdir=DIR ps documentation [DOCDIR]
1778 --program-prefix=PREFIX prepend PREFIX to installed program names
1779 --program-suffix=SUFFIX append SUFFIX to installed program names
1780 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1783 --build=BUILD configure for building on BUILD [guessed]
1784 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1788 if test -n "$ac_init_help"; then
1789 case $ac_init_help in
1790 short | recursive ) echo "Configuration of curl -:";;
1795 --disable-option-checking ignore unrecognized --enable/--with options
1796 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1797 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1798 --enable-maintainer-mode
1799 enable make rules and dependencies not useful (and
1800 sometimes confusing) to the casual installer
1801 --enable-debug Enable debug build options
1802 --disable-debug Disable debug build options
1803 --enable-optimize Enable compiler optimizations
1804 --disable-optimize Disable compiler optimizations
1805 --enable-warnings Enable strict compiler warnings
1806 --disable-warnings Disable strict compiler warnings
1807 --enable-werror Enable compiler warnings as errors
1808 --disable-werror Disable compiler warnings as errors
1809 --enable-curldebug Enable curl debug memory tracking
1810 --disable-curldebug Disable curl debug memory tracking
1811 --enable-symbol-hiding Enable hiding of library internal symbols
1812 --disable-symbol-hiding Disable hiding of library internal symbols
1813 --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
1814 --disable-hidden-symbols
1815 To be deprecated, use --disable-symbol-hiding
1816 --enable-ares[=PATH] Enable c-ares for DNS lookups
1817 --disable-ares Disable c-ares for DNS lookups
1818 --enable-dependency-tracking
1819 do not reject slow dependency extractors
1820 --disable-dependency-tracking
1821 speeds up one-time build
1822 --enable-silent-rules less verbose build output (undo: "make V=1")
1823 --disable-silent-rules verbose build output (undo: "make V=0")
1824 --disable-largefile omit support for large files
1825 --enable-shared[=PKGS] build shared libraries [default=yes]
1826 --enable-static[=PKGS] build static libraries [default=yes]
1827 --enable-fast-install[=PKGS]
1828 optimize for fast installation [default=yes]
1829 --disable-libtool-lock avoid locking (might break parallel builds)
1830 --enable-http Enable HTTP support
1831 --disable-http Disable HTTP support
1832 --enable-ftp Enable FTP support
1833 --disable-ftp Disable FTP support
1834 --enable-file Enable FILE support
1835 --disable-file Disable FILE support
1836 --enable-ldap Enable LDAP support
1837 --disable-ldap Disable LDAP support
1838 --enable-ldaps Enable LDAPS support
1839 --disable-ldaps Disable LDAPS support
1840 --enable-rtsp Enable RTSP support
1841 --disable-rtsp Disable RTSP support
1842 --enable-proxy Enable proxy support
1843 --disable-proxy Disable proxy support
1844 --enable-dict Enable DICT support
1845 --disable-dict Disable DICT support
1846 --enable-telnet Enable TELNET support
1847 --disable-telnet Disable TELNET support
1848 --enable-tftp Enable TFTP support
1849 --disable-tftp Disable TFTP support
1850 --enable-pop3 Enable POP3 support
1851 --disable-pop3 Disable POP3 support
1852 --enable-imap Enable IMAP support
1853 --disable-imap Disable IMAP support
1854 --enable-smtp Enable SMTP support
1855 --disable-smtp Disable SMTP support
1856 --enable-gopher Enable Gopher support
1857 --disable-gopher Disable Gopher support
1858 --enable-manual Enable built-in manual
1859 --disable-manual Disable built-in manual
1860 --enable-libcurl-option Enable --libcurl C code generation support
1861 --disable-libcurl-option
1862 Disable --libcurl C code generation support
1863 --enable-libgcc use libgcc when linking
1864 --enable-ipv6 Enable ipv6 (with ipv4) support
1865 --disable-ipv6 Disable ipv6 support
1866 --enable-versioned-symbols
1867 Enable versioned symbols in shared library
1868 --disable-versioned-symbols
1869 Disable versioned symbols in shared library
1870 --enable-threaded-resolver
1871 Enable threaded resolver
1872 --disable-threaded-resolver
1873 Disable threaded resolver
1874 --enable-verbose Enable verbose strings
1875 --disable-verbose Disable verbose strings
1876 --enable-sspi Enable SSPI
1877 --disable-sspi Disable SSPI
1878 --enable-crypto-auth Enable cryptographic authentication
1879 --disable-crypto-auth Disable cryptographic authentication
1880 --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
1881 helper, where FILE is ntlm_auth's absolute filename
1882 (default: /usr/bin/ntlm_auth)
1883 --disable-ntlm-wb Disable NTLM delegation to winbind's ntlm_auth
1885 --enable-tls-srp Enable TLS-SRP authentication
1886 --disable-tls-srp Disable TLS-SRP authentication
1887 --enable-cookies Enable cookies support
1888 --disable-cookies Disable cookies support
1889 --enable-soname-bump Enable enforced SONAME bump
1890 --disable-soname-bump Disable enforced SONAME bump
1893 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1894 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1895 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1897 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1898 --with-sysroot=DIR Search for dependent libraries within DIR
1899 (or the compiler's sysroot if not specified).
1900 --with-zlib=PATH search for zlib in PATH
1901 --without-zlib disable use of zlib
1902 --with-ldap-lib=libname Specify name of ldap lib file
1903 --with-lber-lib=libname Specify name of lber lib file
1904 --with-krb4-includes=DIR
1905 Specify location of kerberos4 headers
1906 --with-krb4-libs=DIR Specify location of kerberos4 libs
1907 --with-krb4=DIR where to look for Kerberos4
1908 --with-spnego=DIR Specify location of SPNEGO library fbopenssl
1909 --with-gssapi-includes=DIR
1910 Specify location of GSSAPI header
1911 --with-gssapi-libs=DIR Specify location of GSSAPI libs
1912 --with-gssapi=DIR Where to look for GSSAPI
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
1963 Some influential environment variables:
1964 CC C compiler command
1965 CFLAGS C compiler flags
1966 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1967 nonstandard directory <lib dir>
1968 LIBS libraries to pass to the linker, e.g. -l<library>
1969 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1970 you have headers in a nonstandard directory <include dir>
1973 Use these variables to override the choices made by `configure' or to help
1974 it to find libraries and programs with nonstandard names/locations.
1976 Report bugs to <a suitable curl mailing list: http://curl.haxx.se/mail/>.
1981 if test "$ac_init_help" = "recursive"; then
1982 # If there are subdirs, report their specific --help.
1983 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1984 test -d "$ac_dir" ||
1985 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1990 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1992 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1993 # A ".." for each directory in $ac_dir_suffix.
1994 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1995 case $ac_top_builddir_sub in
1996 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1997 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2000 ac_abs_top_builddir=$ac_pwd
2001 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2002 # for backward compatibility:
2003 ac_top_builddir=$ac_top_build_prefix
2006 .) # We are building in place.
2008 ac_top_srcdir=$ac_top_builddir_sub
2009 ac_abs_top_srcdir=$ac_pwd ;;
2010 [\\/]* | ?:[\\/]* ) # Absolute name.
2011 ac_srcdir=$srcdir$ac_dir_suffix;
2012 ac_top_srcdir=$srcdir
2013 ac_abs_top_srcdir=$srcdir ;;
2015 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2016 ac_top_srcdir=$ac_top_build_prefix$srcdir
2017 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2019 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2021 cd "$ac_dir" || { ac_status=$?; continue; }
2022 # Check for guested configure.
2023 if test -f "$ac_srcdir/configure.gnu"; then
2025 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2026 elif test -f "$ac_srcdir/configure"; then
2028 $SHELL "$ac_srcdir/configure" --help=recursive
2030 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2032 cd "$ac_pwd" || { ac_status=$?; break; }
2036 test -n "$ac_init_help" && exit $ac_status
2037 if $ac_init_version; then
2040 generated by GNU Autoconf 2.69
2042 Copyright (C) 2012 Free Software Foundation, Inc.
2043 This configure script is free software; the Free Software Foundation
2044 gives unlimited permission to copy, distribute and modify it.
2046 Copyright (c) 1998 - 2013 Daniel Stenberg, <daniel@haxx.se>
2047 This configure script may be copied, distributed and modified under the
2048 terms of the curl license; see COPYING for more details
2053 ## ------------------------ ##
2054 ## Autoconf initialization. ##
2055 ## ------------------------ ##
2057 # ac_fn_c_try_compile LINENO
2058 # --------------------------
2059 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2060 ac_fn_c_try_compile ()
2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063 rm -f conftest.$ac_objext
2064 if { { ac_try="$ac_compile"
2066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2067 *) ac_try_echo=$ac_try;;
2069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2070 $as_echo "$ac_try_echo"; } >&5
2071 (eval "$ac_compile") 2>conftest.err
2073 if test -s conftest.err; then
2074 grep -v '^ *+' conftest.err >conftest.er1
2075 cat conftest.er1 >&5
2076 mv -f conftest.er1 conftest.err
2078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2079 test $ac_status = 0; } && {
2080 test -z "$ac_c_werror_flag" ||
2081 test ! -s conftest.err
2082 } && test -s conftest.$ac_objext; then :
2085 $as_echo "$as_me: failed program was:" >&5
2086 sed 's/^/| /' conftest.$ac_ext >&5
2090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091 as_fn_set_status $ac_retval
2093 } # ac_fn_c_try_compile
2095 # ac_fn_c_try_cpp LINENO
2096 # ----------------------
2097 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 if { { ac_try="$ac_cpp conftest.$ac_ext"
2103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104 *) ac_try_echo=$ac_try;;
2106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2107 $as_echo "$ac_try_echo"; } >&5
2108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2110 if test -s conftest.err; then
2111 grep -v '^ *+' conftest.err >conftest.er1
2112 cat conftest.er1 >&5
2113 mv -f conftest.er1 conftest.err
2115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2116 test $ac_status = 0; } > conftest.i && {
2117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2118 test ! -s conftest.err
2122 $as_echo "$as_me: failed program was:" >&5
2123 sed 's/^/| /' conftest.$ac_ext >&5
2127 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2128 as_fn_set_status $ac_retval
2132 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2133 # -------------------------------------------------------
2134 # Tests whether HEADER exists and can be compiled using the include files in
2135 # INCLUDES, setting the cache variable VAR accordingly.
2136 ac_fn_c_check_header_compile ()
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2140 $as_echo_n "checking for $2... " >&6; }
2141 if eval \${$3+:} false; then :
2142 $as_echo_n "(cached) " >&6
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2149 if ac_fn_c_try_compile "$LINENO"; then :
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2158 $as_echo "$ac_res" >&6; }
2159 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2161 } # ac_fn_c_check_header_compile
2163 # ac_fn_c_try_run LINENO
2164 # ----------------------
2165 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2166 # that executables *can* be run.
2169 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2170 if { { ac_try="$ac_link"
2172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2173 *) ac_try_echo=$ac_try;;
2175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2176 $as_echo "$ac_try_echo"; } >&5
2177 (eval "$ac_link") 2>&5
2179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2180 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2181 { { case "(($ac_try" in
2182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2183 *) ac_try_echo=$ac_try;;
2185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2186 $as_echo "$ac_try_echo"; } >&5
2187 (eval "$ac_try") 2>&5
2189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2190 test $ac_status = 0; }; }; then :
2193 $as_echo "$as_me: program exited with status $ac_status" >&5
2194 $as_echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2197 ac_retval=$ac_status
2199 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2200 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2201 as_fn_set_status $ac_retval
2205 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2206 # --------------------------------------------
2207 # Tries to find the compile-time value of EXPR in a program that includes
2208 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2210 ac_fn_c_compute_int ()
2212 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213 if test "$cross_compiling" = yes; then
2214 # Depending upon the size, compute the lo and hi bounds.
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h. */
2220 static int test_array [1 - 2 * !(($2) >= 0)];
2222 return test_array [0];
2228 if ac_fn_c_try_compile "$LINENO"; then :
2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h. */
2236 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2238 return test_array [0];
2244 if ac_fn_c_try_compile "$LINENO"; then :
2245 ac_hi=$ac_mid; break
2247 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2248 if test $ac_lo -le $ac_mid; then
2252 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h. */
2262 static int test_array [1 - 2 * !(($2) < 0)];
2264 return test_array [0];
2270 if ac_fn_c_try_compile "$LINENO"; then :
2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h. */
2278 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2280 return test_array [0];
2286 if ac_fn_c_try_compile "$LINENO"; then :
2287 ac_lo=$ac_mid; break
2289 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2290 if test $ac_mid -le $ac_hi; then
2294 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304 # Binary search between lo and hi bounds.
2305 while test "x$ac_lo" != "x$ac_hi"; do
2306 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2312 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2314 return test_array [0];
2320 if ac_fn_c_try_compile "$LINENO"; then :
2323 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2328 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333 /* end confdefs.h. */
2335 static long int longval () { return $2; }
2336 static unsigned long int ulongval () { return $2; }
2342 FILE *f = fopen ("conftest.val", "w");
2347 long int i = longval ();
2350 fprintf (f, "%ld", i);
2354 unsigned long int i = ulongval ();
2357 fprintf (f, "%lu", i);
2359 /* Do not output a trailing newline, as this causes \r\n confusion
2360 on some platforms. */
2361 return ferror (f) || fclose (f) != 0;
2367 if ac_fn_c_try_run "$LINENO"; then :
2368 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2373 conftest.$ac_objext conftest.beam conftest.$ac_ext
2377 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2378 as_fn_set_status $ac_retval
2380 } # ac_fn_c_compute_int
2382 # ac_fn_c_try_link LINENO
2383 # -----------------------
2384 # Try to link conftest.$ac_ext, and return whether this succeeded.
2387 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2388 rm -f conftest.$ac_objext conftest$ac_exeext
2389 if { { ac_try="$ac_link"
2391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392 *) ac_try_echo=$ac_try;;
2394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2395 $as_echo "$ac_try_echo"; } >&5
2396 (eval "$ac_link") 2>conftest.err
2398 if test -s conftest.err; then
2399 grep -v '^ *+' conftest.err >conftest.er1
2400 cat conftest.er1 >&5
2401 mv -f conftest.er1 conftest.err
2403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2404 test $ac_status = 0; } && {
2405 test -z "$ac_c_werror_flag" ||
2406 test ! -s conftest.err
2407 } && test -s conftest$ac_exeext && {
2408 test "$cross_compiling" = yes ||
2409 test -x conftest$ac_exeext
2413 $as_echo "$as_me: failed program was:" >&5
2414 sed 's/^/| /' conftest.$ac_ext >&5
2418 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2419 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2420 # interfere with the next link command; also delete a directory that is
2421 # left behind by Apple's compiler. We do this before executing the actions.
2422 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2423 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2424 as_fn_set_status $ac_retval
2426 } # ac_fn_c_try_link
2428 # ac_fn_c_check_func LINENO FUNC VAR
2429 # ----------------------------------
2430 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2431 ac_fn_c_check_func ()
2433 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2435 $as_echo_n "checking for $2... " >&6; }
2436 if eval \${$3+:} false; then :
2437 $as_echo_n "(cached) " >&6
2439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2440 /* end confdefs.h. */
2442 #define $2 innocuous_$2
2444 # include <limits.h>
2446 # include <assert.h>
2453 #if defined __stub_$2 || defined __stub___$2
2464 if ac_fn_c_try_link "$LINENO"; then :
2469 rm -f core conftest.err conftest.$ac_objext \
2470 conftest$ac_exeext conftest.$ac_ext
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2474 $as_echo "$ac_res" >&6; }
2475 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2477 } # ac_fn_c_check_func
2479 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2480 # -------------------------------------------------------
2481 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2482 # the include files in INCLUDES and setting the cache variable VAR
2484 ac_fn_c_check_header_mongrel ()
2486 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2487 if eval \${$3+:} false; then :
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2489 $as_echo_n "checking for $2... " >&6; }
2490 if eval \${$3+:} false; then :
2491 $as_echo_n "(cached) " >&6
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2495 $as_echo "$ac_res" >&6; }
2497 # Is the header compilable?
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2499 $as_echo_n "checking $2 usability... " >&6; }
2500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2501 /* end confdefs.h. */
2505 if ac_fn_c_try_compile "$LINENO"; then :
2506 ac_header_compiler=yes
2508 ac_header_compiler=no
2510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2512 $as_echo "$ac_header_compiler" >&6; }
2514 # Is the header present?
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2516 $as_echo_n "checking $2 presence... " >&6; }
2517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2518 /* end confdefs.h. */
2521 if ac_fn_c_try_cpp "$LINENO"; then :
2522 ac_header_preproc=yes
2524 ac_header_preproc=no
2526 rm -f conftest.err conftest.i conftest.$ac_ext
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2528 $as_echo "$ac_header_preproc" >&6; }
2530 # So? What about this header?
2531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2534 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2536 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2540 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2542 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2544 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2546 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2548 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2549 ( $as_echo "## ---------------------------------------------------------------------- ##
2550 ## Report this to a suitable curl mailing list: http://curl.haxx.se/mail/ ##
2551 ## ---------------------------------------------------------------------- ##"
2552 ) | sed "s/^/$as_me: WARNING: /" >&2
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2556 $as_echo_n "checking for $2... " >&6; }
2557 if eval \${$3+:} false; then :
2558 $as_echo_n "(cached) " >&6
2560 eval "$3=\$ac_header_compiler"
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2564 $as_echo "$ac_res" >&6; }
2566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2568 } # ac_fn_c_check_header_mongrel
2570 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2571 # -------------------------------------------
2572 # Tests whether TYPE exists after having included INCLUDES, setting cache
2573 # variable VAR accordingly.
2574 ac_fn_c_check_type ()
2576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2578 $as_echo_n "checking for $2... " >&6; }
2579 if eval \${$3+:} false; then :
2580 $as_echo_n "(cached) " >&6
2583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2584 /* end confdefs.h. */
2594 if ac_fn_c_try_compile "$LINENO"; then :
2595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2596 /* end confdefs.h. */
2606 if ac_fn_c_try_compile "$LINENO"; then :
2611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2617 $as_echo "$ac_res" >&6; }
2618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2620 } # ac_fn_c_check_type
2621 cat >config.log <<_ACEOF
2622 This file contains any messages produced by compilers while
2623 running configure, to aid debugging if configure makes a mistake.
2625 It was created by curl $as_me -, which was
2626 generated by GNU Autoconf 2.69. Invocation command line was
2638 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2639 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2640 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2641 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2642 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2644 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2645 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2647 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2648 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2649 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2650 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2651 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2652 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2653 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 test -z "$as_dir" && as_dir=.
2662 $as_echo "PATH: $as_dir"
2678 # Keep a trace of the command line.
2679 # Strip out --no-create and --no-recursion so they do not pile up.
2680 # Strip out --silent because we don't want to record it for future runs.
2681 # Also quote any args containing shell meta-characters.
2682 # Make two passes to allow for proper duplicate-argument suppression.
2686 ac_must_keep_next=false
2692 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2694 | -silent | --silent | --silen | --sile | --sil)
2697 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2700 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2702 as_fn_append ac_configure_args1 " '$ac_arg'"
2703 if test $ac_must_keep_next = true; then
2704 ac_must_keep_next=false # Got value, back to normal.
2707 *=* | --config-cache | -C | -disable-* | --disable-* \
2708 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2709 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2710 | -with-* | --with-* | -without-* | --without-* | --x)
2711 case "$ac_configure_args0 " in
2712 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2715 -* ) ac_must_keep_next=true ;;
2718 as_fn_append ac_configure_args " '$ac_arg'"
2723 { ac_configure_args0=; unset ac_configure_args0;}
2724 { ac_configure_args1=; unset ac_configure_args1;}
2726 # When interrupted or exit'd, cleanup temporary files, and complete
2727 # config.log. We remove comments because anyway the quotes in there
2728 # would cause problems or look ugly.
2729 # WARNING: Use '\'' to represent an apostrophe within the trap.
2730 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2731 trap 'exit_status=$?
2732 # Save into config.log some information that might help in debugging.
2736 $as_echo "## ---------------- ##
2737 ## Cache variables. ##
2738 ## ---------------- ##"
2740 # The following way of writing the cache mishandles newlines in values,
2742 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2743 eval ac_val=\$$ac_var
2747 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2748 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2751 _ | IFS | as_nl) ;; #(
2752 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2753 *) { eval $ac_var=; unset $ac_var;} ;;
2758 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2759 *${as_nl}ac_space=\ *)
2761 "s/'\''/'\''\\\\'\'''\''/g;
2762 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2765 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2772 $as_echo "## ----------------- ##
2773 ## Output variables. ##
2774 ## ----------------- ##"
2776 for ac_var in $ac_subst_vars
2778 eval ac_val=\$$ac_var
2780 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2782 $as_echo "$ac_var='\''$ac_val'\''"
2786 if test -n "$ac_subst_files"; then
2787 $as_echo "## ------------------- ##
2788 ## File substitutions. ##
2789 ## ------------------- ##"
2791 for ac_var in $ac_subst_files
2793 eval ac_val=\$$ac_var
2795 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2797 $as_echo "$ac_var='\''$ac_val'\''"
2802 if test -s confdefs.h; then
2803 $as_echo "## ----------- ##
2810 test "$ac_signal" != 0 &&
2811 $as_echo "$as_me: caught signal $ac_signal"
2812 $as_echo "$as_me: exit $exit_status"
2814 rm -f core *.core core.conftest.* &&
2815 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2818 for ac_signal in 1 2 13 15; do
2819 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2823 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2824 rm -f -r conftest* confdefs.h
2826 $as_echo "/* confdefs.h */" > confdefs.h
2828 # Predefined preprocessor variables.
2830 cat >>confdefs.h <<_ACEOF
2831 #define PACKAGE_NAME "$PACKAGE_NAME"
2834 cat >>confdefs.h <<_ACEOF
2835 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2838 cat >>confdefs.h <<_ACEOF
2839 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2842 cat >>confdefs.h <<_ACEOF
2843 #define PACKAGE_STRING "$PACKAGE_STRING"
2846 cat >>confdefs.h <<_ACEOF
2847 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2850 cat >>confdefs.h <<_ACEOF
2851 #define PACKAGE_URL "$PACKAGE_URL"
2855 # Let the site file select an alternate cache file if it wants to.
2856 # Prefer an explicitly selected file to automatically selected ones.
2859 if test -n "$CONFIG_SITE"; then
2860 # We do not want a PATH search for config.site.
2861 case $CONFIG_SITE in #((
2862 -*) ac_site_file1=./$CONFIG_SITE;;
2863 */*) ac_site_file1=$CONFIG_SITE;;
2864 *) ac_site_file1=./$CONFIG_SITE;;
2866 elif test "x$prefix" != xNONE; then
2867 ac_site_file1=$prefix/share/config.site
2868 ac_site_file2=$prefix/etc/config.site
2870 ac_site_file1=$ac_default_prefix/share/config.site
2871 ac_site_file2=$ac_default_prefix/etc/config.site
2873 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2875 test "x$ac_site_file" = xNONE && continue
2876 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2878 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2879 sed 's/^/| /' "$ac_site_file" >&5
2881 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2883 as_fn_error $? "failed to load site script $ac_site_file
2884 See \`config.log' for more details" "$LINENO" 5; }
2888 if test -r "$cache_file"; then
2889 # Some versions of bash will fail to source /dev/null (special files
2890 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2891 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2893 $as_echo "$as_me: loading cache $cache_file" >&6;}
2895 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2896 *) . "./$cache_file";;
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2901 $as_echo "$as_me: creating cache $cache_file" >&6;}
2905 # Check that the precious variables saved in the cache have kept the same
2907 ac_cache_corrupted=false
2908 for ac_var in $ac_precious_vars; do
2909 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2910 eval ac_new_set=\$ac_env_${ac_var}_set
2911 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2912 eval ac_new_val=\$ac_env_${ac_var}_value
2913 case $ac_old_set,$ac_new_set in
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2916 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2917 ac_cache_corrupted=: ;;
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2920 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2921 ac_cache_corrupted=: ;;
2924 if test "x$ac_old_val" != "x$ac_new_val"; then
2925 # differences in whitespace do not lead to failure.
2926 ac_old_val_w=`echo x $ac_old_val`
2927 ac_new_val_w=`echo x $ac_new_val`
2928 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2930 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2931 ac_cache_corrupted=:
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2934 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2935 eval $ac_var=\$ac_old_val
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2938 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2940 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2943 # Pass precious variables to config.status.
2944 if test "$ac_new_set" = set; then
2946 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2947 *) ac_arg=$ac_var=$ac_new_val ;;
2949 case " $ac_configure_args " in
2950 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2951 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2955 if $ac_cache_corrupted; then
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2959 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2960 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2962 ## -------------------- ##
2963 ## Main body of script. ##
2964 ## -------------------- ##
2967 ac_cpp='$CPP $CPPFLAGS'
2968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2978 # using curl-override.m4
2984 ac_config_headers="$ac_config_headers lib/curl_config.h include/curl/curlbuild.h"
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2989 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2990 # Check whether --enable-maintainer-mode was given.
2991 if test "${enable_maintainer_mode+set}" = set; then :
2992 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2994 USE_MAINTAINER_MODE=no
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2998 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2999 if test $USE_MAINTAINER_MODE = yes; then
3000 MAINTAINER_MODE_TRUE=
3001 MAINTAINER_MODE_FALSE='#'
3003 MAINTAINER_MODE_TRUE='#'
3004 MAINTAINER_MODE_FALSE=
3007 MAINT=$MAINTAINER_MODE_TRUE
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3013 $as_echo_n "checking whether to enable debug build options... " >&6; }
3014 OPT_DEBUG_BUILD="default"
3015 # Check whether --enable-debug was given.
3016 if test "${enable_debug+set}" = set; then :
3017 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3020 case "$OPT_DEBUG_BUILD" in
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3032 $as_echo "$want_debug" >&6; }
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3036 $as_echo_n "checking whether to enable compiler optimizer... " >&6; }
3037 OPT_COMPILER_OPTIMIZE="default"
3038 # Check whether --enable-optimize was given.
3039 if test "${enable_optimize+set}" = set; then :
3040 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3043 case "$OPT_COMPILER_OPTIMIZE" in
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047 $as_echo "no" >&6; }
3050 if test "$want_debug" = "yes"; then
3051 want_optimize="assume_no"
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3053 $as_echo "(assumed) no" >&6; }
3055 want_optimize="assume_yes"
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3057 $as_echo "(assumed) yes" >&6; }
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3063 $as_echo "yes" >&6; }
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3069 $as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
3070 OPT_COMPILER_WARNINGS="default"
3071 # Check whether --enable-warnings was given.
3072 if test "${enable_warnings+set}" = set; then :
3073 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3076 case "$OPT_COMPILER_WARNINGS" in
3081 want_warnings="$want_debug"
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3088 $as_echo "$want_warnings" >&6; }
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3092 $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
3093 OPT_COMPILER_WERROR="default"
3094 # Check whether --enable-werror was given.
3095 if test "${enable_werror+set}" = set; then :
3096 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3099 case "$OPT_COMPILER_WERROR" in
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3111 $as_echo "$want_werror" >&6; }
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3115 $as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
3116 OPT_CURLDEBUG_BUILD="default"
3117 # Check whether --enable-curldebug was given.
3118 if test "${enable_curldebug+set}" = set; then :
3119 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3122 case "$OPT_CURLDEBUG_BUILD" in
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3129 if test "$want_debug" = "yes"; then
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3131 $as_echo "(assumed) yes" >&6; }
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134 $as_echo "no" >&6; }
3136 want_curldebug_assumed="yes"
3137 want_curldebug="$want_debug"
3140 want_curldebug="yes"
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3142 $as_echo "yes" >&6; }
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3148 $as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3149 OPT_SYMBOL_HIDING="default"
3150 # Check whether --enable-symbol-hiding was given.
3151 if test "${enable_symbol_hiding+set}" = set; then :
3152 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3155 # Check whether --enable-hidden-symbols was given.
3156 if test "${enable_hidden_symbols+set}" = set; then :
3157 enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
3160 case "$OPT_SYMBOL_HIDING" in
3162 want_symbol_hiding="no"
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3167 want_symbol_hiding="yes"
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3169 $as_echo "yes" >&6; }
3172 want_symbol_hiding="yes"
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3174 $as_echo "yes" >&6; }
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3180 $as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
3182 # Check whether --enable-ares was given.
3183 if test "${enable_ares+set}" = set; then :
3184 enableval=$enable_ares; OPT_ARES=$enableval
3196 if test -n "$enableval" && test "$enableval" != "yes"; then
3197 want_ares_path="$enableval"
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3202 $as_echo "$want_ares" >&6; }
3206 # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3209 if test -z "$xc_configure_preamble_result"; then
3210 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3214 # Check that 'PATH_SEPARATOR' has already been set.
3217 if test -z "$xc_PATH_SEPARATOR"; then
3218 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3220 if test -z "$PATH_SEPARATOR"; then
3221 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3224 $as_echo_n "checking for path separator... " >&6; }
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3226 $as_echo "$PATH_SEPARATOR" >&6; }
3227 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3229 $as_echo_n "checking for initial path separator... " >&6; }
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3231 $as_echo "$xc_PATH_SEPARATOR" >&6; }
3232 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3237 # save the configure arguments
3239 CONFIGURE_OPTIONS="\"$ac_configure_args\""
3242 CURL_CFLAG_EXTRAS=""
3243 if test X"$want_werror" = Xyes; then
3244 CURL_CFLAG_EXTRAS="-Werror"
3248 if test -z "$SED"; then
3249 # Extract the first word of "sed", so it can be a program name with args.
3250 set dummy sed; ac_word=$2
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3252 $as_echo_n "checking for $ac_word... " >&6; }
3253 if ${ac_cv_path_SED+:} false; then :
3254 $as_echo_n "(cached) " >&6
3258 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3263 for as_dir in $as_dummy
3266 test -z "$as_dir" && as_dir=.
3267 for ac_exec_ext in '' $ac_executable_extensions; do
3268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3269 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3277 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3282 if test -n "$SED"; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3284 $as_echo "$SED" >&6; }
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 $as_echo "no" >&6; }
3291 if test -z "$SED" || test "$SED" = "not_found"; then
3292 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3297 if test -z "$GREP"; then
3298 # Extract the first word of "grep", so it can be a program name with args.
3299 set dummy grep; ac_word=$2
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3301 $as_echo_n "checking for $ac_word... " >&6; }
3302 if ${ac_cv_path_GREP+:} false; then :
3303 $as_echo_n "(cached) " >&6
3307 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3312 for as_dir in $as_dummy
3315 test -z "$as_dir" && as_dir=.
3316 for ac_exec_ext in '' $ac_executable_extensions; do
3317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3318 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3326 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3330 GREP=$ac_cv_path_GREP
3331 if test -n "$GREP"; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3333 $as_echo "$GREP" >&6; }
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 $as_echo "no" >&6; }
3340 if test -z "$GREP" || test "$GREP" = "not_found"; then
3341 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3346 if test -z "$EGREP"; then
3347 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3349 $as_echo_n "checking for egrep... " >&6; }
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3352 $as_echo "$EGREP" >&6; }
3354 # Extract the first word of "egrep", so it can be a program name with args.
3355 set dummy egrep; ac_word=$2
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3357 $as_echo_n "checking for $ac_word... " >&6; }
3358 if ${ac_cv_path_EGREP+:} false; then :
3359 $as_echo_n "(cached) " >&6
3363 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3368 for as_dir in $as_dummy
3371 test -z "$as_dir" && as_dir=.
3372 for ac_exec_ext in '' $ac_executable_extensions; do
3373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3374 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3382 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3386 EGREP=$ac_cv_path_EGREP
3387 if test -n "$EGREP"; then
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3389 $as_echo "$EGREP" >&6; }
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3392 $as_echo "no" >&6; }
3398 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3399 as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3403 if test -z "$AR"; then
3404 if test -n "$ac_tool_prefix"; then
3405 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3406 set dummy ${ac_tool_prefix}ar; ac_word=$2
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3408 $as_echo_n "checking for $ac_word... " >&6; }
3409 if ${ac_cv_path_AR+:} false; then :
3410 $as_echo_n "(cached) " >&6
3414 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3419 for as_dir in $as_dummy
3422 test -z "$as_dir" && as_dir=.
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3425 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3437 if test -n "$AR"; then
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3439 $as_echo "$AR" >&6; }
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3442 $as_echo "no" >&6; }
3447 if test -z "$ac_cv_path_AR"; then
3449 # Extract the first word of "ar", so it can be a program name with args.
3450 set dummy ar; ac_word=$2
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3452 $as_echo_n "checking for $ac_word... " >&6; }
3453 if ${ac_cv_path_ac_pt_AR+:} false; then :
3454 $as_echo_n "(cached) " >&6
3458 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3463 for as_dir in $as_dummy
3466 test -z "$as_dir" && as_dir=.
3467 for ac_exec_ext in '' $ac_executable_extensions; do
3468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3469 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3480 ac_pt_AR=$ac_cv_path_ac_pt_AR
3481 if test -n "$ac_pt_AR"; then
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3483 $as_echo "$ac_pt_AR" >&6; }
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 $as_echo "no" >&6; }
3489 if test "x$ac_pt_AR" = x; then
3492 case $cross_compiling:$ac_tool_warned in
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3496 ac_tool_warned=yes ;;
3504 if test -z "$AR" || test "$AR" = "not_found"; then
3505 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3512 if test -f ${srcdir}/include/curl/curlbuild.h; then
3513 rm -f ${srcdir}/include/curl/curlbuild.h
3516 CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curlver.h`
3518 xc_prog_cc_prev_IFS=$IFS
3519 xc_prog_cc_prev_LIBS=$LIBS
3520 xc_prog_cc_prev_CFLAGS=$CFLAGS
3521 xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3522 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3527 for xc_word in $LIBS; do
3537 if test $xc_bad_var_libs = yes; then
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3539 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
3541 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
3545 xc_bad_var_ldflags=no
3546 for xc_word in $LDFLAGS; do
3549 xc_bad_var_ldflags=yes
3552 xc_bad_var_ldflags=yes
3555 xc_bad_var_ldflags=yes
3558 xc_bad_var_ldflags=yes
3562 if test $xc_bad_var_ldflags = yes; then
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3564 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3565 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
3566 for xc_word in $LDFLAGS; do
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3570 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3574 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3578 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3582 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3589 xc_bad_var_cppflags=no
3590 for xc_word in $CPPFLAGS; do
3593 xc_bad_var_cppflags=yes
3595 -L* | --library-path=*)
3596 xc_bad_var_cppflags=yes
3599 xc_bad_var_cppflags=yes
3603 if test $xc_bad_var_cppflags = yes; then
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3605 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3606 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
3607 for xc_word in $CPPFLAGS; do
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3611 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3613 -L* | --library-path=*)
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3615 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3619 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3626 xc_bad_var_cflags=no
3627 for xc_word in $CFLAGS; do
3630 xc_bad_var_cflags=yes
3633 xc_bad_var_cflags=yes
3636 xc_bad_var_cflags=yes
3639 xc_bad_var_cflags=yes
3641 -L* | --library-path=*)
3642 xc_bad_var_cflags=yes
3645 xc_bad_var_cflags=yes
3649 if test $xc_bad_var_cflags = yes; then
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3651 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3652 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
3653 for xc_word in $CFLAGS; do
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3657 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3661 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3665 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3669 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3671 -L* | --library-path=*)
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3673 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3677 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3683 if test $xc_bad_var_libs = yes ||
3684 test $xc_bad_var_cflags = yes ||
3685 test $xc_bad_var_ldflags = yes ||
3686 test $xc_bad_var_cppflags = yes; then
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
3688 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
3692 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3693 if test -f "$ac_dir/install-sh"; then
3695 ac_install_sh="$ac_aux_dir/install-sh -c"
3697 elif test -f "$ac_dir/install.sh"; then
3699 ac_install_sh="$ac_aux_dir/install.sh -c"
3701 elif test -f "$ac_dir/shtool"; then
3703 ac_install_sh="$ac_aux_dir/shtool install -c"
3707 if test -z "$ac_aux_dir"; then
3708 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3711 # These three variables are undocumented and unsupported,
3712 # and are intended to be withdrawn in a future Autoconf release.
3713 # They can cause serious problems if a builder's source tree is in a directory
3714 # whose full name contains unusual characters.
3715 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3716 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3717 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3720 # Find a good install program. We prefer a C program (faster),
3721 # so one script is as good as another. But avoid the broken or
3722 # incompatible versions:
3723 # SysV /etc/install, /usr/sbin/install
3724 # SunOS /usr/etc/install
3725 # IRIX /sbin/install
3727 # AmigaOS /C/install, which installs bootblocks on floppy discs
3728 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3729 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3730 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3731 # OS/2's system install, which has a completely different semantic
3732 # ./install, which can be erroneously created by make from ./install.sh.
3733 # Reject install programs that cannot install multiple files.
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3735 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3736 if test -z "$INSTALL"; then
3737 if ${ac_cv_path_install+:} false; then :
3738 $as_echo_n "(cached) " >&6
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744 test -z "$as_dir" && as_dir=.
3745 # Account for people who put trailing slashes in PATH elements.
3746 case $as_dir/ in #((
3747 ./ | .// | /[cC]/* | \
3748 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3749 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3752 # OSF1 and SCO ODT 3.0 have their own names for install.
3753 # Don't use installbsd from OSF since it installs stuff as root
3755 for ac_prog in ginstall scoinst install; do
3756 for ac_exec_ext in '' $ac_executable_extensions; do
3757 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3758 if test $ac_prog = install &&
3759 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3760 # AIX install. It has an incompatible calling convention.
3762 elif test $ac_prog = install &&
3763 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3764 # program-specific install script used by HP pwplus--don't use.
3767 rm -rf conftest.one conftest.two conftest.dir
3768 echo one > conftest.one
3769 echo two > conftest.two
3771 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3772 test -s conftest.one && test -s conftest.two &&
3773 test -s conftest.dir/conftest.one &&
3774 test -s conftest.dir/conftest.two
3776 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3789 rm -rf conftest.one conftest.two conftest.dir
3792 if test "${ac_cv_path_install+set}" = set; then
3793 INSTALL=$ac_cv_path_install
3795 # As a last resort, use the slow shell script. Don't cache a
3796 # value for INSTALL within a source directory, because that will
3797 # break other packages using the cache if that directory is
3798 # removed, or if the value is a relative name.
3799 INSTALL=$ac_install_sh
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3803 $as_echo "$INSTALL" >&6; }
3805 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3806 # It thinks the first close brace ends the variable substitution.
3807 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3809 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3811 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3814 ac_cpp='$CPP $CPPFLAGS'
3815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3818 if test -n "$ac_tool_prefix"; then
3819 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3820 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3822 $as_echo_n "checking for $ac_word... " >&6; }
3823 if ${ac_cv_prog_CC+:} false; then :
3824 $as_echo_n "(cached) " >&6
3826 if test -n "$CC"; then
3827 ac_cv_prog_CC="$CC" # Let the user override the test.
3829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 test -z "$as_dir" && as_dir=.
3834 for ac_exec_ext in '' $ac_executable_extensions; do
3835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3836 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3847 if test -n "$CC"; then
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3849 $as_echo "$CC" >&6; }
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3852 $as_echo "no" >&6; }
3857 if test -z "$ac_cv_prog_CC"; then
3859 # Extract the first word of "gcc", so it can be a program name with args.
3860 set dummy gcc; ac_word=$2
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3862 $as_echo_n "checking for $ac_word... " >&6; }
3863 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3864 $as_echo_n "(cached) " >&6
3866 if test -n "$ac_ct_CC"; then
3867 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 test -z "$as_dir" && as_dir=.
3874 for ac_exec_ext in '' $ac_executable_extensions; do
3875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3876 ac_cv_prog_ac_ct_CC="gcc"
3877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3886 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3887 if test -n "$ac_ct_CC"; then
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3889 $as_echo "$ac_ct_CC" >&6; }
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3892 $as_echo "no" >&6; }
3895 if test "x$ac_ct_CC" = x; then
3898 case $cross_compiling:$ac_tool_warned in
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3902 ac_tool_warned=yes ;;
3910 if test -z "$CC"; then
3911 if test -n "$ac_tool_prefix"; then
3912 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3913 set dummy ${ac_tool_prefix}cc; ac_word=$2
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3915 $as_echo_n "checking for $ac_word... " >&6; }
3916 if ${ac_cv_prog_CC+:} false; then :
3917 $as_echo_n "(cached) " >&6
3919 if test -n "$CC"; then
3920 ac_cv_prog_CC="$CC" # Let the user override the test.
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 test -z "$as_dir" && as_dir=.
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3929 ac_cv_prog_CC="${ac_tool_prefix}cc"
3930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3940 if test -n "$CC"; then
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3942 $as_echo "$CC" >&6; }
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945 $as_echo "no" >&6; }
3951 if test -z "$CC"; then
3952 # Extract the first word of "cc", so it can be a program name with args.
3953 set dummy cc; ac_word=$2
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3955 $as_echo_n "checking for $ac_word... " >&6; }
3956 if ${ac_cv_prog_CC+:} false; then :
3957 $as_echo_n "(cached) " >&6
3959 if test -n "$CC"; then
3960 ac_cv_prog_CC="$CC" # Let the user override the test.
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967 test -z "$as_dir" && as_dir=.
3968 for ac_exec_ext in '' $ac_executable_extensions; do
3969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3970 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3971 ac_prog_rejected=yes
3975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 if test $ac_prog_rejected = yes; then
3983 # We found a bogon in the path, so make sure we never use it.
3984 set dummy $ac_cv_prog_CC
3986 if test $# != 0; then
3987 # We chose a different compiler from the bogus one.
3988 # However, it has the same basename, so the bogon will be chosen
3989 # first if we set CC to just the basename; use the full file name.
3991 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3997 if test -n "$CC"; then
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3999 $as_echo "$CC" >&6; }
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4002 $as_echo "no" >&6; }
4007 if test -z "$CC"; then
4008 if test -n "$ac_tool_prefix"; then
4009 for ac_prog in cl.exe
4011 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4012 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4014 $as_echo_n "checking for $ac_word... " >&6; }
4015 if ${ac_cv_prog_CC+:} false; then :
4016 $as_echo_n "(cached) " >&6
4018 if test -n "$CC"; then
4019 ac_cv_prog_CC="$CC" # Let the user override the test.
4021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 test -z "$as_dir" && as_dir=.
4026 for ac_exec_ext in '' $ac_executable_extensions; do
4027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4028 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4039 if test -n "$CC"; then
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4041 $as_echo "$CC" >&6; }
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4044 $as_echo "no" >&6; }
4048 test -n "$CC" && break
4051 if test -z "$CC"; then
4053 for ac_prog in cl.exe
4055 # Extract the first word of "$ac_prog", so it can be a program name with args.
4056 set dummy $ac_prog; ac_word=$2
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4058 $as_echo_n "checking for $ac_word... " >&6; }
4059 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4060 $as_echo_n "(cached) " >&6
4062 if test -n "$ac_ct_CC"; then
4063 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 test -z "$as_dir" && as_dir=.
4070 for ac_exec_ext in '' $ac_executable_extensions; do
4071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4072 ac_cv_prog_ac_ct_CC="$ac_prog"
4073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4082 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4083 if test -n "$ac_ct_CC"; then
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4085 $as_echo "$ac_ct_CC" >&6; }
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4088 $as_echo "no" >&6; }
4092 test -n "$ac_ct_CC" && break
4095 if test "x$ac_ct_CC" = x; then
4098 case $cross_compiling:$ac_tool_warned in
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4102 ac_tool_warned=yes ;;
4111 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4113 as_fn_error $? "no acceptable C compiler found in \$PATH
4114 See \`config.log' for more details" "$LINENO" 5; }
4116 # Provide some information about the compiler.
4117 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4120 for ac_option in --version -v -V -qversion; do
4121 { { ac_try="$ac_compiler $ac_option >&5"
4123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4124 *) ac_try_echo=$ac_try;;
4126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4127 $as_echo "$ac_try_echo"; } >&5
4128 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4130 if test -s conftest.err; then
4132 ... rest of stderr output deleted ...
4133 10q' conftest.err >conftest.er1
4134 cat conftest.er1 >&5
4136 rm -f conftest.er1 conftest.err
4137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4138 test $ac_status = 0; }
4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h. */
4151 ac_clean_files_save=$ac_clean_files
4152 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4153 # Try to create an executable without -o first, disregard a.out.
4154 # It will help us diagnose broken compilers, and finding out an intuition
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4157 $as_echo_n "checking whether the C compiler works... " >&6; }
4158 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4160 # The possible output files:
4161 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4164 for ac_file in $ac_files
4167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4168 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4173 if { { ac_try="$ac_link_default"
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4179 $as_echo "$ac_try_echo"; } >&5
4180 (eval "$ac_link_default") 2>&5
4182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4183 test $ac_status = 0; }; then :
4184 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4185 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4186 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4187 # so that the user can short-circuit this test for compilers unknown to
4189 for ac_file in $ac_files ''
4191 test -f "$ac_file" || continue
4193 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4196 # We found the default executable, but exeext='' is most
4200 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4202 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4204 # We set ac_cv_exeext here because the later test for it is not
4205 # safe: cross compilers may not add the suffix if given an `-o'
4206 # argument, so we may need to know it at that point already.
4207 # Even if this section looks crufty: it has the advantage of
4214 test "$ac_cv_exeext" = no && ac_cv_exeext=
4219 if test -z "$ac_file"; then :
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4221 $as_echo "no" >&6; }
4222 $as_echo "$as_me: failed program was:" >&5
4223 sed 's/^/| /' conftest.$ac_ext >&5
4225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4227 as_fn_error 77 "C compiler cannot create executables
4228 See \`config.log' for more details" "$LINENO" 5; }
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4231 $as_echo "yes" >&6; }
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4234 $as_echo_n "checking for C compiler default output file name... " >&6; }
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4236 $as_echo "$ac_file" >&6; }
4237 ac_exeext=$ac_cv_exeext
4239 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4240 ac_clean_files=$ac_clean_files_save
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4242 $as_echo_n "checking for suffix of executables... " >&6; }
4243 if { { ac_try="$ac_link"
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4249 $as_echo "$ac_try_echo"; } >&5
4250 (eval "$ac_link") 2>&5
4252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4253 test $ac_status = 0; }; then :
4254 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4255 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4256 # work properly (i.e., refer to `conftest.exe'), while it won't with
4258 for ac_file in conftest.exe conftest conftest.*; do
4259 test -f "$ac_file" || continue
4261 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4262 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4268 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4270 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4271 See \`config.log' for more details" "$LINENO" 5; }
4273 rm -f conftest conftest$ac_cv_exeext
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4275 $as_echo "$ac_cv_exeext" >&6; }
4277 rm -f conftest.$ac_ext
4278 EXEEXT=$ac_cv_exeext
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4285 FILE *f = fopen ("conftest.out", "w");
4286 return ferror (f) || fclose (f) != 0;
4292 ac_clean_files="$ac_clean_files conftest.out"
4293 # Check that the compiler produces executables we can run. If not, either
4294 # the compiler is broken, or we cross compile.
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4296 $as_echo_n "checking whether we are cross compiling... " >&6; }
4297 if test "$cross_compiling" != yes; then
4298 { { ac_try="$ac_link"
4300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4303 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4304 $as_echo "$ac_try_echo"; } >&5
4305 (eval "$ac_link") 2>&5
4307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4308 test $ac_status = 0; }
4309 if { ac_try='./conftest$ac_cv_exeext'
4310 { { case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4315 $as_echo "$ac_try_echo"; } >&5
4316 (eval "$ac_try") 2>&5
4318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4319 test $ac_status = 0; }; }; then
4322 if test "$cross_compiling" = maybe; then
4325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4327 as_fn_error $? "cannot run C compiled programs.
4328 If you meant to cross compile, use \`--host'.
4329 See \`config.log' for more details" "$LINENO" 5; }
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4334 $as_echo "$cross_compiling" >&6; }
4336 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4337 ac_clean_files=$ac_clean_files_save
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4339 $as_echo_n "checking for suffix of object files... " >&6; }
4340 if ${ac_cv_objext+:} false; then :
4341 $as_echo_n "(cached) " >&6
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4353 rm -f conftest.o conftest.obj
4354 if { { ac_try="$ac_compile"
4356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357 *) ac_try_echo=$ac_try;;
4359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4360 $as_echo "$ac_try_echo"; } >&5
4361 (eval "$ac_compile") 2>&5
4363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4364 test $ac_status = 0; }; then :
4365 for ac_file in conftest.o conftest.obj conftest.*; do
4366 test -f "$ac_file" || continue;
4368 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4369 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4374 $as_echo "$as_me: failed program was:" >&5
4375 sed 's/^/| /' conftest.$ac_ext >&5
4377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4379 as_fn_error $? "cannot compute suffix of object files: cannot compile
4380 See \`config.log' for more details" "$LINENO" 5; }
4382 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4385 $as_echo "$ac_cv_objext" >&6; }
4386 OBJEXT=$ac_cv_objext
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4389 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4390 if ${ac_cv_c_compiler_gnu+:} false; then :
4391 $as_echo_n "(cached) " >&6
4393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394 /* end confdefs.h. */
4406 if ac_fn_c_try_compile "$LINENO"; then :
4411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4412 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4416 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4417 if test $ac_compiler_gnu = yes; then
4422 ac_test_CFLAGS=${CFLAGS+set}
4423 ac_save_CFLAGS=$CFLAGS
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4425 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4426 if ${ac_cv_prog_cc_g+:} false; then :
4427 $as_echo_n "(cached) " >&6
4429 ac_save_c_werror_flag=$ac_c_werror_flag
4430 ac_c_werror_flag=yes
4433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434 /* end confdefs.h. */
4443 if ac_fn_c_try_compile "$LINENO"; then :
4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h. */
4457 if ac_fn_c_try_compile "$LINENO"; then :
4460 ac_c_werror_flag=$ac_save_c_werror_flag
4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h. */
4472 if ac_fn_c_try_compile "$LINENO"; then :
4475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4480 ac_c_werror_flag=$ac_save_c_werror_flag
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4483 $as_echo "$ac_cv_prog_cc_g" >&6; }
4484 if test "$ac_test_CFLAGS" = set; then
4485 CFLAGS=$ac_save_CFLAGS
4486 elif test $ac_cv_prog_cc_g = yes; then
4487 if test "$GCC" = yes; then
4493 if test "$GCC" = yes; then
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4500 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4501 if ${ac_cv_prog_cc_c89+:} false; then :
4502 $as_echo_n "(cached) " >&6
4504 ac_cv_prog_cc_c89=no
4506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507 /* end confdefs.h. */
4511 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4512 struct buf { int x; };
4513 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4514 static char *e (p, i)
4520 static char *f (char * (*g) (char **, int), char **p, ...)
4525 s = g (p, va_arg (v,int));
4530 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4531 function prototypes and stuff, but not '\xHH' hex character constants.
4532 These don't provoke an error unfortunately, instead are silently treated
4533 as 'x'. The following induces an error, until -std is added to get
4534 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4535 array size at least. It's necessary to write '\x00'==0 to get something
4536 that's true only with -std. */
4537 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4539 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4540 inside strings and character constants. */
4542 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4544 int test (int i, double x);
4545 struct s1 {int (*f) (int a);};
4546 struct s2 {int (*f) (double a);};
4547 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4552 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4557 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4558 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4560 CC="$ac_save_CC $ac_arg"
4561 if ac_fn_c_try_compile "$LINENO"; then :
4562 ac_cv_prog_cc_c89=$ac_arg
4564 rm -f core conftest.err conftest.$ac_objext
4565 test "x$ac_cv_prog_cc_c89" != "xno" && break
4567 rm -f conftest.$ac_ext
4572 case "x$ac_cv_prog_cc_c89" in
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4575 $as_echo "none needed" >&6; } ;;
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4578 $as_echo "unsupported" >&6; } ;;
4580 CC="$CC $ac_cv_prog_cc_c89"
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4582 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4584 if test "x$ac_cv_prog_cc_c89" != xno; then :
4589 ac_cpp='$CPP $CPPFLAGS'
4590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4594 if test "x$CC" != xcc; then
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4596 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4599 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4601 set dummy $CC; ac_cc=`$as_echo "$2" |
4602 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4603 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4604 $as_echo_n "(cached) " >&6
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h. */
4616 # Make sure it works both with $CC and with simple cc.
4617 # We do the test twice because some compilers refuse to overwrite an
4618 # existing .o file with -o, though they will create one.
4619 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4621 if { { case "(($ac_try" in
4622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623 *) ac_try_echo=$ac_try;;
4625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4626 $as_echo "$ac_try_echo"; } >&5
4627 (eval "$ac_try") 2>&5
4629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4630 test $ac_status = 0; } &&
4631 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633 *) ac_try_echo=$ac_try;;
4635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4636 $as_echo "$ac_try_echo"; } >&5
4637 (eval "$ac_try") 2>&5
4639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4640 test $ac_status = 0; };
4642 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4643 if test "x$CC" != xcc; then
4644 # Test first that cc exists at all.
4645 if { ac_try='cc -c conftest.$ac_ext >&5'
4646 { { case "(($ac_try" in
4647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4648 *) ac_try_echo=$ac_try;;
4650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4651 $as_echo "$ac_try_echo"; } >&5
4652 (eval "$ac_try") 2>&5
4654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4655 test $ac_status = 0; }; }; then
4656 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4658 if { { case "(($ac_try" in
4659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660 *) ac_try_echo=$ac_try;;
4662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4663 $as_echo "$ac_try_echo"; } >&5
4664 (eval "$ac_try") 2>&5
4666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4667 test $ac_status = 0; } &&
4668 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4670 *) ac_try_echo=$ac_try;;
4672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4673 $as_echo "$ac_try_echo"; } >&5
4674 (eval "$ac_try") 2>&5
4676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4677 test $ac_status = 0; };
4682 # cc exists but doesn't like -o.
4683 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4688 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4690 rm -f core conftest*
4693 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4695 $as_echo "yes" >&6; }
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698 $as_echo "no" >&6; }
4700 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4704 # expand $ac_aux_dir to an absolute path
4705 am_aux_dir=`cd $ac_aux_dir && pwd`
4707 # FIXME: we rely on the cache variable name because
4708 # there is no other way.
4710 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4711 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4712 if test "$am_t" != yes; then
4713 # Losing compiler, so override with the script.
4714 # FIXME: It is wrong to rewrite CC.
4715 # But if we don't then we get into trouble of one sort or another.
4716 # A longer-term fix would be to have automake use am__CC in this case,
4717 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4718 CC="$am_aux_dir/compile $CC"
4723 ac_cpp='$CPP $CPPFLAGS'
4724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4728 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4729 # On Suns, sometimes $CPP names a directory.
4730 if test -n "$CPP" && test -d "$CPP"; then
4733 if test -z "$CPP"; then
4734 if ${ac_cv_prog_CPP+:} false; then :
4735 $as_echo_n "(cached) " >&6
4737 # Double quotes because CPP needs to be expanded
4738 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4741 for ac_c_preproc_warn_flag in '' yes
4743 # Use a header file that comes with gcc, so configuring glibc
4744 # with a fresh cross-compiler works.
4745 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4746 # <limits.h> exists even on freestanding compilers.
4747 # On the NeXT, cc -E runs the code through the compiler's parser,
4748 # not just through cpp. "Syntax error" is here to catch this case.
4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750 /* end confdefs.h. */
4752 # include <limits.h>
4754 # include <assert.h>
4758 if ac_fn_c_try_cpp "$LINENO"; then :
4761 # Broken: fails on valid input.
4764 rm -f conftest.err conftest.i conftest.$ac_ext
4766 # OK, works on sane cases. Now check whether nonexistent headers
4767 # can be detected and how.
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h. */
4770 #include <ac_nonexistent.h>
4772 if ac_fn_c_try_cpp "$LINENO"; then :
4773 # Broken: success on invalid input.
4776 # Passes both tests.
4780 rm -f conftest.err conftest.i conftest.$ac_ext
4783 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4784 rm -f conftest.i conftest.err conftest.$ac_ext
4785 if $ac_preproc_ok; then :
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4798 $as_echo "$CPP" >&6; }
4800 for ac_c_preproc_warn_flag in '' yes
4802 # Use a header file that comes with gcc, so configuring glibc
4803 # with a fresh cross-compiler works.
4804 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4805 # <limits.h> exists even on freestanding compilers.
4806 # On the NeXT, cc -E runs the code through the compiler's parser,
4807 # not just through cpp. "Syntax error" is here to catch this case.
4808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4809 /* end confdefs.h. */
4811 # include <limits.h>
4813 # include <assert.h>
4817 if ac_fn_c_try_cpp "$LINENO"; then :
4820 # Broken: fails on valid input.
4823 rm -f conftest.err conftest.i conftest.$ac_ext
4825 # OK, works on sane cases. Now check whether nonexistent headers
4826 # can be detected and how.
4827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828 /* end confdefs.h. */
4829 #include <ac_nonexistent.h>
4831 if ac_fn_c_try_cpp "$LINENO"; then :
4832 # Broken: success on invalid input.
4835 # Passes both tests.
4839 rm -f conftest.err conftest.i conftest.$ac_ext
4842 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4843 rm -f conftest.i conftest.err conftest.$ac_ext
4844 if $ac_preproc_ok; then :
4847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4849 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4850 See \`config.log' for more details" "$LINENO" 5; }
4854 ac_cpp='$CPP $CPPFLAGS'
4855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4860 IFS=$xc_prog_cc_prev_IFS
4861 LIBS=$xc_prog_cc_prev_LIBS
4862 CFLAGS=$xc_prog_cc_prev_CFLAGS
4863 LDFLAGS=$xc_prog_cc_prev_LDFLAGS
4864 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
4870 am__api_version='1.13'
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4873 $as_echo_n "checking whether build environment is sane... " >&6; }
4874 # Reject unsafe characters in $srcdir or the absolute working directory
4875 # name. Accept space and tab only in the latter.
4879 *[\\\"\#\$\&\'\`$am_lf]*)
4880 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4883 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4884 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4887 # Do 'set' in a subshell so we don't clobber the current shell's
4888 # arguments. Must try -L first in case configure is actually a
4889 # symlink; some systems play weird games with the mod time of symlinks
4890 # (eg FreeBSD returns the mod time of the symlink's containing
4894 for am_try in 1 2; do
4895 echo "timestamp, slept: $am_has_slept" > conftest.file
4896 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4897 if test "$*" = "X"; then
4899 set X `ls -t "$srcdir/configure" conftest.file`
4901 if test "$*" != "X $srcdir/configure conftest.file" \
4902 && test "$*" != "X conftest.file $srcdir/configure"; then
4904 # If neither matched, then we have a broken ls. This can happen
4905 # if, for instance, CONFIG_SHELL is bash and it inherits a
4906 # broken ls alias from the environment. This has actually
4907 # happened. Such a system could not be considered "sane".
4908 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4909 alias in your environment" "$LINENO" 5
4911 if test "$2" = conftest.file || test $am_try -eq 2; then
4918 test "$2" = conftest.file
4924 as_fn_error $? "newly created file is older than distributed files!
4925 Check your system clock" "$LINENO" 5
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4928 $as_echo "yes" >&6; }
4929 # If we didn't sleep, we still need to ensure time stamps of config.status and
4930 # generated files are strictly newer.
4932 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4939 test "$program_prefix" != NONE &&
4940 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4941 # Use a double $ so make ignores it.
4942 test "$program_suffix" != NONE &&
4943 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4944 # Double any \ or $.
4945 # By default was `s,x,x', remove it if useless.
4946 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4947 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4949 test x"${MISSING+set}" = xset || MISSING="\${SHELL} \"$am_aux_dir/missing\""
4950 # Use eval to expand $SHELL
4951 if eval "$MISSING --run true"; then
4952 am_missing_run="$MISSING --run "
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4956 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4959 if test x"${install_sh}" != xset; then
4962 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4964 install_sh="\${SHELL} $am_aux_dir/install-sh"
4968 # Installed binaries are usually stripped using 'strip' when the user
4969 # run "make install-strip". However 'strip' might not be the right
4970 # tool to use in cross-compilation environments, therefore Automake
4971 # will honor the 'STRIP' environment variable to overrule this program.
4972 if test "$cross_compiling" != no; then
4973 if test -n "$ac_tool_prefix"; then
4974 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4975 set dummy ${ac_tool_prefix}strip; ac_word=$2
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4977 $as_echo_n "checking for $ac_word... " >&6; }
4978 if ${ac_cv_prog_STRIP+:} false; then :
4979 $as_echo_n "(cached) " >&6
4981 if test -n "$STRIP"; then
4982 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 test -z "$as_dir" && as_dir=.
4989 for ac_exec_ext in '' $ac_executable_extensions; do
4990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4991 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 STRIP=$ac_cv_prog_STRIP
5002 if test -n "$STRIP"; then
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5004 $as_echo "$STRIP" >&6; }
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5007 $as_echo "no" >&6; }
5012 if test -z "$ac_cv_prog_STRIP"; then
5014 # Extract the first word of "strip", so it can be a program name with args.
5015 set dummy strip; ac_word=$2
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5017 $as_echo_n "checking for $ac_word... " >&6; }
5018 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5019 $as_echo_n "(cached) " >&6
5021 if test -n "$ac_ct_STRIP"; then
5022 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 test -z "$as_dir" && as_dir=.
5029 for ac_exec_ext in '' $ac_executable_extensions; do
5030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5031 ac_cv_prog_ac_ct_STRIP="strip"
5032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5041 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5042 if test -n "$ac_ct_STRIP"; then
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5044 $as_echo "$ac_ct_STRIP" >&6; }
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5047 $as_echo "no" >&6; }
5050 if test "x$ac_ct_STRIP" = x; then
5053 case $cross_compiling:$ac_tool_warned in
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5057 ac_tool_warned=yes ;;
5062 STRIP="$ac_cv_prog_STRIP"
5066 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5069 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5070 if test -z "$MKDIR_P"; then
5071 if ${ac_cv_path_mkdir+:} false; then :
5072 $as_echo_n "(cached) " >&6
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5078 test -z "$as_dir" && as_dir=.
5079 for ac_prog in mkdir gmkdir; do
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5082 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5083 'mkdir (GNU coreutils) '* | \
5084 'mkdir (coreutils) '* | \
5085 'mkdir (fileutils) '4.1*)
5086 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5096 test -d ./--version && rmdir ./--version
5097 if test "${ac_cv_path_mkdir+set}" = set; then
5098 MKDIR_P="$ac_cv_path_mkdir -p"
5100 # As a last resort, use the slow shell script. Don't cache a
5101 # value for MKDIR_P within a source directory, because that will
5102 # break other packages using the cache if that directory is
5103 # removed, or if the value is a relative name.
5104 MKDIR_P="$ac_install_sh -d"
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5108 $as_echo "$MKDIR_P" >&6; }
5110 for ac_prog in gawk mawk nawk awk
5112 # Extract the first word of "$ac_prog", so it can be a program name with args.
5113 set dummy $ac_prog; ac_word=$2
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115 $as_echo_n "checking for $ac_word... " >&6; }
5116 if ${ac_cv_prog_AWK+:} false; then :
5117 $as_echo_n "(cached) " >&6
5119 if test -n "$AWK"; then
5120 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 test -z "$as_dir" && as_dir=.
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5129 ac_cv_prog_AWK="$ac_prog"
5130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5140 if test -n "$AWK"; then
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5142 $as_echo "$AWK" >&6; }
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145 $as_echo "no" >&6; }
5149 test -n "$AWK" && break
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5153 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5155 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5156 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5157 $as_echo_n "(cached) " >&6
5159 cat >conftest.make <<\_ACEOF
5162 @echo '@@@%%%=$(MAKE)=@@@%%%'
5164 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5165 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5167 eval ac_cv_prog_make_${ac_make}_set=yes;;
5169 eval ac_cv_prog_make_${ac_make}_set=no;;
5173 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5175 $as_echo "yes" >&6; }
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5180 SET_MAKE="MAKE=${MAKE-make}"
5183 rm -rf .tst 2>/dev/null
5184 mkdir .tst 2>/dev/null
5185 if test -d .tst; then
5190 rmdir .tst 2>/dev/null
5192 DEPDIR="${am__leading_dot}deps"
5194 ac_config_commands="$ac_config_commands depfiles"
5197 am_make=${MAKE-make}
5198 cat > confinc << 'END'
5200 @echo this is the am__doit target
5203 # If we don't find an include directive, just comment out the code.
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5205 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5209 # First try GNU make style include.
5210 echo "include confinc" > confmf
5211 # Ignore all kinds of additional output from 'make'.
5212 case `$am_make -s -f confmf 2> /dev/null` in #(
5213 *the\ am__doit\ target*)
5219 # Now try BSD make style include.
5220 if test "$am__include" = "#"; then
5221 echo '.include "confinc"' > confmf
5222 case `$am_make -s -f confmf 2> /dev/null` in #(
5223 *the\ am__doit\ target*)
5224 am__include=.include
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5233 $as_echo "$_am_result" >&6; }
5234 rm -f confinc confmf
5236 # Check whether --enable-dependency-tracking was given.
5237 if test "${enable_dependency_tracking+set}" = set; then :
5238 enableval=$enable_dependency_tracking;
5241 if test "x$enable_dependency_tracking" != xno; then
5242 am_depcomp="$ac_aux_dir/depcomp"
5246 if test "x$enable_dependency_tracking" != xno; then
5255 # Check whether --enable-silent-rules was given.
5256 if test "${enable_silent_rules+set}" = set; then :
5257 enableval=$enable_silent_rules;
5260 case $enable_silent_rules in # (((
5261 yes) AM_DEFAULT_VERBOSITY=0;;
5262 no) AM_DEFAULT_VERBOSITY=1;;
5263 *) AM_DEFAULT_VERBOSITY=1;;
5265 am_make=${MAKE-make}
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5267 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5268 if ${am_cv_make_support_nested_variables+:} false; then :
5269 $as_echo_n "(cached) " >&6
5271 if $as_echo 'TRUE=$(BAR$(V))
5277 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5278 am_cv_make_support_nested_variables=yes
5280 am_cv_make_support_nested_variables=no
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5284 $as_echo "$am_cv_make_support_nested_variables" >&6; }
5285 if test $am_cv_make_support_nested_variables = yes; then
5287 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5289 AM_V=$AM_DEFAULT_VERBOSITY
5290 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5294 ## --------------------------------------- ##
5295 ## Start of automake initialization code ##
5296 ## --------------------------------------- ##
5298 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5299 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5300 # is not polluted with repeated "-I."
5301 am__isrc=' -I$(srcdir)'
5302 # test to see if srcdir already configured
5303 if test -f $srcdir/config.status; then
5304 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5308 # test whether we have cygpath
5309 if test -z "$CYGPATH_W"; then
5310 if (cygpath --version) >/dev/null 2>/dev/null; then
5311 CYGPATH_W='cygpath -w'
5318 # Define the identity of the package.
5323 cat >>confdefs.h <<_ACEOF
5324 #define PACKAGE "$PACKAGE"
5328 cat >>confdefs.h <<_ACEOF
5329 #define VERSION "$VERSION"
5332 # Some tools Automake needs.
5334 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5337 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5340 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5343 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5346 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5348 # For better backward compatibility. To be removed once Automake 1.9.x
5349 # dies out for good. For more background, see:
5350 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5351 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5352 mkdir_p='$(MKDIR_P)'
5354 # We need awk for the "check" target. The system "awk" is bad on
5356 # Always define AMTAR for backward compatibility. Yes, it's still used
5357 # in the wild :-( We should find a proper way to deprecate it ...
5361 # We'll loop over all known methods to create a tar archive until one works.
5362 _am_tools='gnutar pax cpio none'
5364 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5370 depcc="$CC" am_compiler_list=
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5373 $as_echo_n "checking dependency style of $depcc... " >&6; }
5374 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5375 $as_echo_n "(cached) " >&6
5377 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5378 # We make a subdir and do the tests there. Otherwise we can end up
5379 # making bogus files that we don't know about and never remove. For
5380 # instance it was reported that on HP-UX the gcc test will end up
5381 # making a dummy file named 'D' -- because '-MD' means "put the output
5385 # Copy depcomp to subdir because otherwise we won't find it if we're
5386 # using a relative directory.
5387 cp "$am_depcomp" conftest.dir
5389 # We will build objects and dependencies in a subdirectory because
5390 # it helps to detect inapplicable dependency modes. For instance
5391 # both Tru64's cc and ICC support -MD to output dependencies as a
5392 # side effect of compilation, but ICC will put the dependencies in
5393 # the current directory while Tru64 will put them in the object
5397 am_cv_CC_dependencies_compiler_type=none
5398 if test "$am_compiler_list" = ""; then
5399 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5402 case " $depcc " in #(
5403 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5406 for depmode in $am_compiler_list; do
5407 # Setup a source with many dependencies, because some compilers
5408 # like to wrap large dependency lists on column 80 (with \), and
5409 # we should not choose a depcomp mode which is confused by this.
5411 # We need to recreate these files for each test, as the compiler may
5412 # overwrite some of them when testing with obscure command lines.
5413 # This happens at least with the AIX C compiler.
5415 for i in 1 2 3 4 5 6; do
5416 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5417 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5418 # Solaris 10 /bin/sh.
5419 echo '/* dummy */' > sub/conftst$i.h
5421 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5423 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5424 # mode. It turns out that the SunPro C++ compiler does not properly
5425 # handle '-M -o', and we need to detect this. Also, some Intel
5426 # versions had trouble with output in subdirs.
5427 am__obj=sub/conftest.${OBJEXT-o}
5428 am__minus_obj="-o $am__obj"
5431 # This depmode causes a compiler race in universal mode.
5432 test "$am__universal" = false || continue
5435 # After this tag, mechanisms are not by side-effect, so they'll
5436 # only be used when explicitly requested.
5437 if test "x$enable_dependency_tracking" = xyes; then
5443 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5444 # This compiler won't grok '-c -o', but also, the minuso test has
5445 # not run yet. These depmodes are late enough in the game, and
5446 # so weak that their functioning should not be impacted.
5447 am__obj=conftest.${OBJEXT-o}
5452 if depmode=$depmode \
5453 source=sub/conftest.c object=$am__obj \
5454 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5455 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5456 >/dev/null 2>conftest.err &&
5457 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5458 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5459 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5460 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5461 # icc doesn't choke on unknown options, it will just issue warnings
5462 # or remarks (even with -Werror). So we grep stderr for any message
5463 # that says an option was ignored or not supported.
5464 # When given -MP, icc 7.0 and 7.1 complain thusly:
5465 # icc: Command line warning: ignoring option '-M'; no argument required
5466 # The diagnosis changed in icc 8.0:
5467 # icc: Command line remark: option '-MP' not supported
5468 if (grep 'ignoring option' conftest.err ||
5469 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5470 am_cv_CC_dependencies_compiler_type=$depmode
5479 am_cv_CC_dependencies_compiler_type=none
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5484 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5485 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5488 test "x$enable_dependency_tracking" != xno \
5489 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5491 am__fastdepCC_FALSE='#'
5493 am__fastdepCC_TRUE='#'
5494 am__fastdepCC_FALSE=
5499 ## ------------------------------------- ##
5500 ## End of automake initialization code ##
5501 ## ------------------------------------- ##
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
5505 $as_echo_n "checking curl version... " >&6; }
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
5507 $as_echo "$CURLVERSION" >&6; }
5511 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\(.*\)/\1/p' ${srcdir}/include/curl/curlver.h`
5514 PKGADD_PKG="HAXXcurl"
5515 PKGADD_NAME="cURL - a client that groks URLs"
5516 PKGADD_VENDOR="curl.haxx.se"
5521 curl_ssl_msg="no (--with-{ssl,gnutls,nss,polarssl,cyassl,axtls,winssl,darwinssl} )"
5522 curl_ssh_msg="no (--with-libssh2)"
5523 curl_zlib_msg="no (--with-zlib)"
5524 curl_krb4_msg="no (--with-krb4*)"
5525 curl_gss_msg="no (--with-gssapi)"
5526 curl_spnego_msg="no (--with-spnego)"
5527 curl_tls_srp_msg="no (--enable-tls-srp)"
5528 curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
5529 curl_ipv6_msg="no (--enable-ipv6)"
5530 curl_idn_msg="no (--with-{libidn,winidn})"
5531 curl_manual_msg="no (--enable-manual)"
5532 curl_libcurl_msg="enabled (--disable-libcurl-option)"
5533 curl_verbose_msg="enabled (--disable-verbose)"
5534 curl_sspi_msg="no (--enable-sspi)"
5535 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
5536 curl_ldaps_msg="no (--enable-ldaps)"
5537 curl_rtsp_msg="no (--enable-rtsp)"
5538 curl_rtmp_msg="no (--with-librtmp)"
5539 curl_mtlnk_msg="no (--with-libmetalink)"
5541 init_ssl_msg=${curl_ssl_msg}
5543 INITIAL_LDFLAGS=$LDFLAGS
5547 # Make sure we can run config.sub.
5548 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5549 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5552 $as_echo_n "checking build system type... " >&6; }
5553 if ${ac_cv_build+:} false; then :
5554 $as_echo_n "(cached) " >&6
5556 ac_build_alias=$build_alias
5557 test "x$ac_build_alias" = x &&
5558 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5559 test "x$ac_build_alias" = x &&
5560 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5561 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5562 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5566 $as_echo "$ac_cv_build" >&6; }
5567 case $ac_cv_build in
5569 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5572 ac_save_IFS=$IFS; IFS='-'
5578 # Remember, the first character of IFS is used to create $*,
5579 # except with old shells:
5582 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5586 $as_echo_n "checking host system type... " >&6; }
5587 if ${ac_cv_host+:} false; then :
5588 $as_echo_n "(cached) " >&6
5590 if test "x$host_alias" = x; then
5591 ac_cv_host=$ac_cv_build
5593 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5594 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5599 $as_echo "$ac_cv_host" >&6; }
5602 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5605 ac_save_IFS=$IFS; IFS='-'
5611 # Remember, the first character of IFS is used to create $*,
5612 # except with old shells:
5615 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5619 cat >>confdefs.h <<_ACEOF
5620 #define OS "${host}"
5627 curl_includes_inttypes="\
5628 /* includes start */
5629 #ifdef HAVE_SYS_TYPES_H
5630 # include <sys/types.h>
5632 #ifdef HAVE_STDINT_H
5633 # include <stdint.h>
5635 #ifdef HAVE_INTTYPES_H
5636 # include <inttypes.h>
5641 ac_cv_header_stdint_h="no"
5644 for ac_header in sys/types.h stdint.h inttypes.h
5646 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5647 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_inttypes
5649 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5650 cat >>confdefs.h <<_ACEOF
5651 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5661 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5662 if ${ac_cv_path_GREP+:} false; then :
5663 $as_echo_n "(cached) " >&6
5665 if test -z "$GREP"; then
5666 ac_path_GREP_found=false
5667 # Loop through the user's path and test for each of PROGNAME-LIST
5668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5672 test -z "$as_dir" && as_dir=.
5673 for ac_prog in grep ggrep; do
5674 for ac_exec_ext in '' $ac_executable_extensions; do
5675 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5676 as_fn_executable_p "$ac_path_GREP" || continue
5677 # Check for GNU ac_path_GREP and select it if it is found.
5678 # Check for GNU $ac_path_GREP
5679 case `"$ac_path_GREP" --version 2>&1` in
5681 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5684 $as_echo_n 0123456789 >"conftest.in"
5687 cat "conftest.in" "conftest.in" >"conftest.tmp"
5688 mv "conftest.tmp" "conftest.in"
5689 cp "conftest.in" "conftest.nl"
5690 $as_echo 'GREP' >> "conftest.nl"
5691 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5692 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5693 as_fn_arith $ac_count + 1 && ac_count=$as_val
5694 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5695 # Best one so far, save it but keep looking for a better one
5696 ac_cv_path_GREP="$ac_path_GREP"
5697 ac_path_GREP_max=$ac_count
5699 # 10*(2^10) chars as input seems more than enough
5700 test $ac_count -gt 10 && break
5702 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5705 $ac_path_GREP_found && break 3
5710 if test -z "$ac_cv_path_GREP"; then
5711 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5714 ac_cv_path_GREP=$GREP
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5719 $as_echo "$ac_cv_path_GREP" >&6; }
5720 GREP="$ac_cv_path_GREP"
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5724 $as_echo_n "checking for egrep... " >&6; }
5725 if ${ac_cv_path_EGREP+:} false; then :
5726 $as_echo_n "(cached) " >&6
5728 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5729 then ac_cv_path_EGREP="$GREP -E"
5731 if test -z "$EGREP"; then
5732 ac_path_EGREP_found=false
5733 # Loop through the user's path and test for each of PROGNAME-LIST
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5738 test -z "$as_dir" && as_dir=.
5739 for ac_prog in egrep; do
5740 for ac_exec_ext in '' $ac_executable_extensions; do
5741 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5742 as_fn_executable_p "$ac_path_EGREP" || continue
5743 # Check for GNU ac_path_EGREP and select it if it is found.
5744 # Check for GNU $ac_path_EGREP
5745 case `"$ac_path_EGREP" --version 2>&1` in
5747 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5750 $as_echo_n 0123456789 >"conftest.in"
5753 cat "conftest.in" "conftest.in" >"conftest.tmp"
5754 mv "conftest.tmp" "conftest.in"
5755 cp "conftest.in" "conftest.nl"
5756 $as_echo 'EGREP' >> "conftest.nl"
5757 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5758 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5759 as_fn_arith $ac_count + 1 && ac_count=$as_val
5760 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5761 # Best one so far, save it but keep looking for a better one
5762 ac_cv_path_EGREP="$ac_path_EGREP"
5763 ac_path_EGREP_max=$ac_count
5765 # 10*(2^10) chars as input seems more than enough
5766 test $ac_count -gt 10 && break
5768 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5771 $ac_path_EGREP_found && break 3
5776 if test -z "$ac_cv_path_EGREP"; then
5777 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5780 ac_cv_path_EGREP=$EGREP
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5786 $as_echo "$ac_cv_path_EGREP" >&6; }
5787 EGREP="$ac_cv_path_EGREP"
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5791 $as_echo_n "checking for ANSI C header files... " >&6; }
5792 if ${ac_cv_header_stdc+:} false; then :
5793 $as_echo_n "(cached) " >&6
5795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796 /* end confdefs.h. */
5809 if ac_fn_c_try_compile "$LINENO"; then :
5810 ac_cv_header_stdc=yes
5812 ac_cv_header_stdc=no
5814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5816 if test $ac_cv_header_stdc = yes; then
5817 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819 /* end confdefs.h. */
5823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5824 $EGREP "memchr" >/dev/null 2>&1; then :
5827 ac_cv_header_stdc=no
5833 if test $ac_cv_header_stdc = yes; then
5834 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h. */
5840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5841 $EGREP "free" >/dev/null 2>&1; then :
5844 ac_cv_header_stdc=no
5850 if test $ac_cv_header_stdc = yes; then
5851 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5852 if test "$cross_compiling" = yes; then :
5855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5856 /* end confdefs.h. */
5859 #if ((' ' & 0x0FF) == 0x020)
5860 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5861 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5863 # define ISLOWER(c) \
5864 (('a' <= (c) && (c) <= 'i') \
5865 || ('j' <= (c) && (c) <= 'r') \
5866 || ('s' <= (c) && (c) <= 'z'))
5867 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5870 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5875 for (i = 0; i < 256; i++)
5876 if (XOR (islower (i), ISLOWER (i))
5877 || toupper (i) != TOUPPER (i))
5882 if ac_fn_c_try_run "$LINENO"; then :
5885 ac_cv_header_stdc=no
5887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5888 conftest.$ac_objext conftest.beam conftest.$ac_ext
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5894 $as_echo "$ac_cv_header_stdc" >&6; }
5895 if test $ac_cv_header_stdc = yes; then
5897 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5901 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5902 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5903 inttypes.h stdint.h unistd.h
5905 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5906 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5908 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5909 cat >>confdefs.h <<_ACEOF
5910 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5921 if test -z "$SED"; then
5922 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
5925 # The cast to long int works around a bug in the HP C Compiler
5926 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5927 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5928 # This bug is HP SR number 8606223364.
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5930 $as_echo_n "checking size of long... " >&6; }
5931 if ${ac_cv_sizeof_long+:} false; then :
5932 $as_echo_n "(cached) " >&6
5934 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5937 if test "$ac_cv_type_long" = yes; then
5938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5940 as_fn_error 77 "cannot compute sizeof (long)
5941 See \`config.log' for more details" "$LINENO" 5; }
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5949 $as_echo "$ac_cv_sizeof_long" >&6; }
5953 cat >>confdefs.h <<_ACEOF
5954 #define SIZEOF_LONG $ac_cv_sizeof_long
5958 # The cast to long int works around a bug in the HP C Compiler
5959 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5960 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5961 # This bug is HP SR number 8606223364.
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
5963 $as_echo_n "checking size of void*... " >&6; }
5964 if ${ac_cv_sizeof_voidp+:} false; then :
5965 $as_echo_n "(cached) " >&6
5967 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
5970 if test "$ac_cv_type_voidp" = yes; then
5971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5973 as_fn_error 77 "cannot compute sizeof (void*)
5974 See \`config.log' for more details" "$LINENO" 5; }
5976 ac_cv_sizeof_voidp=0
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
5982 $as_echo "$ac_cv_sizeof_voidp" >&6; }
5986 cat >>confdefs.h <<_ACEOF
5987 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
5992 if test -z "$ac_cv_sizeof_long" ||
5993 test "$ac_cv_sizeof_long" -eq "0"; then
5994 as_fn_error $? "cannot find out size of long." "$LINENO" 5
5996 if test -z "$ac_cv_sizeof_voidp" ||
5997 test "$ac_cv_sizeof_voidp" -eq "0"; then
5998 as_fn_error $? "cannot find out size of void*." "$LINENO" 5
6005 if test "$ac_cv_sizeof_long" -eq "8" &&
6006 test "$ac_cv_sizeof_voidp" -ge "8"; then
6008 elif test "$ac_cv_sizeof_long" -eq "4" &&
6009 test "$ac_cv_sizeof_voidp" -ge "4"; then
6011 elif test "$ac_cv_sizeof_long" -eq "2" &&
6012 test "$ac_cv_sizeof_voidp" -ge "2"; then
6017 curl_typeof_curl_off_t="unknown"
6018 curl_sizeof_curl_off_t="unknown"
6019 curl_format_curl_off_t="unknown"
6020 curl_format_curl_off_tu="unknown"
6022 if test "$curl_typeof_curl_off_t" = "unknown"; then
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit curl_off_t data type" >&5
6024 $as_echo_n "checking for 64-bit curl_off_t data type... " >&6; }
6033 if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t8"; then
6037 case `echo "$t8" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6039 tmp_includes="$curl_includes_inttypes"
6040 tmp_source="char f[] = PRId64;"
6044 tmp_includes="$curl_includes_inttypes"
6045 tmp_source="char f[] = PRId32;"
6049 tmp_includes="$curl_includes_inttypes"
6050 tmp_source="char f[] = PRId16;"
6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055 /* end confdefs.h. */
6059 typedef $t8 curl_off_t;
6060 typedef char dummy_arr[sizeof(curl_off_t) == 8 ? 1 : -1];
6073 if ac_fn_c_try_compile "$LINENO"; then :
6075 if test -z "$tmp_fmt"; then
6076 curl_typeof_curl_off_t="$t8"
6077 curl_sizeof_curl_off_t="8"
6080 as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6081 as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6082 if test -z "$SED"; then
6083 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6085 if test -z "$GREP"; then
6086 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
6090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6091 /* end confdefs.h. */
6093 $curl_includes_inttypes
6095 CURL_DEF_TOKEN $tmp_fmt
6100 if ac_fn_c_try_cpp "$LINENO"; then :
6102 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6103 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6104 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
6105 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6106 if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6111 rm -f conftest.err conftest.i conftest.$ac_ext
6112 if test -z "$tmp_exp"; then
6113 eval "$as_ac_HaveDef=no"
6116 eval "$as_ac_HaveDef=yes"
6117 eval "$as_ac_Def=\$tmp_exp"
6121 as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6122 as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6123 if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
6124 curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
6125 curl_typeof_curl_off_t="$t8"
6126 curl_sizeof_curl_off_t="8"
6131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
6136 $as_echo "$curl_typeof_curl_off_t" >&6; }
6138 if test "$curl_typeof_curl_off_t" = "unknown"; then
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit curl_off_t data type" >&5
6140 $as_echo_n "checking for 32-bit curl_off_t data type... " >&6; }
6147 if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t4"; then
6151 case `echo "$t4" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6153 tmp_includes="$curl_includes_inttypes"
6154 tmp_source="char f[] = PRId64;"
6158 tmp_includes="$curl_includes_inttypes"
6159 tmp_source="char f[] = PRId32;"
6163 tmp_includes="$curl_includes_inttypes"
6164 tmp_source="char f[] = PRId16;"
6168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6169 /* end confdefs.h. */
6173 typedef $t4 curl_off_t;
6174 typedef char dummy_arr[sizeof(curl_off_t) == 4 ? 1 : -1];
6187 if ac_fn_c_try_compile "$LINENO"; then :
6189 if test -z "$tmp_fmt"; then
6190 curl_typeof_curl_off_t="$t4"
6191 curl_sizeof_curl_off_t="4"
6194 as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6195 as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6196 if test -z "$SED"; then
6197 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6199 if test -z "$GREP"; then
6200 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
6204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6205 /* end confdefs.h. */
6207 $curl_includes_inttypes
6209 CURL_DEF_TOKEN $tmp_fmt
6214 if ac_fn_c_try_cpp "$LINENO"; then :
6216 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6217 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6218 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
6219 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6220 if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6225 rm -f conftest.err conftest.i conftest.$ac_ext
6226 if test -z "$tmp_exp"; then
6227 eval "$as_ac_HaveDef=no"
6230 eval "$as_ac_HaveDef=yes"
6231 eval "$as_ac_Def=\$tmp_exp"
6235 as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6236 as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6237 if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
6238 curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
6239 curl_typeof_curl_off_t="$t4"
6240 curl_sizeof_curl_off_t="4"
6245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
6250 $as_echo "$curl_typeof_curl_off_t" >&6; }
6252 if test "$curl_typeof_curl_off_t" = "unknown"; then
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 16-bit curl_off_t data type" >&5
6254 $as_echo_n "checking for 16-bit curl_off_t data type... " >&6; }
6261 if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t2"; then
6265 case `echo "$t2" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6267 tmp_includes="$curl_includes_inttypes"
6268 tmp_source="char f[] = PRId64;"
6272 tmp_includes="$curl_includes_inttypes"
6273 tmp_source="char f[] = PRId32;"
6277 tmp_includes="$curl_includes_inttypes"
6278 tmp_source="char f[] = PRId16;"
6282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6283 /* end confdefs.h. */
6287 typedef $t2 curl_off_t;
6288 typedef char dummy_arr[sizeof(curl_off_t) == 2 ? 1 : -1];
6301 if ac_fn_c_try_compile "$LINENO"; then :
6303 if test -z "$tmp_fmt"; then
6304 curl_typeof_curl_off_t="$t2"
6305 curl_sizeof_curl_off_t="2"
6308 as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6309 as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6310 if test -z "$SED"; then
6311 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6313 if test -z "$GREP"; then
6314 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319 /* end confdefs.h. */
6321 $curl_includes_inttypes
6323 CURL_DEF_TOKEN $tmp_fmt
6328 if ac_fn_c_try_cpp "$LINENO"; then :
6330 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6331 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6332 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
6333 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6334 if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6339 rm -f conftest.err conftest.i conftest.$ac_ext
6340 if test -z "$tmp_exp"; then
6341 eval "$as_ac_HaveDef=no"
6344 eval "$as_ac_HaveDef=yes"
6345 eval "$as_ac_Def=\$tmp_exp"
6349 as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6350 as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6351 if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
6352 curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
6353 curl_typeof_curl_off_t="$t2"
6354 curl_sizeof_curl_off_t="2"
6359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
6364 $as_echo "$curl_typeof_curl_off_t" >&6; }
6366 if test "$curl_typeof_curl_off_t" = "unknown"; then
6367 as_fn_error $? "cannot find data type for curl_off_t." "$LINENO" 5
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
6371 $as_echo_n "checking size of curl_off_t... " >&6; }
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_off_t" >&5
6373 $as_echo "$curl_sizeof_curl_off_t" >&6; }
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for curl_off_t" >&5
6376 $as_echo_n "checking formatting string directive for curl_off_t... " >&6; }
6377 if test "$curl_format_curl_off_t" != "unknown"; then
6378 x_pull_headers="yes"
6379 curl_format_curl_off_t=`echo "$curl_format_curl_off_t" | "$SED" 's/["]//g'`
6380 curl_format_curl_off_tu=`echo "$curl_format_curl_off_t" | "$SED" 's/i$/u/'`
6381 curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/d$/u/'`
6382 curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/D$/U/'`
6385 case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6386 long_long | __longlong | __longlong_t)
6387 curl_format_curl_off_t="lld"
6388 curl_format_curl_off_tu="llu"
6391 curl_format_curl_off_t="ld"
6392 curl_format_curl_off_tu="lu"
6395 curl_format_curl_off_t="d"
6396 curl_format_curl_off_tu="u"
6399 curl_format_curl_off_t="I64d"
6400 curl_format_curl_off_tu="I64u"
6403 curl_format_curl_off_t="I32d"
6404 curl_format_curl_off_tu="I32u"
6407 curl_format_curl_off_t="I16d"
6408 curl_format_curl_off_tu="I16u"
6411 as_fn_error $? "cannot find print format string for curl_off_t." "$LINENO" 5
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_t\"" >&5
6416 $as_echo "\"$curl_format_curl_off_t\"" >&6; }
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for unsigned curl_off_t" >&5
6419 $as_echo_n "checking formatting string directive for unsigned curl_off_t... " >&6; }
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_tu\"" >&5
6421 $as_echo "\"$curl_format_curl_off_tu\"" >&6; }
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for curl_off_t" >&5
6425 $as_echo_n "checking constant suffix string for curl_off_t... " >&6; }
6427 curl_suffix_curl_off_t="unknown"
6428 curl_suffix_curl_off_tu="unknown"
6430 case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6431 long_long | __longlong | __longlong_t)
6441 tst_suffixes="LL:i64::"
6444 tst_suffixes="L:i32::"
6447 tst_suffixes="L:i16::"
6450 as_fn_error $? "unexpected data type $curl_typeof_curl_off_t" "$LINENO" 5
6454 old_IFS=$IFS; IFS=':'
6455 for tmp_ssuf in $tst_suffixes ; do
6457 if test "x$curl_suffix_curl_off_t" = "xunknown"; then
6460 tmp_usuf="u$tmp_ssuf"
6463 tmp_usuf="U$tmp_ssuf"
6469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470 /* end confdefs.h. */
6473 $curl_includes_inttypes
6474 typedef $curl_typeof_curl_off_t new_t;
6491 if ac_fn_c_try_compile "$LINENO"; then :
6493 curl_suffix_curl_off_t="$tmp_ssuf"
6494 curl_suffix_curl_off_tu="$tmp_usuf"
6497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6502 if test "x$curl_suffix_curl_off_t" = "xunknown"; then
6503 as_fn_error $? "cannot find constant suffix string for curl_off_t." "$LINENO" 5
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_t" >&5
6506 $as_echo "$curl_suffix_curl_off_t" >&6; }
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for unsigned curl_off_t" >&5
6508 $as_echo_n "checking constant suffix string for unsigned curl_off_t... " >&6; }
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_tu" >&5
6510 $as_echo "$curl_suffix_curl_off_tu" >&6; }
6515 if test "$x_pull_headers" = "yes"; then
6516 if test "x$ac_cv_header_sys_types_h" = "xyes"; then
6518 cat >>confdefs.h <<_EOF
6519 #define CURL_PULL_SYS_TYPES_H 1
6523 if test "x$ac_cv_header_stdint_h" = "xyes"; then
6525 cat >>confdefs.h <<_EOF
6526 #define CURL_PULL_STDINT_H 1
6530 if test "x$ac_cv_header_inttypes_h" = "xyes"; then
6532 cat >>confdefs.h <<_EOF
6533 #define CURL_PULL_INTTYPES_H 1
6540 cat >>confdefs.h <<_EOF
6541 #define CURL_TYPEOF_CURL_OFF_T $curl_typeof_curl_off_t
6545 cat >>confdefs.h <<_EOF
6546 #define CURL_FORMAT_CURL_OFF_T "$curl_format_curl_off_t"
6550 cat >>confdefs.h <<_EOF
6551 #define CURL_FORMAT_CURL_OFF_TU "$curl_format_curl_off_tu"
6555 cat >>confdefs.h <<_EOF
6556 #define CURL_FORMAT_OFF_T "%$curl_format_curl_off_t"
6560 cat >>confdefs.h <<_EOF
6561 #define CURL_SIZEOF_CURL_OFF_T $curl_sizeof_curl_off_t
6565 cat >>confdefs.h <<_EOF
6566 #define CURL_SUFFIX_CURL_OFF_T $curl_suffix_curl_off_t
6570 cat >>confdefs.h <<_EOF
6571 #define CURL_SUFFIX_CURL_OFF_TU $curl_suffix_curl_off_tu
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6580 $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582 /* end confdefs.h. */
6589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6590 $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6593 $as_echo "yes" >&6; }
6594 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6600 $as_echo "no" >&6; }
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6610 $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612 /* end confdefs.h. */
6622 force compilation error
6630 if ac_fn_c_try_compile "$LINENO"; then :
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6633 $as_echo "yes" >&6; }
6634 tmp_thread_safe_initially_defined="yes"
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6639 $as_echo "no" >&6; }
6640 tmp_thread_safe_initially_defined="no"
6643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6645 if test "$tmp_thread_safe_initially_defined" = "no"; then
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6647 $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6650 aix[123].* | aix4.[012].*)
6651 tmp_need_thread_safe="no"
6654 tmp_need_thread_safe="yes"
6657 tmp_need_thread_safe="no"
6661 if test "$tmp_need_thread_safe" = "yes"; then
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6663 $as_echo "yes" >&6; }
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666 $as_echo "no" >&6; }
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6671 $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6672 if test "$tmp_thread_safe_initially_defined" = "yes" ||
6673 test "$tmp_need_thread_safe" = "yes"; then
6676 $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6678 cat >>confdefs.h <<_EOF
6679 #ifndef _THREAD_SAFE
6680 # define _THREAD_SAFE
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6685 $as_echo "yes" >&6; }
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6688 $as_echo "no" >&6; }
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6695 $as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697 /* end confdefs.h. */
6707 force compilation error
6715 if ac_fn_c_try_compile "$LINENO"; then :
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6718 $as_echo "yes" >&6; }
6719 tmp_reentrant_initially_defined="yes"
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6724 $as_echo "no" >&6; }
6725 tmp_reentrant_initially_defined="no"
6728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6730 if test "$tmp_reentrant_initially_defined" = "no"; then
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6732 $as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6736 tmp_need_reentrant="yes"
6739 tmp_need_reentrant="no"
6743 if test "$tmp_need_reentrant" = "no"; then
6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h. */
6762 if ac_fn_c_try_compile "$LINENO"; then :
6771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6772 if test "$tmp_errno" = "yes"; then
6773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6774 /* end confdefs.h. */
6785 force compilation error
6793 if ac_fn_c_try_compile "$LINENO"; then :
6795 tmp_errno="errno_macro_defined"
6799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h. */
6812 force compilation error
6820 if ac_fn_c_try_compile "$LINENO"; then :
6822 tmp_errno="errno_macro_needs_reentrant"
6823 tmp_need_reentrant="yes"
6826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6833 if test "$tmp_need_reentrant" = "no"; then
6835 if test "$tmp_need_reentrant" = "no"; then
6837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h. */
6841 #define gmtime_r innocuous_gmtime_r
6843 # include <limits.h>
6845 # include <assert.h>
6852 #if defined __stub_gmtime_r || defined __stub___gmtime_r
6864 if ac_fn_c_try_link "$LINENO"; then :
6873 rm -f core conftest.err conftest.$ac_objext \
6874 conftest$ac_exeext conftest.$ac_ext
6875 if test "$tmp_gmtime_r" = "yes"; then
6876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6877 /* end confdefs.h. */
6879 #include <sys/types.h>
6883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6884 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6886 tmp_gmtime_r="proto_declared"
6890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891 /* end confdefs.h. */
6894 #include <sys/types.h>
6898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6899 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6901 tmp_gmtime_r="proto_needs_reentrant"
6902 tmp_need_reentrant="yes"
6914 if test "$tmp_need_reentrant" = "no"; then
6916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6917 /* end confdefs.h. */
6920 #define localtime_r innocuous_localtime_r
6922 # include <limits.h>
6924 # include <assert.h>
6930 char localtime_r ();
6931 #if defined __stub_localtime_r || defined __stub___localtime_r
6937 return localtime_r ();
6943 if ac_fn_c_try_link "$LINENO"; then :
6945 tmp_localtime_r="yes"
6949 tmp_localtime_r="no"
6952 rm -f core conftest.err conftest.$ac_objext \
6953 conftest$ac_exeext conftest.$ac_ext
6954 if test "$tmp_localtime_r" = "yes"; then
6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956 /* end confdefs.h. */
6958 #include <sys/types.h>
6962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6963 $EGREP "localtime_r" >/dev/null 2>&1; then :
6965 tmp_localtime_r="proto_declared"
6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h. */
6973 #include <sys/types.h>
6977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6978 $EGREP "localtime_r" >/dev/null 2>&1; then :
6980 tmp_localtime_r="proto_needs_reentrant"
6981 tmp_need_reentrant="yes"
6993 if test "$tmp_need_reentrant" = "no"; then
6995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996 /* end confdefs.h. */
6999 #define strerror_r innocuous_strerror_r
7001 # include <limits.h>
7003 # include <assert.h>
7010 #if defined __stub_strerror_r || defined __stub___strerror_r
7016 return strerror_r ();
7022 if ac_fn_c_try_link "$LINENO"; then :
7024 tmp_strerror_r="yes"
7031 rm -f core conftest.err conftest.$ac_objext \
7032 conftest$ac_exeext conftest.$ac_ext
7033 if test "$tmp_strerror_r" = "yes"; then
7034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035 /* end confdefs.h. */
7037 #include <sys/types.h>
7041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7042 $EGREP "strerror_r" >/dev/null 2>&1; then :
7044 tmp_strerror_r="proto_declared"
7048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h. */
7052 #include <sys/types.h>
7056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7057 $EGREP "strerror_r" >/dev/null 2>&1; then :
7059 tmp_strerror_r="proto_needs_reentrant"
7060 tmp_need_reentrant="yes"
7072 if test "$tmp_need_reentrant" = "no"; then
7074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075 /* end confdefs.h. */
7078 #define strtok_r innocuous_strtok_r
7080 # include <limits.h>
7082 # include <assert.h>
7089 #if defined __stub_strtok_r || defined __stub___strtok_r
7101 if ac_fn_c_try_link "$LINENO"; then :
7110 rm -f core conftest.err conftest.$ac_objext \
7111 conftest$ac_exeext conftest.$ac_ext
7112 if test "$tmp_strtok_r" = "yes"; then
7113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114 /* end confdefs.h. */
7116 #include <sys/types.h>
7120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7121 $EGREP "strtok_r" >/dev/null 2>&1; then :
7123 tmp_strtok_r="proto_declared"
7127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128 /* end confdefs.h. */
7131 #include <sys/types.h>
7135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7136 $EGREP "strtok_r" >/dev/null 2>&1; then :
7138 tmp_strtok_r="proto_needs_reentrant"
7139 tmp_need_reentrant="yes"
7151 if test "$tmp_need_reentrant" = "no"; then
7153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7154 /* end confdefs.h. */
7157 #define inet_ntoa_r innocuous_inet_ntoa_r
7159 # include <limits.h>
7161 # include <assert.h>
7167 char inet_ntoa_r ();
7168 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
7174 return inet_ntoa_r ();
7180 if ac_fn_c_try_link "$LINENO"; then :
7182 tmp_inet_ntoa_r="yes"
7186 tmp_inet_ntoa_r="no"
7189 rm -f core conftest.err conftest.$ac_objext \
7190 conftest$ac_exeext conftest.$ac_ext
7191 if test "$tmp_inet_ntoa_r" = "yes"; then
7192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7193 /* end confdefs.h. */
7195 #include <sys/types.h>
7196 #include <sys/socket.h>
7197 #include <netinet/in.h>
7198 #include <arpa/inet.h>
7201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7202 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7204 tmp_inet_ntoa_r="proto_declared"
7208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209 /* end confdefs.h. */
7212 #include <sys/types.h>
7213 #include <sys/socket.h>
7214 #include <netinet/in.h>
7215 #include <arpa/inet.h>
7218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7219 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7221 tmp_inet_ntoa_r="proto_needs_reentrant"
7222 tmp_need_reentrant="yes"
7234 if test "$tmp_need_reentrant" = "no"; then
7236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7237 /* end confdefs.h. */
7240 #define gethostbyaddr_r innocuous_gethostbyaddr_r
7242 # include <limits.h>
7244 # include <assert.h>
7246 #undef gethostbyaddr_r
7250 char gethostbyaddr_r ();
7251 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
7257 return gethostbyaddr_r ();
7263 if ac_fn_c_try_link "$LINENO"; then :
7265 tmp_gethostbyaddr_r="yes"
7269 tmp_gethostbyaddr_r="no"
7272 rm -f core conftest.err conftest.$ac_objext \
7273 conftest$ac_exeext conftest.$ac_ext
7274 if test "$tmp_gethostbyaddr_r" = "yes"; then
7275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276 /* end confdefs.h. */
7278 #include <sys/types.h>
7282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7283 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7285 tmp_gethostbyaddr_r="proto_declared"
7289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7290 /* end confdefs.h. */
7293 #include <sys/types.h>
7297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7298 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7300 tmp_gethostbyaddr_r="proto_needs_reentrant"
7301 tmp_need_reentrant="yes"
7313 if test "$tmp_need_reentrant" = "no"; then
7315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7316 /* end confdefs.h. */
7319 #define gethostbyname_r innocuous_gethostbyname_r
7321 # include <limits.h>
7323 # include <assert.h>
7325 #undef gethostbyname_r
7329 char gethostbyname_r ();
7330 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7336 return gethostbyname_r ();
7342 if ac_fn_c_try_link "$LINENO"; then :
7344 tmp_gethostbyname_r="yes"
7348 tmp_gethostbyname_r="no"
7351 rm -f core conftest.err conftest.$ac_objext \
7352 conftest$ac_exeext conftest.$ac_ext
7353 if test "$tmp_gethostbyname_r" = "yes"; then
7354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7355 /* end confdefs.h. */
7357 #include <sys/types.h>
7361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7362 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7364 tmp_gethostbyname_r="proto_declared"
7368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7369 /* end confdefs.h. */
7372 #include <sys/types.h>
7376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7377 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7379 tmp_gethostbyname_r="proto_needs_reentrant"
7380 tmp_need_reentrant="yes"
7392 if test "$tmp_need_reentrant" = "no"; then
7394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7395 /* end confdefs.h. */
7398 #define getprotobyname_r innocuous_getprotobyname_r
7400 # include <limits.h>
7402 # include <assert.h>
7404 #undef getprotobyname_r
7408 char getprotobyname_r ();
7409 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7415 return getprotobyname_r ();
7421 if ac_fn_c_try_link "$LINENO"; then :
7423 tmp_getprotobyname_r="yes"
7427 tmp_getprotobyname_r="no"
7430 rm -f core conftest.err conftest.$ac_objext \
7431 conftest$ac_exeext conftest.$ac_ext
7432 if test "$tmp_getprotobyname_r" = "yes"; then
7433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434 /* end confdefs.h. */
7436 #include <sys/types.h>
7440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7441 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7443 tmp_getprotobyname_r="proto_declared"
7447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448 /* end confdefs.h. */
7451 #include <sys/types.h>
7455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7456 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7458 tmp_getprotobyname_r="proto_needs_reentrant"
7459 tmp_need_reentrant="yes"
7471 if test "$tmp_need_reentrant" = "no"; then
7473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474 /* end confdefs.h. */
7477 #define getservbyport_r innocuous_getservbyport_r
7479 # include <limits.h>
7481 # include <assert.h>
7483 #undef getservbyport_r
7487 char getservbyport_r ();
7488 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7494 return getservbyport_r ();
7500 if ac_fn_c_try_link "$LINENO"; then :
7502 tmp_getservbyport_r="yes"
7506 tmp_getservbyport_r="no"
7509 rm -f core conftest.err conftest.$ac_objext \
7510 conftest$ac_exeext conftest.$ac_ext
7511 if test "$tmp_getservbyport_r" = "yes"; then
7512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7513 /* end confdefs.h. */
7515 #include <sys/types.h>
7519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7520 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7522 tmp_getservbyport_r="proto_declared"
7526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527 /* end confdefs.h. */
7530 #include <sys/types.h>
7534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7535 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7537 tmp_getservbyport_r="proto_needs_reentrant"
7538 tmp_need_reentrant="yes"
7552 if test "$tmp_need_reentrant" = "yes"; then
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7554 $as_echo "yes" >&6; }
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557 $as_echo "no" >&6; }
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7562 $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7563 if test "$tmp_reentrant_initially_defined" = "yes" ||
7564 test "$tmp_need_reentrant" = "yes"; then
7567 $as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7569 cat >>confdefs.h <<_EOF
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7576 $as_echo "yes" >&6; }
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579 $as_echo "no" >&6; }
7584 # Check whether --enable-largefile was given.
7585 if test "${enable_largefile+set}" = set; then :
7586 enableval=$enable_largefile;
7589 if test "$enable_largefile" != no; then
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7592 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7593 if ${ac_cv_sys_largefile_CC+:} false; then :
7594 $as_echo_n "(cached) " >&6
7596 ac_cv_sys_largefile_CC=no
7597 if test "$GCC" != yes; then
7600 # IRIX 6.2 and later do not support large files by default,
7601 # so use the C compiler's -n32 option if that helps.
7602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h. */
7604 #include <sys/types.h>
7605 /* Check that off_t can represent 2**63 - 1 correctly.
7606 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7607 since some C++ compilers masquerading as C compilers
7608 incorrectly reject 9223372036854775807. */
7609 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7610 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7611 && LARGE_OFF_T % 2147483647 == 1)
7620 if ac_fn_c_try_compile "$LINENO"; then :
7623 rm -f core conftest.err conftest.$ac_objext
7625 if ac_fn_c_try_compile "$LINENO"; then :
7626 ac_cv_sys_largefile_CC=' -n32'; break
7628 rm -f core conftest.err conftest.$ac_objext
7632 rm -f conftest.$ac_ext
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7636 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7637 if test "$ac_cv_sys_largefile_CC" != no; then
7638 CC=$CC$ac_cv_sys_largefile_CC
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7642 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7643 if ${ac_cv_sys_file_offset_bits+:} false; then :
7644 $as_echo_n "(cached) " >&6
7647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7648 /* end confdefs.h. */
7649 #include <sys/types.h>
7650 /* Check that off_t can represent 2**63 - 1 correctly.
7651 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7652 since some C++ compilers masquerading as C compilers
7653 incorrectly reject 9223372036854775807. */
7654 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7655 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7656 && LARGE_OFF_T % 2147483647 == 1)
7665 if ac_fn_c_try_compile "$LINENO"; then :
7666 ac_cv_sys_file_offset_bits=no; break
7668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7670 /* end confdefs.h. */
7671 #define _FILE_OFFSET_BITS 64
7672 #include <sys/types.h>
7673 /* Check that off_t can represent 2**63 - 1 correctly.
7674 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7675 since some C++ compilers masquerading as C compilers
7676 incorrectly reject 9223372036854775807. */
7677 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7678 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7679 && LARGE_OFF_T % 2147483647 == 1)
7688 if ac_fn_c_try_compile "$LINENO"; then :
7689 ac_cv_sys_file_offset_bits=64; break
7691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692 ac_cv_sys_file_offset_bits=unknown
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7697 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7698 case $ac_cv_sys_file_offset_bits in #(
7701 cat >>confdefs.h <<_ACEOF
7702 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7707 if test $ac_cv_sys_file_offset_bits = unknown; then
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7709 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7710 if ${ac_cv_sys_large_files+:} false; then :
7711 $as_echo_n "(cached) " >&6
7714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7715 /* end confdefs.h. */
7716 #include <sys/types.h>
7717 /* Check that off_t can represent 2**63 - 1 correctly.
7718 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7719 since some C++ compilers masquerading as C compilers
7720 incorrectly reject 9223372036854775807. */
7721 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7722 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7723 && LARGE_OFF_T % 2147483647 == 1)
7732 if ac_fn_c_try_compile "$LINENO"; then :
7733 ac_cv_sys_large_files=no; break
7735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737 /* end confdefs.h. */
7738 #define _LARGE_FILES 1
7739 #include <sys/types.h>
7740 /* Check that off_t can represent 2**63 - 1 correctly.
7741 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7742 since some C++ compilers masquerading as C compilers
7743 incorrectly reject 9223372036854775807. */
7744 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7745 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7746 && LARGE_OFF_T % 2147483647 == 1)
7755 if ac_fn_c_try_compile "$LINENO"; then :
7756 ac_cv_sys_large_files=1; break
7758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7759 ac_cv_sys_large_files=unknown
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7764 $as_echo "$ac_cv_sys_large_files" >&6; }
7765 case $ac_cv_sys_large_files in #(
7768 cat >>confdefs.h <<_ACEOF
7769 #define _LARGE_FILES $ac_cv_sys_large_files
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7783 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7788 macro_version='2.4.2'
7789 macro_revision='1.3337'
7803 ltmain="$ac_aux_dir/ltmain.sh"
7805 # Backslashify metacharacters that are still active within
7806 # double-quoted strings.
7807 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7809 # Same as above, but do not quote variable references.
7810 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7812 # Sed substitution to delay expansion of an escaped shell variable in a
7813 # double_quote_subst'ed string.
7814 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7816 # Sed substitution to delay expansion of an escaped single quote.
7817 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7819 # Sed substitution to avoid accidental globbing in evaled expressions
7820 no_glob_subst='s/\*/\\\*/g'
7822 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7823 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7824 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7827 $as_echo_n "checking how to print strings... " >&6; }
7828 # Test print first, because it will be a builtin if present.
7829 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7830 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7832 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7835 # Use this function as a fallback that always works.
7836 func_fallback_echo ()
7838 eval 'cat <<_LTECHO_EOF
7842 ECHO='func_fallback_echo'
7845 # func_echo_all arg...
7846 # Invoke $ECHO with all args, space-separated.
7853 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7854 $as_echo "printf" >&6; } ;;
7855 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7856 $as_echo "print -r" >&6; } ;;
7857 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7858 $as_echo "cat" >&6; } ;;
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7875 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7876 if ${ac_cv_path_SED+:} false; then :
7877 $as_echo_n "(cached) " >&6
7879 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7880 for ac_i in 1 2 3 4 5 6 7; do
7881 ac_script="$ac_script$as_nl$ac_script"
7883 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7884 { ac_script=; unset ac_script;}
7885 if test -z "$SED"; then
7886 ac_path_SED_found=false
7887 # Loop through the user's path and test for each of PROGNAME-LIST
7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892 test -z "$as_dir" && as_dir=.
7893 for ac_prog in sed gsed; do
7894 for ac_exec_ext in '' $ac_executable_extensions; do
7895 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7896 as_fn_executable_p "$ac_path_SED" || continue
7897 # Check for GNU ac_path_SED and select it if it is found.
7898 # Check for GNU $ac_path_SED
7899 case `"$ac_path_SED" --version 2>&1` in
7901 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7904 $as_echo_n 0123456789 >"conftest.in"
7907 cat "conftest.in" "conftest.in" >"conftest.tmp"
7908 mv "conftest.tmp" "conftest.in"
7909 cp "conftest.in" "conftest.nl"
7910 $as_echo '' >> "conftest.nl"
7911 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7912 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7913 as_fn_arith $ac_count + 1 && ac_count=$as_val
7914 if test $ac_count -gt ${ac_path_SED_max-0}; then
7915 # Best one so far, save it but keep looking for a better one
7916 ac_cv_path_SED="$ac_path_SED"
7917 ac_path_SED_max=$ac_count
7919 # 10*(2^10) chars as input seems more than enough
7920 test $ac_count -gt 10 && break
7922 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7925 $ac_path_SED_found && break 3
7930 if test -z "$ac_cv_path_SED"; then
7931 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7939 $as_echo "$ac_cv_path_SED" >&6; }
7940 SED="$ac_cv_path_SED"
7943 test -z "$SED" && SED=sed
7944 Xsed="$SED -e 1s/^X//"
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7957 $as_echo_n "checking for fgrep... " >&6; }
7958 if ${ac_cv_path_FGREP+:} false; then :
7959 $as_echo_n "(cached) " >&6
7961 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7962 then ac_cv_path_FGREP="$GREP -F"
7964 if test -z "$FGREP"; then
7965 ac_path_FGREP_found=false
7966 # Loop through the user's path and test for each of PROGNAME-LIST
7967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7971 test -z "$as_dir" && as_dir=.
7972 for ac_prog in fgrep; do
7973 for ac_exec_ext in '' $ac_executable_extensions; do
7974 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7975 as_fn_executable_p "$ac_path_FGREP" || continue
7976 # Check for GNU ac_path_FGREP and select it if it is found.
7977 # Check for GNU $ac_path_FGREP
7978 case `"$ac_path_FGREP" --version 2>&1` in
7980 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7983 $as_echo_n 0123456789 >"conftest.in"
7986 cat "conftest.in" "conftest.in" >"conftest.tmp"
7987 mv "conftest.tmp" "conftest.in"
7988 cp "conftest.in" "conftest.nl"
7989 $as_echo 'FGREP' >> "conftest.nl"
7990 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7991 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7992 as_fn_arith $ac_count + 1 && ac_count=$as_val
7993 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7994 # Best one so far, save it but keep looking for a better one
7995 ac_cv_path_FGREP="$ac_path_FGREP"
7996 ac_path_FGREP_max=$ac_count
7998 # 10*(2^10) chars as input seems more than enough
7999 test $ac_count -gt 10 && break
8001 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8004 $ac_path_FGREP_found && break 3
8009 if test -z "$ac_cv_path_FGREP"; then
8010 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8013 ac_cv_path_FGREP=$FGREP
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8019 $as_echo "$ac_cv_path_FGREP" >&6; }
8020 FGREP="$ac_cv_path_FGREP"
8023 test -z "$GREP" && GREP=grep
8043 # Check whether --with-gnu-ld was given.
8044 if test "${with_gnu_ld+set}" = set; then :
8045 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8051 if test "$GCC" = yes; then
8052 # Check if gcc -print-prog-name=ld gives a path.
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8054 $as_echo_n "checking for ld used by $CC... " >&6; }
8057 # gcc leaves a trailing carriage return which upsets mingw
8058 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8060 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8063 # Accept absolute paths.
8065 re_direlt='/[^/][^/]*/\.\./'
8066 # Canonicalize the pathname of ld
8067 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8068 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8069 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8071 test -z "$LD" && LD="$ac_prog"
8074 # If it fails, then pretend we aren't using GCC.
8078 # If it is relative, then search for the first ld in PATH.
8082 elif test "$with_gnu_ld" = yes; then
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8084 $as_echo_n "checking for GNU ld... " >&6; }
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8087 $as_echo_n "checking for non-GNU ld... " >&6; }
8089 if ${lt_cv_path_LD+:} false; then :
8090 $as_echo_n "(cached) " >&6
8092 if test -z "$LD"; then
8093 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8094 for ac_dir in $PATH; do
8096 test -z "$ac_dir" && ac_dir=.
8097 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8098 lt_cv_path_LD="$ac_dir/$ac_prog"
8099 # Check to see if the program is GNU ld. I'd rather use --version,
8100 # but apparently some variants of GNU ld only accept -v.
8101 # Break only if it was the GNU/non-GNU ld that we prefer.
8102 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8103 *GNU* | *'with BFD'*)
8104 test "$with_gnu_ld" != no && break
8107 test "$with_gnu_ld" != yes && break
8114 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8119 if test -n "$LD"; then
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8121 $as_echo "$LD" >&6; }
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8124 $as_echo "no" >&6; }
8126 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8128 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8129 if ${lt_cv_prog_gnu_ld+:} false; then :
8130 $as_echo_n "(cached) " >&6
8132 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8133 case `$LD -v 2>&1 </dev/null` in
8134 *GNU* | *'with BFD'*)
8135 lt_cv_prog_gnu_ld=yes
8138 lt_cv_prog_gnu_ld=no
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8143 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8144 with_gnu_ld=$lt_cv_prog_gnu_ld
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8155 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8156 if ${lt_cv_path_NM+:} false; then :
8157 $as_echo_n "(cached) " >&6
8159 if test -n "$NM"; then
8160 # Let the user override the test.
8163 lt_nm_to_check="${ac_tool_prefix}nm"
8164 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8165 lt_nm_to_check="$lt_nm_to_check nm"
8167 for lt_tmp_nm in $lt_nm_to_check; do
8168 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8169 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8171 test -z "$ac_dir" && ac_dir=.
8172 tmp_nm="$ac_dir/$lt_tmp_nm"
8173 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8174 # Check to see if the nm accepts a BSD-compat flag.
8175 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8176 # nm: unknown option "B" ignored
8177 # Tru64's nm complains that /dev/null is an invalid object file
8178 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8179 */dev/null* | *'Invalid file or object type'*)
8180 lt_cv_path_NM="$tmp_nm -B"
8184 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8186 lt_cv_path_NM="$tmp_nm -p"
8190 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8191 continue # so that we can try to find one that supports BSD flags
8200 : ${lt_cv_path_NM=no}
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8204 $as_echo "$lt_cv_path_NM" >&6; }
8205 if test "$lt_cv_path_NM" != "no"; then
8208 # Didn't find any BSD compatible name lister, look for dumpbin.
8209 if test -n "$DUMPBIN"; then :
8210 # Let the user override the test.
8212 if test -n "$ac_tool_prefix"; then
8213 for ac_prog in dumpbin "link -dump"
8215 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8216 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218 $as_echo_n "checking for $ac_word... " >&6; }
8219 if ${ac_cv_prog_DUMPBIN+:} false; then :
8220 $as_echo_n "(cached) " >&6
8222 if test -n "$DUMPBIN"; then
8223 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229 test -z "$as_dir" && as_dir=.
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8232 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8242 DUMPBIN=$ac_cv_prog_DUMPBIN
8243 if test -n "$DUMPBIN"; then
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8245 $as_echo "$DUMPBIN" >&6; }
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248 $as_echo "no" >&6; }
8252 test -n "$DUMPBIN" && break
8255 if test -z "$DUMPBIN"; then
8256 ac_ct_DUMPBIN=$DUMPBIN
8257 for ac_prog in dumpbin "link -dump"
8259 # Extract the first word of "$ac_prog", so it can be a program name with args.
8260 set dummy $ac_prog; ac_word=$2
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8262 $as_echo_n "checking for $ac_word... " >&6; }
8263 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8264 $as_echo_n "(cached) " >&6
8266 if test -n "$ac_ct_DUMPBIN"; then
8267 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8273 test -z "$as_dir" && as_dir=.
8274 for ac_exec_ext in '' $ac_executable_extensions; do
8275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8276 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8286 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8287 if test -n "$ac_ct_DUMPBIN"; then
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8289 $as_echo "$ac_ct_DUMPBIN" >&6; }
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292 $as_echo "no" >&6; }
8296 test -n "$ac_ct_DUMPBIN" && break
8299 if test "x$ac_ct_DUMPBIN" = x; then
8302 case $cross_compiling:$ac_tool_warned in
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8306 ac_tool_warned=yes ;;
8308 DUMPBIN=$ac_ct_DUMPBIN
8312 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
8314 DUMPBIN="$DUMPBIN -symbols"
8322 if test "$DUMPBIN" != ":"; then
8326 test -z "$NM" && NM=nm
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8334 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8335 if ${lt_cv_nm_interface+:} false; then :
8336 $as_echo_n "(cached) " >&6
8338 lt_cv_nm_interface="BSD nm"
8339 echo "int some_variable = 0;" > conftest.$ac_ext
8340 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8341 (eval "$ac_compile" 2>conftest.err)
8342 cat conftest.err >&5
8343 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8344 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8345 cat conftest.err >&5
8346 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8347 cat conftest.out >&5
8348 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8349 lt_cv_nm_interface="MS dumpbin"
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8354 $as_echo "$lt_cv_nm_interface" >&6; }
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8357 $as_echo_n "checking whether ln -s works... " >&6; }
8359 if test "$LN_S" = "ln -s"; then
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8361 $as_echo "yes" >&6; }
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8364 $as_echo "no, using $LN_S" >&6; }
8367 # find the maximum length of command line arguments
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8369 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8370 if ${lt_cv_sys_max_cmd_len+:} false; then :
8371 $as_echo_n "(cached) " >&6
8378 # On DJGPP, this test can blow up pretty badly due to problems in libc
8379 # (any single argument exceeding 2000 bytes causes a buffer overrun
8380 # during glob expansion). Even if it were fixed, the result of this
8381 # check would be larger than it should be.
8382 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8386 # Under GNU Hurd, this test is not required because there is
8387 # no limit to the length of command line arguments.
8388 # Libtool will interpret -1 as no limit whatsoever
8389 lt_cv_sys_max_cmd_len=-1;
8392 cygwin* | mingw* | cegcc*)
8393 # On Win9x/ME, this test blows up -- it succeeds, but takes
8394 # about 5 minutes as the teststring grows exponentially.
8395 # Worse, since 9x/ME are not pre-emptively multitasking,
8396 # you end up with a "frozen" computer, even though with patience
8397 # the test eventually succeeds (with a max line length of 256k).
8398 # Instead, let's just punt: use the minimum linelength reported by
8399 # all of the supported platforms: 8192 (on NT/2K/XP).
8400 lt_cv_sys_max_cmd_len=8192;
8404 # On MiNT this can take a long time and run out of memory.
8405 lt_cv_sys_max_cmd_len=8192;
8409 # On AmigaOS with pdksh, this test takes hours, literally.
8410 # So we just punt and use a minimum line length of 8192.
8411 lt_cv_sys_max_cmd_len=8192;
8414 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8415 # This has been around since 386BSD, at least. Likely further.
8416 if test -x /sbin/sysctl; then
8417 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8418 elif test -x /usr/sbin/sysctl; then
8419 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8421 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8423 # And add a safety zone
8424 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8425 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8429 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8430 lt_cv_sys_max_cmd_len=196608
8434 # The test takes a long time on OS/2.
8435 lt_cv_sys_max_cmd_len=8192
8439 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8440 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8441 # nice to cause kernel panics so lets avoid the loop below.
8442 # First set a reasonable default.
8443 lt_cv_sys_max_cmd_len=16384
8445 if test -x /sbin/sysconfig; then
8446 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8447 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8452 lt_cv_sys_max_cmd_len=102400
8454 sysv5* | sco5v6* | sysv4.2uw2*)
8455 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8456 if test -n "$kargmax"; then
8457 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8459 lt_cv_sys_max_cmd_len=32768
8463 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8464 if test -n "$lt_cv_sys_max_cmd_len" && \
8465 test undefined != "$lt_cv_sys_max_cmd_len"; then
8466 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8467 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8469 # Make teststring a little bigger before we do anything with it.
8470 # a 1K string should be a reasonable start.
8471 for i in 1 2 3 4 5 6 7 8 ; do
8472 teststring=$teststring$teststring
8474 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8475 # If test is not a shell built-in, we'll probably end up computing a
8476 # maximum length that is only half of the actual maximum length, but
8478 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
8479 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8480 test $i != 17 # 1/2 MB should be enough
8483 teststring=$teststring$teststring
8485 # Only check the string length outside the loop.
8486 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8488 # Add a significant safety factor because C++ compilers can tack on
8489 # massive amounts of additional arguments before passing them to the
8490 # linker. It appears as though 1/2 is a usable value.
8491 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8498 if test -n $lt_cv_sys_max_cmd_len ; then
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8500 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8503 $as_echo "none" >&6; }
8505 max_cmd_len=$lt_cv_sys_max_cmd_len
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8517 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8518 # Try some XSI features
8521 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
8523 && eval 'test $(( 1 + 1 )) -eq 2 \
8524 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8527 $as_echo "$xsi_shell" >&6; }
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8531 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8533 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8535 && lt_shell_append=yes
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8537 $as_echo "$lt_shell_append" >&6; }
8540 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8550 # test EBCDIC or ASCII
8551 case `echo X|tr X '\101'` in
8552 A) # ASCII based system
8553 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8554 lt_SP2NL='tr \040 \012'
8555 lt_NL2SP='tr \015\012 \040\040'
8557 *) # EBCDIC based system
8558 lt_SP2NL='tr \100 \n'
8559 lt_NL2SP='tr \r\n \100\100'
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8572 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8573 if ${lt_cv_to_host_file_cmd+:} false; then :
8574 $as_echo_n "(cached) " >&6
8579 *-*-mingw* ) # actually msys
8580 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8583 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8585 * ) # otherwise, assume *nix
8586 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8592 *-*-mingw* ) # actually msys
8593 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8596 lt_cv_to_host_file_cmd=func_convert_file_noop
8598 * ) # otherwise, assume *nix
8599 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8603 * ) # unhandled hosts (and "normal" native builds)
8604 lt_cv_to_host_file_cmd=func_convert_file_noop
8610 to_host_file_cmd=$lt_cv_to_host_file_cmd
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8612 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8619 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8620 if ${lt_cv_to_tool_file_cmd+:} false; then :
8621 $as_echo_n "(cached) " >&6
8623 #assume ordinary cross tools, or native build.
8624 lt_cv_to_tool_file_cmd=func_convert_file_noop
8628 *-*-mingw* ) # actually msys
8629 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8637 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8639 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8646 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8647 if ${lt_cv_ld_reload_flag+:} false; then :
8648 $as_echo_n "(cached) " >&6
8650 lt_cv_ld_reload_flag='-r'
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8653 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8654 reload_flag=$lt_cv_ld_reload_flag
8655 case $reload_flag in
8657 *) reload_flag=" $reload_flag" ;;
8659 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8661 cygwin* | mingw* | pw32* | cegcc*)
8662 if test "$GCC" != yes; then
8667 if test "$GCC" = yes; then
8668 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8670 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8683 if test -n "$ac_tool_prefix"; then
8684 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8685 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8687 $as_echo_n "checking for $ac_word... " >&6; }
8688 if ${ac_cv_prog_OBJDUMP+:} false; then :
8689 $as_echo_n "(cached) " >&6
8691 if test -n "$OBJDUMP"; then
8692 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698 test -z "$as_dir" && as_dir=.
8699 for ac_exec_ext in '' $ac_executable_extensions; do
8700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8701 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8711 OBJDUMP=$ac_cv_prog_OBJDUMP
8712 if test -n "$OBJDUMP"; then
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8714 $as_echo "$OBJDUMP" >&6; }
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8717 $as_echo "no" >&6; }
8722 if test -z "$ac_cv_prog_OBJDUMP"; then
8723 ac_ct_OBJDUMP=$OBJDUMP
8724 # Extract the first word of "objdump", so it can be a program name with args.
8725 set dummy objdump; ac_word=$2
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8727 $as_echo_n "checking for $ac_word... " >&6; }
8728 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8729 $as_echo_n "(cached) " >&6
8731 if test -n "$ac_ct_OBJDUMP"; then
8732 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8738 test -z "$as_dir" && as_dir=.
8739 for ac_exec_ext in '' $ac_executable_extensions; do
8740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8741 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8751 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8752 if test -n "$ac_ct_OBJDUMP"; then
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8754 $as_echo "$ac_ct_OBJDUMP" >&6; }
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8757 $as_echo "no" >&6; }
8760 if test "x$ac_ct_OBJDUMP" = x; then
8763 case $cross_compiling:$ac_tool_warned in
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8767 ac_tool_warned=yes ;;
8769 OBJDUMP=$ac_ct_OBJDUMP
8772 OBJDUMP="$ac_cv_prog_OBJDUMP"
8775 test -z "$OBJDUMP" && OBJDUMP=objdump
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8783 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8784 if ${lt_cv_deplibs_check_method+:} false; then :
8785 $as_echo_n "(cached) " >&6
8787 lt_cv_file_magic_cmd='$MAGIC_CMD'
8788 lt_cv_file_magic_test_file=
8789 lt_cv_deplibs_check_method='unknown'
8790 # Need to set the preceding variable on all platforms that support
8791 # interlibrary dependencies.
8792 # 'none' -- dependencies not supported.
8793 # `unknown' -- same as none, but documents that we really don't know.
8794 # 'pass_all' -- all dependencies passed with no checks.
8795 # 'test_compile' -- check by making test program.
8796 # 'file_magic [[regex]]' -- check by looking for files in library path
8797 # which responds to the $file_magic_cmd with a given extended regex.
8798 # If you have `file' or equivalent on your system and you're not sure
8799 # whether `pass_all' will *always* work, you probably want this one.
8803 lt_cv_deplibs_check_method=pass_all
8807 lt_cv_deplibs_check_method=pass_all
8811 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8812 lt_cv_file_magic_cmd='/usr/bin/file -L'
8813 lt_cv_file_magic_test_file=/shlib/libc.so
8817 # func_win32_libid is a shell function defined in ltmain.sh
8818 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8819 lt_cv_file_magic_cmd='func_win32_libid'
8823 # Base MSYS/MinGW do not provide the 'file' command needed by
8824 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8825 # unless we find 'file', for example because we are cross-compiling.
8826 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8827 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8828 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8829 lt_cv_file_magic_cmd='func_win32_libid'
8831 # Keep this pattern in sync with the one in func_win32_libid.
8832 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8833 lt_cv_file_magic_cmd='$OBJDUMP -f'
8838 # use the weaker test based on 'objdump'. See mingw*.
8839 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8840 lt_cv_file_magic_cmd='$OBJDUMP -f'
8843 darwin* | rhapsody*)
8844 lt_cv_deplibs_check_method=pass_all
8847 freebsd* | dragonfly*)
8848 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8851 # Not sure whether the presence of OpenBSD here was a mistake.
8852 # Let's accept both of them until this is cleared up.
8853 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8854 lt_cv_file_magic_cmd=/usr/bin/file
8855 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8859 lt_cv_deplibs_check_method=pass_all
8864 lt_cv_deplibs_check_method=pass_all
8867 hpux10.20* | hpux11*)
8868 lt_cv_file_magic_cmd=/usr/bin/file
8871 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8872 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8875 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]'
8876 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8879 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8880 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8886 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8887 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8890 irix5* | irix6* | nonstopux*)
8892 *-32|*"-32 ") libmagic=32-bit;;
8893 *-n32|*"-n32 ") libmagic=N32;;
8894 *-64|*"-64 ") libmagic=64-bit;;
8895 *) libmagic=never-match;;
8897 lt_cv_deplibs_check_method=pass_all
8900 # This must be glibc/ELF.
8901 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8902 lt_cv_deplibs_check_method=pass_all
8905 netbsd* | netbsdelf*-gnu)
8906 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8907 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8909 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8914 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8915 lt_cv_file_magic_cmd=/usr/bin/file
8916 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8920 lt_cv_deplibs_check_method=pass_all
8924 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8925 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8927 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8931 osf3* | osf4* | osf5*)
8932 lt_cv_deplibs_check_method=pass_all
8936 lt_cv_deplibs_check_method=pass_all
8940 lt_cv_deplibs_check_method=pass_all
8943 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8944 lt_cv_deplibs_check_method=pass_all
8948 case $host_vendor in
8950 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]'
8951 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8954 lt_cv_deplibs_check_method=pass_all
8957 lt_cv_file_magic_cmd='/bin/file'
8958 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8961 lt_cv_file_magic_cmd='/bin/file'
8962 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8963 lt_cv_file_magic_test_file=/lib/libc.so
8966 lt_cv_deplibs_check_method=pass_all
8969 lt_cv_deplibs_check_method=pass_all
8975 lt_cv_deplibs_check_method=pass_all
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8981 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8985 if test "$build" = "$host"; then
8988 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8991 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8997 file_magic_cmd=$lt_cv_file_magic_cmd
8998 deplibs_check_method=$lt_cv_deplibs_check_method
8999 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9022 if test -n "$ac_tool_prefix"; then
9023 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9024 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9026 $as_echo_n "checking for $ac_word... " >&6; }
9027 if ${ac_cv_prog_DLLTOOL+:} false; then :
9028 $as_echo_n "(cached) " >&6
9030 if test -n "$DLLTOOL"; then
9031 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9037 test -z "$as_dir" && as_dir=.
9038 for ac_exec_ext in '' $ac_executable_extensions; do
9039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9040 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9050 DLLTOOL=$ac_cv_prog_DLLTOOL
9051 if test -n "$DLLTOOL"; then
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9053 $as_echo "$DLLTOOL" >&6; }
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9056 $as_echo "no" >&6; }
9061 if test -z "$ac_cv_prog_DLLTOOL"; then
9062 ac_ct_DLLTOOL=$DLLTOOL
9063 # Extract the first word of "dlltool", so it can be a program name with args.
9064 set dummy dlltool; ac_word=$2
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9066 $as_echo_n "checking for $ac_word... " >&6; }
9067 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9068 $as_echo_n "(cached) " >&6
9070 if test -n "$ac_ct_DLLTOOL"; then
9071 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9077 test -z "$as_dir" && as_dir=.
9078 for ac_exec_ext in '' $ac_executable_extensions; do
9079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9080 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9090 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9091 if test -n "$ac_ct_DLLTOOL"; then
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9093 $as_echo "$ac_ct_DLLTOOL" >&6; }
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9096 $as_echo "no" >&6; }
9099 if test "x$ac_ct_DLLTOOL" = x; then
9102 case $cross_compiling:$ac_tool_warned in
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9106 ac_tool_warned=yes ;;
9108 DLLTOOL=$ac_ct_DLLTOOL
9111 DLLTOOL="$ac_cv_prog_DLLTOOL"
9114 test -z "$DLLTOOL" && DLLTOOL=dlltool
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9123 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9124 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9125 $as_echo_n "(cached) " >&6
9127 lt_cv_sharedlib_from_linklib_cmd='unknown'
9130 cygwin* | mingw* | pw32* | cegcc*)
9131 # two different shell functions defined in ltmain.sh
9132 # decide which to use based on capabilities of $DLLTOOL
9133 case `$DLLTOOL --help 2>&1` in
9134 *--identify-strict*)
9135 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9138 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9143 # fallback: assume linklib IS sharedlib
9144 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9150 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9151 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9152 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9160 if test -n "$ac_tool_prefix"; then
9163 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9164 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9166 $as_echo_n "checking for $ac_word... " >&6; }
9167 if ${ac_cv_prog_AR+:} false; then :
9168 $as_echo_n "(cached) " >&6
9170 if test -n "$AR"; then
9171 ac_cv_prog_AR="$AR" # Let the user override the test.
9173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9177 test -z "$as_dir" && as_dir=.
9178 for ac_exec_ext in '' $ac_executable_extensions; do
9179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9180 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9191 if test -n "$AR"; then
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9193 $as_echo "$AR" >&6; }
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9196 $as_echo "no" >&6; }
9200 test -n "$AR" && break
9203 if test -z "$AR"; then
9207 # Extract the first word of "$ac_prog", so it can be a program name with args.
9208 set dummy $ac_prog; ac_word=$2
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9210 $as_echo_n "checking for $ac_word... " >&6; }
9211 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9212 $as_echo_n "(cached) " >&6
9214 if test -n "$ac_ct_AR"; then
9215 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9221 test -z "$as_dir" && as_dir=.
9222 for ac_exec_ext in '' $ac_executable_extensions; do
9223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9224 ac_cv_prog_ac_ct_AR="$ac_prog"
9225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9234 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9235 if test -n "$ac_ct_AR"; then
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9237 $as_echo "$ac_ct_AR" >&6; }
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9240 $as_echo "no" >&6; }
9244 test -n "$ac_ct_AR" && break
9247 if test "x$ac_ct_AR" = x; then
9250 case $cross_compiling:$ac_tool_warned in
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9254 ac_tool_warned=yes ;;
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9274 $as_echo_n "checking for archiver @FILE support... " >&6; }
9275 if ${lt_cv_ar_at_file+:} false; then :
9276 $as_echo_n "(cached) " >&6
9279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9280 /* end confdefs.h. */
9289 if ac_fn_c_try_compile "$LINENO"; then :
9290 echo conftest.$ac_objext > conftest.lst
9291 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9293 (eval $lt_ar_try) 2>&5
9295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9296 test $ac_status = 0; }
9297 if test "$ac_status" -eq 0; then
9298 # Ensure the archiver fails upon bogus file names.
9299 rm -f conftest.$ac_objext libconftest.a
9300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9301 (eval $lt_ar_try) 2>&5
9303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9304 test $ac_status = 0; }
9305 if test "$ac_status" -ne 0; then
9309 rm -f conftest.* libconftest.a
9312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9316 $as_echo "$lt_cv_ar_at_file" >&6; }
9318 if test "x$lt_cv_ar_at_file" = xno; then
9321 archiver_list_spec=$lt_cv_ar_at_file
9330 if test -n "$ac_tool_prefix"; then
9331 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9332 set dummy ${ac_tool_prefix}strip; ac_word=$2
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9334 $as_echo_n "checking for $ac_word... " >&6; }
9335 if ${ac_cv_prog_STRIP+:} false; then :
9336 $as_echo_n "(cached) " >&6
9338 if test -n "$STRIP"; then
9339 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9345 test -z "$as_dir" && as_dir=.
9346 for ac_exec_ext in '' $ac_executable_extensions; do
9347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9348 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9358 STRIP=$ac_cv_prog_STRIP
9359 if test -n "$STRIP"; then
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9361 $as_echo "$STRIP" >&6; }
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9364 $as_echo "no" >&6; }
9369 if test -z "$ac_cv_prog_STRIP"; then
9371 # Extract the first word of "strip", so it can be a program name with args.
9372 set dummy strip; ac_word=$2
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9374 $as_echo_n "checking for $ac_word... " >&6; }
9375 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9376 $as_echo_n "(cached) " >&6
9378 if test -n "$ac_ct_STRIP"; then
9379 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9385 test -z "$as_dir" && as_dir=.
9386 for ac_exec_ext in '' $ac_executable_extensions; do
9387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9388 ac_cv_prog_ac_ct_STRIP="strip"
9389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9398 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9399 if test -n "$ac_ct_STRIP"; then
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9401 $as_echo "$ac_ct_STRIP" >&6; }
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9404 $as_echo "no" >&6; }
9407 if test "x$ac_ct_STRIP" = x; then
9410 case $cross_compiling:$ac_tool_warned in
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9414 ac_tool_warned=yes ;;
9419 STRIP="$ac_cv_prog_STRIP"
9422 test -z "$STRIP" && STRIP=:
9429 if test -n "$ac_tool_prefix"; then
9430 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9431 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9433 $as_echo_n "checking for $ac_word... " >&6; }
9434 if ${ac_cv_prog_RANLIB+:} false; then :
9435 $as_echo_n "(cached) " >&6
9437 if test -n "$RANLIB"; then
9438 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9444 test -z "$as_dir" && as_dir=.
9445 for ac_exec_ext in '' $ac_executable_extensions; do
9446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9447 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9457 RANLIB=$ac_cv_prog_RANLIB
9458 if test -n "$RANLIB"; then
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9460 $as_echo "$RANLIB" >&6; }
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9463 $as_echo "no" >&6; }
9468 if test -z "$ac_cv_prog_RANLIB"; then
9469 ac_ct_RANLIB=$RANLIB
9470 # Extract the first word of "ranlib", so it can be a program name with args.
9471 set dummy ranlib; ac_word=$2
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9473 $as_echo_n "checking for $ac_word... " >&6; }
9474 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9475 $as_echo_n "(cached) " >&6
9477 if test -n "$ac_ct_RANLIB"; then
9478 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9484 test -z "$as_dir" && as_dir=.
9485 for ac_exec_ext in '' $ac_executable_extensions; do
9486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9487 ac_cv_prog_ac_ct_RANLIB="ranlib"
9488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9497 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9498 if test -n "$ac_ct_RANLIB"; then
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9500 $as_echo "$ac_ct_RANLIB" >&6; }
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9503 $as_echo "no" >&6; }
9506 if test "x$ac_ct_RANLIB" = x; then
9509 case $cross_compiling:$ac_tool_warned in
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9513 ac_tool_warned=yes ;;
9515 RANLIB=$ac_ct_RANLIB
9518 RANLIB="$ac_cv_prog_RANLIB"
9521 test -z "$RANLIB" && RANLIB=:
9528 # Determine commands to create old-style static archives.
9529 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9530 old_postinstall_cmds='chmod 644 $oldlib'
9531 old_postuninstall_cmds=
9533 if test -n "$RANLIB"; then
9536 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9539 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9542 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9547 lock_old_archive_extraction=yes ;;
9549 lock_old_archive_extraction=no ;;
9590 # If no C compiler was specified, use CC.
9593 # If no C compiler flags were specified, use CFLAGS.
9594 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9596 # Allow CC to be a program name with arguments.
9600 # Check for command to grab the raw symbol name followed by C symbol from nm.
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9602 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9603 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9604 $as_echo_n "(cached) " >&6
9607 # These are sane defaults that work on at least a few old systems.
9608 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9610 # Character class describing NM global symbol codes.
9611 symcode='[BCDEGRST]'
9613 # Regexp to match symbols that can be accessed directly from C.
9614 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9616 # Define system-specific variables.
9621 cygwin* | mingw* | pw32* | cegcc*)
9622 symcode='[ABCDGISTW]'
9625 if test "$host_cpu" = ia64; then
9626 symcode='[ABCDEGRST]'
9630 symcode='[BCDEGRST]'
9633 symcode='[BCDEGQRST]'
9644 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9652 # If we're using GNU nm, then use its standard symbol codes.
9653 case `$NM -V 2>&1` in
9654 *GNU* | *'with BFD'*)
9655 symcode='[ABCDGIRSTW]' ;;
9658 # Transform an extracted symbol line into a proper C declaration.
9659 # Some systems (esp. on ia64) link data and code symbols differently,
9660 # so use this general approach.
9661 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9663 # Transform an extracted symbol line into symbol name and symbol address
9664 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9665 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'"
9667 # Handle CRLF in mingw tool chain
9671 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9675 # Try without a prefix underscore, then with it.
9676 for ac_symprfx in "" "_"; do
9678 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9679 symxfrm="\\1 $ac_symprfx\\2 \\2"
9681 # Write the raw and C identifiers.
9682 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9683 # Fake it for dumpbin and say T for any non-static function
9684 # and D for any global variable.
9685 # Also find C++ and __fastcall symbols from MSVC++,
9686 # which start with @ or ?.
9687 lt_cv_sys_global_symbol_pipe="$AWK '"\
9688 " {last_section=section; section=\$ 3};"\
9689 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9690 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9691 " \$ 0!~/External *\|/{next};"\
9692 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9693 " {if(hide[section]) next};"\
9694 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9695 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9696 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
9697 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9698 " ' prfx=^$ac_symprfx"
9700 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9702 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9704 # Check to see that the pipe works correctly.
9708 cat > conftest.$ac_ext <<_LT_EOF
9713 void nm_test_func(void);
9714 void nm_test_func(void){}
9718 int main(){nm_test_var='a';nm_test_func();return(0);}
9721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9722 (eval $ac_compile) 2>&5
9724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9725 test $ac_status = 0; }; then
9726 # Now try to grab the symbols.
9728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9729 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9732 test $ac_status = 0; } && test -s "$nlist"; then
9733 # Try sorting and uniquifying the output.
9734 if sort "$nlist" | uniq > "$nlist"T; then
9735 mv -f "$nlist"T "$nlist"
9740 # Make sure that we snagged all the symbols we need.
9741 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9742 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9743 cat <<_LT_EOF > conftest.$ac_ext
9744 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9745 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
9746 /* DATA imports from DLLs on WIN32 con't be const, because runtime
9747 relocations are performed -- see ld's documentation on pseudo-relocs. */
9748 # define LT_DLSYM_CONST
9749 #elif defined(__osf__)
9750 /* This system does not cope well with relocations in const data. */
9751 # define LT_DLSYM_CONST
9753 # define LT_DLSYM_CONST const
9761 # Now generate the symbol file.
9762 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9764 cat <<_LT_EOF >> conftest.$ac_ext
9766 /* The mapping between symbol names and symbols. */
9767 LT_DLSYM_CONST struct {
9771 lt__PROGRAM__LTX_preloaded_symbols[] =
9773 { "@PROGRAM@", (void *) 0 },
9775 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9776 cat <<\_LT_EOF >> conftest.$ac_ext
9780 /* This works around a problem in FreeBSD linker */
9781 #ifdef FREEBSD_WORKAROUND
9782 static const void *lt_preloaded_setup() {
9783 return lt__PROGRAM__LTX_preloaded_symbols;
9791 # Now try linking the two files.
9792 mv -f conftest.$ac_objext conftstm.$ac_objext
9793 lt_globsym_save_LIBS=$LIBS
9794 lt_globsym_save_CFLAGS=$CFLAGS
9795 LIBS="conftstm.$ac_objext"
9796 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9798 (eval $ac_link) 2>&5
9800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9801 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9804 LIBS=$lt_globsym_save_LIBS
9805 CFLAGS=$lt_globsym_save_CFLAGS
9807 echo "cannot find nm_test_func in $nlist" >&5
9810 echo "cannot find nm_test_var in $nlist" >&5
9813 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9816 echo "$progname: failed program was:" >&5
9817 cat conftest.$ac_ext >&5
9819 rm -rf conftest* conftst*
9821 # Do not use the global_symbol_pipe unless it works.
9822 if test "$pipe_works" = yes; then
9825 lt_cv_sys_global_symbol_pipe=
9831 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9832 lt_cv_sys_global_symbol_to_cdecl=
9834 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9836 $as_echo "failed" >&6; }
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9839 $as_echo "ok" >&6; }
9842 # Response file support.
9843 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9844 nm_file_list_spec='@'
9845 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9846 nm_file_list_spec='@'
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9876 $as_echo_n "checking for sysroot... " >&6; }
9878 # Check whether --with-sysroot was given.
9879 if test "${with_sysroot+set}" = set; then :
9880 withval=$with_sysroot;
9887 case ${with_sysroot} in #(
9889 if test "$GCC" = yes; then
9890 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9894 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
9900 $as_echo "${with_sysroot}" >&6; }
9901 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9906 $as_echo "${lt_sysroot:-no}" >&6; }
9912 # Check whether --enable-libtool-lock was given.
9913 if test "${enable_libtool_lock+set}" = set; then :
9914 enableval=$enable_libtool_lock;
9917 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9919 # Some flags need to be propagated to the compiler or linker for good
9923 # Find out which ABI we are using.
9924 echo 'int i;' > conftest.$ac_ext
9925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9926 (eval $ac_compile) 2>&5
9928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9929 test $ac_status = 0; }; then
9930 case `/usr/bin/file conftest.$ac_objext` in
9942 # Find out which ABI we are using.
9943 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9945 (eval $ac_compile) 2>&5
9947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9948 test $ac_status = 0; }; then
9949 if test "$lt_cv_prog_gnu_ld" = yes; then
9950 case `/usr/bin/file conftest.$ac_objext` in
9952 LD="${LD-ld} -melf32bsmip"
9955 LD="${LD-ld} -melf32bmipn32"
9958 LD="${LD-ld} -melf64bmip"
9962 case `/usr/bin/file conftest.$ac_objext` in
9978 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9979 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9980 # Find out which ABI we are using.
9981 echo 'int i;' > conftest.$ac_ext
9982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9983 (eval $ac_compile) 2>&5
9985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9986 test $ac_status = 0; }; then
9987 case `/usr/bin/file conftest.o` in
9990 x86_64-*kfreebsd*-gnu)
9991 LD="${LD-ld} -m elf_i386_fbsd"
9994 case `/usr/bin/file conftest.o` in
9996 LD="${LD-ld} -m elf32_x86_64"
9999 LD="${LD-ld} -m elf_i386"
10003 ppc64-*linux*|powerpc64-*linux*)
10004 LD="${LD-ld} -m elf32ppclinux"
10007 LD="${LD-ld} -m elf_s390"
10010 LD="${LD-ld} -m elf32_sparc"
10016 x86_64-*kfreebsd*-gnu)
10017 LD="${LD-ld} -m elf_x86_64_fbsd"
10020 LD="${LD-ld} -m elf_x86_64"
10022 ppc*-*linux*|powerpc*-*linux*)
10023 LD="${LD-ld} -m elf64ppc"
10025 s390*-*linux*|s390*-*tpf*)
10026 LD="${LD-ld} -m elf64_s390"
10029 LD="${LD-ld} -m elf64_sparc"
10039 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10040 SAVE_CFLAGS="$CFLAGS"
10041 CFLAGS="$CFLAGS -belf"
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10043 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10044 if ${lt_cv_cc_needs_belf+:} false; then :
10045 $as_echo_n "(cached) " >&6
10048 ac_cpp='$CPP $CPPFLAGS'
10049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10054 /* end confdefs.h. */
10063 if ac_fn_c_try_link "$LINENO"; then :
10064 lt_cv_cc_needs_belf=yes
10066 lt_cv_cc_needs_belf=no
10068 rm -f core conftest.err conftest.$ac_objext \
10069 conftest$ac_exeext conftest.$ac_ext
10071 ac_cpp='$CPP $CPPFLAGS'
10072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10078 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10079 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10080 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10081 CFLAGS="$SAVE_CFLAGS"
10085 # Find out which ABI we are using.
10086 echo 'int i;' > conftest.$ac_ext
10087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10088 (eval $ac_compile) 2>&5
10090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10091 test $ac_status = 0; }; then
10092 case `/usr/bin/file conftest.o` in
10094 case $lt_cv_prog_gnu_ld in
10098 LD="${LD-ld} -m elf_x86_64"
10101 LD="${LD-ld} -m elf64_sparc"
10104 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10105 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10110 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10122 need_locks="$enable_libtool_lock"
10124 if test -n "$ac_tool_prefix"; then
10125 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10126 set dummy ${ac_tool_prefix}mt; ac_word=$2
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10128 $as_echo_n "checking for $ac_word... " >&6; }
10129 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10130 $as_echo_n "(cached) " >&6
10132 if test -n "$MANIFEST_TOOL"; then
10133 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10136 for as_dir in $PATH
10139 test -z "$as_dir" && as_dir=.
10140 for ac_exec_ext in '' $ac_executable_extensions; do
10141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10142 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10152 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10153 if test -n "$MANIFEST_TOOL"; then
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10155 $as_echo "$MANIFEST_TOOL" >&6; }
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10158 $as_echo "no" >&6; }
10163 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10164 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10165 # Extract the first word of "mt", so it can be a program name with args.
10166 set dummy mt; ac_word=$2
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10168 $as_echo_n "checking for $ac_word... " >&6; }
10169 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10170 $as_echo_n "(cached) " >&6
10172 if test -n "$ac_ct_MANIFEST_TOOL"; then
10173 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10176 for as_dir in $PATH
10179 test -z "$as_dir" && as_dir=.
10180 for ac_exec_ext in '' $ac_executable_extensions; do
10181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10182 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10192 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10193 if test -n "$ac_ct_MANIFEST_TOOL"; then
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10195 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10198 $as_echo "no" >&6; }
10201 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10204 case $cross_compiling:$ac_tool_warned in
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10208 ac_tool_warned=yes ;;
10210 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10213 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10216 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10218 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10219 if ${lt_cv_path_mainfest_tool+:} false; then :
10220 $as_echo_n "(cached) " >&6
10222 lt_cv_path_mainfest_tool=no
10223 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10224 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10225 cat conftest.err >&5
10226 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10227 lt_cv_path_mainfest_tool=yes
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10232 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10233 if test "x$lt_cv_path_mainfest_tool" != xyes; then
10243 rhapsody* | darwin*)
10244 if test -n "$ac_tool_prefix"; then
10245 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10246 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10248 $as_echo_n "checking for $ac_word... " >&6; }
10249 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10250 $as_echo_n "(cached) " >&6
10252 if test -n "$DSYMUTIL"; then
10253 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10256 for as_dir in $PATH
10259 test -z "$as_dir" && as_dir=.
10260 for ac_exec_ext in '' $ac_executable_extensions; do
10261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10262 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10272 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10273 if test -n "$DSYMUTIL"; then
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10275 $as_echo "$DSYMUTIL" >&6; }
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10278 $as_echo "no" >&6; }
10283 if test -z "$ac_cv_prog_DSYMUTIL"; then
10284 ac_ct_DSYMUTIL=$DSYMUTIL
10285 # Extract the first word of "dsymutil", so it can be a program name with args.
10286 set dummy dsymutil; ac_word=$2
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10288 $as_echo_n "checking for $ac_word... " >&6; }
10289 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10290 $as_echo_n "(cached) " >&6
10292 if test -n "$ac_ct_DSYMUTIL"; then
10293 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10296 for as_dir in $PATH
10299 test -z "$as_dir" && as_dir=.
10300 for ac_exec_ext in '' $ac_executable_extensions; do
10301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10302 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10312 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10313 if test -n "$ac_ct_DSYMUTIL"; then
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10315 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318 $as_echo "no" >&6; }
10321 if test "x$ac_ct_DSYMUTIL" = x; then
10324 case $cross_compiling:$ac_tool_warned in
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10328 ac_tool_warned=yes ;;
10330 DSYMUTIL=$ac_ct_DSYMUTIL
10333 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10336 if test -n "$ac_tool_prefix"; then
10337 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10338 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10340 $as_echo_n "checking for $ac_word... " >&6; }
10341 if ${ac_cv_prog_NMEDIT+:} false; then :
10342 $as_echo_n "(cached) " >&6
10344 if test -n "$NMEDIT"; then
10345 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10348 for as_dir in $PATH
10351 test -z "$as_dir" && as_dir=.
10352 for ac_exec_ext in '' $ac_executable_extensions; do
10353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10354 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10364 NMEDIT=$ac_cv_prog_NMEDIT
10365 if test -n "$NMEDIT"; then
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10367 $as_echo "$NMEDIT" >&6; }
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10370 $as_echo "no" >&6; }
10375 if test -z "$ac_cv_prog_NMEDIT"; then
10376 ac_ct_NMEDIT=$NMEDIT
10377 # Extract the first word of "nmedit", so it can be a program name with args.
10378 set dummy nmedit; ac_word=$2
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10380 $as_echo_n "checking for $ac_word... " >&6; }
10381 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10382 $as_echo_n "(cached) " >&6
10384 if test -n "$ac_ct_NMEDIT"; then
10385 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10388 for as_dir in $PATH
10391 test -z "$as_dir" && as_dir=.
10392 for ac_exec_ext in '' $ac_executable_extensions; do
10393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10394 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10404 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10405 if test -n "$ac_ct_NMEDIT"; then
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10407 $as_echo "$ac_ct_NMEDIT" >&6; }
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10410 $as_echo "no" >&6; }
10413 if test "x$ac_ct_NMEDIT" = x; then
10416 case $cross_compiling:$ac_tool_warned in
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10420 ac_tool_warned=yes ;;
10422 NMEDIT=$ac_ct_NMEDIT
10425 NMEDIT="$ac_cv_prog_NMEDIT"
10428 if test -n "$ac_tool_prefix"; then
10429 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10430 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10432 $as_echo_n "checking for $ac_word... " >&6; }
10433 if ${ac_cv_prog_LIPO+:} false; then :
10434 $as_echo_n "(cached) " >&6
10436 if test -n "$LIPO"; then
10437 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10440 for as_dir in $PATH
10443 test -z "$as_dir" && as_dir=.
10444 for ac_exec_ext in '' $ac_executable_extensions; do
10445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10446 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10456 LIPO=$ac_cv_prog_LIPO
10457 if test -n "$LIPO"; then
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10459 $as_echo "$LIPO" >&6; }
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10462 $as_echo "no" >&6; }
10467 if test -z "$ac_cv_prog_LIPO"; then
10469 # Extract the first word of "lipo", so it can be a program name with args.
10470 set dummy lipo; ac_word=$2
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10472 $as_echo_n "checking for $ac_word... " >&6; }
10473 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10474 $as_echo_n "(cached) " >&6
10476 if test -n "$ac_ct_LIPO"; then
10477 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10480 for as_dir in $PATH
10483 test -z "$as_dir" && as_dir=.
10484 for ac_exec_ext in '' $ac_executable_extensions; do
10485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10486 ac_cv_prog_ac_ct_LIPO="lipo"
10487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10496 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10497 if test -n "$ac_ct_LIPO"; then
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10499 $as_echo "$ac_ct_LIPO" >&6; }
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10502 $as_echo "no" >&6; }
10505 if test "x$ac_ct_LIPO" = x; then
10508 case $cross_compiling:$ac_tool_warned in
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10512 ac_tool_warned=yes ;;
10517 LIPO="$ac_cv_prog_LIPO"
10520 if test -n "$ac_tool_prefix"; then
10521 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10522 set dummy ${ac_tool_prefix}otool; ac_word=$2
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10524 $as_echo_n "checking for $ac_word... " >&6; }
10525 if ${ac_cv_prog_OTOOL+:} false; then :
10526 $as_echo_n "(cached) " >&6
10528 if test -n "$OTOOL"; then
10529 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10532 for as_dir in $PATH
10535 test -z "$as_dir" && as_dir=.
10536 for ac_exec_ext in '' $ac_executable_extensions; do
10537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10538 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10548 OTOOL=$ac_cv_prog_OTOOL
10549 if test -n "$OTOOL"; then
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10551 $as_echo "$OTOOL" >&6; }
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10554 $as_echo "no" >&6; }
10559 if test -z "$ac_cv_prog_OTOOL"; then
10561 # Extract the first word of "otool", so it can be a program name with args.
10562 set dummy otool; ac_word=$2
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10564 $as_echo_n "checking for $ac_word... " >&6; }
10565 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10566 $as_echo_n "(cached) " >&6
10568 if test -n "$ac_ct_OTOOL"; then
10569 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10572 for as_dir in $PATH
10575 test -z "$as_dir" && as_dir=.
10576 for ac_exec_ext in '' $ac_executable_extensions; do
10577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10578 ac_cv_prog_ac_ct_OTOOL="otool"
10579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10588 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10589 if test -n "$ac_ct_OTOOL"; then
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10591 $as_echo "$ac_ct_OTOOL" >&6; }
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10594 $as_echo "no" >&6; }
10597 if test "x$ac_ct_OTOOL" = x; then
10600 case $cross_compiling:$ac_tool_warned in
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10604 ac_tool_warned=yes ;;
10609 OTOOL="$ac_cv_prog_OTOOL"
10612 if test -n "$ac_tool_prefix"; then
10613 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10614 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10616 $as_echo_n "checking for $ac_word... " >&6; }
10617 if ${ac_cv_prog_OTOOL64+:} false; then :
10618 $as_echo_n "(cached) " >&6
10620 if test -n "$OTOOL64"; then
10621 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10624 for as_dir in $PATH
10627 test -z "$as_dir" && as_dir=.
10628 for ac_exec_ext in '' $ac_executable_extensions; do
10629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10630 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10640 OTOOL64=$ac_cv_prog_OTOOL64
10641 if test -n "$OTOOL64"; then
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10643 $as_echo "$OTOOL64" >&6; }
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10646 $as_echo "no" >&6; }
10651 if test -z "$ac_cv_prog_OTOOL64"; then
10652 ac_ct_OTOOL64=$OTOOL64
10653 # Extract the first word of "otool64", so it can be a program name with args.
10654 set dummy otool64; ac_word=$2
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10656 $as_echo_n "checking for $ac_word... " >&6; }
10657 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10658 $as_echo_n "(cached) " >&6
10660 if test -n "$ac_ct_OTOOL64"; then
10661 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10664 for as_dir in $PATH
10667 test -z "$as_dir" && as_dir=.
10668 for ac_exec_ext in '' $ac_executable_extensions; do
10669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10670 ac_cv_prog_ac_ct_OTOOL64="otool64"
10671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10680 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10681 if test -n "$ac_ct_OTOOL64"; then
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10683 $as_echo "$ac_ct_OTOOL64" >&6; }
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10686 $as_echo "no" >&6; }
10689 if test "x$ac_ct_OTOOL64" = x; then
10692 case $cross_compiling:$ac_tool_warned in
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10696 ac_tool_warned=yes ;;
10698 OTOOL64=$ac_ct_OTOOL64
10701 OTOOL64="$ac_cv_prog_OTOOL64"
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10731 $as_echo_n "checking for -single_module linker flag... " >&6; }
10732 if ${lt_cv_apple_cc_single_mod+:} false; then :
10733 $as_echo_n "(cached) " >&6
10735 lt_cv_apple_cc_single_mod=no
10736 if test -z "${LT_MULTI_MODULE}"; then
10737 # By default we will add the -single_module flag. You can override
10738 # by either setting the environment variable LT_MULTI_MODULE
10739 # non-empty at configure time, or by adding -multi_module to the
10741 rm -rf libconftest.dylib*
10742 echo "int foo(void){return 1;}" > conftest.c
10743 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10744 -dynamiclib -Wl,-single_module conftest.c" >&5
10745 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10746 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10748 # If there is a non-empty error log, and "single_module"
10749 # appears in it, assume the flag caused a linker warning
10750 if test -s conftest.err && $GREP single_module conftest.err; then
10751 cat conftest.err >&5
10752 # Otherwise, if the output was created with a 0 exit code from
10753 # the compiler, it worked.
10754 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
10755 lt_cv_apple_cc_single_mod=yes
10757 cat conftest.err >&5
10759 rm -rf libconftest.dylib*
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10764 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10767 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10768 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10769 $as_echo_n "(cached) " >&6
10771 lt_cv_ld_exported_symbols_list=no
10772 save_LDFLAGS=$LDFLAGS
10773 echo "_main" > conftest.sym
10774 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10776 /* end confdefs.h. */
10785 if ac_fn_c_try_link "$LINENO"; then :
10786 lt_cv_ld_exported_symbols_list=yes
10788 lt_cv_ld_exported_symbols_list=no
10790 rm -f core conftest.err conftest.$ac_objext \
10791 conftest$ac_exeext conftest.$ac_ext
10792 LDFLAGS="$save_LDFLAGS"
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10796 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10799 $as_echo_n "checking for -force_load linker flag... " >&6; }
10800 if ${lt_cv_ld_force_load+:} false; then :
10801 $as_echo_n "(cached) " >&6
10803 lt_cv_ld_force_load=no
10804 cat > conftest.c << _LT_EOF
10805 int forced_loaded() { return 2;}
10807 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10808 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10809 echo "$AR cru libconftest.a conftest.o" >&5
10810 $AR cru libconftest.a conftest.o 2>&5
10811 echo "$RANLIB libconftest.a" >&5
10812 $RANLIB libconftest.a 2>&5
10813 cat > conftest.c << _LT_EOF
10814 int main() { return 0;}
10816 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10817 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10819 if test -s conftest.err && $GREP force_load conftest.err; then
10820 cat conftest.err >&5
10821 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
10822 lt_cv_ld_force_load=yes
10824 cat conftest.err >&5
10826 rm -f conftest.err libconftest.a conftest conftest.c
10827 rm -rf conftest.dSYM
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10831 $as_echo "$lt_cv_ld_force_load" >&6; }
10833 rhapsody* | darwin1.[012])
10834 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10836 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10837 darwin*) # darwin 5.x on
10838 # if running on 10.5 or later, the deployment target defaults
10839 # to the OS version, if on x86, and 10.4, the deployment
10840 # target defaults to 10.4. Don't you love it?
10841 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10842 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10843 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10845 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10847 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10851 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10852 _lt_dar_single_mod='$single_module'
10854 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10855 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10857 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10859 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10860 _lt_dsymutil='~$DSYMUTIL $lib || :'
10867 for ac_header in dlfcn.h
10869 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10871 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10872 cat >>confdefs.h <<_ACEOF
10873 #define HAVE_DLFCN_H 1
10880 # ------------------------------------ #
10881 # Determine libtool default behavior #
10882 # ------------------------------------ #
10885 # Default behavior is to enable shared and static libraries on systems
10886 # where libtool knows how to build both library versions, and does not
10887 # require separate configuration and build runs for each flavor.
10890 xc_lt_want_enable_shared='yes'
10891 xc_lt_want_enable_static='yes'
10894 # User may have disabled shared or static libraries.
10896 case "x$enable_shared" in # (
10898 xc_lt_want_enable_shared='no'
10901 case "x$enable_static" in # (
10903 xc_lt_want_enable_static='no'
10906 if test "x$xc_lt_want_enable_shared" = 'xno' &&
10907 test "x$xc_lt_want_enable_static" = 'xno'; then
10908 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
10912 # Default behavior on systems that require independent configuration
10913 # and build runs for shared and static is to enable shared libraries
10914 # and disable static ones. On these systems option '--disable-shared'
10915 # must be used in order to build a proper static library.
10918 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
10919 test "x$xc_lt_want_enable_static" = 'xyes'; then
10920 case $host_os in # (
10921 mingw* | pw32* | cegcc* | os2* | aix*)
10922 xc_lt_want_enable_static='no'
10928 # Make libtool aware of current shared and static library preferences
10929 # taking in account that, depending on host characteristics, libtool
10930 # may modify these option preferences later in this configure script.
10933 enable_shared=$xc_lt_want_enable_shared
10934 enable_static=$xc_lt_want_enable_static
10937 # Default behavior is to build PIC objects for shared libraries and
10938 # non-PIC objects for static libraries.
10941 xc_lt_want_with_pic='default'
10944 # User may have specified PIC preference.
10947 case "x$with_pic" in # ((
10949 xc_lt_want_with_pic='no'
10952 xc_lt_want_with_pic='yes'
10957 # Default behavior on some systems where building a shared library out
10958 # of non-PIC compiled objects will fail with following linker error
10959 # "relocation R_X86_64_32 can not be used when making a shared object"
10960 # is to build PIC objects even for static libraries. This behavior may
10961 # be overriden using 'configure --disable-shared --without-pic'.
10964 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
10965 case $host_cpu in # (
10966 x86_64 | amd64 | ia64)
10967 case $host_os in # (
10969 xc_lt_want_with_pic='yes'
10977 # Make libtool aware of current PIC preference taking in account that,
10978 # depending on host characteristics, libtool may modify PIC default
10979 # behavior to fit host system idiosyncrasies later in this script.
10982 with_pic=$xc_lt_want_with_pic
10984 ## ----------------------- ##
10985 ## Start of libtool code ##
10986 ## ----------------------- ##
10992 enable_win32_dll=yes
10995 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10996 if test -n "$ac_tool_prefix"; then
10997 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10998 set dummy ${ac_tool_prefix}as; ac_word=$2
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11000 $as_echo_n "checking for $ac_word... " >&6; }
11001 if ${ac_cv_prog_AS+:} false; then :
11002 $as_echo_n "(cached) " >&6
11004 if test -n "$AS"; then
11005 ac_cv_prog_AS="$AS" # Let the user override the test.
11007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11008 for as_dir in $PATH
11011 test -z "$as_dir" && as_dir=.
11012 for ac_exec_ext in '' $ac_executable_extensions; do
11013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11014 ac_cv_prog_AS="${ac_tool_prefix}as"
11015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11025 if test -n "$AS"; then
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11027 $as_echo "$AS" >&6; }
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11030 $as_echo "no" >&6; }
11035 if test -z "$ac_cv_prog_AS"; then
11037 # Extract the first word of "as", so it can be a program name with args.
11038 set dummy as; ac_word=$2
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11040 $as_echo_n "checking for $ac_word... " >&6; }
11041 if ${ac_cv_prog_ac_ct_AS+:} false; then :
11042 $as_echo_n "(cached) " >&6
11044 if test -n "$ac_ct_AS"; then
11045 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11048 for as_dir in $PATH
11051 test -z "$as_dir" && as_dir=.
11052 for ac_exec_ext in '' $ac_executable_extensions; do
11053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11054 ac_cv_prog_ac_ct_AS="as"
11055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11064 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11065 if test -n "$ac_ct_AS"; then
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11067 $as_echo "$ac_ct_AS" >&6; }
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11070 $as_echo "no" >&6; }
11073 if test "x$ac_ct_AS" = x; then
11076 case $cross_compiling:$ac_tool_warned in
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11080 ac_tool_warned=yes ;;
11085 AS="$ac_cv_prog_AS"
11088 if test -n "$ac_tool_prefix"; then
11089 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11090 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11092 $as_echo_n "checking for $ac_word... " >&6; }
11093 if ${ac_cv_prog_DLLTOOL+:} false; then :
11094 $as_echo_n "(cached) " >&6
11096 if test -n "$DLLTOOL"; then
11097 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11100 for as_dir in $PATH
11103 test -z "$as_dir" && as_dir=.
11104 for ac_exec_ext in '' $ac_executable_extensions; do
11105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11106 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11116 DLLTOOL=$ac_cv_prog_DLLTOOL
11117 if test -n "$DLLTOOL"; then
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11119 $as_echo "$DLLTOOL" >&6; }
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11122 $as_echo "no" >&6; }
11127 if test -z "$ac_cv_prog_DLLTOOL"; then
11128 ac_ct_DLLTOOL=$DLLTOOL
11129 # Extract the first word of "dlltool", so it can be a program name with args.
11130 set dummy dlltool; ac_word=$2
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11132 $as_echo_n "checking for $ac_word... " >&6; }
11133 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11134 $as_echo_n "(cached) " >&6
11136 if test -n "$ac_ct_DLLTOOL"; then
11137 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11140 for as_dir in $PATH
11143 test -z "$as_dir" && as_dir=.
11144 for ac_exec_ext in '' $ac_executable_extensions; do
11145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11146 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11156 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11157 if test -n "$ac_ct_DLLTOOL"; then
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11159 $as_echo "$ac_ct_DLLTOOL" >&6; }
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11162 $as_echo "no" >&6; }
11165 if test "x$ac_ct_DLLTOOL" = x; then
11168 case $cross_compiling:$ac_tool_warned in
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11172 ac_tool_warned=yes ;;
11174 DLLTOOL=$ac_ct_DLLTOOL
11177 DLLTOOL="$ac_cv_prog_DLLTOOL"
11180 if test -n "$ac_tool_prefix"; then
11181 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11182 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11184 $as_echo_n "checking for $ac_word... " >&6; }
11185 if ${ac_cv_prog_OBJDUMP+:} false; then :
11186 $as_echo_n "(cached) " >&6
11188 if test -n "$OBJDUMP"; then
11189 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11192 for as_dir in $PATH
11195 test -z "$as_dir" && as_dir=.
11196 for ac_exec_ext in '' $ac_executable_extensions; do
11197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11198 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11208 OBJDUMP=$ac_cv_prog_OBJDUMP
11209 if test -n "$OBJDUMP"; then
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11211 $as_echo "$OBJDUMP" >&6; }
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11214 $as_echo "no" >&6; }
11219 if test -z "$ac_cv_prog_OBJDUMP"; then
11220 ac_ct_OBJDUMP=$OBJDUMP
11221 # Extract the first word of "objdump", so it can be a program name with args.
11222 set dummy objdump; ac_word=$2
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11224 $as_echo_n "checking for $ac_word... " >&6; }
11225 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11226 $as_echo_n "(cached) " >&6
11228 if test -n "$ac_ct_OBJDUMP"; then
11229 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11232 for as_dir in $PATH
11235 test -z "$as_dir" && as_dir=.
11236 for ac_exec_ext in '' $ac_executable_extensions; do
11237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11238 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11248 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11249 if test -n "$ac_ct_OBJDUMP"; then
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11251 $as_echo "$ac_ct_OBJDUMP" >&6; }
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11254 $as_echo "no" >&6; }
11257 if test "x$ac_ct_OBJDUMP" = x; then
11260 case $cross_compiling:$ac_tool_warned in
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11264 ac_tool_warned=yes ;;
11266 OBJDUMP=$ac_ct_OBJDUMP
11269 OBJDUMP="$ac_cv_prog_OBJDUMP"
11275 test -z "$AS" && AS=as
11281 test -z "$DLLTOOL" && DLLTOOL=dlltool
11287 test -z "$OBJDUMP" && OBJDUMP=objdump
11299 # Check whether --enable-shared was given.
11300 if test "${enable_shared+set}" = set; then :
11301 enableval=$enable_shared; p=${PACKAGE-default}
11303 yes) enable_shared=yes ;;
11304 no) enable_shared=no ;;
11307 # Look at the argument we got. We use all the common list separators.
11308 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11309 for pkg in $enableval; do
11311 if test "X$pkg" = "X$p"; then
11330 # Check whether --enable-static was given.
11331 if test "${enable_static+set}" = set; then :
11332 enableval=$enable_static; p=${PACKAGE-default}
11334 yes) enable_static=yes ;;
11335 no) enable_static=no ;;
11338 # Look at the argument we got. We use all the common list separators.
11339 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11340 for pkg in $enableval; do
11342 if test "X$pkg" = "X$p"; then
11362 # Check whether --with-pic was given.
11363 if test "${with_pic+set}" = set; then :
11364 withval=$with_pic; lt_p=${PACKAGE-default}
11366 yes|no) pic_mode=$withval ;;
11369 # Look at the argument we got. We use all the common list separators.
11370 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11371 for lt_pkg in $withval; do
11373 if test "X$lt_pkg" = "X$lt_p"; then
11385 test -z "$pic_mode" && pic_mode=default
11393 # Check whether --enable-fast-install was given.
11394 if test "${enable_fast_install+set}" = set; then :
11395 enableval=$enable_fast_install; p=${PACKAGE-default}
11397 yes) enable_fast_install=yes ;;
11398 no) enable_fast_install=no ;;
11400 enable_fast_install=no
11401 # Look at the argument we got. We use all the common list separators.
11402 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11403 for pkg in $enableval; do
11405 if test "X$pkg" = "X$p"; then
11406 enable_fast_install=yes
11413 enable_fast_install=yes
11426 # This can be used to rebuild libtool when needed
11427 LIBTOOL_DEPS="$ltmain"
11429 # Always use our own libtool.
11430 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11461 test -z "$LN_S" && LN_S="ln -s"
11476 if test -n "${ZSH_VERSION+set}" ; then
11477 setopt NO_GLOB_SUBST
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11481 $as_echo_n "checking for objdir... " >&6; }
11482 if ${lt_cv_objdir+:} false; then :
11483 $as_echo_n "(cached) " >&6
11485 rm -f .libs 2>/dev/null
11486 mkdir .libs 2>/dev/null
11487 if test -d .libs; then
11490 # MS-DOS does not allow filenames that begin with a dot.
11493 rmdir .libs 2>/dev/null
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11496 $as_echo "$lt_cv_objdir" >&6; }
11497 objdir=$lt_cv_objdir
11503 cat >>confdefs.h <<_ACEOF
11504 #define LT_OBJDIR "$lt_cv_objdir/"
11512 # AIX sometimes has problems with the GCC collect2 program. For some
11513 # reason, if we set the COLLECT_NAMES environment variable, the problems
11514 # vanish in a puff of smoke.
11515 if test "X${COLLECT_NAMES+set}" != Xset; then
11517 export COLLECT_NAMES
11522 # Global variables:
11524 can_build_shared=yes
11526 # All known linkers require a `.a' archive for static linking (except MSVC,
11527 # which needs '.lib').
11530 with_gnu_ld="$lt_cv_prog_gnu_ld"
11533 old_CFLAGS="$CFLAGS"
11535 # Set sane defaults for various variables
11536 test -z "$CC" && CC=cc
11537 test -z "$LTCC" && LTCC=$CC
11538 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11539 test -z "$LD" && LD=ld
11540 test -z "$ac_objext" && ac_objext=o
11542 for cc_temp in $compiler""; do
11544 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11545 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11550 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11553 # Only perform the check for file, if the check method requires it
11554 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11555 case $deplibs_check_method in
11557 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11559 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11560 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11561 $as_echo_n "(cached) " >&6
11565 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11568 lt_save_MAGIC_CMD="$MAGIC_CMD"
11569 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11570 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11571 for ac_dir in $ac_dummy; do
11573 test -z "$ac_dir" && ac_dir=.
11574 if test -f $ac_dir/${ac_tool_prefix}file; then
11575 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11576 if test -n "$file_magic_test_file"; then
11577 case $deplibs_check_method in
11579 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11580 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11581 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11582 $EGREP "$file_magic_regex" > /dev/null; then
11587 *** Warning: the command libtool uses to detect shared libraries,
11588 *** $file_magic_cmd, produces output that libtool cannot recognize.
11589 *** The result is that libtool may fail to recognize shared libraries
11590 *** as such. This will affect the creation of libtool libraries that
11591 *** depend on shared libraries, but programs linked with such libtool
11592 *** libraries will work regardless of this problem. Nevertheless, you
11593 *** may want to report the problem to your system manager and/or to
11594 *** bug-libtool@gnu.org
11604 MAGIC_CMD="$lt_save_MAGIC_CMD"
11609 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11610 if test -n "$MAGIC_CMD"; then
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11612 $as_echo "$MAGIC_CMD" >&6; }
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11615 $as_echo "no" >&6; }
11622 if test -z "$lt_cv_path_MAGIC_CMD"; then
11623 if test -n "$ac_tool_prefix"; then
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11625 $as_echo_n "checking for file... " >&6; }
11626 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11627 $as_echo_n "(cached) " >&6
11631 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11634 lt_save_MAGIC_CMD="$MAGIC_CMD"
11635 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11636 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11637 for ac_dir in $ac_dummy; do
11639 test -z "$ac_dir" && ac_dir=.
11640 if test -f $ac_dir/file; then
11641 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11642 if test -n "$file_magic_test_file"; then
11643 case $deplibs_check_method in
11645 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11646 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11647 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11648 $EGREP "$file_magic_regex" > /dev/null; then
11653 *** Warning: the command libtool uses to detect shared libraries,
11654 *** $file_magic_cmd, produces output that libtool cannot recognize.
11655 *** The result is that libtool may fail to recognize shared libraries
11656 *** as such. This will affect the creation of libtool libraries that
11657 *** depend on shared libraries, but programs linked with such libtool
11658 *** libraries will work regardless of this problem. Nevertheless, you
11659 *** may want to report the problem to your system manager and/or to
11660 *** bug-libtool@gnu.org
11670 MAGIC_CMD="$lt_save_MAGIC_CMD"
11675 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11676 if test -n "$MAGIC_CMD"; then
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11678 $as_echo "$MAGIC_CMD" >&6; }
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11681 $as_echo "no" >&6; }
11694 # Use C for the default configuration in the libtool script
11698 ac_cpp='$CPP $CPPFLAGS'
11699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11704 # Source file extension for C test sources.
11707 # Object file extension for compiled C test sources.
11711 # Code to be used in simple compile tests
11712 lt_simple_compile_test_code="int some_variable = 0;"
11714 # Code to be used in simple link tests
11715 lt_simple_link_test_code='int main(){return(0);}'
11723 # If no C compiler was specified, use CC.
11726 # If no C compiler flags were specified, use CFLAGS.
11727 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11729 # Allow CC to be a program name with arguments.
11732 # Save the default compiler, since it gets overwritten when the other
11733 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11734 compiler_DEFAULT=$CC
11736 # save warnings/boilerplate of simple test code
11737 ac_outfile=conftest.$ac_objext
11738 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11739 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11740 _lt_compiler_boilerplate=`cat conftest.err`
11743 ac_outfile=conftest.$ac_objext
11744 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11745 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11746 _lt_linker_boilerplate=`cat conftest.err`
11751 ## There is no encapsulation within the following macros, do not change
11752 ## the running order or otherwise move them around unless you know exactly
11753 ## what you are doing...
11754 if test -n "$compiler"; then
11756 lt_prog_compiler_no_builtin_flag=
11758 if test "$GCC" = yes; then
11759 case $cc_basename in
11761 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11763 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11767 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11768 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11769 $as_echo_n "(cached) " >&6
11771 lt_cv_prog_compiler_rtti_exceptions=no
11772 ac_outfile=conftest.$ac_objext
11773 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11774 lt_compiler_flag="-fno-rtti -fno-exceptions"
11775 # Insert the option either (1) after the last *FLAGS variable, or
11776 # (2) before a word containing "conftest.", or (3) at the end.
11777 # Note that $ac_compile itself does not contain backslashes and begins
11778 # with a dollar sign (not a hyphen), so the echo should work correctly.
11779 # The option is referenced via a variable to avoid confusing sed.
11780 lt_compile=`echo "$ac_compile" | $SED \
11781 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11782 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11783 -e 's:$: $lt_compiler_flag:'`
11784 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11785 (eval "$lt_compile" 2>conftest.err)
11787 cat conftest.err >&5
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 if (exit $ac_status) && test -s "$ac_outfile"; then
11790 # The compiler can only warn and ignore the option if not recognized
11791 # So say no if there are warnings other than the usual output.
11792 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11793 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11794 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11795 lt_cv_prog_compiler_rtti_exceptions=yes
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11802 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11804 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11805 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11817 lt_prog_compiler_wl=
11818 lt_prog_compiler_pic=
11819 lt_prog_compiler_static=
11822 if test "$GCC" = yes; then
11823 lt_prog_compiler_wl='-Wl,'
11824 lt_prog_compiler_static='-static'
11828 # All AIX code is PIC.
11829 if test "$host_cpu" = ia64; then
11830 # AIX 5 now supports IA64 processor
11831 lt_prog_compiler_static='-Bstatic'
11838 # see comment about AmigaOS4 .so support
11839 lt_prog_compiler_pic='-fPIC'
11842 # FIXME: we need at least 68020 code to build shared libraries, but
11843 # adding the `-m68020' flag to GCC prevents building anything better,
11845 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11850 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11851 # PIC is the default for these OSes.
11854 mingw* | cygwin* | pw32* | os2* | cegcc*)
11855 # This hack is so that the source file can tell whether it is being
11856 # built for inclusion in a dll (and should export symbols for example).
11857 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11858 # (--disable-auto-import) libraries
11859 lt_prog_compiler_pic='-DDLL_EXPORT'
11862 darwin* | rhapsody*)
11863 # PIC is the default on this platform
11864 # Common symbols not allowed in MH_DYLIB files
11865 lt_prog_compiler_pic='-fno-common'
11869 # PIC is the default for Haiku.
11870 # The "-static" flag exists, but is broken.
11871 lt_prog_compiler_static=
11875 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11876 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11877 # sets the default TLS model and affects inlining.
11883 lt_prog_compiler_pic='-fPIC'
11889 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11890 # Instead, we relocate shared libraries at runtime.
11894 # Just because we use GCC doesn't mean we suddenly get shared libraries
11895 # on systems that don't support them.
11896 lt_prog_compiler_can_build_shared=no
11901 # QNX uses GNU C++, but need to define -shared option too, otherwise
11902 # it will coredump.
11903 lt_prog_compiler_pic='-fPIC -shared'
11907 if test -d /usr/nec; then
11908 lt_prog_compiler_pic=-Kconform_pic
11913 lt_prog_compiler_pic='-fPIC'
11917 case $cc_basename in
11918 nvcc*) # Cuda Compiler Driver 2.2
11919 lt_prog_compiler_wl='-Xlinker '
11920 if test -n "$lt_prog_compiler_pic"; then
11921 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11926 # PORTME Check for flag to pass linker flags through the system compiler.
11929 lt_prog_compiler_wl='-Wl,'
11930 if test "$host_cpu" = ia64; then
11931 # AIX 5 now supports IA64 processor
11932 lt_prog_compiler_static='-Bstatic'
11934 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11938 mingw* | cygwin* | pw32* | os2* | cegcc*)
11939 # This hack is so that the source file can tell whether it is being
11940 # built for inclusion in a dll (and should export symbols for example).
11941 lt_prog_compiler_pic='-DDLL_EXPORT'
11944 hpux9* | hpux10* | hpux11*)
11945 lt_prog_compiler_wl='-Wl,'
11946 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11947 # not for PA HP-UX.
11953 lt_prog_compiler_pic='+Z'
11956 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11957 lt_prog_compiler_static='${wl}-a ${wl}archive'
11960 irix5* | irix6* | nonstopux*)
11961 lt_prog_compiler_wl='-Wl,'
11962 # PIC (with -KPIC) is the default.
11963 lt_prog_compiler_static='-non_shared'
11966 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11967 case $cc_basename in
11968 # old Intel for x86_64 which still supported -KPIC.
11970 lt_prog_compiler_wl='-Wl,'
11971 lt_prog_compiler_pic='-KPIC'
11972 lt_prog_compiler_static='-static'
11974 # icc used to be incompatible with GCC.
11975 # ICC 10 doesn't accept -KPIC any more.
11977 lt_prog_compiler_wl='-Wl,'
11978 lt_prog_compiler_pic='-fPIC'
11979 lt_prog_compiler_static='-static'
11981 # Lahey Fortran 8.1.
11983 lt_prog_compiler_wl='-Wl,'
11984 lt_prog_compiler_pic='--shared'
11985 lt_prog_compiler_static='--static'
11988 # NAG Fortran compiler
11989 lt_prog_compiler_wl='-Wl,-Wl,,'
11990 lt_prog_compiler_pic='-PIC'
11991 lt_prog_compiler_static='-Bstatic'
11993 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11994 # Portland Group compilers (*not* the Pentium gcc compiler,
11995 # which looks to be a dead project)
11996 lt_prog_compiler_wl='-Wl,'
11997 lt_prog_compiler_pic='-fpic'
11998 lt_prog_compiler_static='-Bstatic'
12001 lt_prog_compiler_wl='-Wl,'
12002 # All Alpha code is PIC.
12003 lt_prog_compiler_static='-non_shared'
12005 xl* | bgxl* | bgf* | mpixl*)
12006 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12007 lt_prog_compiler_wl='-Wl,'
12008 lt_prog_compiler_pic='-qpic'
12009 lt_prog_compiler_static='-qstaticlink'
12012 case `$CC -V 2>&1 | sed 5q` in
12013 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12014 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12015 lt_prog_compiler_pic='-KPIC'
12016 lt_prog_compiler_static='-Bstatic'
12017 lt_prog_compiler_wl=''
12019 *Sun\ F* | *Sun*Fortran*)
12020 lt_prog_compiler_pic='-KPIC'
12021 lt_prog_compiler_static='-Bstatic'
12022 lt_prog_compiler_wl='-Qoption ld '
12026 lt_prog_compiler_pic='-KPIC'
12027 lt_prog_compiler_static='-Bstatic'
12028 lt_prog_compiler_wl='-Wl,'
12030 *Intel*\ [CF]*Compiler*)
12031 lt_prog_compiler_wl='-Wl,'
12032 lt_prog_compiler_pic='-fPIC'
12033 lt_prog_compiler_static='-static'
12036 lt_prog_compiler_wl='-Wl,'
12037 lt_prog_compiler_pic='-fpic'
12038 lt_prog_compiler_static='-Bstatic'
12046 lt_prog_compiler_pic='-KPIC'
12047 lt_prog_compiler_static='-Bstatic'
12051 # QNX uses GNU C++, but need to define -shared option too, otherwise
12052 # it will coredump.
12053 lt_prog_compiler_pic='-fPIC -shared'
12056 osf3* | osf4* | osf5*)
12057 lt_prog_compiler_wl='-Wl,'
12058 # All OSF/1 code is PIC.
12059 lt_prog_compiler_static='-non_shared'
12063 lt_prog_compiler_static='-non_shared'
12067 lt_prog_compiler_pic='-KPIC'
12068 lt_prog_compiler_static='-Bstatic'
12069 case $cc_basename in
12070 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12071 lt_prog_compiler_wl='-Qoption ld ';;
12073 lt_prog_compiler_wl='-Wl,';;
12078 lt_prog_compiler_wl='-Qoption ld '
12079 lt_prog_compiler_pic='-PIC'
12080 lt_prog_compiler_static='-Bstatic'
12083 sysv4 | sysv4.2uw2* | sysv4.3*)
12084 lt_prog_compiler_wl='-Wl,'
12085 lt_prog_compiler_pic='-KPIC'
12086 lt_prog_compiler_static='-Bstatic'
12090 if test -d /usr/nec ;then
12091 lt_prog_compiler_pic='-Kconform_pic'
12092 lt_prog_compiler_static='-Bstatic'
12096 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12097 lt_prog_compiler_wl='-Wl,'
12098 lt_prog_compiler_pic='-KPIC'
12099 lt_prog_compiler_static='-Bstatic'
12103 lt_prog_compiler_wl='-Wl,'
12104 lt_prog_compiler_can_build_shared=no
12108 lt_prog_compiler_pic='-pic'
12109 lt_prog_compiler_static='-Bstatic'
12113 lt_prog_compiler_can_build_shared=no
12119 # For platforms which do not support PIC, -DPIC is meaningless:
12121 lt_prog_compiler_pic=
12124 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12129 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12130 if ${lt_cv_prog_compiler_pic+:} false; then :
12131 $as_echo_n "(cached) " >&6
12133 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12136 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12137 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12140 # Check to make sure the PIC flag actually works.
12142 if test -n "$lt_prog_compiler_pic"; then
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12144 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12145 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12146 $as_echo_n "(cached) " >&6
12148 lt_cv_prog_compiler_pic_works=no
12149 ac_outfile=conftest.$ac_objext
12150 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12151 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12152 # Insert the option either (1) after the last *FLAGS variable, or
12153 # (2) before a word containing "conftest.", or (3) at the end.
12154 # Note that $ac_compile itself does not contain backslashes and begins
12155 # with a dollar sign (not a hyphen), so the echo should work correctly.
12156 # The option is referenced via a variable to avoid confusing sed.
12157 lt_compile=`echo "$ac_compile" | $SED \
12158 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12159 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12160 -e 's:$: $lt_compiler_flag:'`
12161 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12162 (eval "$lt_compile" 2>conftest.err)
12164 cat conftest.err >&5
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 if (exit $ac_status) && test -s "$ac_outfile"; then
12167 # The compiler can only warn and ignore the option if not recognized
12168 # So say no if there are warnings other than the usual output.
12169 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12170 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12171 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12172 lt_cv_prog_compiler_pic_works=yes
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12179 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12181 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12182 case $lt_prog_compiler_pic in
12184 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12187 lt_prog_compiler_pic=
12188 lt_prog_compiler_can_build_shared=no
12204 # Check to make sure the static flag actually works.
12206 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12208 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12209 if ${lt_cv_prog_compiler_static_works+:} false; then :
12210 $as_echo_n "(cached) " >&6
12212 lt_cv_prog_compiler_static_works=no
12213 save_LDFLAGS="$LDFLAGS"
12214 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12215 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12216 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12217 # The linker can only warn and ignore the option if not recognized
12218 # So say no if there are warnings
12219 if test -s conftest.err; then
12220 # Append any errors to the config.log.
12221 cat conftest.err 1>&5
12222 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12223 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12224 if diff conftest.exp conftest.er2 >/dev/null; then
12225 lt_cv_prog_compiler_static_works=yes
12228 lt_cv_prog_compiler_static_works=yes
12232 LDFLAGS="$save_LDFLAGS"
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12236 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12238 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12241 lt_prog_compiler_static=
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12251 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12252 if ${lt_cv_prog_compiler_c_o+:} false; then :
12253 $as_echo_n "(cached) " >&6
12255 lt_cv_prog_compiler_c_o=no
12256 $RM -r conftest 2>/dev/null
12260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12262 lt_compiler_flag="-o out/conftest2.$ac_objext"
12263 # Insert the option either (1) after the last *FLAGS variable, or
12264 # (2) before a word containing "conftest.", or (3) at the end.
12265 # Note that $ac_compile itself does not contain backslashes and begins
12266 # with a dollar sign (not a hyphen), so the echo should work correctly.
12267 lt_compile=`echo "$ac_compile" | $SED \
12268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12270 -e 's:$: $lt_compiler_flag:'`
12271 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12272 (eval "$lt_compile" 2>out/conftest.err)
12274 cat out/conftest.err >&5
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12278 # The compiler can only warn and ignore the option if not recognized
12279 # So say no if there are warnings
12280 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12281 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12282 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12283 lt_cv_prog_compiler_c_o=yes
12288 # SGI C++ compiler will create directory out/ii_files/ for
12289 # template instantiation
12290 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12291 $RM out/* && rmdir out
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12298 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12306 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12307 if ${lt_cv_prog_compiler_c_o+:} false; then :
12308 $as_echo_n "(cached) " >&6
12310 lt_cv_prog_compiler_c_o=no
12311 $RM -r conftest 2>/dev/null
12315 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12317 lt_compiler_flag="-o out/conftest2.$ac_objext"
12318 # Insert the option either (1) after the last *FLAGS variable, or
12319 # (2) before a word containing "conftest.", or (3) at the end.
12320 # Note that $ac_compile itself does not contain backslashes and begins
12321 # with a dollar sign (not a hyphen), so the echo should work correctly.
12322 lt_compile=`echo "$ac_compile" | $SED \
12323 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12324 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12325 -e 's:$: $lt_compiler_flag:'`
12326 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12327 (eval "$lt_compile" 2>out/conftest.err)
12329 cat out/conftest.err >&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12333 # The compiler can only warn and ignore the option if not recognized
12334 # So say no if there are warnings
12335 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12336 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12337 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12338 lt_cv_prog_compiler_c_o=yes
12343 # SGI C++ compiler will create directory out/ii_files/ for
12344 # template instantiation
12345 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12346 $RM out/* && rmdir out
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12353 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12358 hard_links="nottested"
12359 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12360 # do not overwrite the value of need_locks provided by the user
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12362 $as_echo_n "checking if we can lock with hard links... " >&6; }
12365 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12367 ln conftest.a conftest.b 2>&5 || hard_links=no
12368 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12370 $as_echo "$hard_links" >&6; }
12371 if test "$hard_links" = no; then
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12373 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12386 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12389 allow_undefined_flag=
12390 always_export_symbols=no
12392 archive_expsym_cmds=
12393 compiler_needs_object=no
12394 enable_shared_with_static_runtimes=no
12395 export_dynamic_flag_spec=
12396 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12397 hardcode_automatic=no
12399 hardcode_direct_absolute=no
12400 hardcode_libdir_flag_spec=
12401 hardcode_libdir_separator=
12402 hardcode_minus_L=no
12403 hardcode_shlibpath_var=unsupported
12405 link_all_deplibs=unknown
12407 module_expsym_cmds=
12408 old_archive_from_new_cmds=
12409 old_archive_from_expsyms_cmds=
12410 thread_safe_flag_spec=
12411 whole_archive_flag_spec=
12412 # include_expsyms should be a list of space-separated symbols to be *always*
12413 # included in the symbol list
12415 # exclude_expsyms can be an extended regexp of symbols to exclude
12416 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12417 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12418 # as well as any symbol that contains `d'.
12419 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12420 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12421 # platforms (ab)use it in PIC code, but their linkers get confused if
12422 # the symbol is explicitly referenced. Since portable code cannot
12423 # rely on this symbol name, it's probably fine to never include it in
12424 # preloaded symbol tables.
12425 # Exclude shared library initialization/finalization symbols.
12426 extract_expsyms_cmds=
12429 cygwin* | mingw* | pw32* | cegcc*)
12430 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12431 # When not using gcc, we currently assume that we are using
12432 # Microsoft Visual C++.
12433 if test "$GCC" != yes; then
12438 # we just hope/assume this is gcc and not c89 (= MSVC++)
12444 linux* | k*bsd*-gnu | gnu*)
12445 link_all_deplibs=no
12451 # On some targets, GNU ld is compatible enough with the native linker
12452 # that we're better off using the native interface for both.
12453 lt_use_gnu_ld_interface=no
12454 if test "$with_gnu_ld" = yes; then
12457 # The AIX port of GNU ld has always aspired to compatibility
12458 # with the native linker. However, as the warning in the GNU ld
12459 # block says, versions before 2.19.5* couldn't really create working
12460 # shared libraries, regardless of the interface used.
12461 case `$LD -v 2>&1` in
12462 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12463 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12464 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12466 lt_use_gnu_ld_interface=yes
12471 lt_use_gnu_ld_interface=yes
12476 if test "$lt_use_gnu_ld_interface" = yes; then
12477 # If archive_cmds runs LD, not CC, wlarc should be empty
12480 # Set some defaults for GNU ld with shared library support. These
12481 # are reset later if shared libraries are not supported. Putting them
12482 # here allows them to be overridden if necessary.
12483 runpath_var=LD_RUN_PATH
12484 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12485 export_dynamic_flag_spec='${wl}--export-dynamic'
12486 # ancient GNU ld didn't support --whole-archive et. al.
12487 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12488 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12490 whole_archive_flag_spec=
12492 supports_anon_versioning=no
12493 case `$LD -v 2>&1` in
12494 *GNU\ gold*) supports_anon_versioning=yes ;;
12495 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12496 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12497 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12498 *\ 2.11.*) ;; # other 2.11 versions
12499 *) supports_anon_versioning=yes ;;
12502 # See if GNU ld supports shared libraries.
12505 # On AIX/PPC, the GNU linker is very broken
12506 if test "$host_cpu" != ia64; then
12510 *** Warning: the GNU linker, at least up to release 2.19, is reported
12511 *** to be unable to reliably create shared libraries on AIX.
12512 *** Therefore, libtool is disabling shared libraries support. If you
12513 *** really care for shared libraries, you may want to install binutils
12514 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12515 *** You will then need to restart the configuration process.
12524 # see comment about AmigaOS4 .so support
12525 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12526 archive_expsym_cmds=''
12529 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)'
12530 hardcode_libdir_flag_spec='-L$libdir'
12531 hardcode_minus_L=yes
12537 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12538 allow_undefined_flag=unsupported
12539 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12540 # support --undefined. This deserves some investigation. FIXME
12541 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12547 cygwin* | mingw* | pw32* | cegcc*)
12548 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12549 # as there is no search path for DLLs.
12550 hardcode_libdir_flag_spec='-L$libdir'
12551 export_dynamic_flag_spec='${wl}--export-all-symbols'
12552 allow_undefined_flag=unsupported
12553 always_export_symbols=no
12554 enable_shared_with_static_runtimes=yes
12555 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'
12556 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12558 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12559 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12560 # If the export-symbols file already is a .def file (1st line
12561 # is EXPORTS), use it as is; otherwise, prepend...
12562 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12563 cp $export_symbols $output_objdir/$soname.def;
12565 echo EXPORTS > $output_objdir/$soname.def;
12566 cat $export_symbols >> $output_objdir/$soname.def;
12568 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12575 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12576 link_all_deplibs=yes
12581 hardcode_shlibpath_var=no
12582 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12583 export_dynamic_flag_spec='${wl}-E'
12584 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12585 # Instead, shared libraries are loaded at an image base (0x10000000 by
12586 # default) and relocated if they conflict, which is a slow very memory
12587 # consuming and fragmenting process. To avoid this, we pick a random,
12588 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12589 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12590 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12591 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'
12594 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12596 if test "$host_os" = linux-dietlibc; then
12597 case $cc_basename in
12598 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12601 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12602 && test "$tmp_diet" = no
12604 tmp_addflag=' $pic_flag'
12605 tmp_sharedflag='-shared'
12606 case $cc_basename,$host_cpu in
12607 pgcc*) # Portland Group C compiler
12608 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'
12609 tmp_addflag=' $pic_flag'
12611 pgf77* | pgf90* | pgf95* | pgfortran*)
12612 # Portland Group f77 and f90 compilers
12613 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'
12614 tmp_addflag=' $pic_flag -Mnomain' ;;
12615 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12616 tmp_addflag=' -i_dynamic' ;;
12617 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12618 tmp_addflag=' -i_dynamic -nofor_main' ;;
12619 ifc* | ifort*) # Intel Fortran compiler
12620 tmp_addflag=' -nofor_main' ;;
12621 lf95*) # Lahey Fortran 8.1
12622 whole_archive_flag_spec=
12623 tmp_sharedflag='--shared' ;;
12624 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12625 tmp_sharedflag='-qmkshrobj'
12627 nvcc*) # Cuda Compiler Driver 2.2
12628 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'
12629 compiler_needs_object=yes
12632 case `$CC -V 2>&1 | sed 5q` in
12633 *Sun\ C*) # Sun C 5.9
12634 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'
12635 compiler_needs_object=yes
12636 tmp_sharedflag='-G' ;;
12637 *Sun\ F*) # Sun Fortran 8.3
12638 tmp_sharedflag='-G' ;;
12640 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12642 if test "x$supports_anon_versioning" = xyes; then
12643 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12644 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12645 echo "local: *; };" >> $output_objdir/$libname.ver~
12646 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12649 case $cc_basename in
12650 xlf* | bgf* | bgxlf* | mpixlf*)
12651 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12652 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12653 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12654 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12655 if test "x$supports_anon_versioning" = xyes; then
12656 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12657 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12658 echo "local: *; };" >> $output_objdir/$libname.ver~
12659 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12668 netbsd* | netbsdelf*-gnu)
12669 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12670 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12673 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12674 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12679 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12683 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12684 *** create shared libraries on Solaris systems. Therefore, libtool
12685 *** is disabling shared libraries support. We urge you to upgrade GNU
12686 *** binutils to release 2.9.1 or newer. Another option is to modify
12687 *** your PATH or compiler configuration so that the native linker is
12688 *** used, and then restart.
12691 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12692 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12693 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12699 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12700 case `$LD -v 2>&1` in
12701 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12705 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12706 *** reliably create shared libraries on SCO systems. Therefore, libtool
12707 *** is disabling shared libraries support. We urge you to upgrade GNU
12708 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12709 *** your PATH or compiler configuration so that the native linker is
12710 *** used, and then restart.
12715 # For security reasons, it is highly recommended that you always
12716 # use absolute paths for naming shared libraries, and exclude the
12717 # DT_RUNPATH tag from executables and libraries. But doing so
12718 # requires that you compile everything twice, which is a pain.
12719 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12720 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12721 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12722 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12731 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12733 hardcode_direct=yes
12734 hardcode_shlibpath_var=no
12738 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12739 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12740 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12747 if test "$ld_shlibs" = no; then
12749 hardcode_libdir_flag_spec=
12750 export_dynamic_flag_spec=
12751 whole_archive_flag_spec=
12754 # PORTME fill in a description of your system's linker (not GNU ld)
12757 allow_undefined_flag=unsupported
12758 always_export_symbols=yes
12759 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'
12760 # Note: this linker hardcodes the directories in LIBPATH if there
12761 # are no directories specified by -L.
12762 hardcode_minus_L=yes
12763 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12764 # Neither direct hardcoding nor static linking is supported with a
12766 hardcode_direct=unsupported
12771 if test "$host_cpu" = ia64; then
12772 # On IA64, the linker does run time linking by default, so we don't
12773 # have to do anything special.
12774 aix_use_runtimelinking=no
12775 exp_sym_flag='-Bexport'
12778 # If we're using GNU nm, then we don't want the "-C" option.
12779 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12780 # Also, AIX nm treats weak defined symbols like other global
12781 # defined symbols, whereas GNU nm marks them as "W".
12782 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12783 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'
12785 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'
12787 aix_use_runtimelinking=no
12789 # Test if we are trying to use run time linking or normal
12790 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12791 # need to do runtime linking.
12792 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12793 for ld_flag in $LDFLAGS; do
12794 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12795 aix_use_runtimelinking=yes
12802 exp_sym_flag='-bexport'
12803 no_entry_flag='-bnoentry'
12806 # When large executables or shared objects are built, AIX ld can
12807 # have problems creating the table of contents. If linking a library
12808 # or program results in "error TOC overflow" add -mminimal-toc to
12809 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12810 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12813 hardcode_direct=yes
12814 hardcode_direct_absolute=yes
12815 hardcode_libdir_separator=':'
12816 link_all_deplibs=yes
12817 file_list_spec='${wl}-f,'
12819 if test "$GCC" = yes; then
12820 case $host_os in aix4.[012]|aix4.[012].*)
12821 # We only want to do this on AIX 4.2 and lower, the check
12822 # below for broken collect2 doesn't work under 4.3+
12823 collect2name=`${CC} -print-prog-name=collect2`
12824 if test -f "$collect2name" &&
12825 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12827 # We have reworked collect2
12830 # We have old collect2
12831 hardcode_direct=unsupported
12832 # It fails to find uninstalled libraries when the uninstalled
12833 # path is not listed in the libpath. Setting hardcode_minus_L
12834 # to unsupported forces relinking
12835 hardcode_minus_L=yes
12836 hardcode_libdir_flag_spec='-L$libdir'
12837 hardcode_libdir_separator=
12841 shared_flag='-shared'
12842 if test "$aix_use_runtimelinking" = yes; then
12843 shared_flag="$shared_flag "'${wl}-G'
12845 link_all_deplibs=no
12848 if test "$host_cpu" = ia64; then
12849 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12850 # chokes on -Wl,-G. The following line is correct:
12853 if test "$aix_use_runtimelinking" = yes; then
12854 shared_flag='${wl}-G'
12856 shared_flag='${wl}-bM:SRE'
12861 export_dynamic_flag_spec='${wl}-bexpall'
12862 # It seems that -bexpall does not export symbols beginning with
12863 # underscore (_), so it is better to generate a list of symbols to export.
12864 always_export_symbols=yes
12865 if test "$aix_use_runtimelinking" = yes; then
12866 # Warning - without using the other runtime loading flags (-brtl),
12867 # -berok will link without error, but may produce a broken library.
12868 allow_undefined_flag='-berok'
12869 # Determine the default libpath from the value encoded in an
12870 # empty executable.
12871 if test "${lt_cv_aix_libpath+set}" = set; then
12872 aix_libpath=$lt_cv_aix_libpath
12874 if ${lt_cv_aix_libpath_+:} false; then :
12875 $as_echo_n "(cached) " >&6
12877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12878 /* end confdefs.h. */
12887 if ac_fn_c_try_link "$LINENO"; then :
12889 lt_aix_libpath_sed='
12890 /Import File Strings/,/^$/ {
12892 s/^0 *\([^ ]*\) *$/\1/
12896 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12897 # Check for a 64-bit object if we didn't find anything.
12898 if test -z "$lt_cv_aix_libpath_"; then
12899 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12902 rm -f core conftest.err conftest.$ac_objext \
12903 conftest$ac_exeext conftest.$ac_ext
12904 if test -z "$lt_cv_aix_libpath_"; then
12905 lt_cv_aix_libpath_="/usr/lib:/lib"
12910 aix_libpath=$lt_cv_aix_libpath_
12913 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12914 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"
12916 if test "$host_cpu" = ia64; then
12917 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12918 allow_undefined_flag="-z nodefs"
12919 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"
12921 # Determine the default libpath from the value encoded in an
12922 # empty executable.
12923 if test "${lt_cv_aix_libpath+set}" = set; then
12924 aix_libpath=$lt_cv_aix_libpath
12926 if ${lt_cv_aix_libpath_+:} false; then :
12927 $as_echo_n "(cached) " >&6
12929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12930 /* end confdefs.h. */
12939 if ac_fn_c_try_link "$LINENO"; then :
12941 lt_aix_libpath_sed='
12942 /Import File Strings/,/^$/ {
12944 s/^0 *\([^ ]*\) *$/\1/
12948 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12949 # Check for a 64-bit object if we didn't find anything.
12950 if test -z "$lt_cv_aix_libpath_"; then
12951 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12954 rm -f core conftest.err conftest.$ac_objext \
12955 conftest$ac_exeext conftest.$ac_ext
12956 if test -z "$lt_cv_aix_libpath_"; then
12957 lt_cv_aix_libpath_="/usr/lib:/lib"
12962 aix_libpath=$lt_cv_aix_libpath_
12965 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12966 # Warning - without using the other run time loading flags,
12967 # -berok will link without error, but may produce a broken library.
12968 no_undefined_flag=' ${wl}-bernotok'
12969 allow_undefined_flag=' ${wl}-berok'
12970 if test "$with_gnu_ld" = yes; then
12971 # We only use this code for GNU lds that support --whole-archive.
12972 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12974 # Exported symbols can be pulled into shared objects from archives
12975 whole_archive_flag_spec='$convenience'
12977 archive_cmds_need_lc=yes
12978 # This is similar to how AIX traditionally builds its shared libraries.
12979 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'
12987 # see comment about AmigaOS4 .so support
12988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12989 archive_expsym_cmds=''
12992 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)'
12993 hardcode_libdir_flag_spec='-L$libdir'
12994 hardcode_minus_L=yes
13000 export_dynamic_flag_spec=-rdynamic
13003 cygwin* | mingw* | pw32* | cegcc*)
13004 # When not using gcc, we currently assume that we are using
13005 # Microsoft Visual C++.
13006 # hardcode_libdir_flag_spec is actually meaningless, as there is
13007 # no search path for DLLs.
13008 case $cc_basename in
13011 hardcode_libdir_flag_spec=' '
13012 allow_undefined_flag=unsupported
13013 always_export_symbols=yes
13015 # Tell ltmain to make .lib files, not .a files.
13017 # Tell ltmain to make .dll files, not .so files.
13019 # FIXME: Setting linknames here is a bad hack.
13020 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13021 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13022 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13024 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13026 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13028 # The linker will not automatically build a static lib if we build a DLL.
13029 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13030 enable_shared_with_static_runtimes=yes
13031 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13032 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13034 old_postinstall_cmds='chmod 644 $oldlib'
13035 postlink_cmds='lt_outputfile="@OUTPUT@"~
13036 lt_tool_outputfile="@TOOL_OUTPUT@"~
13037 case $lt_outputfile in
13040 lt_outputfile="$lt_outputfile.exe"
13041 lt_tool_outputfile="$lt_tool_outputfile.exe"
13044 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13045 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13046 $RM "$lt_outputfile.manifest";
13050 # Assume MSVC wrapper
13051 hardcode_libdir_flag_spec=' '
13052 allow_undefined_flag=unsupported
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 $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13059 # The linker will automatically build a .lib file if we build a DLL.
13060 old_archive_from_new_cmds='true'
13061 # FIXME: Should let the user specify the lib program.
13062 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13063 enable_shared_with_static_runtimes=yes
13068 darwin* | rhapsody*)
13071 archive_cmds_need_lc=no
13073 hardcode_automatic=yes
13074 hardcode_shlibpath_var=unsupported
13075 if test "$lt_cv_ld_force_load" = "yes"; then
13076 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\"`'
13079 whole_archive_flag_spec=''
13081 link_all_deplibs=yes
13082 allow_undefined_flag="$_lt_dar_allow_undefined"
13083 case $cc_basename in
13084 ifort*) _lt_dar_can_shared=yes ;;
13085 *) _lt_dar_can_shared=$GCC ;;
13087 if test "$_lt_dar_can_shared" = "yes"; then
13088 output_verbose_link_cmd=func_echo_all
13089 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13090 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13091 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}"
13092 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}"
13101 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13102 hardcode_libdir_flag_spec='-L$libdir'
13103 hardcode_shlibpath_var=no
13106 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13107 # support. Future versions do this automatically, but an explicit c++rt0.o
13108 # does not break anything, and helps significantly (at the cost of a little
13111 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13112 hardcode_libdir_flag_spec='-R$libdir'
13113 hardcode_direct=yes
13114 hardcode_shlibpath_var=no
13117 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13119 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13120 hardcode_direct=yes
13121 hardcode_minus_L=yes
13122 hardcode_shlibpath_var=no
13125 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13126 freebsd* | dragonfly*)
13127 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13128 hardcode_libdir_flag_spec='-R$libdir'
13129 hardcode_direct=yes
13130 hardcode_shlibpath_var=no
13134 if test "$GCC" = yes; then
13135 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'
13137 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'
13139 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13140 hardcode_libdir_separator=:
13141 hardcode_direct=yes
13143 # hardcode_minus_L: Not really in the search PATH,
13144 # but as the default location of the library.
13145 hardcode_minus_L=yes
13146 export_dynamic_flag_spec='${wl}-E'
13150 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13151 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13153 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13155 if test "$with_gnu_ld" = no; then
13156 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13157 hardcode_libdir_separator=:
13158 hardcode_direct=yes
13159 hardcode_direct_absolute=yes
13160 export_dynamic_flag_spec='${wl}-E'
13161 # hardcode_minus_L: Not really in the search PATH,
13162 # but as the default location of the library.
13163 hardcode_minus_L=yes
13168 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13171 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13174 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13177 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13183 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13186 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13190 # Older versions of the 11.00 compiler do not understand -b yet
13191 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13193 $as_echo_n "checking if $CC understands -b... " >&6; }
13194 if ${lt_cv_prog_compiler__b+:} false; then :
13195 $as_echo_n "(cached) " >&6
13197 lt_cv_prog_compiler__b=no
13198 save_LDFLAGS="$LDFLAGS"
13199 LDFLAGS="$LDFLAGS -b"
13200 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13201 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13202 # The linker can only warn and ignore the option if not recognized
13203 # So say no if there are warnings
13204 if test -s conftest.err; then
13205 # Append any errors to the config.log.
13206 cat conftest.err 1>&5
13207 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13208 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13209 if diff conftest.exp conftest.er2 >/dev/null; then
13210 lt_cv_prog_compiler__b=yes
13213 lt_cv_prog_compiler__b=yes
13217 LDFLAGS="$save_LDFLAGS"
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13221 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13223 if test x"$lt_cv_prog_compiler__b" = xyes; then
13224 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13226 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13232 if test "$with_gnu_ld" = no; then
13233 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13234 hardcode_libdir_separator=:
13239 hardcode_shlibpath_var=no
13242 hardcode_direct=yes
13243 hardcode_direct_absolute=yes
13244 export_dynamic_flag_spec='${wl}-E'
13246 # hardcode_minus_L: Not really in the search PATH,
13247 # but as the default location of the library.
13248 hardcode_minus_L=yes
13254 irix5* | irix6* | nonstopux*)
13255 if test "$GCC" = yes; then
13256 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'
13257 # Try to use the -exported_symbol ld option, if it does not
13258 # work, assume that -exports_file does not work either and
13259 # implicitly export all symbols.
13260 # This should be the same for all languages, so no per-tag cache variable.
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13262 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13263 if ${lt_cv_irix_exported_symbol+:} false; then :
13264 $as_echo_n "(cached) " >&6
13266 save_LDFLAGS="$LDFLAGS"
13267 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13269 /* end confdefs.h. */
13270 int foo (void) { return 0; }
13272 if ac_fn_c_try_link "$LINENO"; then :
13273 lt_cv_irix_exported_symbol=yes
13275 lt_cv_irix_exported_symbol=no
13277 rm -f core conftest.err conftest.$ac_objext \
13278 conftest$ac_exeext conftest.$ac_ext
13279 LDFLAGS="$save_LDFLAGS"
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13282 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13283 if test "$lt_cv_irix_exported_symbol" = yes; then
13284 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'
13287 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'
13288 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'
13290 archive_cmds_need_lc='no'
13291 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13292 hardcode_libdir_separator=:
13294 link_all_deplibs=yes
13297 netbsd* | netbsdelf*-gnu)
13298 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13299 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13301 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13303 hardcode_libdir_flag_spec='-R$libdir'
13304 hardcode_direct=yes
13305 hardcode_shlibpath_var=no
13309 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13310 hardcode_direct=yes
13311 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13312 hardcode_libdir_separator=:
13313 hardcode_shlibpath_var=no
13320 if test -f /usr/libexec/ld.so; then
13321 hardcode_direct=yes
13322 hardcode_shlibpath_var=no
13323 hardcode_direct_absolute=yes
13324 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13325 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13326 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13327 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13328 export_dynamic_flag_spec='${wl}-E'
13331 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13332 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13333 hardcode_libdir_flag_spec='-R$libdir'
13336 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13337 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13347 hardcode_libdir_flag_spec='-L$libdir'
13348 hardcode_minus_L=yes
13349 allow_undefined_flag=unsupported
13350 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'
13351 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13355 if test "$GCC" = yes; then
13356 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13357 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'
13359 allow_undefined_flag=' -expect_unresolved \*'
13360 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'
13362 archive_cmds_need_lc='no'
13363 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13364 hardcode_libdir_separator=:
13367 osf4* | osf5*) # as osf3* with the addition of -msym flag
13368 if test "$GCC" = yes; then
13369 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13370 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'
13371 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13373 allow_undefined_flag=' -expect_unresolved \*'
13374 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'
13375 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~
13376 $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'
13378 # Both c and cxx compiler support -rpath directly
13379 hardcode_libdir_flag_spec='-rpath $libdir'
13381 archive_cmds_need_lc='no'
13382 hardcode_libdir_separator=:
13386 no_undefined_flag=' -z defs'
13387 if test "$GCC" = yes; then
13389 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13390 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13391 $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'
13393 case `$CC -V 2>&1` in
13396 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13397 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13398 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13402 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13403 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13404 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13408 hardcode_libdir_flag_spec='-R$libdir'
13409 hardcode_shlibpath_var=no
13411 solaris2.[0-5] | solaris2.[0-5].*) ;;
13413 # The compiler driver will combine and reorder linker options,
13414 # but understands `-z linker_flag'. GCC discards it without `$wl',
13415 # but is careful enough not to reorder.
13416 # Supported since Solaris 2.6 (maybe 2.5.1?)
13417 if test "$GCC" = yes; then
13418 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13420 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13424 link_all_deplibs=yes
13428 if test "x$host_vendor" = xsequent; then
13429 # Use $CC to link under sequent, because it throws in some extra .o
13430 # files that make .init and .fini sections work.
13431 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13433 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13435 hardcode_libdir_flag_spec='-L$libdir'
13436 hardcode_direct=yes
13437 hardcode_minus_L=yes
13438 hardcode_shlibpath_var=no
13442 case $host_vendor in
13444 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13445 hardcode_direct=yes # is this really true???
13448 ## LD is ld it makes a PLAMLIB
13449 ## CC just makes a GrossModule.
13450 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13451 reload_cmds='$CC -r -o $output$reload_objs'
13455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13456 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13459 runpath_var='LD_RUN_PATH'
13460 hardcode_shlibpath_var=no
13464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13465 hardcode_shlibpath_var=no
13466 export_dynamic_flag_spec='-Bexport'
13470 if test -d /usr/nec; then
13471 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13472 hardcode_shlibpath_var=no
13473 runpath_var=LD_RUN_PATH
13474 hardcode_runpath_var=yes
13479 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13480 no_undefined_flag='${wl}-z,text'
13481 archive_cmds_need_lc=no
13482 hardcode_shlibpath_var=no
13483 runpath_var='LD_RUN_PATH'
13485 if test "$GCC" = yes; then
13486 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13487 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13489 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13490 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13494 sysv5* | sco3.2v5* | sco5v6*)
13495 # Note: We can NOT use -z defs as we might desire, because we do not
13496 # link with -lc, and that would cause any symbols used from libc to
13497 # always be unresolved, which means just about no library would
13498 # ever link correctly. If we're not using GNU ld we use -z text
13499 # though, which does catch some bad symbols but isn't as heavy-handed
13501 no_undefined_flag='${wl}-z,text'
13502 allow_undefined_flag='${wl}-z,nodefs'
13503 archive_cmds_need_lc=no
13504 hardcode_shlibpath_var=no
13505 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13506 hardcode_libdir_separator=':'
13507 link_all_deplibs=yes
13508 export_dynamic_flag_spec='${wl}-Bexport'
13509 runpath_var='LD_RUN_PATH'
13511 if test "$GCC" = yes; then
13512 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13513 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13515 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13516 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13522 hardcode_libdir_flag_spec='-L$libdir'
13523 hardcode_shlibpath_var=no
13531 if test x$host_vendor = xsni; then
13533 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13534 export_dynamic_flag_spec='${wl}-Blargedynsym'
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13541 $as_echo "$ld_shlibs" >&6; }
13542 test "$ld_shlibs" = no && can_build_shared=no
13544 with_gnu_ld=$with_gnu_ld
13561 # Do we need to explicitly link libc?
13563 case "x$archive_cmds_need_lc" in
13565 # Assume -lc should be added
13566 archive_cmds_need_lc=yes
13568 if test "$enable_shared" = yes && test "$GCC" = yes; then
13569 case $archive_cmds in
13571 # FIXME: we may have to deal with multi-command sequences.
13574 # Test whether the compiler implicitly links with -lc since on some
13575 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13576 # to ld, don't add -lc before -lgcc.
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13578 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13579 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13580 $as_echo_n "(cached) " >&6
13583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13585 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13586 (eval $ac_compile) 2>&5
13588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13589 test $ac_status = 0; } 2>conftest.err; then
13592 libobjs=conftest.$ac_objext
13594 wl=$lt_prog_compiler_wl
13595 pic_flag=$lt_prog_compiler_pic
13601 lt_save_allow_undefined_flag=$allow_undefined_flag
13602 allow_undefined_flag=
13603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13604 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13607 test $ac_status = 0; }
13609 lt_cv_archive_cmds_need_lc=no
13611 lt_cv_archive_cmds_need_lc=yes
13613 allow_undefined_flag=$lt_save_allow_undefined_flag
13615 cat conftest.err 1>&5
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13621 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13622 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13781 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13783 if test "$GCC" = yes; then
13785 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13786 *) lt_awk_arg="/^libraries:/" ;;
13789 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
13790 *) lt_sed_strip_eq="s,=/,/,g" ;;
13792 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13793 case $lt_search_path_spec in
13795 # if the path contains ";" then we assume it to be the separator
13796 # otherwise default to the standard path separator (i.e. ":") - it is
13797 # assumed that no part of a normal pathname contains ";" but that should
13798 # okay in the real world where ";" in dirpaths is itself problematic.
13799 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13802 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13805 # Ok, now we have the path, separated by spaces, we can step through it
13806 # and add multilib dir if necessary.
13807 lt_tmp_lt_search_path_spec=
13808 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13809 for lt_sys_path in $lt_search_path_spec; do
13810 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13811 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13813 test -d "$lt_sys_path" && \
13814 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13817 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13818 BEGIN {RS=" "; FS="/|\n";} {
13821 for (lt_i = NF; lt_i > 0; lt_i--) {
13822 if ($lt_i != "" && $lt_i != ".") {
13823 if ($lt_i == "..") {
13826 if (lt_count == 0) {
13827 lt_foo="/" $lt_i lt_foo;
13834 if (lt_foo != "") { lt_freq[lt_foo]++; }
13835 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13837 # AWK program above erroneously prepends '/' to C:/dos/paths
13840 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13841 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
13843 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13845 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13847 library_names_spec=
13848 libname_spec='lib$name'
13852 postuninstall_cmds=
13856 shlibpath_overrides_runpath=unknown
13858 dynamic_linker="$host_os ld.so"
13859 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13860 need_lib_prefix=unknown
13861 hardcode_into_libs=no
13863 # when you set need_version to no, make sure it does not cause -set_version
13864 # flags to be left without arguments
13865 need_version=unknown
13869 version_type=linux # correct to gnu/linux during the next big refactor
13870 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13871 shlibpath_var=LIBPATH
13873 # AIX 3 has no versioning support, so we append a major version to the name.
13874 soname_spec='${libname}${release}${shared_ext}$major'
13878 version_type=linux # correct to gnu/linux during the next big refactor
13881 hardcode_into_libs=yes
13882 if test "$host_cpu" = ia64; then
13883 # AIX 5 supports IA64
13884 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13885 shlibpath_var=LD_LIBRARY_PATH
13887 # With GCC up to 2.95.x, collect2 would create an import file
13888 # for dependence libraries. The import file would start with
13889 # the line `#! .'. This would cause the generated library to
13890 # depend on `.', always an invalid library. This was fixed in
13891 # development snapshots of GCC prior to 3.0.
13893 aix4 | aix4.[01] | aix4.[01].*)
13894 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13896 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13899 can_build_shared=no
13903 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13904 # soname into executable. Probably we can add versioning support to
13905 # collect2, so additional links can be useful in future.
13906 if test "$aix_use_runtimelinking" = yes; then
13907 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13908 # instead of lib<name>.a to let people know that these are not
13909 # typical AIX shared libraries.
13910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13912 # We preserve .a as extension for shared libraries through AIX4.2
13913 # and later when we are not doing run time linking.
13914 library_names_spec='${libname}${release}.a $libname.a'
13915 soname_spec='${libname}${release}${shared_ext}$major'
13917 shlibpath_var=LIBPATH
13924 # Since July 2007 AmigaOS4 officially supports .so libraries.
13925 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13929 library_names_spec='$libname.ixlibrary $libname.a'
13930 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13931 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'
13937 library_names_spec='${libname}${shared_ext}'
13938 dynamic_linker="$host_os ld.so"
13939 shlibpath_var=LIBRARY_PATH
13943 version_type=linux # correct to gnu/linux during the next big refactor
13945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13946 soname_spec='${libname}${release}${shared_ext}$major'
13947 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13948 shlibpath_var=LD_LIBRARY_PATH
13949 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13950 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13951 # the default ld.so.conf also contains /usr/contrib/lib and
13952 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13953 # libtool to hard-code these into programs
13956 cygwin* | mingw* | pw32* | cegcc*)
13957 version_type=windows
13962 case $GCC,$cc_basename in
13965 library_names_spec='$libname.dll.a'
13966 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13967 postinstall_cmds='base_file=`basename \${file}`~
13968 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13969 dldir=$destdir/`dirname \$dlpath`~
13970 test -d \$dldir || mkdir -p \$dldir~
13971 $install_prog $dir/$dlname \$dldir/$dlname~
13972 chmod a+x \$dldir/$dlname~
13973 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13974 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13976 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13977 dlpath=$dir/\$dldll~
13979 shlibpath_overrides_runpath=yes
13983 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13984 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13986 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13989 # MinGW DLLs use traditional 'lib' prefix
13990 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13993 # pw32 DLLs use 'pw' prefix rather than 'lib'
13994 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13997 dynamic_linker='Win32 ld.exe'
14002 libname_spec='$name'
14003 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14004 library_names_spec='${libname}.dll.lib'
14008 sys_lib_search_path_spec=
14011 for lt_path in $LIB
14014 # Let DOS variable expansion print the short 8.3 style file name.
14015 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14016 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14019 # Convert to MSYS style.
14020 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14023 # Convert to unix form, then to dos form, then back to unix form
14024 # but this time dos style (no spaces!) so that the unix form looks
14025 # like /cygdrive/c/PROGRA~1:/cygdr...
14026 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14027 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14028 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14031 sys_lib_search_path_spec="$LIB"
14032 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14033 # It is most probably a Windows format PATH.
14034 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14036 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14038 # FIXME: find the short name or the path components, as spaces are
14039 # common. (e.g. "Program Files" -> "PROGRA~1")
14043 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14044 postinstall_cmds='base_file=`basename \${file}`~
14045 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14046 dldir=$destdir/`dirname \$dlpath`~
14047 test -d \$dldir || mkdir -p \$dldir~
14048 $install_prog $dir/$dlname \$dldir/$dlname'
14049 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14050 dlpath=$dir/\$dldll~
14052 shlibpath_overrides_runpath=yes
14053 dynamic_linker='Win32 link.exe'
14057 # Assume MSVC wrapper
14058 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14059 dynamic_linker='Win32 ld.exe'
14062 # FIXME: first we should search . and the directory the executable is in
14066 darwin* | rhapsody*)
14067 dynamic_linker="$host_os dyld"
14068 version_type=darwin
14071 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14072 soname_spec='${libname}${release}${major}$shared_ext'
14073 shlibpath_overrides_runpath=yes
14074 shlibpath_var=DYLD_LIBRARY_PATH
14075 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14077 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14078 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14082 version_type=linux # correct to gnu/linux during the next big refactor
14085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14086 soname_spec='${libname}${release}${shared_ext}$major'
14087 shlibpath_var=LD_LIBRARY_PATH
14090 freebsd* | dragonfly*)
14091 # DragonFly does not have aout. When/if they implement a new
14092 # versioning mechanism, adjust this.
14093 if test -x /usr/bin/objformat; then
14094 objformat=`/usr/bin/objformat`
14097 freebsd[23].*) objformat=aout ;;
14098 *) objformat=elf ;;
14101 version_type=freebsd-$objformat
14102 case $version_type in
14104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14109 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14113 shlibpath_var=LD_LIBRARY_PATH
14116 shlibpath_overrides_runpath=yes
14118 freebsd3.[01]* | freebsdelf3.[01]*)
14119 shlibpath_overrides_runpath=yes
14120 hardcode_into_libs=yes
14122 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14123 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14124 shlibpath_overrides_runpath=no
14125 hardcode_into_libs=yes
14127 *) # from 4.6 on, and DragonFly
14128 shlibpath_overrides_runpath=yes
14129 hardcode_into_libs=yes
14135 version_type=linux # correct to gnu/linux during the next big refactor
14138 dynamic_linker="$host_os runtime_loader"
14139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14140 soname_spec='${libname}${release}${shared_ext}$major'
14141 shlibpath_var=LIBRARY_PATH
14142 shlibpath_overrides_runpath=yes
14143 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14144 hardcode_into_libs=yes
14147 hpux9* | hpux10* | hpux11*)
14148 # Give a soname corresponding to the major version so that dld.sl refuses to
14149 # link against other versions.
14156 hardcode_into_libs=yes
14157 dynamic_linker="$host_os dld.so"
14158 shlibpath_var=LD_LIBRARY_PATH
14159 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14161 soname_spec='${libname}${release}${shared_ext}$major'
14162 if test "X$HPUX_IA64_MODE" = X32; then
14163 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14165 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14167 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14171 hardcode_into_libs=yes
14172 dynamic_linker="$host_os dld.sl"
14173 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14174 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14176 soname_spec='${libname}${release}${shared_ext}$major'
14177 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14178 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14182 dynamic_linker="$host_os dld.sl"
14183 shlibpath_var=SHLIB_PATH
14184 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14186 soname_spec='${libname}${release}${shared_ext}$major'
14189 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14190 postinstall_cmds='chmod 555 $lib'
14191 # or fails outright, so override atomically:
14192 install_override_mode=555
14196 version_type=linux # correct to gnu/linux during the next big refactor
14199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14200 soname_spec='${libname}${release}${shared_ext}$major'
14201 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14202 shlibpath_var=LD_LIBRARY_PATH
14203 shlibpath_overrides_runpath=no
14204 hardcode_into_libs=yes
14207 irix5* | irix6* | nonstopux*)
14209 nonstopux*) version_type=nonstopux ;;
14211 if test "$lt_cv_prog_gnu_ld" = yes; then
14212 version_type=linux # correct to gnu/linux during the next big refactor
14219 soname_spec='${libname}${release}${shared_ext}$major'
14220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14222 irix5* | nonstopux*)
14223 libsuff= shlibsuff=
14226 case $LD in # libtool.m4 will add one of these switches to LD
14227 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14228 libsuff= shlibsuff= libmagic=32-bit;;
14229 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14230 libsuff=32 shlibsuff=N32 libmagic=N32;;
14231 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14232 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14233 *) libsuff= shlibsuff= libmagic=never-match;;
14237 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14238 shlibpath_overrides_runpath=no
14239 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14240 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14241 hardcode_into_libs=yes
14244 # No shared lib support for Linux oldld, aout, or coff.
14245 linux*oldld* | linux*aout* | linux*coff*)
14249 # This must be glibc/ELF.
14250 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14251 version_type=linux # correct to gnu/linux during the next big refactor
14254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14255 soname_spec='${libname}${release}${shared_ext}$major'
14256 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14257 shlibpath_var=LD_LIBRARY_PATH
14258 shlibpath_overrides_runpath=no
14260 # Some binutils ld are patched to set DT_RUNPATH
14261 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14262 $as_echo_n "(cached) " >&6
14264 lt_cv_shlibpath_overrides_runpath=no
14265 save_LDFLAGS=$LDFLAGS
14266 save_libdir=$libdir
14267 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14268 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14270 /* end confdefs.h. */
14279 if ac_fn_c_try_link "$LINENO"; then :
14280 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14281 lt_cv_shlibpath_overrides_runpath=yes
14284 rm -f core conftest.err conftest.$ac_objext \
14285 conftest$ac_exeext conftest.$ac_ext
14286 LDFLAGS=$save_LDFLAGS
14287 libdir=$save_libdir
14291 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14293 # This implies no fast_install, which is unacceptable.
14294 # Some rework will be needed to allow for fast_install
14295 # before this can be enabled.
14296 hardcode_into_libs=yes
14298 # Append ld.so.conf contents to the search path
14299 if test -f /etc/ld.so.conf; then
14300 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' ' '`
14301 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14304 # We used to test for /lib/ld.so.1 and disable shared libraries on
14305 # powerpc, because MkLinux only supported shared libraries with the
14306 # GNU dynamic linker. Since this was broken with cross compilers,
14307 # most powerpc-linux boxes support dynamic linking these days and
14308 # people can always --disable-shared, the test was removed, and we
14309 # assume the GNU/Linux dynamic linker is in use.
14310 dynamic_linker='GNU/Linux ld.so'
14317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14318 soname_spec='${libname}${release}${shared_ext}$major'
14319 shlibpath_var=LD_LIBRARY_PATH
14320 shlibpath_overrides_runpath=no
14321 hardcode_into_libs=yes
14322 dynamic_linker='NetBSD ld.elf_so'
14329 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14331 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14332 dynamic_linker='NetBSD (a.out) ld.so'
14334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14335 soname_spec='${libname}${release}${shared_ext}$major'
14336 dynamic_linker='NetBSD ld.elf_so'
14338 shlibpath_var=LD_LIBRARY_PATH
14339 shlibpath_overrides_runpath=yes
14340 hardcode_into_libs=yes
14344 version_type=linux # correct to gnu/linux during the next big refactor
14345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14346 shlibpath_var=LD_LIBRARY_PATH
14347 shlibpath_overrides_runpath=yes
14354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14355 soname_spec='${libname}${release}${shared_ext}$major'
14356 shlibpath_var=LD_LIBRARY_PATH
14357 shlibpath_overrides_runpath=no
14358 hardcode_into_libs=yes
14359 dynamic_linker='ldqnx.so'
14364 sys_lib_dlsearch_path_spec="/usr/lib"
14366 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14368 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14369 *) need_version=no ;;
14371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14372 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14373 shlibpath_var=LD_LIBRARY_PATH
14374 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14376 openbsd2.[89] | openbsd2.[89].*)
14377 shlibpath_overrides_runpath=no
14380 shlibpath_overrides_runpath=yes
14384 shlibpath_overrides_runpath=yes
14389 libname_spec='$name'
14392 library_names_spec='$libname${shared_ext} $libname.a'
14393 dynamic_linker='OS/2 ld.exe'
14394 shlibpath_var=LIBPATH
14397 osf3* | osf4* | osf5*)
14401 soname_spec='${libname}${release}${shared_ext}$major'
14402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14403 shlibpath_var=LD_LIBRARY_PATH
14404 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14405 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14413 version_type=linux # correct to gnu/linux during the next big refactor
14416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14417 soname_spec='${libname}${release}${shared_ext}$major'
14418 shlibpath_var=LD_LIBRARY_PATH
14419 shlibpath_overrides_runpath=yes
14420 hardcode_into_libs=yes
14421 # ldd complains unless libraries are executable
14422 postinstall_cmds='chmod +x $lib'
14427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14428 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14429 shlibpath_var=LD_LIBRARY_PATH
14430 shlibpath_overrides_runpath=yes
14431 if test "$with_gnu_ld" = yes; then
14438 version_type=linux # correct to gnu/linux during the next big refactor
14439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14440 soname_spec='${libname}${release}${shared_ext}$major'
14441 shlibpath_var=LD_LIBRARY_PATH
14442 case $host_vendor in
14444 shlibpath_overrides_runpath=no
14446 runpath_var=LD_RUN_PATH
14454 shlibpath_overrides_runpath=no
14455 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14461 if test -d /usr/nec ;then
14462 version_type=linux # correct to gnu/linux during the next big refactor
14463 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14464 soname_spec='$libname${shared_ext}.$major'
14465 shlibpath_var=LD_LIBRARY_PATH
14469 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14470 version_type=freebsd-elf
14473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14474 soname_spec='${libname}${release}${shared_ext}$major'
14475 shlibpath_var=LD_LIBRARY_PATH
14476 shlibpath_overrides_runpath=yes
14477 hardcode_into_libs=yes
14478 if test "$with_gnu_ld" = yes; then
14479 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14481 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14484 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14488 sys_lib_dlsearch_path_spec='/usr/lib'
14492 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14493 version_type=linux # correct to gnu/linux during the next big refactor
14496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14497 shlibpath_var=LD_LIBRARY_PATH
14498 shlibpath_overrides_runpath=no
14499 hardcode_into_libs=yes
14503 version_type=linux # correct to gnu/linux during the next big refactor
14504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14505 soname_spec='${libname}${release}${shared_ext}$major'
14506 shlibpath_var=LD_LIBRARY_PATH
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14514 $as_echo "$dynamic_linker" >&6; }
14515 test "$dynamic_linker" = no && can_build_shared=no
14517 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14518 if test "$GCC" = yes; then
14519 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14522 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14523 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14525 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14526 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14621 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14623 if test -n "$hardcode_libdir_flag_spec" ||
14624 test -n "$runpath_var" ||
14625 test "X$hardcode_automatic" = "Xyes" ; then
14627 # We can hardcode non-existent directories.
14628 if test "$hardcode_direct" != no &&
14629 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14630 # have to relink, otherwise we might link with an installed library
14631 # when we should be linking with a yet-to-be-installed one
14632 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14633 test "$hardcode_minus_L" != no; then
14634 # Linking always hardcodes the temporary library directory.
14635 hardcode_action=relink
14637 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14638 hardcode_action=immediate
14641 # We cannot hardcode anything, or else we can only hardcode existing
14643 hardcode_action=unsupported
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14646 $as_echo "$hardcode_action" >&6; }
14648 if test "$hardcode_action" = relink ||
14649 test "$inherit_rpath" = yes; then
14650 # Fast installation is not supported
14651 enable_fast_install=no
14652 elif test "$shlibpath_overrides_runpath" = yes ||
14653 test "$enable_shared" = no; then
14654 # Fast installation is not necessary
14655 enable_fast_install=needless
14663 if test "x$enable_dlopen" != xyes; then
14664 enable_dlopen=unknown
14665 enable_dlopen_self=unknown
14666 enable_dlopen_self_static=unknown
14673 lt_cv_dlopen="load_add_on"
14675 lt_cv_dlopen_self=yes
14678 mingw* | pw32* | cegcc*)
14679 lt_cv_dlopen="LoadLibrary"
14684 lt_cv_dlopen="dlopen"
14689 # if libdl is installed we need to link against it
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14691 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14692 if ${ac_cv_lib_dl_dlopen+:} false; then :
14693 $as_echo_n "(cached) " >&6
14695 ac_check_lib_save_LIBS=$LIBS
14697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14698 /* end confdefs.h. */
14712 if ac_fn_c_try_link "$LINENO"; then :
14713 ac_cv_lib_dl_dlopen=yes
14715 ac_cv_lib_dl_dlopen=no
14717 rm -f core conftest.err conftest.$ac_objext \
14718 conftest$ac_exeext conftest.$ac_ext
14719 LIBS=$ac_check_lib_save_LIBS
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14722 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14723 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14724 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14727 lt_cv_dlopen="dyld"
14729 lt_cv_dlopen_self=yes
14736 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14737 if test "x$ac_cv_func_shl_load" = xyes; then :
14738 lt_cv_dlopen="shl_load"
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14741 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14742 if ${ac_cv_lib_dld_shl_load+:} false; then :
14743 $as_echo_n "(cached) " >&6
14745 ac_check_lib_save_LIBS=$LIBS
14747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14748 /* end confdefs.h. */
14757 return shl_load ();
14762 if ac_fn_c_try_link "$LINENO"; then :
14763 ac_cv_lib_dld_shl_load=yes
14765 ac_cv_lib_dld_shl_load=no
14767 rm -f core conftest.err conftest.$ac_objext \
14768 conftest$ac_exeext conftest.$ac_ext
14769 LIBS=$ac_check_lib_save_LIBS
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14772 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14773 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14774 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14776 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14777 if test "x$ac_cv_func_dlopen" = xyes; then :
14778 lt_cv_dlopen="dlopen"
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14781 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14782 if ${ac_cv_lib_dl_dlopen+:} false; then :
14783 $as_echo_n "(cached) " >&6
14785 ac_check_lib_save_LIBS=$LIBS
14787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14788 /* end confdefs.h. */
14802 if ac_fn_c_try_link "$LINENO"; then :
14803 ac_cv_lib_dl_dlopen=yes
14805 ac_cv_lib_dl_dlopen=no
14807 rm -f core conftest.err conftest.$ac_objext \
14808 conftest$ac_exeext conftest.$ac_ext
14809 LIBS=$ac_check_lib_save_LIBS
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14812 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14813 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14814 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14817 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14818 if ${ac_cv_lib_svld_dlopen+:} false; then :
14819 $as_echo_n "(cached) " >&6
14821 ac_check_lib_save_LIBS=$LIBS
14822 LIBS="-lsvld $LIBS"
14823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824 /* end confdefs.h. */
14838 if ac_fn_c_try_link "$LINENO"; then :
14839 ac_cv_lib_svld_dlopen=yes
14841 ac_cv_lib_svld_dlopen=no
14843 rm -f core conftest.err conftest.$ac_objext \
14844 conftest$ac_exeext conftest.$ac_ext
14845 LIBS=$ac_check_lib_save_LIBS
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14848 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14849 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14850 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14853 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14854 if ${ac_cv_lib_dld_dld_link+:} false; then :
14855 $as_echo_n "(cached) " >&6
14857 ac_check_lib_save_LIBS=$LIBS
14859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14860 /* end confdefs.h. */
14869 return dld_link ();
14874 if ac_fn_c_try_link "$LINENO"; then :
14875 ac_cv_lib_dld_dld_link=yes
14877 ac_cv_lib_dld_dld_link=no
14879 rm -f core conftest.err conftest.$ac_objext \
14880 conftest$ac_exeext conftest.$ac_ext
14881 LIBS=$ac_check_lib_save_LIBS
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14884 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14885 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14886 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14907 if test "x$lt_cv_dlopen" != xno; then
14913 case $lt_cv_dlopen in
14915 save_CPPFLAGS="$CPPFLAGS"
14916 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14918 save_LDFLAGS="$LDFLAGS"
14919 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14922 LIBS="$lt_cv_dlopen_libs $LIBS"
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14925 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14926 if ${lt_cv_dlopen_self+:} false; then :
14927 $as_echo_n "(cached) " >&6
14929 if test "$cross_compiling" = yes; then :
14930 lt_cv_dlopen_self=cross
14932 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14933 lt_status=$lt_dlunknown
14934 cat > conftest.$ac_ext <<_LT_EOF
14935 #line $LINENO "configure"
14936 #include "confdefs.h"
14945 # define LT_DLGLOBAL RTLD_GLOBAL
14948 # define LT_DLGLOBAL DL_GLOBAL
14950 # define LT_DLGLOBAL 0
14954 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14955 find out it does not work in some platform. */
14956 #ifndef LT_DLLAZY_OR_NOW
14958 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14961 # define LT_DLLAZY_OR_NOW DL_LAZY
14964 # define LT_DLLAZY_OR_NOW RTLD_NOW
14967 # define LT_DLLAZY_OR_NOW DL_NOW
14969 # define LT_DLLAZY_OR_NOW 0
14976 /* When -fvisbility=hidden is used, assume the code has been annotated
14977 correspondingly for the symbols needed. */
14978 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14979 int fnord () __attribute__((visibility("default")));
14982 int fnord () { return 42; }
14985 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14986 int status = $lt_dlunknown;
14990 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14993 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14994 else puts (dlerror ());
14996 /* dlclose (self); */
15004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15005 (eval $ac_link) 2>&5
15007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15008 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15009 (./conftest; exit; ) >&5 2>/dev/null
15011 case x$lt_status in
15012 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15013 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15014 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15017 # compilation failed
15018 lt_cv_dlopen_self=no
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15026 $as_echo "$lt_cv_dlopen_self" >&6; }
15028 if test "x$lt_cv_dlopen_self" = xyes; then
15029 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15031 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15032 if ${lt_cv_dlopen_self_static+:} false; then :
15033 $as_echo_n "(cached) " >&6
15035 if test "$cross_compiling" = yes; then :
15036 lt_cv_dlopen_self_static=cross
15038 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15039 lt_status=$lt_dlunknown
15040 cat > conftest.$ac_ext <<_LT_EOF
15041 #line $LINENO "configure"
15042 #include "confdefs.h"
15051 # define LT_DLGLOBAL RTLD_GLOBAL
15054 # define LT_DLGLOBAL DL_GLOBAL
15056 # define LT_DLGLOBAL 0
15060 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15061 find out it does not work in some platform. */
15062 #ifndef LT_DLLAZY_OR_NOW
15064 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15067 # define LT_DLLAZY_OR_NOW DL_LAZY
15070 # define LT_DLLAZY_OR_NOW RTLD_NOW
15073 # define LT_DLLAZY_OR_NOW DL_NOW
15075 # define LT_DLLAZY_OR_NOW 0
15082 /* When -fvisbility=hidden is used, assume the code has been annotated
15083 correspondingly for the symbols needed. */
15084 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15085 int fnord () __attribute__((visibility("default")));
15088 int fnord () { return 42; }
15091 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15092 int status = $lt_dlunknown;
15096 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15099 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15100 else puts (dlerror ());
15102 /* dlclose (self); */
15110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15111 (eval $ac_link) 2>&5
15113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15114 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15115 (./conftest; exit; ) >&5 2>/dev/null
15117 case x$lt_status in
15118 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15119 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15120 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15123 # compilation failed
15124 lt_cv_dlopen_self_static=no
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15132 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15135 CPPFLAGS="$save_CPPFLAGS"
15136 LDFLAGS="$save_LDFLAGS"
15141 case $lt_cv_dlopen_self in
15142 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15143 *) enable_dlopen_self=unknown ;;
15146 case $lt_cv_dlopen_self_static in
15147 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15148 *) enable_dlopen_self_static=unknown ;;
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15171 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15172 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15173 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15174 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15176 $as_echo "yes" >&6; }
15178 # FIXME - insert some real tests, host_os isn't really good enough
15181 if test -n "$STRIP" ; then
15182 striplib="$STRIP -x"
15183 old_striplib="$STRIP -S"
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15185 $as_echo "yes" >&6; }
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15188 $as_echo "no" >&6; }
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15193 $as_echo "no" >&6; }
15209 # Report which library types will actually be built
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15211 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15213 $as_echo "$can_build_shared" >&6; }
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15216 $as_echo_n "checking whether to build shared libraries... " >&6; }
15217 test "$can_build_shared" = "no" && enable_shared=no
15219 # On AIX, shared libraries and static libraries use the same namespace, and
15220 # are all built from PIC.
15223 test "$enable_shared" = yes && enable_static=no
15224 if test -n "$RANLIB"; then
15225 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15226 postinstall_cmds='$RANLIB $lib'
15231 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15232 test "$enable_shared" = yes && enable_static=no
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15237 $as_echo "$enable_shared" >&6; }
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15240 $as_echo_n "checking whether to build static libraries... " >&6; }
15241 # Make sure either enable_shared or enable_static is yes.
15242 test "$enable_shared" = yes || enable_static=yes
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15244 $as_echo "$enable_static" >&6; }
15251 ac_cpp='$CPP $CPPFLAGS'
15252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15272 ac_config_commands="$ac_config_commands libtool"
15277 # Only expand once:
15280 ## --------------------- ##
15281 ## End of libtool code ##
15282 ## --------------------- ##
15285 # Verify if finally libtool shared libraries will be built
15288 case "x$enable_shared" in # ((
15290 xc_lt_build_shared=$enable_shared
15293 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15298 # Verify if finally libtool static libraries will be built
15301 case "x$enable_static" in # ((
15303 xc_lt_build_static=$enable_static
15306 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15311 # Verify if libtool shared libraries should be linked using flag -version-info
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15315 $as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15316 xc_lt_shlib_use_version_info='yes'
15317 if test "x$version_type" = 'xnone'; then
15318 xc_lt_shlib_use_version_info='no'
15320 case $host_os in # (
15322 xc_lt_shlib_use_version_info='yes'
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15326 $as_echo "$xc_lt_shlib_use_version_info" >&6; }
15329 # Verify if libtool shared libraries should be linked using flag -no-undefined
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15333 $as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15334 xc_lt_shlib_use_no_undefined='no'
15335 if test "x$allow_undefined" = 'xno'; then
15336 xc_lt_shlib_use_no_undefined='yes'
15337 elif test "x$allow_undefined_flag" = 'xunsupported'; then
15338 xc_lt_shlib_use_no_undefined='yes'
15340 case $host_os in # (
15341 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15342 xc_lt_shlib_use_no_undefined='yes'
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15346 $as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15349 # Verify if libtool shared libraries should be linked using flag -mimpure-text
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15353 $as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15354 xc_lt_shlib_use_mimpure_text='no'
15355 case $host_os in # (
15357 if test "x$GCC" = 'xyes'; then
15358 xc_lt_shlib_use_mimpure_text='yes'
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15363 $as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15366 # Find out wether libtool libraries would be built wit PIC
15369 case "x$pic_mode" in # ((((
15371 xc_lt_build_shared_with_pic='yes'
15372 xc_lt_build_static_with_pic='no'
15375 xc_lt_build_shared_with_pic='yes'
15376 xc_lt_build_static_with_pic='yes'
15379 xc_lt_build_shared_with_pic='no'
15380 xc_lt_build_static_with_pic='no'
15383 xc_lt_build_shared_with_pic='unknown'
15384 xc_lt_build_static_with_pic='unknown'
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15386 $as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15390 $as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15392 $as_echo "$xc_lt_build_shared_with_pic" >&6; }
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15394 $as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15396 $as_echo "$xc_lt_build_static_with_pic" >&6; }
15399 # Verify if libtool shared libraries will be built while static not built
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15403 $as_echo_n "checking whether to build shared libraries only... " >&6; }
15404 if test "$xc_lt_build_shared" = 'yes' &&
15405 test "$xc_lt_build_static" = 'no'; then
15406 xc_lt_build_shared_only='yes'
15408 xc_lt_build_shared_only='no'
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15411 $as_echo "$xc_lt_build_shared_only" >&6; }
15414 # Verify if libtool static libraries will be built while shared not built
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15418 $as_echo_n "checking whether to build static libraries only... " >&6; }
15419 if test "$xc_lt_build_static" = 'yes' &&
15420 test "$xc_lt_build_shared" = 'no'; then
15421 xc_lt_build_static_only='yes'
15423 xc_lt_build_static_only='no'
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15426 $as_echo "$xc_lt_build_static_only" >&6; }
15432 # Automake conditionals based on libtool related checks
15435 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15436 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
15437 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15439 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
15440 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
15443 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
15444 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
15445 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
15447 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
15448 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
15451 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
15452 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
15453 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
15455 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
15456 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
15461 # Due to libtool and automake machinery limitations of not allowing
15462 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
15463 # inclusion of these in shared or static libraries, we are forced to
15464 # build using separate configure runs for shared and static libraries
15465 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
15466 # to compile objects for each kind of library. Notice that relying on
15467 # the '-DPIC' CFLAG that libtool provides is not valid given that the
15468 # user might for example choose to build static libraries with PIC.
15472 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
15473 # targeting a static library and not building its shared counterpart.
15476 if test "x$xc_lt_build_static_only" = 'xyes'; then
15477 USE_CPPFLAG_CURL_STATICLIB_TRUE=
15478 USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
15480 USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
15481 USE_CPPFLAG_CURL_STATICLIB_FALSE=
15486 # Make staticlib CPPFLAG variable and its definition visible in output
15487 # files unconditionally, providing an empty definition unless strictly
15488 # targeting a static library and not building its shared counterpart.
15491 CPPFLAG_CURL_STATICLIB=
15492 if test "x$xc_lt_build_static_only" = 'xyes'; then
15493 CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
15498 # Determine whether all dependent libraries must be specified when linking
15499 if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
15501 REQUIRE_LIB_DEPS=no
15503 REQUIRE_LIB_DEPS=yes
15506 if test x$REQUIRE_LIB_DEPS = xyes; then
15507 USE_EXPLICIT_LIB_DEPS_TRUE=
15508 USE_EXPLICIT_LIB_DEPS_FALSE='#'
15510 USE_EXPLICIT_LIB_DEPS_TRUE='#'
15511 USE_EXPLICIT_LIB_DEPS_FALSE=
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15516 $as_echo_n "checking for inline... " >&6; }
15517 if ${ac_cv_c_inline+:} false; then :
15518 $as_echo_n "(cached) " >&6
15521 for ac_kw in inline __inline__ __inline; do
15522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15523 /* end confdefs.h. */
15524 #ifndef __cplusplus
15526 static $ac_kw foo_t static_foo () {return 0; }
15527 $ac_kw foo_t foo () {return 0; }
15531 if ac_fn_c_try_compile "$LINENO"; then :
15532 ac_cv_c_inline=$ac_kw
15534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15535 test "$ac_cv_c_inline" != no && break
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15540 $as_echo "$ac_cv_c_inline" >&6; }
15542 case $ac_cv_c_inline in
15545 case $ac_cv_c_inline in
15547 *) ac_val=$ac_cv_c_inline;;
15549 cat >>confdefs.h <<_ACEOF
15550 #ifndef __cplusplus
15551 #define inline $ac_val
15561 compiler_id="unknown"
15564 flags_dbg_all="unknown"
15565 flags_dbg_yes="unknown"
15566 flags_dbg_off="unknown"
15567 flags_opt_all="unknown"
15568 flags_opt_yes="unknown"
15569 flags_opt_off="unknown"
15571 flags_prefer_cppflags="no"
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
15575 $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
15577 if test -z "$SED"; then
15578 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15580 if test -z "$GREP"; then
15581 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15586 /* end confdefs.h. */
15590 CURL_DEF_TOKEN __DECC
15595 if ac_fn_c_try_cpp "$LINENO"; then :
15597 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15598 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15599 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15600 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15601 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
15606 rm -f conftest.err conftest.i conftest.$ac_ext
15607 if test -z "$tmp_exp"; then
15608 curl_cv_have_def___DECC=no
15611 curl_cv_have_def___DECC=yes
15612 curl_cv_def___DECC=$tmp_exp
15617 if test -z "$SED"; then
15618 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15620 if test -z "$GREP"; then
15621 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15626 /* end confdefs.h. */
15630 CURL_DEF_TOKEN __DECC_VER
15635 if ac_fn_c_try_cpp "$LINENO"; then :
15637 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15638 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15639 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15640 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15641 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
15646 rm -f conftest.err conftest.i conftest.$ac_ext
15647 if test -z "$tmp_exp"; then
15648 curl_cv_have_def___DECC_VER=no
15651 curl_cv_have_def___DECC_VER=yes
15652 curl_cv_def___DECC_VER=$tmp_exp
15656 if test "$curl_cv_have_def___DECC" = "yes" &&
15657 test "$curl_cv_have_def___DECC_VER" = "yes"; then
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15659 $as_echo "yes" >&6; }
15660 compiler_id="DEC_C"
15661 flags_dbg_all="-g -g0 -g1 -g2 -g3"
15662 flags_dbg_yes="-g2"
15664 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
15665 flags_opt_yes="-O1"
15666 flags_opt_off="-O0"
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15669 $as_echo "no" >&6; }
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
15674 $as_echo_n "checking if compiler is HP-UX C... " >&6; }
15676 if test -z "$SED"; then
15677 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15679 if test -z "$GREP"; then
15680 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15685 /* end confdefs.h. */
15689 CURL_DEF_TOKEN __HP_cc
15694 if ac_fn_c_try_cpp "$LINENO"; then :
15696 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15697 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15698 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15699 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15700 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
15705 rm -f conftest.err conftest.i conftest.$ac_ext
15706 if test -z "$tmp_exp"; then
15707 curl_cv_have_def___HP_cc=no
15710 curl_cv_have_def___HP_cc=yes
15711 curl_cv_def___HP_cc=$tmp_exp
15715 if test "$curl_cv_have_def___HP_cc" = "yes"; then
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15717 $as_echo "yes" >&6; }
15718 compiler_id="HP_UX_C"
15719 flags_dbg_all="-g -s"
15722 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
15723 flags_opt_yes="+O2"
15724 flags_opt_off="+O0"
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15727 $as_echo "no" >&6; }
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
15732 $as_echo_n "checking if compiler is IBM C... " >&6; }
15734 if test -z "$SED"; then
15735 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15737 if test -z "$GREP"; then
15738 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15743 /* end confdefs.h. */
15747 CURL_DEF_TOKEN __IBMC__
15752 if ac_fn_c_try_cpp "$LINENO"; then :
15754 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15755 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15756 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15757 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15758 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
15763 rm -f conftest.err conftest.i conftest.$ac_ext
15764 if test -z "$tmp_exp"; then
15765 curl_cv_have_def___IBMC__=no
15768 curl_cv_have_def___IBMC__=yes
15769 curl_cv_def___IBMC__=$tmp_exp
15773 if test "$curl_cv_have_def___IBMC__" = "yes"; then
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15775 $as_echo "yes" >&6; }
15776 compiler_id="IBM_C"
15777 flags_dbg_all="-g -g0 -g1 -g2 -g3"
15780 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
15781 flags_opt_all="$flags_opt_all -qnooptimize"
15782 flags_opt_all="$flags_opt_all -qoptimize=0"
15783 flags_opt_all="$flags_opt_all -qoptimize=1"
15784 flags_opt_all="$flags_opt_all -qoptimize=2"
15785 flags_opt_all="$flags_opt_all -qoptimize=3"
15786 flags_opt_all="$flags_opt_all -qoptimize=4"
15787 flags_opt_all="$flags_opt_all -qoptimize=5"
15788 flags_opt_yes="-O2"
15789 flags_opt_off="-qnooptimize"
15790 flags_prefer_cppflags="yes"
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15793 $as_echo "no" >&6; }
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
15798 $as_echo_n "checking if compiler is Intel C... " >&6; }
15800 if test -z "$SED"; then
15801 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15803 if test -z "$GREP"; then
15804 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15809 /* end confdefs.h. */
15812 #ifdef __INTEL_COMPILER
15813 CURL_DEF_TOKEN __INTEL_COMPILER
15818 if ac_fn_c_try_cpp "$LINENO"; then :
15820 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15821 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15822 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15823 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15824 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
15829 rm -f conftest.err conftest.i conftest.$ac_ext
15830 if test -z "$tmp_exp"; then
15831 curl_cv_have_def___INTEL_COMPILER=no
15834 curl_cv_have_def___INTEL_COMPILER=yes
15835 curl_cv_def___INTEL_COMPILER=$tmp_exp
15839 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15841 $as_echo "yes" >&6; }
15842 compiler_num="$curl_cv_def___INTEL_COMPILER"
15844 if test -z "$SED"; then
15845 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15847 if test -z "$GREP"; then
15848 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15853 /* end confdefs.h. */
15857 CURL_DEF_TOKEN __unix__
15862 if ac_fn_c_try_cpp "$LINENO"; then :
15864 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15865 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15866 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15867 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15868 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
15873 rm -f conftest.err conftest.i conftest.$ac_ext
15874 if test -z "$tmp_exp"; then
15875 curl_cv_have_def___unix__=no
15878 curl_cv_have_def___unix__=yes
15879 curl_cv_def___unix__=$tmp_exp
15883 if test "$curl_cv_have_def___unix__" = "yes"; then
15884 compiler_id="INTEL_UNIX_C"
15885 flags_dbg_all="-g -g0"
15888 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
15889 flags_opt_yes="-O2"
15890 flags_opt_off="-O0"
15892 compiler_id="INTEL_WINDOWS_C"
15893 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
15894 flags_dbg_all="$flags_dbg_all /debug"
15895 flags_dbg_all="$flags_dbg_all /debug:none"
15896 flags_dbg_all="$flags_dbg_all /debug:minimal"
15897 flags_dbg_all="$flags_dbg_all /debug:partial"
15898 flags_dbg_all="$flags_dbg_all /debug:full"
15899 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
15900 flags_dbg_all="$flags_dbg_all /debug:extended"
15901 flags_dbg_yes="/Zi /Oy-"
15902 flags_dbg_off="/debug:none /Oy-"
15903 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
15904 flags_opt_yes="/O2"
15905 flags_opt_off="/Od"
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15909 $as_echo "no" >&6; }
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
15914 $as_echo_n "checking if compiler is clang... " >&6; }
15916 if test -z "$SED"; then
15917 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15919 if test -z "$GREP"; then
15920 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15925 /* end confdefs.h. */
15929 CURL_DEF_TOKEN __clang__
15934 if ac_fn_c_try_cpp "$LINENO"; then :
15936 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15937 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15938 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15939 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15940 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
15945 rm -f conftest.err conftest.i conftest.$ac_ext
15946 if test -z "$tmp_exp"; then
15947 curl_cv_have_def___clang__=no
15950 curl_cv_have_def___clang__=yes
15951 curl_cv_def___clang__=$tmp_exp
15955 if test "$curl_cv_have_def___clang__" = "yes"; then
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15957 $as_echo "yes" >&6; }
15958 compiler_id="CLANG"
15959 clangver=`$CC -dumpversion`
15960 clangvhi=`echo $clangver | cut -d . -f1`
15961 clangvlo=`echo $clangver | cut -d . -f2`
15962 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
15963 flags_dbg_all="-g -g0 -g1 -g2 -g3"
15964 flags_dbg_all="$flags_dbg_all -ggdb"
15965 flags_dbg_all="$flags_dbg_all -gstabs"
15966 flags_dbg_all="$flags_dbg_all -gstabs+"
15967 flags_dbg_all="$flags_dbg_all -gcoff"
15968 flags_dbg_all="$flags_dbg_all -gxcoff"
15969 flags_dbg_all="$flags_dbg_all -gdwarf-2"
15970 flags_dbg_all="$flags_dbg_all -gvms"
15973 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
15974 flags_opt_yes="-Os"
15975 flags_opt_off="-O0"
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15978 $as_echo "no" >&6; }
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
15983 $as_echo_n "checking if compiler is GNU C... " >&6; }
15985 if test -z "$SED"; then
15986 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15988 if test -z "$GREP"; then
15989 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15994 /* end confdefs.h. */
15998 CURL_DEF_TOKEN __GNUC__
16003 if ac_fn_c_try_cpp "$LINENO"; then :
16005 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16006 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16007 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16008 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16009 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16014 rm -f conftest.err conftest.i conftest.$ac_ext
16015 if test -z "$tmp_exp"; then
16016 curl_cv_have_def___GNUC__=no
16019 curl_cv_have_def___GNUC__=yes
16020 curl_cv_def___GNUC__=$tmp_exp
16024 if test "$curl_cv_have_def___GNUC__" = "yes" &&
16025 test "$compiler_id" = "unknown"; then
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16027 $as_echo "yes" >&6; }
16028 compiler_id="GNU_C"
16029 gccver=`$CC -dumpversion`
16030 gccvhi=`echo $gccver | cut -d . -f1`
16031 gccvlo=`echo $gccver | cut -d . -f2`
16032 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
16033 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16034 flags_dbg_all="$flags_dbg_all -ggdb"
16035 flags_dbg_all="$flags_dbg_all -gstabs"
16036 flags_dbg_all="$flags_dbg_all -gstabs+"
16037 flags_dbg_all="$flags_dbg_all -gcoff"
16038 flags_dbg_all="$flags_dbg_all -gxcoff"
16039 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16040 flags_dbg_all="$flags_dbg_all -gvms"
16043 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16044 flags_opt_yes="-O2"
16045 flags_opt_off="-O0"
16047 if test -z "$SED"; then
16048 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16050 if test -z "$GREP"; then
16051 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16056 /* end confdefs.h. */
16060 CURL_DEF_TOKEN _WIN32
16065 if ac_fn_c_try_cpp "$LINENO"; then :
16067 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16068 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16069 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16070 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16071 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
16076 rm -f conftest.err conftest.i conftest.$ac_ext
16077 if test -z "$tmp_exp"; then
16078 curl_cv_have_def__WIN32=no
16081 curl_cv_have_def__WIN32=yes
16082 curl_cv_def__WIN32=$tmp_exp
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16088 $as_echo "no" >&6; }
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
16093 $as_echo_n "checking if compiler is LCC... " >&6; }
16095 if test -z "$SED"; then
16096 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16098 if test -z "$GREP"; then
16099 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16104 /* end confdefs.h. */
16108 CURL_DEF_TOKEN __LCC__
16113 if ac_fn_c_try_cpp "$LINENO"; then :
16115 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16116 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16117 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16118 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16119 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16124 rm -f conftest.err conftest.i conftest.$ac_ext
16125 if test -z "$tmp_exp"; then
16126 curl_cv_have_def___LCC__=no
16129 curl_cv_have_def___LCC__=yes
16130 curl_cv_def___LCC__=$tmp_exp
16134 if test "$curl_cv_have_def___LCC__" = "yes"; then
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16136 $as_echo "yes" >&6; }
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16146 $as_echo "no" >&6; }
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16151 $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16153 if test -z "$SED"; then
16154 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16156 if test -z "$GREP"; then
16157 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16162 /* end confdefs.h. */
16166 CURL_DEF_TOKEN __GNUC__
16171 if ac_fn_c_try_cpp "$LINENO"; then :
16173 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16174 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16175 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16176 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16177 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16182 rm -f conftest.err conftest.i conftest.$ac_ext
16183 if test -z "$tmp_exp"; then
16184 curl_cv_have_def___GNUC__=no
16187 curl_cv_have_def___GNUC__=yes
16188 curl_cv_def___GNUC__=$tmp_exp
16193 if test -z "$SED"; then
16194 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16196 if test -z "$GREP"; then
16197 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16202 /* end confdefs.h. */
16205 #ifdef _COMPILER_VERSION
16206 CURL_DEF_TOKEN _COMPILER_VERSION
16211 if ac_fn_c_try_cpp "$LINENO"; then :
16213 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16214 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16215 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16216 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16217 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16222 rm -f conftest.err conftest.i conftest.$ac_ext
16223 if test -z "$tmp_exp"; then
16224 curl_cv_have_def__COMPILER_VERSION=no
16227 curl_cv_have_def__COMPILER_VERSION=yes
16228 curl_cv_def__COMPILER_VERSION=$tmp_exp
16233 if test -z "$SED"; then
16234 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16236 if test -z "$GREP"; then
16237 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16242 /* end confdefs.h. */
16245 #ifdef _SGI_COMPILER_VERSION
16246 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16251 if ac_fn_c_try_cpp "$LINENO"; then :
16253 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16254 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16255 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16256 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16257 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16262 rm -f conftest.err conftest.i conftest.$ac_ext
16263 if test -z "$tmp_exp"; then
16264 curl_cv_have_def__SGI_COMPILER_VERSION=no
16267 curl_cv_have_def__SGI_COMPILER_VERSION=yes
16268 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16272 if test "$curl_cv_have_def___GNUC__" = "no" &&
16273 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16274 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16276 $as_echo "yes" >&6; }
16277 compiler_id="SGI_MIPSPRO_C"
16278 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16281 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16282 flags_opt_yes="-O2"
16283 flags_opt_off="-O0"
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16286 $as_echo "no" >&6; }
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16291 $as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16293 if test -z "$SED"; then
16294 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16296 if test -z "$GREP"; then
16297 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16302 /* end confdefs.h. */
16306 CURL_DEF_TOKEN __GNUC__
16311 if ac_fn_c_try_cpp "$LINENO"; then :
16313 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16314 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16315 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16316 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16317 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16322 rm -f conftest.err conftest.i conftest.$ac_ext
16323 if test -z "$tmp_exp"; then
16324 curl_cv_have_def___GNUC__=no
16327 curl_cv_have_def___GNUC__=yes
16328 curl_cv_def___GNUC__=$tmp_exp
16333 if test -z "$SED"; then
16334 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16336 if test -z "$GREP"; then
16337 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16342 /* end confdefs.h. */
16346 CURL_DEF_TOKEN __sgi
16351 if ac_fn_c_try_cpp "$LINENO"; then :
16353 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16354 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16355 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16356 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16357 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16362 rm -f conftest.err conftest.i conftest.$ac_ext
16363 if test -z "$tmp_exp"; then
16364 curl_cv_have_def___sgi=no
16367 curl_cv_have_def___sgi=yes
16368 curl_cv_def___sgi=$tmp_exp
16372 if test "$curl_cv_have_def___GNUC__" = "no" &&
16373 test "$curl_cv_have_def___sgi" = "yes" &&
16374 test "$compiler_id" = "unknown"; then
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16376 $as_echo "yes" >&6; }
16377 compiler_id="SGI_MIPS_C"
16378 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16381 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16382 flags_opt_yes="-O2"
16383 flags_opt_off="-O0"
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16386 $as_echo "no" >&6; }
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
16391 $as_echo_n "checking if compiler is SunPro C... " >&6; }
16393 if test -z "$SED"; then
16394 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16396 if test -z "$GREP"; then
16397 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16402 /* end confdefs.h. */
16406 CURL_DEF_TOKEN __SUNPRO_C
16411 if ac_fn_c_try_cpp "$LINENO"; then :
16413 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16414 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16415 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16416 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16417 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
16422 rm -f conftest.err conftest.i conftest.$ac_ext
16423 if test -z "$tmp_exp"; then
16424 curl_cv_have_def___SUNPRO_C=no
16427 curl_cv_have_def___SUNPRO_C=yes
16428 curl_cv_def___SUNPRO_C=$tmp_exp
16432 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16434 $as_echo "yes" >&6; }
16435 compiler_id="SUNPRO_C"
16436 flags_dbg_all="-g -s"
16439 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
16440 flags_opt_yes="-xO2"
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16444 $as_echo "no" >&6; }
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
16449 $as_echo_n "checking if compiler is Tiny C... " >&6; }
16451 if test -z "$SED"; then
16452 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16454 if test -z "$GREP"; then
16455 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16460 /* end confdefs.h. */
16464 CURL_DEF_TOKEN __TINYC__
16469 if ac_fn_c_try_cpp "$LINENO"; then :
16471 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16472 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16473 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16474 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16475 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
16480 rm -f conftest.err conftest.i conftest.$ac_ext
16481 if test -z "$tmp_exp"; then
16482 curl_cv_have_def___TINYC__=no
16485 curl_cv_have_def___TINYC__=yes
16486 curl_cv_def___TINYC__=$tmp_exp
16490 if test "$curl_cv_have_def___TINYC__" = "yes"; then
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16492 $as_echo "yes" >&6; }
16493 compiler_id="TINY_C"
16494 flags_dbg_all="-g -b"
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16502 $as_echo "no" >&6; }
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
16507 $as_echo_n "checking if compiler is Watcom C... " >&6; }
16509 if test -z "$SED"; then
16510 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16512 if test -z "$GREP"; then
16513 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16518 /* end confdefs.h. */
16522 CURL_DEF_TOKEN __WATCOMC__
16527 if ac_fn_c_try_cpp "$LINENO"; then :
16529 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16530 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16531 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16532 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16533 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
16538 rm -f conftest.err conftest.i conftest.$ac_ext
16539 if test -z "$tmp_exp"; then
16540 curl_cv_have_def___WATCOMC__=no
16543 curl_cv_have_def___WATCOMC__=yes
16544 curl_cv_def___WATCOMC__=$tmp_exp
16548 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16550 $as_echo "yes" >&6; }
16552 if test -z "$SED"; then
16553 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16555 if test -z "$GREP"; then
16556 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16561 /* end confdefs.h. */
16565 CURL_DEF_TOKEN __UNIX__
16570 if ac_fn_c_try_cpp "$LINENO"; then :
16572 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16573 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16574 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16575 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16576 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
16581 rm -f conftest.err conftest.i conftest.$ac_ext
16582 if test -z "$tmp_exp"; then
16583 curl_cv_have_def___UNIX__=no
16586 curl_cv_have_def___UNIX__=yes
16587 curl_cv_def___UNIX__=$tmp_exp
16591 if test "$curl_cv_have_def___UNIX__" = "yes"; then
16592 compiler_id="WATCOM_UNIX_C"
16593 flags_dbg_all="-g1 -g1+ -g2 -g3"
16594 flags_dbg_yes="-g2"
16596 flags_opt_all="-O0 -O1 -O2 -O3"
16597 flags_opt_yes="-O2"
16598 flags_opt_off="-O0"
16600 compiler_id="WATCOM_WINDOWS_C"
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16610 $as_echo "no" >&6; }
16614 if test "$compiler_id" = "unknown"; then
16617 *** Warning: This configure script does not have information about the
16618 *** compiler you are using, relative to the flags required to enable or
16619 *** disable generation of debug info, optimization options or warnings.
16621 *** Whatever settings are present in CFLAGS will be used for this run.
16623 *** If you wish to help the cURL project to better support your compiler
16624 *** you can report this and the required info on the libcurl development
16625 *** mailing list: http://cool.haxx.se/mailman/listinfo/curl-library/
16633 eval _sqz_input=\$$1
16634 for _sqz_token in $_sqz_input; do
16635 if test -z "$_sqz_result"; then
16636 _sqz_result="$_sqz_token"
16638 _sqz_result="$_sqz_result $_sqz_token"
16641 eval $1=\$_sqz_result
16647 if test "$compiler_id" != "unknown"; then
16649 if test "$compiler_id" = "GNU_C" ||
16650 test "$compiler_id" = "CLANG"; then
16652 if test "$compiler_id" = "GNU_C" ||
16653 test "$compiler_id" = "CLANG"; then
16654 tmp_has_include="no"
16655 tmp_chg_FLAGS="$CFLAGS"
16656 for word1 in $tmp_chg_FLAGS; do
16659 tmp_has_include="yes"
16663 if test "$tmp_has_include" = "yes"; then
16664 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
16665 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
16666 CFLAGS="$tmp_chg_FLAGS"
16669 tmp_has_include="no"
16670 tmp_chg_FLAGS="$CPPFLAGS"
16671 for word1 in $tmp_chg_FLAGS; do
16674 tmp_has_include="yes"
16678 if test "$tmp_has_include" = "yes"; then
16679 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
16680 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
16681 CPPFLAGS="$tmp_chg_FLAGS"
16688 tmp_save_CPPFLAGS="$CPPFLAGS"
16689 tmp_save_CFLAGS="$CFLAGS"
16693 case "$compiler_id" in
16697 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
16702 tmp_CFLAGS="$tmp_CFLAGS -std1"
16703 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
16704 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
16705 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
16710 tmp_CFLAGS="$tmp_CFLAGS"
16715 tmp_CFLAGS="$tmp_CFLAGS -z"
16716 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
16721 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
16722 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
16723 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
16728 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
16729 tmp_CPPFLAGS="$tmp_CPPFLAGS -we 140,147,165,266"
16730 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd 279,981,1469"
16735 tmp_CFLAGS="$tmp_CFLAGS"
16740 tmp_CFLAGS="$tmp_CFLAGS -n"
16745 tmp_CFLAGS="$tmp_CFLAGS"
16750 tmp_CFLAGS="$tmp_CFLAGS"
16755 tmp_CFLAGS="$tmp_CFLAGS"
16760 tmp_CFLAGS="$tmp_CFLAGS"
16765 tmp_CFLAGS="$tmp_CFLAGS"
16770 tmp_CFLAGS="$tmp_CFLAGS"
16775 squeeze tmp_CPPFLAGS
16778 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
16780 $as_echo_n "checking if compiler accepts some basic options... " >&6; }
16781 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
16782 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
16786 tmp_compiler_works="unknown"
16787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16788 /* end confdefs.h. */
16803 if ac_fn_c_try_compile "$LINENO"; then :
16805 tmp_compiler_works="yes"
16809 tmp_compiler_works="no"
16811 sed 's/^/cc-fail: /' conftest.err >&6
16815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16816 if test "$tmp_compiler_works" = "yes"; then
16817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16818 /* end confdefs.h. */
16833 if ac_fn_c_try_link "$LINENO"; then :
16835 tmp_compiler_works="yes"
16839 tmp_compiler_works="no"
16841 sed 's/^/link-fail: /' conftest.err >&6
16845 rm -f core conftest.err conftest.$ac_objext \
16846 conftest$ac_exeext conftest.$ac_ext
16848 if test "x$cross_compiling" != "xyes" &&
16849 test "$tmp_compiler_works" = "yes"; then
16850 if test "$cross_compiling" = yes; then :
16851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16853 as_fn_error $? "cannot run test program while cross compiling
16854 See \`config.log' for more details" "$LINENO" 5; }
16856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16857 /* end confdefs.h. */
16861 # include <stdlib.h>
16875 if ac_fn_c_try_run "$LINENO"; then :
16877 tmp_compiler_works="yes"
16881 tmp_compiler_works="no"
16883 echo "run-fail: test program exited with status $ac_status" >&6
16887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16888 conftest.$ac_objext conftest.beam conftest.$ac_ext
16892 if test "$tmp_compiler_works" = "yes"; then
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16895 $as_echo "yes" >&6; }
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
16897 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16902 $as_echo "no" >&6; }
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
16904 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
16905 CPPFLAGS="$tmp_save_CPPFLAGS"
16906 CFLAGS="$tmp_save_CFLAGS"
16916 if test "$compiler_id" != "unknown"; then
16918 tmp_save_CFLAGS="$CFLAGS"
16919 tmp_save_CPPFLAGS="$CPPFLAGS"
16922 tmp_CFLAGS="$CFLAGS"
16923 tmp_CPPFLAGS="$CPPFLAGS"
16926 for word1 in $tmp_CFLAGS; do
16927 ac_var_strip_word="no"
16928 for word2 in $flags_dbg_all; do
16929 if test "$word1" = "$word2"; then
16930 ac_var_strip_word="yes"
16933 if test "$ac_var_strip_word" = "no"; then
16934 ac_var_stripped="$ac_var_stripped $word1"
16937 tmp_CFLAGS="$ac_var_stripped"
16942 for word1 in $tmp_CPPFLAGS; do
16943 ac_var_strip_word="no"
16944 for word2 in $flags_dbg_all; do
16945 if test "$word1" = "$word2"; then
16946 ac_var_strip_word="yes"
16949 if test "$ac_var_strip_word" = "no"; then
16950 ac_var_stripped="$ac_var_stripped $word1"
16953 tmp_CPPFLAGS="$ac_var_stripped"
16954 squeeze tmp_CPPFLAGS
16957 if test "$want_debug" = "yes"; then
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
16959 $as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
16960 tmp_options="$flags_dbg_yes"
16962 if test "$want_debug" = "no"; then
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
16964 $as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
16965 tmp_options="$flags_dbg_off"
16968 if test "$flags_prefer_cppflags" = "yes"; then
16969 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
16970 CFLAGS="$tmp_CFLAGS"
16972 CPPFLAGS="$tmp_CPPFLAGS"
16973 CFLAGS="$tmp_CFLAGS $tmp_options"
16978 tmp_compiler_works="unknown"
16979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16980 /* end confdefs.h. */
16995 if ac_fn_c_try_compile "$LINENO"; then :
16997 tmp_compiler_works="yes"
17001 tmp_compiler_works="no"
17003 sed 's/^/cc-fail: /' conftest.err >&6
17007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17008 if test "$tmp_compiler_works" = "yes"; then
17009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17010 /* end confdefs.h. */
17025 if ac_fn_c_try_link "$LINENO"; then :
17027 tmp_compiler_works="yes"
17031 tmp_compiler_works="no"
17033 sed 's/^/link-fail: /' conftest.err >&6
17037 rm -f core conftest.err conftest.$ac_objext \
17038 conftest$ac_exeext conftest.$ac_ext
17040 if test "x$cross_compiling" != "xyes" &&
17041 test "$tmp_compiler_works" = "yes"; then
17042 if test "$cross_compiling" = yes; then :
17043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17045 as_fn_error $? "cannot run test program while cross compiling
17046 See \`config.log' for more details" "$LINENO" 5; }
17048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17049 /* end confdefs.h. */
17053 # include <stdlib.h>
17067 if ac_fn_c_try_run "$LINENO"; then :
17069 tmp_compiler_works="yes"
17073 tmp_compiler_works="no"
17075 echo "run-fail: test program exited with status $ac_status" >&6
17079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17080 conftest.$ac_objext conftest.beam conftest.$ac_ext
17084 if test "$tmp_compiler_works" = "yes"; then
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17087 $as_echo "yes" >&6; }
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17089 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17094 $as_echo "no" >&6; }
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17096 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17097 CPPFLAGS="$tmp_save_CPPFLAGS"
17098 CFLAGS="$tmp_save_CFLAGS"
17107 if test "$compiler_id" != "unknown"; then
17109 tmp_save_CFLAGS="$CFLAGS"
17110 tmp_save_CPPFLAGS="$CPPFLAGS"
17113 tmp_CFLAGS="$CFLAGS"
17114 tmp_CPPFLAGS="$CPPFLAGS"
17115 honor_optimize_option="yes"
17118 if test "$want_optimize" = "assume_no" ||
17119 test "$want_optimize" = "assume_yes"; then
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17121 $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17124 ac_var_match_word="no"
17125 for word1 in $tmp_CFLAGS; do
17126 for word2 in $flags_opt_all; do
17127 if test "$word1" = "$word2"; then
17128 ac_var_match_word="yes"
17133 if test "$ac_var_match_word" = "yes"; then
17135 honor_optimize_option="no"
17142 ac_var_match_word="no"
17143 for word1 in $tmp_CPPFLAGS; do
17144 for word2 in $flags_opt_all; do
17145 if test "$word1" = "$word2"; then
17146 ac_var_match_word="yes"
17151 if test "$ac_var_match_word" = "yes"; then
17153 honor_optimize_option="no"
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17159 $as_echo "$honor_optimize_option" >&6; }
17160 if test "$honor_optimize_option" = "yes"; then
17161 if test "$want_optimize" = "assume_yes"; then
17162 want_optimize="yes"
17164 if test "$want_optimize" = "assume_no"; then
17170 if test "$honor_optimize_option" = "yes"; then
17173 for word1 in $tmp_CFLAGS; do
17174 ac_var_strip_word="no"
17175 for word2 in $flags_opt_all; do
17176 if test "$word1" = "$word2"; then
17177 ac_var_strip_word="yes"
17180 if test "$ac_var_strip_word" = "no"; then
17181 ac_var_stripped="$ac_var_stripped $word1"
17184 tmp_CFLAGS="$ac_var_stripped"
17189 for word1 in $tmp_CPPFLAGS; do
17190 ac_var_strip_word="no"
17191 for word2 in $flags_opt_all; do
17192 if test "$word1" = "$word2"; then
17193 ac_var_strip_word="yes"
17196 if test "$ac_var_strip_word" = "no"; then
17197 ac_var_stripped="$ac_var_stripped $word1"
17200 tmp_CPPFLAGS="$ac_var_stripped"
17201 squeeze tmp_CPPFLAGS
17203 if test "$want_optimize" = "yes"; then
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17205 $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17206 tmp_options="$flags_opt_yes"
17208 if test "$want_optimize" = "no"; then
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17210 $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17211 tmp_options="$flags_opt_off"
17213 if test "$flags_prefer_cppflags" = "yes"; then
17214 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17215 CFLAGS="$tmp_CFLAGS"
17217 CPPFLAGS="$tmp_CPPFLAGS"
17218 CFLAGS="$tmp_CFLAGS $tmp_options"
17223 tmp_compiler_works="unknown"
17224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17225 /* end confdefs.h. */
17240 if ac_fn_c_try_compile "$LINENO"; then :
17242 tmp_compiler_works="yes"
17246 tmp_compiler_works="no"
17248 sed 's/^/cc-fail: /' conftest.err >&6
17252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17253 if test "$tmp_compiler_works" = "yes"; then
17254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17255 /* end confdefs.h. */
17270 if ac_fn_c_try_link "$LINENO"; then :
17272 tmp_compiler_works="yes"
17276 tmp_compiler_works="no"
17278 sed 's/^/link-fail: /' conftest.err >&6
17282 rm -f core conftest.err conftest.$ac_objext \
17283 conftest$ac_exeext conftest.$ac_ext
17285 if test "x$cross_compiling" != "xyes" &&
17286 test "$tmp_compiler_works" = "yes"; then
17287 if test "$cross_compiling" = yes; then :
17288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17290 as_fn_error $? "cannot run test program while cross compiling
17291 See \`config.log' for more details" "$LINENO" 5; }
17293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17294 /* end confdefs.h. */
17298 # include <stdlib.h>
17312 if ac_fn_c_try_run "$LINENO"; then :
17314 tmp_compiler_works="yes"
17318 tmp_compiler_works="no"
17320 echo "run-fail: test program exited with status $ac_status" >&6
17324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17325 conftest.$ac_objext conftest.beam conftest.$ac_ext
17329 if test "$tmp_compiler_works" = "yes"; then
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17332 $as_echo "yes" >&6; }
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17334 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17339 $as_echo "no" >&6; }
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17341 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17342 CPPFLAGS="$tmp_save_CPPFLAGS"
17343 CFLAGS="$tmp_save_CFLAGS"
17353 if test "$compiler_id" != "unknown"; then
17355 tmp_save_CPPFLAGS="$CPPFLAGS"
17356 tmp_save_CFLAGS="$CFLAGS"
17360 case "$compiler_id" in
17364 if test "$want_warnings" = "yes"; then
17365 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17366 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17367 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17368 tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
17369 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17370 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17371 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17372 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17373 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17374 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17375 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17376 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17377 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17378 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17379 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17380 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17381 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
17383 if test "$compiler_num" -ge "101"; then
17384 tmp_CFLAGS="$tmp_CFLAGS -Wunused"
17391 if test "$want_warnings" = "yes"; then
17392 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
17398 if test "$want_warnings" = "yes"; then
17400 if test "x$cross_compiling" != "xyes" ||
17401 test "$compiler_num" -ge "300"; then
17402 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17405 tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
17407 if test "$compiler_num" -ge "104"; then
17408 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17409 if test "x$cross_compiling" != "xyes" ||
17410 test "$compiler_num" -ge "300"; then
17411 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
17415 if test "$compiler_num" -ge "207"; then
17416 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17417 if test "x$cross_compiling" != "xyes" ||
17418 test "$compiler_num" -ge "300"; then
17419 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17420 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17424 if test "$compiler_num" -ge "295"; then
17425 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17428 if test "$compiler_num" -ge "296"; then
17429 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17430 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17431 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17434 if test "$compiler_num" -ge "297"; then
17435 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17438 if test "$compiler_num" -ge "300"; then
17439 tmp_CFLAGS="$tmp_CFLAGS"
17442 if test "$compiler_num" -ge "303"; then
17443 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17446 if test "$compiler_num" -ge "304"; then
17447 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17450 if test "$compiler_num" -ge "400"; then
17451 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
17454 if test "$compiler_num" -ge "402"; then
17455 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17458 if test "$compiler_num" -ge "403"; then
17459 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
17460 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
17461 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
17462 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
17465 if test "$compiler_num" -ge "405"; then
17466 if test "$curl_cv_have_def__WIN32" = "yes"; then
17467 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
17473 if test "$compiler_num" -ge "300"; then
17474 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17476 if test "x$cross_compiling" = "xyes"; then
17477 if test "$compiler_num" -ge "104"; then
17478 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
17480 if test "$compiler_num" -ge "207"; then
17481 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
17482 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
17490 if test "$want_warnings" = "yes"; then
17491 tmp_CFLAGS="$tmp_CFLAGS +w1"
17497 tmp_CFLAGS="$tmp_CFLAGS"
17502 if test "$want_warnings" = "yes"; then
17503 if test "$compiler_num" -gt "600"; then
17504 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
17505 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
17506 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
17507 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
17508 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
17509 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
17510 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
17511 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
17512 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
17513 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
17514 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
17517 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
17518 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
17519 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
17520 if test "$compiler_num" -ge "1000"; then
17521 tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
17527 tmp_CFLAGS="$tmp_CFLAGS"
17532 if test "$want_warnings" = "yes"; then
17533 tmp_CFLAGS="$tmp_CFLAGS"
17539 if test "$want_warnings" = "yes"; then
17540 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
17546 if test "$want_warnings" = "yes"; then
17547 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
17548 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
17554 if test "$want_warnings" = "yes"; then
17555 tmp_CFLAGS="$tmp_CFLAGS -v"
17561 if test "$want_warnings" = "yes"; then
17562 tmp_CFLAGS="$tmp_CFLAGS -Wall"
17563 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
17564 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
17570 if test "$want_warnings" = "yes"; then
17571 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17577 tmp_CFLAGS="$tmp_CFLAGS"
17582 squeeze tmp_CPPFLAGS
17585 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
17587 $as_echo_n "checking if compiler accepts strict warning options... " >&6; }
17588 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17589 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17593 tmp_compiler_works="unknown"
17594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17595 /* end confdefs.h. */
17610 if ac_fn_c_try_compile "$LINENO"; then :
17612 tmp_compiler_works="yes"
17616 tmp_compiler_works="no"
17618 sed 's/^/cc-fail: /' conftest.err >&6
17622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17623 if test "$tmp_compiler_works" = "yes"; then
17624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17625 /* end confdefs.h. */
17640 if ac_fn_c_try_link "$LINENO"; then :
17642 tmp_compiler_works="yes"
17646 tmp_compiler_works="no"
17648 sed 's/^/link-fail: /' conftest.err >&6
17652 rm -f core conftest.err conftest.$ac_objext \
17653 conftest$ac_exeext conftest.$ac_ext
17655 if test "x$cross_compiling" != "xyes" &&
17656 test "$tmp_compiler_works" = "yes"; then
17657 if test "$cross_compiling" = yes; then :
17658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17660 as_fn_error $? "cannot run test program while cross compiling
17661 See \`config.log' for more details" "$LINENO" 5; }
17663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17664 /* end confdefs.h. */
17668 # include <stdlib.h>
17682 if ac_fn_c_try_run "$LINENO"; then :
17684 tmp_compiler_works="yes"
17688 tmp_compiler_works="no"
17690 echo "run-fail: test program exited with status $ac_status" >&6
17694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17695 conftest.$ac_objext conftest.beam conftest.$ac_ext
17699 if test "$tmp_compiler_works" = "yes"; then
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17702 $as_echo "yes" >&6; }
17703 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17704 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17709 $as_echo "no" >&6; }
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17711 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17712 CPPFLAGS="$tmp_save_CPPFLAGS"
17713 CFLAGS="$tmp_save_CFLAGS"
17722 if test "$compiler_id" = "INTEL_UNIX_C"; then
17724 if test "$compiler_num" -ge "1000"; then
17725 CFLAGS="$CFLAGS -shared-intel"
17726 elif test "$compiler_num" -ge "900"; then
17727 CFLAGS="$CFLAGS -i-dynamic"
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
17734 $as_echo_n "checking if compiler halts on compilation errors... " >&6; }
17735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17736 /* end confdefs.h. */
17743 force compilation error
17750 if ac_fn_c_try_compile "$LINENO"; then :
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17753 $as_echo "no" >&6; }
17754 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17759 $as_echo "yes" >&6; }
17762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
17766 $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
17767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17768 /* end confdefs.h. */
17771 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
17783 if ac_fn_c_try_compile "$LINENO"; then :
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17786 $as_echo "no" >&6; }
17787 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17792 $as_echo "yes" >&6; }
17795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
17799 $as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
17800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17801 /* end confdefs.h. */
17804 # include <stdlib.h>
17818 int j = rand(i[0]);
17827 if ac_fn_c_try_compile "$LINENO"; then :
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17830 $as_echo "no" >&6; }
17831 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17836 $as_echo "yes" >&6; }
17839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
17843 $as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
17844 supports_symbol_hiding="no"
17845 symbol_hiding_CFLAGS=""
17846 symbol_hiding_EXTERN=""
17849 case "$compiler_id" in
17851 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
17852 tmp_CFLAGS="-fvisibility=hidden"
17853 supports_symbol_hiding="yes"
17856 if test "$compiler_num" -ge "304"; then
17857 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
17858 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
17859 tmp_CFLAGS="-fvisibility=hidden"
17860 supports_symbol_hiding="yes"
17865 if test "$compiler_num" -ge "900"; then
17866 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
17867 tmp_save_CFLAGS="$CFLAGS"
17868 CFLAGS="$CFLAGS -fvisibility=hidden"
17869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17870 /* end confdefs.h. */
17873 # include <stdio.h>
17878 printf("icc fvisibility bug test");
17885 if ac_fn_c_try_link "$LINENO"; then :
17887 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
17888 tmp_CFLAGS="-fvisibility=hidden"
17889 supports_symbol_hiding="yes"
17892 rm -f core conftest.err conftest.$ac_objext \
17893 conftest$ac_exeext conftest.$ac_ext
17894 CFLAGS="$tmp_save_CFLAGS"
17899 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
17900 tmp_EXTERN="__global"
17901 tmp_CFLAGS="-xldscope=hidden"
17902 supports_symbol_hiding="yes"
17906 if test "$supports_symbol_hiding" = "yes"; then
17907 tmp_save_CFLAGS="$CFLAGS"
17908 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17911 /* end confdefs.h. */
17914 $tmp_EXTERN char *dummy(char *buff);
17915 char *dummy(char *buff)
17927 char *r = dummy(&b[0]);
17936 if ac_fn_c_try_compile "$LINENO"; then :
17938 supports_symbol_hiding="yes"
17939 if test -f conftest.err; then
17940 grep 'visibility' conftest.err >/dev/null
17941 if test "$?" -eq "0"; then
17942 supports_symbol_hiding="no"
17948 supports_symbol_hiding="no"
17950 sed 's/^/cc-src: /' conftest.$ac_ext >&6
17951 sed 's/^/cc-err: /' conftest.err >&6
17955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17956 CFLAGS="$tmp_save_CFLAGS"
17958 if test "$supports_symbol_hiding" = "yes"; then
17959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17960 $as_echo "yes" >&6; }
17961 symbol_hiding_CFLAGS="$tmp_CFLAGS"
17962 symbol_hiding_EXTERN="$tmp_EXTERN"
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17965 $as_echo "no" >&6; }
17970 supports_curldebug="unknown"
17971 if test "$want_curldebug" = "yes"; then
17972 if test "x$enable_shared" != "xno" &&
17973 test "x$enable_shared" != "xyes"; then
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
17975 $as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
17976 supports_curldebug="no"
17978 if test "x$enable_static" != "xno" &&
17979 test "x$enable_static" != "xyes"; then
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
17981 $as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
17982 supports_curldebug="no"
17984 if test "$supports_curldebug" != "no"; then
17985 if test "$enable_shared" = "yes" &&
17986 test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
17987 supports_curldebug="no"
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
17989 $as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
17994 if test "$want_curldebug" = "yes"; then
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
17996 $as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
17997 test "$supports_curldebug" = "no" || supports_curldebug="yes"
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
17999 $as_echo "$supports_curldebug" >&6; }
18000 if test "$supports_curldebug" = "no"; then
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
18002 $as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
18003 want_curldebug="no"
18007 if test "$want_curldebug" = "yes"; then
18008 CPPFLAGS="-DCURLDEBUG $CPPFLAGS"
18011 if test "$want_debug" = "yes"; then
18012 CPPFLAGS="-DDEBUGBUILD $CPPFLAGS"
18016 if test x$want_curldebug = xyes; then
18018 CURLDEBUG_FALSE='#'
18025 supports_unittests=yes
18026 # cross-compilation of unit tests static library/programs fails when
18027 # libcurl shared library is built. This might be due to a libtool or
18028 # automake issue. In this case we disable unit tests.
18029 if test "x$cross_compiling" != "xno" &&
18030 test "x$enable_shared" != "xno"; then
18031 supports_unittests=no
18034 # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
18035 # a problem related with OpenSSL headers and library versions not matching.
18036 # Disable unit tests while time to further investigate this is found.
18039 if test "$compiler_id" = "GNU_C"; then
18040 supports_unittests=no
18045 # All AIX autobuilds fails unit tests linking against unittests library
18046 # due to unittests library being built with no symbols or members. Libtool ?
18047 # Disable unit tests while time to further investigate this is found.
18050 supports_unittests=no
18054 if test "x$want_debug" = "xyes" &&
18055 test "x$supports_unittests" = "xyes"; then
18060 if test x$want_unittests = xyes; then
18061 BUILD_UNITTESTS_TRUE=
18062 BUILD_UNITTESTS_FALSE='#'
18064 BUILD_UNITTESTS_TRUE='#'
18065 BUILD_UNITTESTS_FALSE=
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18073 $as_echo_n "checking for windows.h... " >&6; }
18074 if ${ac_cv_header_windows_h+:} false; then :
18075 $as_echo_n "(cached) " >&6
18078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18079 /* end confdefs.h. */
18083 #ifndef WIN32_LEAN_AND_MEAN
18084 #define WIN32_LEAN_AND_MEAN
18086 #include <windows.h>
18091 #if defined(__CYGWIN__) || defined(__CEGCC__)
18092 HAVE_WINDOWS_H shall not be defined.
18094 int dummy=2*WINVER;
18102 if ac_fn_c_try_compile "$LINENO"; then :
18104 ac_cv_header_windows_h="yes"
18108 ac_cv_header_windows_h="no"
18111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
18115 $as_echo "$ac_cv_header_windows_h" >&6; }
18116 case "$ac_cv_header_windows_h" in
18119 cat >>confdefs.h <<_ACEOF
18120 #define HAVE_WINDOWS_H 1
18124 cat >>confdefs.h <<_ACEOF
18125 #define WIN32_LEAN_AND_MEAN 1
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18133 $as_echo_n "checking whether build target is a native Windows one... " >&6; }
18134 if ${ac_cv_native_windows+:} false; then :
18135 $as_echo_n "(cached) " >&6
18138 if test "$ac_cv_header_windows_h" = "no"; then
18139 ac_cv_native_windows="no"
18141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18142 /* end confdefs.h. */
18149 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
18150 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
18153 Not a native Windows build target.
18161 if ac_fn_c_try_compile "$LINENO"; then :
18163 ac_cv_native_windows="yes"
18167 ac_cv_native_windows="no"
18170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_native_windows" >&5
18175 $as_echo "$ac_cv_native_windows" >&6; }
18176 if test "x$ac_cv_native_windows" = xyes; then
18177 DOING_NATIVE_WINDOWS_TRUE=
18178 DOING_NATIVE_WINDOWS_FALSE='#'
18180 DOING_NATIVE_WINDOWS_TRUE='#'
18181 DOING_NATIVE_WINDOWS_FALSE=
18185 case X-"$ac_cv_native_windows" in
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18189 $as_echo_n "checking for winsock.h... " >&6; }
18190 if ${ac_cv_header_winsock_h+:} false; then :
18191 $as_echo_n "(cached) " >&6
18194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18195 /* end confdefs.h. */
18199 #ifndef WIN32_LEAN_AND_MEAN
18200 #define WIN32_LEAN_AND_MEAN
18202 #include <windows.h>
18203 #include <winsock.h>
18208 #if defined(__CYGWIN__) || defined(__CEGCC__)
18209 HAVE_WINSOCK_H shall not be defined.
18211 int dummy=WSACleanup();
18219 if ac_fn_c_try_compile "$LINENO"; then :
18221 ac_cv_header_winsock_h="yes"
18225 ac_cv_header_winsock_h="no"
18228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
18232 $as_echo "$ac_cv_header_winsock_h" >&6; }
18233 case "$ac_cv_header_winsock_h" in
18236 cat >>confdefs.h <<_ACEOF
18237 #define HAVE_WINSOCK_H 1
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18245 $as_echo_n "checking for winsock2.h... " >&6; }
18246 if ${ac_cv_header_winsock2_h+:} false; then :
18247 $as_echo_n "(cached) " >&6
18250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18251 /* end confdefs.h. */
18255 #ifndef WIN32_LEAN_AND_MEAN
18256 #define WIN32_LEAN_AND_MEAN
18258 #include <windows.h>
18259 #include <winsock2.h>
18264 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18265 HAVE_WINSOCK2_H shall not be defined.
18267 int dummy=2*IPPROTO_ESP;
18275 if ac_fn_c_try_compile "$LINENO"; then :
18277 ac_cv_header_winsock2_h="yes"
18281 ac_cv_header_winsock2_h="no"
18284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
18288 $as_echo "$ac_cv_header_winsock2_h" >&6; }
18289 case "$ac_cv_header_winsock2_h" in
18292 cat >>confdefs.h <<_ACEOF
18293 #define HAVE_WINSOCK2_H 1
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18301 $as_echo_n "checking for ws2tcpip.h... " >&6; }
18302 if ${ac_cv_header_ws2tcpip_h+:} false; then :
18303 $as_echo_n "(cached) " >&6
18306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18307 /* end confdefs.h. */
18311 #ifndef WIN32_LEAN_AND_MEAN
18312 #define WIN32_LEAN_AND_MEAN
18314 #include <windows.h>
18315 #include <winsock2.h>
18316 #include <ws2tcpip.h>
18321 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18322 HAVE_WS2TCPIP_H shall not be defined.
18324 int dummy=2*IP_PKTINFO;
18332 if ac_fn_c_try_compile "$LINENO"; then :
18334 ac_cv_header_ws2tcpip_h="yes"
18338 ac_cv_header_ws2tcpip_h="no"
18341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
18345 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
18346 case "$ac_cv_header_ws2tcpip_h" in
18349 cat >>confdefs.h <<_ACEOF
18350 #define HAVE_WS2TCPIP_H 1
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
18358 $as_echo_n "checking for winldap.h... " >&6; }
18359 if ${ac_cv_header_winldap_h+:} false; then :
18360 $as_echo_n "(cached) " >&6
18363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18364 /* end confdefs.h. */
18368 #ifdef HAVE_WINDOWS_H
18369 #ifndef WIN32_LEAN_AND_MEAN
18370 #define WIN32_LEAN_AND_MEAN
18372 #include <windows.h>
18374 #include <winldap.h>
18379 #if defined(__CYGWIN__) || defined(__CEGCC__)
18380 HAVE_WINLDAP_H shall not be defined.
18382 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
18383 ULONG res = ldap_unbind(ldp);
18391 if ac_fn_c_try_compile "$LINENO"; then :
18393 ac_cv_header_winldap_h="yes"
18397 ac_cv_header_winldap_h="no"
18400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winldap_h" >&5
18404 $as_echo "$ac_cv_header_winldap_h" >&6; }
18405 case "$ac_cv_header_winldap_h" in
18408 cat >>confdefs.h <<_ACEOF
18409 #define HAVE_WINLDAP_H 1
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
18417 $as_echo_n "checking for winber.h... " >&6; }
18418 if ${ac_cv_header_winber_h+:} false; then :
18419 $as_echo_n "(cached) " >&6
18422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18423 /* end confdefs.h. */
18427 #ifdef HAVE_WINDOWS_H
18428 #ifndef WIN32_LEAN_AND_MEAN
18429 #define WIN32_LEAN_AND_MEAN
18431 #include <windows.h>
18433 #include <winldap.h>
18434 #include <winber.h>
18439 #if defined(__CYGWIN__) || defined(__CEGCC__)
18440 HAVE_WINBER_H shall not be defined.
18442 BERVAL *bvp = NULL;
18443 BerElement *bep = ber_init(bvp);
18452 if ac_fn_c_try_compile "$LINENO"; then :
18454 ac_cv_header_winber_h="yes"
18458 ac_cv_header_winber_h="no"
18461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winber_h" >&5
18465 $as_echo "$ac_cv_header_winber_h" >&6; }
18466 case "$ac_cv_header_winber_h" in
18469 cat >>confdefs.h <<_ACEOF
18470 #define HAVE_WINBER_H 1
18478 ac_cv_header_winsock_h="no"
18479 ac_cv_header_winsock2_h="no"
18480 ac_cv_header_ws2tcpip_h="no"
18481 ac_cv_header_winldap_h="no"
18482 ac_cv_header_winber_h="no"
18486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
18487 $as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
18488 curl_win32_file_api="no"
18489 if test "$ac_cv_header_windows_h" = "yes"; then
18490 if test x"$enable_largefile" != "xno"; then
18491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18492 /* end confdefs.h. */
18499 #if !defined(_WIN32_WCE) && \
18500 (defined(__MINGW32__) || \
18501 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
18504 WIN32 large file API not supported.
18512 if ac_fn_c_try_compile "$LINENO"; then :
18514 curl_win32_file_api="win32_large_files"
18517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18519 if test "$curl_win32_file_api" = "no"; then
18520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18521 /* end confdefs.h. */
18528 #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
18531 WIN32 small file API not supported.
18539 if ac_fn_c_try_compile "$LINENO"; then :
18541 curl_win32_file_api="win32_small_files"
18544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18547 case "$curl_win32_file_api" in
18549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
18550 $as_echo "yes (large file enabled)" >&6; }
18552 cat >>confdefs.h <<_ACEOF
18553 #define USE_WIN32_LARGE_FILES 1
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
18559 $as_echo "yes (large file disabled)" >&6; }
18561 cat >>confdefs.h <<_ACEOF
18562 #define USE_WIN32_SMALL_FILES 1
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18568 $as_echo "no" >&6; }
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
18574 $as_echo_n "checking whether to support http... " >&6; }
18575 # Check whether --enable-http was given.
18576 if test "${enable_http+set}" = set; then :
18577 enableval=$enable_http; case "$enableval" in
18579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18580 $as_echo "no" >&6; }
18582 $as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
18585 $as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
18586 CURL_DISABLE_HTTP=1
18589 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
18591 CURL_DISABLE_RTSP=1
18594 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18595 $as_echo "yes" >&6; }
18599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18600 $as_echo "yes" >&6; }
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
18605 $as_echo_n "checking whether to support ftp... " >&6; }
18606 # Check whether --enable-ftp was given.
18607 if test "${enable_ftp+set}" = set; then :
18608 enableval=$enable_ftp; case "$enableval" in
18610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18611 $as_echo "no" >&6; }
18613 $as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
18618 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18619 $as_echo "yes" >&6; }
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18624 $as_echo "yes" >&6; }
18628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
18629 $as_echo_n "checking whether to support file... " >&6; }
18630 # Check whether --enable-file was given.
18631 if test "${enable_file+set}" = set; then :
18632 enableval=$enable_file; case "$enableval" in
18634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18635 $as_echo "no" >&6; }
18637 $as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
18639 CURL_DISABLE_FILE=1
18642 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18643 $as_echo "yes" >&6; }
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18648 $as_echo "yes" >&6; }
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
18653 $as_echo_n "checking whether to support ldap... " >&6; }
18654 # Check whether --enable-ldap was given.
18655 if test "${enable_ldap+set}" = set; then :
18656 enableval=$enable_ldap; case "$enableval" in
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18659 $as_echo "no" >&6; }
18661 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
18663 CURL_DISABLE_LDAP=1
18667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18668 $as_echo "yes" >&6; }
18673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18674 $as_echo "yes" >&6; }
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
18679 $as_echo_n "checking whether to support ldaps... " >&6; }
18680 # Check whether --enable-ldaps was given.
18681 if test "${enable_ldaps+set}" = set; then :
18682 enableval=$enable_ldaps; case "$enableval" in
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18685 $as_echo "no" >&6; }
18687 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
18689 CURL_DISABLE_LDAPS=1
18692 *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
18694 $as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
18696 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
18698 CURL_DISABLE_LDAPS=1
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18702 $as_echo "yes" >&6; }
18704 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
18713 if test "x$CURL_DISABLE_LDAP" = "x1" ; then
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18715 $as_echo "no" >&6; }
18717 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
18719 CURL_DISABLE_LDAPS=1
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18723 $as_echo "yes" >&6; }
18725 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
18735 $as_echo_n "checking whether to support rtsp... " >&6; }
18736 # Check whether --enable-rtsp was given.
18737 if test "${enable_rtsp+set}" = set; then :
18738 enableval=$enable_rtsp; case "$enableval" in
18740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18741 $as_echo "no" >&6; }
18743 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
18745 CURL_DISABLE_RTSP=1
18748 *) if test x$CURL_DISABLE_HTTP = x1 ; then
18749 as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18752 $as_echo "yes" >&6; }
18753 curl_rtsp_msg="enabled"
18758 if test "x$CURL_DISABLE_HTTP" != "x1"; then
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18760 $as_echo "yes" >&6; }
18761 curl_rtsp_msg="enabled"
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18764 $as_echo "no" >&6; }
18770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
18771 $as_echo_n "checking whether to support proxies... " >&6; }
18772 # Check whether --enable-proxy was given.
18773 if test "${enable_proxy+set}" = set; then :
18774 enableval=$enable_proxy; case "$enableval" in
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18777 $as_echo "no" >&6; }
18779 $as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
18781 CURL_DISABLE_PROXY=1
18784 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18785 $as_echo "yes" >&6; }
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18790 $as_echo "yes" >&6; }
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
18796 $as_echo_n "checking whether to support dict... " >&6; }
18797 # Check whether --enable-dict was given.
18798 if test "${enable_dict+set}" = set; then :
18799 enableval=$enable_dict; case "$enableval" in
18801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18802 $as_echo "no" >&6; }
18804 $as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
18806 CURL_DISABLE_DICT=1
18809 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18810 $as_echo "yes" >&6; }
18814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18815 $as_echo "yes" >&6; }
18819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
18820 $as_echo_n "checking whether to support telnet... " >&6; }
18821 # Check whether --enable-telnet was given.
18822 if test "${enable_telnet+set}" = set; then :
18823 enableval=$enable_telnet; case "$enableval" in
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18826 $as_echo "no" >&6; }
18828 $as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
18830 CURL_DISABLE_TELNET=1
18833 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18834 $as_echo "yes" >&6; }
18838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18839 $as_echo "yes" >&6; }
18843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
18844 $as_echo_n "checking whether to support tftp... " >&6; }
18845 # Check whether --enable-tftp was given.
18846 if test "${enable_tftp+set}" = set; then :
18847 enableval=$enable_tftp; case "$enableval" in
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18850 $as_echo "no" >&6; }
18852 $as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
18854 CURL_DISABLE_TFTP=1
18857 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18858 $as_echo "yes" >&6; }
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18863 $as_echo "yes" >&6; }
18868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
18869 $as_echo_n "checking whether to support pop3... " >&6; }
18870 # Check whether --enable-pop3 was given.
18871 if test "${enable_pop3+set}" = set; then :
18872 enableval=$enable_pop3; case "$enableval" in
18874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18875 $as_echo "no" >&6; }
18877 $as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
18879 CURL_DISABLE_POP3=1
18882 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18883 $as_echo "yes" >&6; }
18887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18888 $as_echo "yes" >&6; }
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
18895 $as_echo_n "checking whether to support imap... " >&6; }
18896 # Check whether --enable-imap was given.
18897 if test "${enable_imap+set}" = set; then :
18898 enableval=$enable_imap; case "$enableval" in
18900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18901 $as_echo "no" >&6; }
18903 $as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
18905 CURL_DISABLE_IMAP=1
18908 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18909 $as_echo "yes" >&6; }
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18914 $as_echo "yes" >&6; }
18920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
18921 $as_echo_n "checking whether to support smtp... " >&6; }
18922 # Check whether --enable-smtp was given.
18923 if test "${enable_smtp+set}" = set; then :
18924 enableval=$enable_smtp; case "$enableval" in
18926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18927 $as_echo "no" >&6; }
18929 $as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
18931 CURL_DISABLE_SMTP=1
18934 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18935 $as_echo "yes" >&6; }
18939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18940 $as_echo "yes" >&6; }
18945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
18946 $as_echo_n "checking whether to support gopher... " >&6; }
18947 # Check whether --enable-gopher was given.
18948 if test "${enable_gopher+set}" = set; then :
18949 enableval=$enable_gopher; case "$enableval" in
18951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18952 $as_echo "no" >&6; }
18954 $as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
18956 CURL_DISABLE_GOPHER=1
18959 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18960 $as_echo "yes" >&6; }
18964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18965 $as_echo "yes" >&6; }
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
18973 $as_echo_n "checking whether to provide built-in manual... " >&6; }
18974 # Check whether --enable-manual was given.
18975 if test "${enable_manual+set}" = set; then :
18976 enableval=$enable_manual; case "$enableval" in
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18979 $as_echo "no" >&6; }
18981 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18982 $as_echo "yes" >&6; }
18987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18988 $as_echo "yes" >&6; }
18994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
18995 $as_echo_n "checking whether to enable generation of C code... " >&6; }
18996 # Check whether --enable-libcurl_option was given.
18997 if test "${enable_libcurl_option+set}" = set; then :
18998 enableval=$enable_libcurl_option; case "$enableval" in
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19001 $as_echo "no" >&6; }
19003 $as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
19005 curl_libcurl_msg="no"
19007 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19008 $as_echo "yes" >&6; }
19012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19013 $as_echo "yes" >&6; }
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
19020 $as_echo_n "checking whether to use libgcc... " >&6; }
19021 # Check whether --enable-libgcc was given.
19022 if test "${enable_libgcc+set}" = set; then :
19023 enableval=$enable_libgcc; case "$enableval" in
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19027 $as_echo "yes" >&6; }
19029 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19030 $as_echo "no" >&6; }
19034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19035 $as_echo "no" >&6; }
19041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
19042 $as_echo_n "checking if X/Open network library is required... " >&6; }
19043 tst_lib_xnet_required="no"
19044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19045 /* end confdefs.h. */
19050 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
19052 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
19055 force compilation error
19061 if ac_fn_c_try_compile "$LINENO"; then :
19063 tst_lib_xnet_required="yes"
19064 LIBS="-lxnet $LIBS"
19067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
19069 $as_echo "$tst_lib_xnet_required" >&6; }
19072 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19073 if test "x$ac_cv_func_gethostbyname" = xyes; then :
19074 HAVE_GETHOSTBYNAME="1"
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19078 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19079 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19080 $as_echo_n "(cached) " >&6
19082 ac_check_lib_save_LIBS=$LIBS
19084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19085 /* end confdefs.h. */
19091 char gethostbyname ();
19094 return gethostbyname ();
19099 if ac_fn_c_try_link "$LINENO"; then :
19100 ac_cv_lib_nsl_gethostbyname=yes
19102 ac_cv_lib_nsl_gethostbyname=no
19104 rm -f core conftest.err conftest.$ac_objext \
19105 conftest$ac_exeext conftest.$ac_ext
19106 LIBS=$ac_check_lib_save_LIBS
19108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19109 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19110 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19111 HAVE_GETHOSTBYNAME="1"
19120 if test "$HAVE_GETHOSTBYNAME" != "1"
19122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
19123 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
19124 if ${ac_cv_lib_socket_gethostbyname+:} false; then :
19125 $as_echo_n "(cached) " >&6
19127 ac_check_lib_save_LIBS=$LIBS
19128 LIBS="-lsocket $LIBS"
19129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19130 /* end confdefs.h. */
19136 char gethostbyname ();
19139 return gethostbyname ();
19144 if ac_fn_c_try_link "$LINENO"; then :
19145 ac_cv_lib_socket_gethostbyname=yes
19147 ac_cv_lib_socket_gethostbyname=no
19149 rm -f core conftest.err conftest.$ac_objext \
19150 conftest$ac_exeext conftest.$ac_ext
19151 LIBS=$ac_check_lib_save_LIBS
19153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
19154 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
19155 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
19156 HAVE_GETHOSTBYNAME="1"
19157 LIBS="-lsocket $LIBS"
19163 if test "$HAVE_GETHOSTBYNAME" != "1"
19165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
19166 $as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
19167 if ${ac_cv_lib_watt_gethostbyname+:} false; then :
19168 $as_echo_n "(cached) " >&6
19170 ac_check_lib_save_LIBS=$LIBS
19171 LIBS="-lwatt $LIBS"
19172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19173 /* end confdefs.h. */
19179 char gethostbyname ();
19182 return gethostbyname ();
19187 if ac_fn_c_try_link "$LINENO"; then :
19188 ac_cv_lib_watt_gethostbyname=yes
19190 ac_cv_lib_watt_gethostbyname=no
19192 rm -f core conftest.err conftest.$ac_objext \
19193 conftest$ac_exeext conftest.$ac_ext
19194 LIBS=$ac_check_lib_save_LIBS
19196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
19197 $as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
19198 if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
19199 HAVE_GETHOSTBYNAME="1"
19200 CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
19201 LDFLAGS="-L/dev/env/WATT_ROOT/lib"
19202 LIBS="-lwatt $LIBS"
19208 if test "$HAVE_GETHOSTBYNAME" != "1"
19210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
19211 $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
19212 my_ac_save_LIBS=$LIBS
19213 LIBS="-lnsl -lsocket $LIBS"
19214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19215 /* end confdefs.h. */
19229 if ac_fn_c_try_link "$LINENO"; then :
19231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19232 $as_echo "yes" >&6; }
19233 HAVE_GETHOSTBYNAME="1"
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19238 $as_echo "no" >&6; }
19239 LIBS=$my_ac_save_LIBS
19242 rm -f core conftest.err conftest.$ac_objext \
19243 conftest$ac_exeext conftest.$ac_ext
19246 if test "$HAVE_GETHOSTBYNAME" != "1"
19248 if test "$ac_cv_header_windows_h" = "yes"; then
19249 if test "$ac_cv_header_winsock_h" = "yes"; then
19252 winsock_LIB="-lwinsock"
19255 winsock_LIB="-lwsock32"
19259 if test "$ac_cv_header_winsock2_h" = "yes"; then
19260 winsock_LIB="-lws2_32"
19262 if test ! -z "$winsock_LIB"; then
19263 my_ac_save_LIBS=$LIBS
19264 LIBS="$winsock_LIB $LIBS"
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
19266 $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
19267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19268 /* end confdefs.h. */
19271 #ifdef HAVE_WINDOWS_H
19272 #ifndef WIN32_LEAN_AND_MEAN
19273 #define WIN32_LEAN_AND_MEAN
19275 #include <windows.h>
19276 #ifdef HAVE_WINSOCK2_H
19277 #include <winsock2.h>
19279 #ifdef HAVE_WINSOCK_H
19280 #include <winsock.h>
19288 gethostbyname("www.dummysite.com");
19295 if ac_fn_c_try_link "$LINENO"; then :
19297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19298 $as_echo "yes" >&6; }
19299 HAVE_GETHOSTBYNAME="1"
19303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19304 $as_echo "no" >&6; }
19306 LIBS=$my_ac_save_LIBS
19309 rm -f core conftest.err conftest.$ac_objext \
19310 conftest$ac_exeext conftest.$ac_ext
19315 if test "$HAVE_GETHOSTBYNAME" != "1"
19317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
19318 $as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
19319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19320 /* end confdefs.h. */
19323 /* Older Minix versions may need <net/gen/netdb.h> here instead */
19329 gethostbyname("www.dummysite.com");
19336 if ac_fn_c_try_link "$LINENO"; then :
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19339 $as_echo "yes" >&6; }
19340 HAVE_GETHOSTBYNAME="1"
19344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19345 $as_echo "no" >&6; }
19348 rm -f core conftest.err conftest.$ac_objext \
19349 conftest$ac_exeext conftest.$ac_ext
19352 if test "$HAVE_GETHOSTBYNAME" != "1"
19354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
19355 $as_echo_n "checking for gethostbyname for eCos... " >&6; }
19356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19357 /* end confdefs.h. */
19366 gethostbyname("www.dummysite.com");
19373 if ac_fn_c_try_link "$LINENO"; then :
19375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19376 $as_echo "yes" >&6; }
19377 HAVE_GETHOSTBYNAME="1"
19381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19382 $as_echo "no" >&6; }
19385 rm -f core conftest.err conftest.$ac_objext \
19386 conftest$ac_exeext conftest.$ac_ext
19389 if test "$HAVE_GETHOSTBYNAME" != "1"
19391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
19392 $as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
19393 if ${ac_cv_lib_network_gethostbyname+:} false; then :
19394 $as_echo_n "(cached) " >&6
19396 ac_check_lib_save_LIBS=$LIBS
19397 LIBS="-lnetwork $LIBS"
19398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19399 /* end confdefs.h. */
19405 char gethostbyname ();
19408 return gethostbyname ();
19413 if ac_fn_c_try_link "$LINENO"; then :
19414 ac_cv_lib_network_gethostbyname=yes
19416 ac_cv_lib_network_gethostbyname=no
19418 rm -f core conftest.err conftest.$ac_objext \
19419 conftest$ac_exeext conftest.$ac_ext
19420 LIBS=$ac_check_lib_save_LIBS
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
19423 $as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
19424 if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
19425 HAVE_GETHOSTBYNAME="1"
19426 LIBS="-lnetwork $LIBS"
19432 if test "$HAVE_GETHOSTBYNAME" != "1"
19434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
19435 $as_echo_n "checking for gethostbyname in -lnet... " >&6; }
19436 if ${ac_cv_lib_net_gethostbyname+:} false; then :
19437 $as_echo_n "(cached) " >&6
19439 ac_check_lib_save_LIBS=$LIBS
19441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19442 /* end confdefs.h. */
19448 char gethostbyname ();
19451 return gethostbyname ();
19456 if ac_fn_c_try_link "$LINENO"; then :
19457 ac_cv_lib_net_gethostbyname=yes
19459 ac_cv_lib_net_gethostbyname=no
19461 rm -f core conftest.err conftest.$ac_objext \
19462 conftest$ac_exeext conftest.$ac_ext
19463 LIBS=$ac_check_lib_save_LIBS
19465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
19466 $as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
19467 if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
19468 HAVE_GETHOSTBYNAME="1"
19476 if test "$HAVE_GETHOSTBYNAME" != "1"; then
19477 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
19480 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
19481 if test "x$ac_cv_func_strcasecmp" = xyes; then :
19484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
19485 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
19486 if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
19487 $as_echo_n "(cached) " >&6
19489 ac_check_lib_save_LIBS=$LIBS
19490 LIBS="-lresolve $LIBS"
19491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19492 /* end confdefs.h. */
19498 char strcasecmp ();
19501 return strcasecmp ();
19506 if ac_fn_c_try_link "$LINENO"; then :
19507 ac_cv_lib_resolve_strcasecmp=yes
19509 ac_cv_lib_resolve_strcasecmp=no
19511 rm -f core conftest.err conftest.$ac_objext \
19512 conftest$ac_exeext conftest.$ac_ext
19513 LIBS=$ac_check_lib_save_LIBS
19515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
19516 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
19517 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
19518 cat >>confdefs.h <<_ACEOF
19519 #define HAVE_LIBRESOLVE 1
19522 LIBS="-lresolve $LIBS"
19529 if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
19530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
19531 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
19532 if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
19533 $as_echo_n "(cached) " >&6
19535 ac_check_lib_save_LIBS=$LIBS
19536 LIBS="-lresolve -lnsl $LIBS"
19537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19538 /* end confdefs.h. */
19544 char strcasecmp ();
19547 return strcasecmp ();
19552 if ac_fn_c_try_link "$LINENO"; then :
19553 ac_cv_lib_resolve_strcasecmp=yes
19555 ac_cv_lib_resolve_strcasecmp=no
19557 rm -f core conftest.err conftest.$ac_objext \
19558 conftest$ac_exeext conftest.$ac_ext
19559 LIBS=$ac_check_lib_save_LIBS
19561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
19562 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
19563 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
19564 LIBS="-lresolve $LIBS"
19568 ac_cv_func_strcasecmp="no"
19571 curl_includes_winsock2="\
19572 /* includes start */
19573 #ifdef HAVE_WINDOWS_H
19574 # ifndef WIN32_LEAN_AND_MEAN
19575 # define WIN32_LEAN_AND_MEAN
19577 # include <windows.h>
19578 # ifdef HAVE_WINSOCK2_H
19579 # include <winsock2.h>
19581 # ifdef HAVE_WINSOCK_H
19582 # include <winsock.h>
19586 /* includes end */"
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
19589 $as_echo_n "checking for windows.h... " >&6; }
19590 if ${ac_cv_header_windows_h+:} false; then :
19591 $as_echo_n "(cached) " >&6
19594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19595 /* end confdefs.h. */
19599 #ifndef WIN32_LEAN_AND_MEAN
19600 #define WIN32_LEAN_AND_MEAN
19602 #include <windows.h>
19607 #if defined(__CYGWIN__) || defined(__CEGCC__)
19608 HAVE_WINDOWS_H shall not be defined.
19610 int dummy=2*WINVER;
19618 if ac_fn_c_try_compile "$LINENO"; then :
19620 ac_cv_header_windows_h="yes"
19624 ac_cv_header_windows_h="no"
19627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
19631 $as_echo "$ac_cv_header_windows_h" >&6; }
19632 case "$ac_cv_header_windows_h" in
19635 cat >>confdefs.h <<_ACEOF
19636 #define HAVE_WINDOWS_H 1
19640 cat >>confdefs.h <<_ACEOF
19641 #define WIN32_LEAN_AND_MEAN 1
19648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
19649 $as_echo_n "checking for winsock.h... " >&6; }
19650 if ${ac_cv_header_winsock_h+:} false; then :
19651 $as_echo_n "(cached) " >&6
19654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19655 /* end confdefs.h. */
19659 #ifndef WIN32_LEAN_AND_MEAN
19660 #define WIN32_LEAN_AND_MEAN
19662 #include <windows.h>
19663 #include <winsock.h>
19668 #if defined(__CYGWIN__) || defined(__CEGCC__)
19669 HAVE_WINSOCK_H shall not be defined.
19671 int dummy=WSACleanup();
19679 if ac_fn_c_try_compile "$LINENO"; then :
19681 ac_cv_header_winsock_h="yes"
19685 ac_cv_header_winsock_h="no"
19688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
19692 $as_echo "$ac_cv_header_winsock_h" >&6; }
19693 case "$ac_cv_header_winsock_h" in
19696 cat >>confdefs.h <<_ACEOF
19697 #define HAVE_WINSOCK_H 1
19704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
19705 $as_echo_n "checking for winsock2.h... " >&6; }
19706 if ${ac_cv_header_winsock2_h+:} false; then :
19707 $as_echo_n "(cached) " >&6
19710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19711 /* end confdefs.h. */
19715 #ifndef WIN32_LEAN_AND_MEAN
19716 #define WIN32_LEAN_AND_MEAN
19718 #include <windows.h>
19719 #include <winsock2.h>
19724 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
19725 HAVE_WINSOCK2_H shall not be defined.
19727 int dummy=2*IPPROTO_ESP;
19735 if ac_fn_c_try_compile "$LINENO"; then :
19737 ac_cv_header_winsock2_h="yes"
19741 ac_cv_header_winsock2_h="no"
19744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
19748 $as_echo "$ac_cv_header_winsock2_h" >&6; }
19749 case "$ac_cv_header_winsock2_h" in
19752 cat >>confdefs.h <<_ACEOF
19753 #define HAVE_WINSOCK2_H 1
19761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
19762 $as_echo_n "checking for connect in libraries... " >&6; }
19763 tst_connect_save_LIBS="$LIBS"
19764 tst_connect_need_LIBS="unknown"
19765 for tst_lib in '' '-lsocket' ; do
19766 if test "$tst_connect_need_LIBS" = "unknown"; then
19767 LIBS="$tst_lib $tst_connect_save_LIBS"
19768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19769 /* end confdefs.h. */
19772 $curl_includes_winsock2
19773 #ifndef HAVE_WINDOWS_H
19774 int connect(int, void*, int);
19780 if(0 != connect(0, 0, 0))
19788 if ac_fn_c_try_link "$LINENO"; then :
19790 tst_connect_need_LIBS="$tst_lib"
19793 rm -f core conftest.err conftest.$ac_objext \
19794 conftest$ac_exeext conftest.$ac_ext
19797 LIBS="$tst_connect_save_LIBS"
19799 case X-"$tst_connect_need_LIBS" in
19801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
19802 $as_echo "cannot find connect" >&6; }
19803 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
19806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19807 $as_echo "yes" >&6; }
19810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
19811 $as_echo "$tst_connect_need_LIBS" >&6; }
19812 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
19817 CURL_NETWORK_LIBS=$LIBS
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
19820 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
19821 if ${ac_cv_header_time+:} false; then :
19822 $as_echo_n "(cached) " >&6
19824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19825 /* end confdefs.h. */
19826 #include <sys/types.h>
19827 #include <sys/time.h>
19832 if ((struct tm *) 0)
19838 if ac_fn_c_try_compile "$LINENO"; then :
19839 ac_cv_header_time=yes
19841 ac_cv_header_time=no
19843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19846 $as_echo "$ac_cv_header_time" >&6; }
19847 if test $ac_cv_header_time = yes; then
19849 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19854 for ac_header in sys/types.h sys/time.h time.h
19856 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19857 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19858 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19859 cat >>confdefs.h <<_ACEOF
19860 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
19868 $as_echo_n "checking for monotonic clock_gettime... " >&6; }
19869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19870 /* end confdefs.h. */
19873 #ifdef HAVE_SYS_TYPES_H
19874 #include <sys/types.h>
19876 #ifdef HAVE_SYS_TIME_H
19877 #include <sys/time.h>
19878 #ifdef TIME_WITH_SYS_TIME
19890 struct timespec ts;
19891 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
19898 if ac_fn_c_try_compile "$LINENO"; then :
19900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19901 $as_echo "yes" >&6; }
19902 ac_cv_func_clock_gettime="yes"
19906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19907 $as_echo "no" >&6; }
19908 ac_cv_func_clock_gettime="no"
19911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19915 if test "$ac_cv_func_clock_gettime" = "yes"; then
19917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
19918 $as_echo_n "checking for clock_gettime in libraries... " >&6; }
19920 curl_cv_save_LIBS="$LIBS"
19921 curl_cv_gclk_LIBS="unknown"
19923 for x_xlibs in '' '-lrt' '-lposix4' ; do
19924 if test "$curl_cv_gclk_LIBS" = "unknown"; then
19925 if test -z "$x_xlibs"; then
19926 LIBS="$curl_cv_save_LIBS"
19928 LIBS="$x_xlibs $curl_cv_save_LIBS"
19930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19931 /* end confdefs.h. */
19934 #ifdef HAVE_SYS_TYPES_H
19935 #include <sys/types.h>
19937 #ifdef HAVE_SYS_TIME_H
19938 #include <sys/time.h>
19939 #ifdef TIME_WITH_SYS_TIME
19951 struct timespec ts;
19952 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
19959 if ac_fn_c_try_link "$LINENO"; then :
19961 curl_cv_gclk_LIBS="$x_xlibs"
19964 rm -f core conftest.err conftest.$ac_objext \
19965 conftest$ac_exeext conftest.$ac_ext
19969 LIBS="$curl_cv_save_LIBS"
19971 case X-"$curl_cv_gclk_LIBS" in
19973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
19974 $as_echo "cannot find clock_gettime" >&6; }
19975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
19976 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
19977 ac_cv_func_clock_gettime="no"
19980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
19981 $as_echo "no additional lib required" >&6; }
19982 ac_cv_func_clock_gettime="yes"
19985 if test -z "$curl_cv_save_LIBS"; then
19986 LIBS="$curl_cv_gclk_LIBS"
19988 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
19990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
19991 $as_echo "$curl_cv_gclk_LIBS" >&6; }
19992 ac_cv_func_clock_gettime="yes"
19996 if test "x$cross_compiling" != "xyes" &&
19997 test "$ac_cv_func_clock_gettime" = "yes"; then
19998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
19999 $as_echo_n "checking if monotonic clock_gettime works... " >&6; }
20000 if test "$cross_compiling" = yes; then :
20001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20003 as_fn_error $? "cannot run test program while cross compiling
20004 See \`config.log' for more details" "$LINENO" 5; }
20006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20007 /* end confdefs.h. */
20010 #ifdef HAVE_STDLIB_H
20011 #include <stdlib.h>
20013 #ifdef HAVE_SYS_TYPES_H
20014 #include <sys/types.h>
20016 #ifdef HAVE_SYS_TIME_H
20017 #include <sys/time.h>
20018 #ifdef TIME_WITH_SYS_TIME
20030 struct timespec ts;
20031 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
20041 if ac_fn_c_try_run "$LINENO"; then :
20043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20044 $as_echo "yes" >&6; }
20048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20049 $as_echo "no" >&6; }
20050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20051 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20052 ac_cv_func_clock_gettime="no"
20053 LIBS="$curl_cv_save_LIBS"
20056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20057 conftest.$ac_objext conftest.beam conftest.$ac_ext
20062 case "$ac_cv_func_clock_gettime" in
20065 cat >>confdefs.h <<_ACEOF
20066 #define HAVE_CLOCK_GETTIME_MONOTONIC 1
20076 CURL_NETWORK_AND_TIME_LIBS=$LIBS
20080 clean_CPPFLAGS=$CPPFLAGS
20081 clean_LDFLAGS=$LDFLAGS
20085 # Check whether --with-zlib was given.
20086 if test "${with_zlib+set}" = set; then :
20087 withval=$with_zlib; OPT_ZLIB="$withval"
20091 if test "$OPT_ZLIB" = "no" ; then
20092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
20093 $as_echo "$as_me: WARNING: zlib disabled" >&2;}
20095 if test "$OPT_ZLIB" = "yes" ; then
20099 if test -z "$OPT_ZLIB" ; then
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
20102 $as_echo_n "checking for inflateEnd in -lz... " >&6; }
20103 if ${ac_cv_lib_z_inflateEnd+:} false; then :
20104 $as_echo_n "(cached) " >&6
20106 ac_check_lib_save_LIBS=$LIBS
20108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20109 /* end confdefs.h. */
20115 char inflateEnd ();
20118 return inflateEnd ();
20123 if ac_fn_c_try_link "$LINENO"; then :
20124 ac_cv_lib_z_inflateEnd=yes
20126 ac_cv_lib_z_inflateEnd=no
20128 rm -f core conftest.err conftest.$ac_objext \
20129 conftest$ac_exeext conftest.$ac_ext
20130 LIBS=$ac_check_lib_save_LIBS
20132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
20133 $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
20134 if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
20138 OPT_ZLIB="/usr/local"
20144 if test -n "$OPT_ZLIB"; then
20145 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
20146 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
20149 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20150 if test "x$ac_cv_header_zlib_h" = xyes; then :
20153 if test "$HAVE_LIBZ" != "1"; then
20154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20155 $as_echo_n "checking for gzread in -lz... " >&6; }
20156 if ${ac_cv_lib_z_gzread+:} false; then :
20157 $as_echo_n "(cached) " >&6
20159 ac_check_lib_save_LIBS=$LIBS
20161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20162 /* end confdefs.h. */
20176 if ac_fn_c_try_link "$LINENO"; then :
20177 ac_cv_lib_z_gzread=yes
20179 ac_cv_lib_z_gzread=no
20181 rm -f core conftest.err conftest.$ac_objext \
20182 conftest$ac_exeext conftest.$ac_ext
20183 LIBS=$ac_check_lib_save_LIBS
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20186 $as_echo "$ac_cv_lib_z_gzread" >&6; }
20187 if test "x$ac_cv_lib_z_gzread" = xyes; then :
20193 CPPFLAGS=$clean_CPPFLAGS
20194 LDFLAGS=$clean_LDFLAGS
20201 CPPFLAGS=$clean_CPPFLAGS
20202 LDFLAGS=$clean_LDFLAGS
20208 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
20210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
20211 $as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
20213 CPPFLAGS=$clean_CPPFLAGS
20214 LDFLAGS=$clean_LDFLAGS
20216 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
20218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
20219 $as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
20220 CPPFLAGS=$clean_CPPFLAGS
20221 LDFLAGS=$clean_LDFLAGS
20223 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
20227 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
20230 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
20234 LIBS="-lz $clean_LIBS"
20237 { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
20238 $as_echo "$as_me: found both libz and libz.h header" >&6;}
20239 curl_zlib_msg="enabled"
20243 if test x"$AMFIXLIB" = x1; then
20245 HAVE_LIBZ_FALSE='#'
20256 # Check whether --with-ldap-lib was given.
20257 if test "${with_ldap_lib+set}" = set; then :
20258 withval=$with_ldap_lib; LDAPLIBNAME="$withval"
20264 # Check whether --with-lber-lib was given.
20265 if test "${with_lber_lib+set}" = set; then :
20266 withval=$with_lber_lib; LBERLIBNAME="$withval"
20270 if test x$CURL_DISABLE_LDAP != x1 ; then
20273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
20274 $as_echo_n "checking for lber.h... " >&6; }
20275 if ${ac_cv_header_lber_h+:} false; then :
20276 $as_echo_n "(cached) " >&6
20279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20280 /* end confdefs.h. */
20284 #ifdef HAVE_WINDOWS_H
20285 #ifndef WIN32_LEAN_AND_MEAN
20286 #define WIN32_LEAN_AND_MEAN
20288 #include <windows.h>
20290 #ifdef HAVE_SYS_TYPES_H
20291 #include <sys/types.h>
20295 #define NULL (void *)0
20302 BerValue *bvp = NULL;
20303 BerElement *bep = ber_init(bvp);
20311 if ac_fn_c_try_compile "$LINENO"; then :
20313 ac_cv_header_lber_h="yes"
20317 ac_cv_header_lber_h="no"
20320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_lber_h" >&5
20324 $as_echo "$ac_cv_header_lber_h" >&6; }
20325 if test "$ac_cv_header_lber_h" = "yes"; then
20327 cat >>confdefs.h <<_ACEOF
20328 #define HAVE_LBER_H 1
20332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20333 /* end confdefs.h. */
20337 #ifdef HAVE_WINDOWS_H
20338 #ifndef WIN32_LEAN_AND_MEAN
20339 #define WIN32_LEAN_AND_MEAN
20341 #include <windows.h>
20343 #ifdef HAVE_SYS_TYPES_H
20344 #include <sys/types.h>
20348 #define NULL (void *)0
20350 #ifndef LDAP_DEPRECATED
20351 #define LDAP_DEPRECATED 1
20358 BerValue *bvp = NULL;
20359 BerElement *bep = ber_init(bvp);
20367 if ac_fn_c_try_compile "$LINENO"; then :
20369 curl_cv_need_header_lber_h="no"
20373 curl_cv_need_header_lber_h="yes"
20376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20378 case "$curl_cv_need_header_lber_h" in
20381 cat >>confdefs.h <<_ACEOF
20382 #define NEED_LBER_H 1
20390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
20391 $as_echo_n "checking for ldap.h... " >&6; }
20392 if ${ac_cv_header_ldap_h+:} false; then :
20393 $as_echo_n "(cached) " >&6
20396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20397 /* end confdefs.h. */
20401 #ifdef HAVE_WINDOWS_H
20402 #ifndef WIN32_LEAN_AND_MEAN
20403 #define WIN32_LEAN_AND_MEAN
20405 #include <windows.h>
20407 #ifdef HAVE_SYS_TYPES_H
20408 #include <sys/types.h>
20411 #ifndef LDAP_DEPRECATED
20412 #define LDAP_DEPRECATED 1
20422 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
20423 int res = ldap_unbind(ldp);
20430 if ac_fn_c_try_compile "$LINENO"; then :
20432 ac_cv_header_ldap_h="yes"
20436 ac_cv_header_ldap_h="no"
20439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldap_h" >&5
20443 $as_echo "$ac_cv_header_ldap_h" >&6; }
20444 case "$ac_cv_header_ldap_h" in
20447 cat >>confdefs.h <<_ACEOF
20448 #define HAVE_LDAP_H 1
20455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
20456 $as_echo_n "checking for ldapssl.h... " >&6; }
20457 if ${ac_cv_header_ldapssl_h+:} false; then :
20458 $as_echo_n "(cached) " >&6
20461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20462 /* end confdefs.h. */
20466 #ifdef HAVE_WINDOWS_H
20467 #ifndef WIN32_LEAN_AND_MEAN
20468 #define WIN32_LEAN_AND_MEAN
20470 #include <windows.h>
20472 #ifdef HAVE_SYS_TYPES_H
20473 #include <sys/types.h>
20477 #define NULL (void *)0
20479 #ifndef LDAP_DEPRECATED
20480 #define LDAP_DEPRECATED 1
20488 #include <ldapssl.h>
20493 char *cert_label = NULL;
20494 LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
20501 if ac_fn_c_try_compile "$LINENO"; then :
20503 ac_cv_header_ldapssl_h="yes"
20507 ac_cv_header_ldapssl_h="no"
20510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldapssl_h" >&5
20514 $as_echo "$ac_cv_header_ldapssl_h" >&6; }
20515 case "$ac_cv_header_ldapssl_h" in
20518 cat >>confdefs.h <<_ACEOF
20519 #define HAVE_LDAPSSL_H 1
20526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
20527 $as_echo_n "checking for ldap_ssl.h... " >&6; }
20528 if ${ac_cv_header_ldap_ssl_h+:} false; then :
20529 $as_echo_n "(cached) " >&6
20532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20533 /* end confdefs.h. */
20537 #ifdef HAVE_WINDOWS_H
20538 #ifndef WIN32_LEAN_AND_MEAN
20539 #define WIN32_LEAN_AND_MEAN
20541 #include <windows.h>
20543 #ifdef HAVE_SYS_TYPES_H
20544 #include <sys/types.h>
20547 #ifndef LDAP_DEPRECATED
20548 #define LDAP_DEPRECATED 1
20556 #include <ldap_ssl.h>
20561 LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
20568 if ac_fn_c_try_compile "$LINENO"; then :
20570 ac_cv_header_ldap_ssl_h="yes"
20574 ac_cv_header_ldap_ssl_h="no"
20577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldap_ssl_h" >&5
20581 $as_echo "$ac_cv_header_ldap_ssl_h" >&6; }
20582 case "$ac_cv_header_ldap_ssl_h" in
20585 cat >>confdefs.h <<_ACEOF
20586 #define HAVE_LDAP_SSL_H 1
20593 if test -z "$LDAPLIBNAME" ; then
20594 if test "$ac_cv_native_windows" = "yes"; then
20595 LDAPLIBNAME="wldap32"
20600 if test "$LDAPLIBNAME" ; then
20601 as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
20602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
20603 $as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
20604 if eval \${$as_ac_Lib+:} false; then :
20605 $as_echo_n "(cached) " >&6
20607 ac_check_lib_save_LIBS=$LIBS
20608 LIBS="-l"$LDAPLIBNAME" $LIBS"
20609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20610 /* end confdefs.h. */
20619 return ldap_init ();
20624 if ac_fn_c_try_link "$LINENO"; then :
20625 eval "$as_ac_Lib=yes"
20627 eval "$as_ac_Lib=no"
20629 rm -f core conftest.err conftest.$ac_objext \
20630 conftest$ac_exeext conftest.$ac_ext
20631 LIBS=$ac_check_lib_save_LIBS
20633 eval ac_res=\$$as_ac_Lib
20634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20635 $as_echo "$ac_res" >&6; }
20636 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20637 cat >>confdefs.h <<_ACEOF
20638 #define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
20641 LIBS="-l"$LDAPLIBNAME" $LIBS"
20645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
20646 $as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
20648 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
20650 CURL_DISABLE_LDAP=1
20653 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
20655 CURL_DISABLE_LDAPS=1
20662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
20663 $as_echo_n "checking for LDAP libraries... " >&6; }
20669 curl_cv_save_LIBS="$LIBS"
20670 curl_cv_ldap_LIBS="unknown"
20672 for x_nlibs in '' "$u_libs" \
20676 '-lldapssl -lldapx -lldapsdk' \
20677 '-lldapsdk -lldapx -lldapssl' ; do
20678 if test "$curl_cv_ldap_LIBS" = "unknown"; then
20679 if test -z "$x_nlibs"; then
20680 LIBS="$curl_cv_save_LIBS"
20682 LIBS="$x_nlibs $curl_cv_save_LIBS"
20684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20685 /* end confdefs.h. */
20689 #ifdef HAVE_WINDOWS_H
20690 #ifndef WIN32_LEAN_AND_MEAN
20691 #define WIN32_LEAN_AND_MEAN
20693 #include <windows.h>
20695 #ifdef HAVE_SYS_TYPES_H
20696 #include <sys/types.h>
20700 #define NULL (void *)0
20702 #ifndef LDAP_DEPRECATED
20703 #define LDAP_DEPRECATED 1
20715 BerValue *bvp = NULL;
20716 BerElement *bep = ber_init(bvp);
20717 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
20718 int res = ldap_unbind(ldp);
20726 if ac_fn_c_try_link "$LINENO"; then :
20728 curl_cv_ldap_LIBS="$x_nlibs"
20731 rm -f core conftest.err conftest.$ac_objext \
20732 conftest$ac_exeext conftest.$ac_ext
20736 LIBS="$curl_cv_save_LIBS"
20738 case X-"$curl_cv_ldap_LIBS" in
20740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
20741 $as_echo "cannot find LDAP libraries" >&6; }
20744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20745 $as_echo "no additional lib required" >&6; }
20748 if test -z "$curl_cv_save_LIBS"; then
20749 LIBS="$curl_cv_ldap_LIBS"
20751 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
20753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
20754 $as_echo "$curl_cv_ldap_LIBS" >&6; }
20759 case X-"$curl_cv_ldap_LIBS" in
20761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
20762 $as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
20764 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
20766 CURL_DISABLE_LDAP=1
20769 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
20771 CURL_DISABLE_LDAPS=1
20778 if test x$CURL_DISABLE_LDAP != x1 ; then
20780 if test "$LBERLIBNAME" ; then
20781 if test "$LBERLIBNAME" != "no" ; then
20782 as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
20783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
20784 $as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
20785 if eval \${$as_ac_Lib+:} false; then :
20786 $as_echo_n "(cached) " >&6
20788 ac_check_lib_save_LIBS=$LIBS
20789 LIBS="-l"$LBERLIBNAME" $LIBS"
20790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20791 /* end confdefs.h. */
20800 return ber_free ();
20805 if ac_fn_c_try_link "$LINENO"; then :
20806 eval "$as_ac_Lib=yes"
20808 eval "$as_ac_Lib=no"
20810 rm -f core conftest.err conftest.$ac_objext \
20811 conftest$ac_exeext conftest.$ac_ext
20812 LIBS=$ac_check_lib_save_LIBS
20814 eval ac_res=\$$as_ac_Lib
20815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20816 $as_echo "$ac_res" >&6; }
20817 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20818 cat >>confdefs.h <<_ACEOF
20819 #define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
20822 LIBS="-l"$LBERLIBNAME" $LIBS"
20826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
20827 $as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
20829 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
20831 CURL_DISABLE_LDAP=1
20834 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
20836 CURL_DISABLE_LDAPS=1
20844 if test x$CURL_DISABLE_LDAP != x1 ; then
20845 for ac_func in ldap_url_parse ldap_init_fd
20847 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20848 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20849 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20850 cat >>confdefs.h <<_ACEOF
20851 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20858 if test "$LDAPLIBNAME" = "wldap32"; then
20859 curl_ldap_msg="enabled (winldap)"
20861 $as_echo "#define CURL_LDAP_WIN 1" >>confdefs.h
20864 curl_ldap_msg="enabled (OpenLDAP)"
20865 if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
20867 $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
20875 if test x$CURL_DISABLE_LDAPS != x1 ; then
20876 curl_ldaps_msg="enabled"
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ipv6" >&5
20881 $as_echo_n "checking whether to enable ipv6... " >&6; }
20882 # Check whether --enable-ipv6 was given.
20883 if test "${enable_ipv6+set}" = set; then :
20884 enableval=$enable_ipv6; case "$enableval" in
20886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20887 $as_echo "no" >&6; }
20890 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20891 $as_echo "yes" >&6; }
20896 if test "$cross_compiling" = yes; then :
20897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20898 $as_echo "no" >&6; }
20902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20903 /* end confdefs.h. */
20904 /* is AF_INET6 available? */
20905 #include <sys/types.h>
20906 #include <sys/socket.h>
20909 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
20916 if ac_fn_c_try_run "$LINENO"; then :
20917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20918 $as_echo "yes" >&6; }
20921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20922 $as_echo "no" >&6; }
20925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20926 conftest.$ac_objext conftest.beam conftest.$ac_ext
20932 if test "$ipv6" = "yes"; then
20933 curl_ipv6_msg="enabled"
20936 # Check if struct sockaddr_in6 have sin6_scope_id member
20937 if test "$ipv6" = yes; then
20938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
20939 $as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
20940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20941 /* end confdefs.h. */
20943 #include <sys/types.h>
20944 #include <netinet/in.h>
20947 struct sockaddr_in6 s; s.sin6_scope_id = 0;
20952 if ac_fn_c_try_compile "$LINENO"; then :
20953 have_sin6_scope_id=yes
20955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20956 if test "$have_sin6_scope_id" = yes; then
20957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20958 $as_echo "yes" >&6; }
20960 $as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
20963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20964 $as_echo "no" >&6; }
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
20970 $as_echo_n "checking if argv can be written to... " >&6; }
20971 if test "$cross_compiling" = yes; then :
20973 curl_cv_writable_argv=cross
20976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20977 /* end confdefs.h. */
20980 int main(int argc, char ** argv) {
20982 return (argv[0][0] == ' ')?0:1;
20987 if ac_fn_c_try_run "$LINENO"; then :
20989 curl_cv_writable_argv=yes
20993 curl_cv_writable_argv=no
20996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20997 conftest.$ac_objext conftest.beam conftest.$ac_ext
21000 case $curl_cv_writable_argv in
21003 $as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
21005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21006 $as_echo "yes" >&6; }
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21010 $as_echo "no" >&6; }
21013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21014 $as_echo "no" >&6; }
21015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
21016 $as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
21022 # Check whether --with-krb4-includes was given.
21023 if test "${with_krb4_includes+set}" = set; then :
21024 withval=$with_krb4_includes;
21025 CPPFLAGS="$CPPFLAGS -I$withval"
21033 # Check whether --with-krb4-libs was given.
21034 if test "${with_krb4_libs+set}" = set; then :
21035 withval=$with_krb4_libs;
21036 LDFLAGS="$LDFLAGS -L$withval"
21046 # Check whether --with-krb4 was given.
21047 if test "${with_krb4+set}" = set; then :
21048 withval=$with_krb4;
21049 OPT_KRB4="$withval"
21050 if test X"$OPT_KRB4" != Xno; then
21052 if test X"$OPT_KRB4" != Xyes; then
21053 LDFLAGS="$LDFLAGS -L$OPT_KRB4/lib$libsuff"
21054 KRB4LIB="$OPT_KRB4/lib$libsuff"
21055 CPPFLAGS="$CPPFLAGS -I$OPT_KRB4/include"
21056 KRB4INC="$OPT_KRB4/include"
21063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Kerberos4 support is requested" >&5
21064 $as_echo_n "checking if Kerberos4 support is requested... " >&6; }
21066 if test "$want_krb4" = yes
21068 if test "$ipv6" = "yes"; then
21069 echo krb4 is not compatible with IPv6
21072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21073 $as_echo "yes" >&6; }
21076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to look for Kerberos4" >&5
21077 $as_echo_n "checking where to look for Kerberos4... " >&6; }
21078 if test X"$OPT_KRB4" = Xyes
21080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaults" >&5
21081 $as_echo "defaults" >&6; }
21083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libs in $KRB4LIB, headers in $KRB4INC" >&5
21084 $as_echo "libs in $KRB4LIB, headers in $KRB4INC" >&6; }
21087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_pcbc_encrypt in -ldes" >&5
21088 $as_echo_n "checking for des_pcbc_encrypt in -ldes... " >&6; }
21089 if ${ac_cv_lib_des_des_pcbc_encrypt+:} false; then :
21090 $as_echo_n "(cached) " >&6
21092 ac_check_lib_save_LIBS=$LIBS
21094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21095 /* end confdefs.h. */
21101 char des_pcbc_encrypt ();
21104 return des_pcbc_encrypt ();
21109 if ac_fn_c_try_link "$LINENO"; then :
21110 ac_cv_lib_des_des_pcbc_encrypt=yes
21112 ac_cv_lib_des_des_pcbc_encrypt=no
21114 rm -f core conftest.err conftest.$ac_objext \
21115 conftest$ac_exeext conftest.$ac_ext
21116 LIBS=$ac_check_lib_save_LIBS
21118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_pcbc_encrypt" >&5
21119 $as_echo "$ac_cv_lib_des_des_pcbc_encrypt" >&6; }
21120 if test "x$ac_cv_lib_des_des_pcbc_encrypt" = xyes; then :
21122 for ac_header in des.h
21124 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
21125 if test "x$ac_cv_header_des_h" = xyes; then :
21126 cat >>confdefs.h <<_ACEOF
21127 #define HAVE_DES_H 1
21135 ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search"
21136 if test "x$ac_cv_func_res_search" = xyes; then :
21139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
21140 $as_echo_n "checking for res_search in -lresolv... " >&6; }
21141 if ${ac_cv_lib_resolv_res_search+:} false; then :
21142 $as_echo_n "(cached) " >&6
21144 ac_check_lib_save_LIBS=$LIBS
21145 LIBS="-lresolv $LIBS"
21146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21147 /* end confdefs.h. */
21153 char res_search ();
21156 return res_search ();
21161 if ac_fn_c_try_link "$LINENO"; then :
21162 ac_cv_lib_resolv_res_search=yes
21164 ac_cv_lib_resolv_res_search=no
21166 rm -f core conftest.err conftest.$ac_objext \
21167 conftest$ac_exeext conftest.$ac_ext
21168 LIBS=$ac_check_lib_save_LIBS
21170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
21171 $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
21172 if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
21173 cat >>confdefs.h <<_ACEOF
21174 #define HAVE_LIBRESOLV 1
21177 LIBS="-lresolv $LIBS"
21184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_net_read in -lkrb" >&5
21185 $as_echo_n "checking for krb_net_read in -lkrb... " >&6; }
21186 if ${ac_cv_lib_krb_krb_net_read+:} false; then :
21187 $as_echo_n "(cached) " >&6
21189 ac_check_lib_save_LIBS=$LIBS
21191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21192 /* end confdefs.h. */
21198 char krb_net_read ();
21201 return krb_net_read ();
21206 if ac_fn_c_try_link "$LINENO"; then :
21207 ac_cv_lib_krb_krb_net_read=yes
21209 ac_cv_lib_krb_krb_net_read=no
21211 rm -f core conftest.err conftest.$ac_objext \
21212 conftest$ac_exeext conftest.$ac_ext
21213 LIBS=$ac_check_lib_save_LIBS
21215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_net_read" >&5
21216 $as_echo "$ac_cv_lib_krb_krb_net_read" >&6; }
21217 if test "x$ac_cv_lib_krb_krb_net_read" = xyes; then :
21219 for ac_header in krb.h
21221 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
21222 if test "x$ac_cv_header_krb_h" = xyes; then :
21223 cat >>confdefs.h <<_ACEOF
21224 #define HAVE_KRB_H 1
21232 LIBS="-lkrb -lcom_err -ldes $LIBS"
21234 for ac_func in krb_get_our_ip_for_realm
21236 ac_fn_c_check_func "$LINENO" "krb_get_our_ip_for_realm" "ac_cv_func_krb_get_our_ip_for_realm"
21237 if test "x$ac_cv_func_krb_get_our_ip_for_realm" = xyes; then :
21238 cat >>confdefs.h <<_ACEOF
21239 #define HAVE_KRB_GET_OUR_IP_FOR_REALM 1
21247 $as_echo "#define HAVE_KRB4 1" >>confdefs.h
21253 curl_krb4_msg="enabled"
21255 for ac_func in strlcpy
21257 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
21258 if test "x$ac_cv_func_strlcpy" = xyes; then :
21259 cat >>confdefs.h <<_ACEOF
21260 #define HAVE_STRLCPY 1
21274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21275 $as_echo "no" >&6; }
21280 # Check whether --with-spnego was given.
21281 if test "${with_spnego+set}" = set; then :
21282 withval=$with_spnego;
21283 SPNEGO_ROOT="$withval"
21284 if test x"$SPNEGO_ROOT" != xno; then
21291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SPNEGO support is requested" >&5
21292 $as_echo_n "checking if SPNEGO support is requested... " >&6; }
21293 if test x"$want_spnego" = xyes; then
21295 if test X"$SPNEGO_ROOT" = Xyes; then
21296 as_fn_error $? "FBOpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
21297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21298 $as_echo "no" >&6; }
21300 if test -z "$SPNEGO_LIB_DIR"; then
21301 LDFLAGS="$LDFLAGS -L$SPNEGO_ROOT -lfbopenssl"
21303 LDFLAGS="$LDFLAGS $SPNEGO_LIB_DIR"
21306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21307 $as_echo "yes" >&6; }
21309 $as_echo "#define HAVE_SPNEGO 1" >>confdefs.h
21311 curl_spnego_msg="enabled"
21314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21315 $as_echo "no" >&6; }
21322 # Check whether --with-gssapi-includes was given.
21323 if test "${with_gssapi_includes+set}" = set; then :
21324 withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
21331 # Check whether --with-gssapi-libs was given.
21332 if test "${with_gssapi_libs+set}" = set; then :
21333 withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
21340 # Check whether --with-gssapi was given.
21341 if test "${with_gssapi+set}" = set; then :
21342 withval=$with_gssapi;
21343 GSSAPI_ROOT="$withval"
21344 if test x"$GSSAPI_ROOT" != xno; then
21346 if test x"$GSSAPI_ROOT" = xyes; then
21354 save_CPPFLAGS="$CPPFLAGS"
21355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSSAPI support is requested" >&5
21356 $as_echo_n "checking if GSSAPI support is requested... " >&6; }
21357 if test x"$want_gss" = xyes; then
21358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21359 $as_echo "yes" >&6; }
21361 if test -z "$GSSAPI_INCS"; then
21362 if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
21363 GSSAPI_INCS=`$GSSAPI_ROOT/bin/krb5-config --cflags gssapi`
21364 elif test "$GSSAPI_ROOT" != "yes"; then
21365 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
21369 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
21371 ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
21372 if test "x$ac_cv_header_gss_h" = xyes; then :
21375 $as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
21381 for ac_header in gssapi/gssapi.h
21383 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
21384 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
21385 cat >>confdefs.h <<_ACEOF
21386 #define HAVE_GSSAPI_GSSAPI_H 1
21395 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
21397 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21398 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
21399 $ac_includes_default
21400 #ifdef HAVE_GSSAPI_GSSAPI_H
21401 #include <gssapi/gssapi.h>
21405 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21406 cat >>confdefs.h <<_ACEOF
21407 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21416 if test "x$not_mit" = "x1"; then
21417 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
21418 if test "x$ac_cv_header_gssapi_h" = xyes; then :
21421 $as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
21427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSSAPI since no header files was found" >&5
21428 $as_echo "$as_me: WARNING: disabling GSSAPI since no header files was found" >&2;}
21436 $as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
21438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gssapi headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
21439 $as_echo_n "checking if gssapi headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
21440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21441 /* end confdefs.h. */
21444 #include <gssapi/gssapi.h>
21445 #include <gssapi/gssapi_generic.h>
21446 #include <gssapi/gssapi_krb5.h>
21454 GSS_C_NT_HOSTBASED_SERVICE,
21462 if ac_fn_c_try_compile "$LINENO"; then :
21464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21465 $as_echo "yes" >&6; }
21469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21470 $as_echo "no" >&6; }
21472 $as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
21476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21485 $as_echo "no" >&6; }
21487 if test x"$want_gss" = xyes; then
21489 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
21492 curl_gss_msg="enabled (MIT/Heimdal)"
21494 if test -n "$gnu_gss"; then
21495 curl_gss_msg="enabled (GNU GSS)"
21496 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
21498 elif test -z "$GSSAPI_LIB_DIR"; then
21501 LIBS="-lgssapi_krb5 -lresolv $LIBS"
21504 if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
21505 gss_libs=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi`
21506 LIBS="$gss_libs $LIBS"
21507 elif test "$GSSAPI_ROOT" != "yes"; then
21508 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
21509 LIBS="-lgssapi $LIBS"
21511 LIBS="-lgssapi $LIBS"
21516 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
21517 LIBS="-lgssapi $LIBS"
21520 CPPFLAGS="$save_CPPFLAGS"
21526 # Check whether --with-winssl was given.
21527 if test "${with_winssl+set}" = set; then :
21528 withval=$with_winssl; OPT_WINSSL=$withval
21532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
21533 $as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
21534 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
21535 if test "x$OPT_WINSSL" != "xno" &&
21536 test "x$ac_cv_native_windows" = "xyes"; then
21537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21538 $as_echo "yes" >&6; }
21540 $as_echo "#define USE_SCHANNEL 1" >>confdefs.h
21544 curl_ssl_msg="enabled (Windows-native)"
21546 # --with-winssl implies --enable-sspi
21548 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
21552 curl_sspi_msg="enabled"
21554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21555 $as_echo "no" >&6; }
21558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21559 $as_echo "no" >&6; }
21564 # Check whether --with-darwinssl was given.
21565 if test "${with_darwinssl+set}" = set; then :
21566 withval=$with_darwinssl; OPT_DARWINSSL=$withval
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable iOS/Mac OS X native SSL/TLS" >&5
21571 $as_echo_n "checking whether to enable iOS/Mac OS X native SSL/TLS... " >&6; }
21572 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
21573 if test "x$OPT_DARWINSSL" != "xno" &&
21574 test -d "/System/Library/Frameworks/Security.framework"; then
21575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21576 $as_echo "yes" >&6; }
21578 $as_echo "#define USE_DARWINSSL 1" >>confdefs.h
21582 curl_ssl_msg="enabled (iOS/Mac OS X-native)"
21583 DARWINSSL_ENABLED=1
21584 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
21586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21587 $as_echo "no" >&6; }
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21591 $as_echo "no" >&6; }
21598 # Check whether --with-ssl was given.
21599 if test "${with_ssl+set}" = set; then :
21600 withval=$with_ssl; OPT_SSL=$withval
21604 if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then
21605 CLEANLDFLAGS="$LDFLAGS"
21606 CLEANCPPFLAGS="$CPPFLAGS"
21611 if test x$cross_compiling != xyes; then
21614 PREFIX_OPENSSL=/usr/local/ssl
21615 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
21618 if test x$cross_compiling != xyes; then
21625 PREFIX_OPENSSL=$OPT_SSL
21627 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
21628 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
21629 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
21630 if test -f "$OPENSSL_PCDIR/openssl.pc"; then
21634 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
21635 if test "$PREFIX_OPENSSL" != "/usr" ; then
21636 SSL_LDFLAGS="-L$LIB_OPENSSL"
21637 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
21639 SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
21643 if test "$PKGTEST" = "yes"; then
21649 if test -n "$ac_tool_prefix"; then
21650 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21651 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21653 $as_echo_n "checking for $ac_word... " >&6; }
21654 if ${ac_cv_path_PKGCONFIG+:} false; then :
21655 $as_echo_n "(cached) " >&6
21659 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
21662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21663 as_dummy="$PATH:/usr/bin:/usr/local/bin"
21664 for as_dir in $as_dummy
21667 test -z "$as_dir" && as_dir=.
21668 for ac_exec_ext in '' $ac_executable_extensions; do
21669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21670 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21681 PKGCONFIG=$ac_cv_path_PKGCONFIG
21682 if test -n "$PKGCONFIG"; then
21683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
21684 $as_echo "$PKGCONFIG" >&6; }
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21687 $as_echo "no" >&6; }
21692 if test -z "$ac_cv_path_PKGCONFIG"; then
21693 ac_pt_PKGCONFIG=$PKGCONFIG
21694 # Extract the first word of "pkg-config", so it can be a program name with args.
21695 set dummy pkg-config; ac_word=$2
21696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21697 $as_echo_n "checking for $ac_word... " >&6; }
21698 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
21699 $as_echo_n "(cached) " >&6
21701 case $ac_pt_PKGCONFIG in
21703 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
21706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21707 as_dummy="$PATH:/usr/bin:/usr/local/bin"
21708 for as_dir in $as_dummy
21711 test -z "$as_dir" && as_dir=.
21712 for ac_exec_ext in '' $ac_executable_extensions; do
21713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21714 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21725 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
21726 if test -n "$ac_pt_PKGCONFIG"; then
21727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
21728 $as_echo "$ac_pt_PKGCONFIG" >&6; }
21730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21731 $as_echo "no" >&6; }
21734 if test "x$ac_pt_PKGCONFIG" = x; then
21737 case $cross_compiling:$ac_tool_warned in
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21741 ac_tool_warned=yes ;;
21743 PKGCONFIG=$ac_pt_PKGCONFIG
21746 PKGCONFIG="$ac_cv_path_PKGCONFIG"
21750 if test x$PKGCONFIG != xno; then
21751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
21752 $as_echo_n "checking for openssl options with pkg-config... " >&6; }
21754 if test -n "$OPENSSL_PCDIR"; then
21755 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
21756 export PKG_CONFIG_LIBDIR
21758 $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
21760 if test -z "$itexists"; then
21762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21763 $as_echo "no" >&6; }
21765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
21766 $as_echo "found" >&6; }
21771 if test "$PKGCONFIG" != "no" ; then
21773 if test -n "$OPENSSL_PCDIR"; then
21774 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
21775 export PKG_CONFIG_LIBDIR
21777 $PKGCONFIG --libs-only-l openssl 2>/dev/null`
21780 if test -n "$OPENSSL_PCDIR"; then
21781 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
21782 export PKG_CONFIG_LIBDIR
21784 $PKGCONFIG --libs-only-L openssl 2>/dev/null`
21787 if test -n "$OPENSSL_PCDIR"; then
21788 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
21789 export PKG_CONFIG_LIBDIR
21791 $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
21793 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
21794 $as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
21796 $as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
21797 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
21798 $as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
21800 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
21802 LIBS="$SSL_LIBS $LIBS"
21806 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
21807 LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
21810 *-*-msys* | *-*-mingw*)
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
21812 $as_echo_n "checking for gdi32... " >&6; }
21813 my_ac_save_LIBS=$LIBS
21814 LIBS="-lgdi32 $LIBS"
21815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21816 /* end confdefs.h. */
21817 #include <windef.h>
21818 #include <wingdi.h>
21826 if ac_fn_c_try_link "$LINENO"; then :
21827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21828 $as_echo "yes" >&6; }
21830 LIBS=$my_ac_save_LIBS
21831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21832 $as_echo "no" >&6; }
21835 rm -f core conftest.err conftest.$ac_objext \
21836 conftest$ac_exeext conftest.$ac_ext
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_lock in -lcrypto" >&5
21841 $as_echo_n "checking for CRYPTO_lock in -lcrypto... " >&6; }
21842 if ${ac_cv_lib_crypto_CRYPTO_lock+:} false; then :
21843 $as_echo_n "(cached) " >&6
21845 ac_check_lib_save_LIBS=$LIBS
21846 LIBS="-lcrypto $LIBS"
21847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21848 /* end confdefs.h. */
21854 char CRYPTO_lock ();
21857 return CRYPTO_lock ();
21862 if ac_fn_c_try_link "$LINENO"; then :
21863 ac_cv_lib_crypto_CRYPTO_lock=yes
21865 ac_cv_lib_crypto_CRYPTO_lock=no
21867 rm -f core conftest.err conftest.$ac_objext \
21868 conftest$ac_exeext conftest.$ac_ext
21869 LIBS=$ac_check_lib_save_LIBS
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_lock" >&5
21872 $as_echo "$ac_cv_lib_crypto_CRYPTO_lock" >&6; }
21873 if test "x$ac_cv_lib_crypto_CRYPTO_lock" = xyes; then :
21876 LIBS="-lcrypto $LIBS"
21880 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
21881 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_add_lock in -lcrypto" >&5
21883 $as_echo_n "checking for CRYPTO_add_lock in -lcrypto... " >&6; }
21884 if ${ac_cv_lib_crypto_CRYPTO_add_lock+:} false; then :
21885 $as_echo_n "(cached) " >&6
21887 ac_check_lib_save_LIBS=$LIBS
21888 LIBS="-lcrypto $LIBS"
21889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21890 /* end confdefs.h. */
21896 char CRYPTO_add_lock ();
21899 return CRYPTO_add_lock ();
21904 if ac_fn_c_try_link "$LINENO"; then :
21905 ac_cv_lib_crypto_CRYPTO_add_lock=yes
21907 ac_cv_lib_crypto_CRYPTO_add_lock=no
21909 rm -f core conftest.err conftest.$ac_objext \
21910 conftest$ac_exeext conftest.$ac_ext
21911 LIBS=$ac_check_lib_save_LIBS
21913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_add_lock" >&5
21914 $as_echo "$ac_cv_lib_crypto_CRYPTO_add_lock" >&6; }
21915 if test "x$ac_cv_lib_crypto_CRYPTO_add_lock" = xyes; then :
21918 LIBS="-lcrypto $LIBS"
21921 LDFLAGS="$CLEANLDFLAGS"
21922 CPPFLAGS="$CLEANCPPFLAGS"
21932 if test X"$HAVECRYPTO" = X"yes"; then
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
21935 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
21936 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
21937 $as_echo_n "(cached) " >&6
21939 ac_check_lib_save_LIBS=$LIBS
21941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21942 /* end confdefs.h. */
21948 char SSL_connect ();
21951 return SSL_connect ();
21956 if ac_fn_c_try_link "$LINENO"; then :
21957 ac_cv_lib_ssl_SSL_connect=yes
21959 ac_cv_lib_ssl_SSL_connect=no
21961 rm -f core conftest.err conftest.$ac_objext \
21962 conftest$ac_exeext conftest.$ac_ext
21963 LIBS=$ac_check_lib_save_LIBS
21965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
21966 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
21967 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
21968 cat >>confdefs.h <<_ACEOF
21969 #define HAVE_LIBSSL 1
21977 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
21978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
21979 $as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
21981 LIBS="-lRSAglue -lrsaref $LIBS"
21982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
21983 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
21984 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
21985 $as_echo_n "(cached) " >&6
21987 ac_check_lib_save_LIBS=$LIBS
21989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21990 /* end confdefs.h. */
21996 char SSL_connect ();
21999 return SSL_connect ();
22004 if ac_fn_c_try_link "$LINENO"; then :
22005 ac_cv_lib_ssl_SSL_connect=yes
22007 ac_cv_lib_ssl_SSL_connect=no
22009 rm -f core conftest.err conftest.$ac_objext \
22010 conftest$ac_exeext conftest.$ac_ext
22011 LIBS=$ac_check_lib_save_LIBS
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22014 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22015 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22016 cat >>confdefs.h <<_ACEOF
22017 #define HAVE_LIBSSL 1
22024 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22026 $as_echo "no" >&6; }
22029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22030 $as_echo "yes" >&6; }
22035 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
22036 openssl/pem.h openssl/ssl.h openssl/err.h
22038 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22039 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22040 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22041 cat >>confdefs.h <<_ACEOF
22042 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22044 curl_ssl_msg="enabled (OpenSSL)"
22047 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
22054 if test $ac_cv_header_openssl_x509_h = no; then
22055 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
22057 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22058 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22059 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22060 cat >>confdefs.h <<_ACEOF
22061 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22069 if test $ac_cv_header_x509_h = yes &&
22070 test $ac_cv_header_crypto_h = yes &&
22071 test $ac_cv_header_ssl_h = yes; then
22072 curl_ssl_msg="enabled (OpenSSL)"
22078 if test X"$OPENSSL_ENABLED" = X"1"; then
22080 $as_echo "#define USE_SSLEAY 1" >>confdefs.h
22083 for ac_header in openssl/pkcs12.h
22085 ac_fn_c_check_header_mongrel "$LINENO" "openssl/pkcs12.h" "ac_cv_header_openssl_pkcs12_h" "$ac_includes_default"
22086 if test "x$ac_cv_header_openssl_pkcs12_h" = xyes; then :
22087 cat >>confdefs.h <<_ACEOF
22088 #define HAVE_OPENSSL_PKCS12_H 1
22098 USE_SSLEAY="$OPENSSL_ENABLED"
22101 if test X"$OPT_SSL" != Xoff &&
22102 test "$OPENSSL_ENABLED" != "1"; then
22103 as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
22107 if test X"$OPENSSL_ENABLED" = X"1"; then
22108 ac_fn_c_check_func "$LINENO" "ENGINE_init" "ac_cv_func_ENGINE_init"
22109 if test "x$ac_cv_func_ENGINE_init" = xyes; then :
22111 for ac_header in openssl/engine.h
22113 ac_fn_c_check_header_mongrel "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
22114 if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
22115 cat >>confdefs.h <<_ACEOF
22116 #define HAVE_OPENSSL_ENGINE_H 1
22123 for ac_func in ENGINE_load_builtin_engines
22125 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22126 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22127 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22128 cat >>confdefs.h <<_ACEOF
22129 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22140 for ac_func in RAND_status \
22144 CRYPTO_cleanup_all_ex_data \
22146 SSLv2_client_method
22148 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22149 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22150 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22151 cat >>confdefs.h <<_ACEOF
22152 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yaSSL using OpenSSL compatibility mode" >&5
22161 $as_echo_n "checking for yaSSL using OpenSSL compatibility mode... " >&6; }
22162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22163 /* end confdefs.h. */
22166 #include <openssl/ssl.h>
22171 #if defined(YASSL_VERSION) && defined(OPENSSL_VERSION_NUMBER)
22172 int dummy = SSL_ERROR_NONE;
22174 Not the yaSSL OpenSSL compatibility header.
22182 if ac_fn_c_try_compile "$LINENO"; then :
22184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22185 $as_echo "yes" >&6; }
22187 cat >>confdefs.h <<_ACEOF
22188 #define USE_YASSLEMUL 1
22191 curl_ssl_msg="enabled (OpenSSL emulation by yaSSL)"
22195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22196 $as_echo "no" >&6; }
22199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22202 if test "$OPENSSL_ENABLED" = "1"; then
22203 if test -n "$LIB_OPENSSL"; then
22204 if test "x$cross_compiling" != "xyes"; then
22205 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL"
22206 export LD_LIBRARY_PATH
22207 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&5
22208 $as_echo "$as_me: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&6;}
22217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
22218 $as_echo_n "checking for OpenSSL headers version... " >&6; }
22220 if test -z "$SED"; then
22221 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
22223 if test -z "$GREP"; then
22224 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
22228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22229 /* end confdefs.h. */
22232 # ifdef USE_OPENSSL
22233 # include <openssl/crypto.h>
22235 # include <crypto.h>
22238 #ifdef OPENSSL_VERSION_NUMBER
22239 CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
22244 if ac_fn_c_try_cpp "$LINENO"; then :
22246 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
22247 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
22248 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
22249 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
22250 if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
22255 rm -f conftest.err conftest.i conftest.$ac_ext
22256 if test -z "$tmp_exp"; then
22257 curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
22260 curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
22261 curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
22265 if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
22266 tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
22267 case "x$tst_verlen" in
22269 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
22270 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
22271 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
22272 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
22275 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
22276 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
22277 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
22278 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
22285 0x110) tst_show="1.1.0" ;;
22286 0x101) tst_show="1.0.1" ;;
22287 0x100) tst_show="1.0.0" ;;
22288 0x099) tst_show="0.9.9" ;;
22289 0x098) tst_show="0.9.8" ;;
22290 0x097) tst_show="0.9.7" ;;
22291 0x096) tst_show="0.9.6" ;;
22292 0x095) tst_show="0.9.5" ;;
22293 0x094) tst_show="0.9.4" ;;
22294 0x093) tst_show="0.9.3" ;;
22295 0x092) tst_show="0.9.2" ;;
22296 0x091) tst_show="0.9.1" ;;
22297 *) tst_show="unknown" ;;
22299 tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
22303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
22304 $as_echo "$tst_show" >&6; }
22306 curl_openssl_api_headers=$tst_api
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
22313 $as_echo_n "checking for OpenSSL library version... " >&6; }
22314 if test "$tst_api" = "unknown"; then
22317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22318 /* end confdefs.h. */
22321 #define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
22323 # include <limits.h>
22325 # include <assert.h>
22327 #undef SSL_CTX_set_not_resumbl_sess_cb
22331 char SSL_CTX_set_not_resumbl_sess_cb ();
22332 #if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
22338 return SSL_CTX_set_not_resumbl_sess_cb ();
22344 if ac_fn_c_try_link "$LINENO"; then :
22349 rm -f core conftest.err conftest.$ac_objext \
22350 conftest$ac_exeext conftest.$ac_ext
22353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22354 /* end confdefs.h. */
22357 #define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
22359 # include <limits.h>
22361 # include <assert.h>
22363 #undef SSL_CTX_set_not_resumable_session_callback
22367 char SSL_CTX_set_not_resumable_session_callback ();
22368 #if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
22374 return SSL_CTX_set_not_resumable_session_callback ();
22380 if ac_fn_c_try_link "$LINENO"; then :
22385 rm -f core conftest.err conftest.$ac_objext \
22386 conftest$ac_exeext conftest.$ac_ext
22390 if test "$tst_api" = "unknown"; then
22391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22392 /* end confdefs.h. */
22395 #define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
22397 # include <limits.h>
22399 # include <assert.h>
22401 #undef SSL_renegotiate_abbreviated
22405 char SSL_renegotiate_abbreviated ();
22406 #if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
22412 return SSL_renegotiate_abbreviated ();
22418 if ac_fn_c_try_link "$LINENO"; then :
22423 rm -f core conftest.err conftest.$ac_objext \
22424 conftest$ac_exeext conftest.$ac_ext
22426 if test "$tst_api" = "unknown"; then
22427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22428 /* end confdefs.h. */
22431 #define OBJ_add_sigid innocuous_OBJ_add_sigid
22433 # include <limits.h>
22435 # include <assert.h>
22437 #undef OBJ_add_sigid
22441 char OBJ_add_sigid ();
22442 #if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
22448 return OBJ_add_sigid ();
22454 if ac_fn_c_try_link "$LINENO"; then :
22459 rm -f core conftest.err conftest.$ac_objext \
22460 conftest$ac_exeext conftest.$ac_ext
22462 if test "$tst_api" = "unknown"; then
22463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22464 /* end confdefs.h. */
22467 #define ERR_set_mark innocuous_ERR_set_mark
22469 # include <limits.h>
22471 # include <assert.h>
22473 #undef ERR_set_mark
22477 char ERR_set_mark ();
22478 #if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
22484 return ERR_set_mark ();
22490 if ac_fn_c_try_link "$LINENO"; then :
22495 rm -f core conftest.err conftest.$ac_objext \
22496 conftest$ac_exeext conftest.$ac_ext
22498 if test "$tst_api" = "unknown"; then
22499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22500 /* end confdefs.h. */
22503 #define ERR_peek_last_error innocuous_ERR_peek_last_error
22505 # include <limits.h>
22507 # include <assert.h>
22509 #undef ERR_peek_last_error
22513 char ERR_peek_last_error ();
22514 #if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
22520 return ERR_peek_last_error ();
22526 if ac_fn_c_try_link "$LINENO"; then :
22531 rm -f core conftest.err conftest.$ac_objext \
22532 conftest$ac_exeext conftest.$ac_ext
22534 if test "$tst_api" = "unknown"; then
22535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22536 /* end confdefs.h. */
22539 #define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
22541 # include <limits.h>
22543 # include <assert.h>
22545 #undef c2i_ASN1_OBJECT
22549 char c2i_ASN1_OBJECT ();
22550 #if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
22556 return c2i_ASN1_OBJECT ();
22562 if ac_fn_c_try_link "$LINENO"; then :
22567 rm -f core conftest.err conftest.$ac_objext \
22568 conftest$ac_exeext conftest.$ac_ext
22570 if test "$tst_api" = "unknown"; then
22571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22572 /* end confdefs.h. */
22575 #define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
22577 # include <limits.h>
22579 # include <assert.h>
22581 #undef SSL_CTX_set_purpose
22585 char SSL_CTX_set_purpose ();
22586 #if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
22592 return SSL_CTX_set_purpose ();
22598 if ac_fn_c_try_link "$LINENO"; then :
22603 rm -f core conftest.err conftest.$ac_objext \
22604 conftest$ac_exeext conftest.$ac_ext
22606 if test "$tst_api" = "unknown"; then
22607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22608 /* end confdefs.h. */
22611 #define OBJ_obj2txt innocuous_OBJ_obj2txt
22613 # include <limits.h>
22615 # include <assert.h>
22621 char OBJ_obj2txt ();
22622 #if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
22628 return OBJ_obj2txt ();
22634 if ac_fn_c_try_link "$LINENO"; then :
22639 rm -f core conftest.err conftest.$ac_objext \
22640 conftest$ac_exeext conftest.$ac_ext
22642 if test "$tst_api" = "unknown"; then
22643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22644 /* end confdefs.h. */
22647 #define SSL_get_verify_depth innocuous_SSL_get_verify_depth
22649 # include <limits.h>
22651 # include <assert.h>
22653 #undef SSL_get_verify_depth
22657 char SSL_get_verify_depth ();
22658 #if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
22664 return SSL_get_verify_depth ();
22670 if ac_fn_c_try_link "$LINENO"; then :
22675 rm -f core conftest.err conftest.$ac_objext \
22676 conftest$ac_exeext conftest.$ac_ext
22678 if test "$tst_api" = "unknown"; then
22679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22680 /* end confdefs.h. */
22683 #define SSL_library_init innocuous_SSL_library_init
22685 # include <limits.h>
22687 # include <assert.h>
22689 #undef SSL_library_init
22693 char SSL_library_init ();
22694 #if defined __stub_SSL_library_init || defined __stub___SSL_library_init
22700 return SSL_library_init ();
22706 if ac_fn_c_try_link "$LINENO"; then :
22711 rm -f core conftest.err conftest.$ac_objext \
22712 conftest$ac_exeext conftest.$ac_ext
22714 if test "$tst_api" = "unknown"; then
22715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22716 /* end confdefs.h. */
22719 #define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
22721 # include <limits.h>
22723 # include <assert.h>
22725 #undef SSL_CTX_set_cipher_list
22729 char SSL_CTX_set_cipher_list ();
22730 #if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
22736 return SSL_CTX_set_cipher_list ();
22742 if ac_fn_c_try_link "$LINENO"; then :
22747 rm -f core conftest.err conftest.$ac_objext \
22748 conftest$ac_exeext conftest.$ac_ext
22751 0x110) tst_show="1.1.0" ;;
22752 0x101) tst_show="1.0.1" ;;
22753 0x100) tst_show="1.0.0" ;;
22754 0x099) tst_show="0.9.9" ;;
22755 0x098) tst_show="0.9.8" ;;
22756 0x097) tst_show="0.9.7" ;;
22757 0x096) tst_show="0.9.6" ;;
22758 0x095) tst_show="0.9.5" ;;
22759 0x094) tst_show="0.9.4" ;;
22760 0x093) tst_show="0.9.3" ;;
22761 0x092) tst_show="0.9.2" ;;
22762 0x091) tst_show="0.9.1" ;;
22763 *) tst_show="unknown" ;;
22765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
22766 $as_echo "$tst_show" >&6; }
22768 curl_openssl_api_library=$tst_api
22773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
22774 $as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
22775 if test "$curl_openssl_api_headers" = "unknown" ||
22776 test "$curl_openssl_api_library" = "unknown"; then
22778 tst_warns="Can not compare OpenSSL headers and library versions."
22779 elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
22781 tst_warns="OpenSSL headers and library versions do not match."
22783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
22784 $as_echo "$tst_match" >&6; }
22785 if test "$tst_match" != "yes"; then
22786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
22787 $as_echo "$as_me: WARNING: $tst_warns" >&2;}
22795 if test X"$OPENSSL_ENABLED" = X"1"; then
22797 # Check whether --with-egd-socket was given.
22798 if test "${with_egd_socket+set}" = set; then :
22799 withval=$with_egd_socket; EGD_SOCKET="$withval"
22803 if test -n "$EGD_SOCKET" ; then
22805 cat >>confdefs.h <<_ACEOF
22806 #define EGD_SOCKET "$EGD_SOCKET"
22812 # Check whether --with-random was given.
22813 if test "${with_random+set}" = set; then :
22814 withval=$with_random; RANDOM_FILE="$withval"
22817 if test x$cross_compiling != xyes; then
22818 as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
22819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
22820 $as_echo_n "checking for \"/dev/urandom\"... " >&6; }
22821 if eval \${$as_ac_File+:} false; then :
22822 $as_echo_n "(cached) " >&6
22824 test "$cross_compiling" = yes &&
22825 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
22826 if test -r ""/dev/urandom""; then
22827 eval "$as_ac_File=yes"
22829 eval "$as_ac_File=no"
22832 eval ac_res=\$$as_ac_File
22833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22834 $as_echo "$ac_res" >&6; }
22835 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
22836 RANDOM_FILE="/dev/urandom"
22840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
22841 $as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
22847 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
22850 cat >>confdefs.h <<_ACEOF
22851 #define RANDOM_FILE "$RANDOM_FILE"
22857 if test "$OPENSSL_ENABLED" = "1"; then
22858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
22859 $as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
22860 if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
22861 $as_echo_n "(cached) " >&6
22863 ac_check_lib_save_LIBS=$LIBS
22864 LIBS="-lcrypto $LIBS"
22865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22866 /* end confdefs.h. */
22872 char SRP_Calc_client_key ();
22875 return SRP_Calc_client_key ();
22880 if ac_fn_c_try_link "$LINENO"; then :
22881 ac_cv_lib_crypto_SRP_Calc_client_key=yes
22883 ac_cv_lib_crypto_SRP_Calc_client_key=no
22885 rm -f core conftest.err conftest.$ac_objext \
22886 conftest$ac_exeext conftest.$ac_ext
22887 LIBS=$ac_check_lib_save_LIBS
22889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
22890 $as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
22891 if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
22894 $as_echo "#define HAVE_SSLEAY_SRP 1" >>confdefs.h
22907 # Check whether --with-gnutls was given.
22908 if test "${with_gnutls+set}" = set; then :
22909 withval=$with_gnutls; OPT_GNUTLS=$withval
22913 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
22915 if test X"$OPT_GNUTLS" != Xno; then
22923 if test "x$OPT_GNUTLS" = "xyes"; then
22928 if test -n "$ac_tool_prefix"; then
22929 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22930 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22932 $as_echo_n "checking for $ac_word... " >&6; }
22933 if ${ac_cv_path_PKGCONFIG+:} false; then :
22934 $as_echo_n "(cached) " >&6
22938 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22942 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22943 for as_dir in $as_dummy
22946 test -z "$as_dir" && as_dir=.
22947 for ac_exec_ext in '' $ac_executable_extensions; do
22948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22949 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22960 PKGCONFIG=$ac_cv_path_PKGCONFIG
22961 if test -n "$PKGCONFIG"; then
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22963 $as_echo "$PKGCONFIG" >&6; }
22965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22966 $as_echo "no" >&6; }
22971 if test -z "$ac_cv_path_PKGCONFIG"; then
22972 ac_pt_PKGCONFIG=$PKGCONFIG
22973 # Extract the first word of "pkg-config", so it can be a program name with args.
22974 set dummy pkg-config; ac_word=$2
22975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22976 $as_echo_n "checking for $ac_word... " >&6; }
22977 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22978 $as_echo_n "(cached) " >&6
22980 case $ac_pt_PKGCONFIG in
22982 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22986 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22987 for as_dir in $as_dummy
22990 test -z "$as_dir" && as_dir=.
22991 for ac_exec_ext in '' $ac_executable_extensions; do
22992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22993 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23004 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23005 if test -n "$ac_pt_PKGCONFIG"; then
23006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23007 $as_echo "$ac_pt_PKGCONFIG" >&6; }
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23010 $as_echo "no" >&6; }
23013 if test "x$ac_pt_PKGCONFIG" = x; then
23016 case $cross_compiling:$ac_tool_warned in
23018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23020 ac_tool_warned=yes ;;
23022 PKGCONFIG=$ac_pt_PKGCONFIG
23025 PKGCONFIG="$ac_cv_path_PKGCONFIG"
23029 if test x$PKGCONFIG != xno; then
23030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
23031 $as_echo_n "checking for gnutls options with pkg-config... " >&6; }
23033 if test -n ""; then
23034 PKG_CONFIG_LIBDIR=""
23035 export PKG_CONFIG_LIBDIR
23037 $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
23039 if test -z "$itexists"; then
23041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23042 $as_echo "no" >&6; }
23044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23045 $as_echo "found" >&6; }
23050 if test "$PKGCONFIG" != "no" ; then
23051 addlib=`$PKGCONFIG --libs-only-l gnutls`
23052 addld=`$PKGCONFIG --libs-only-L gnutls`
23053 addcflags=`$PKGCONFIG --cflags-only-I gnutls`
23054 version=`$PKGCONFIG --modversion gnutls`
23055 gtlslib=`echo $addld | $SED -e 's/-L//'`
23057 check=`libgnutls-config --version 2>/dev/null`
23058 if test -n "$check"; then
23059 addlib=`libgnutls-config --libs`
23060 addcflags=`libgnutls-config --cflags`
23061 version=`libgnutls-config --version`
23062 gtlslib=`libgnutls-config --prefix`/lib$libsuff
23066 cfg=$OPT_GNUTLS/bin/libgnutls-config
23067 check=`$cfg --version 2>/dev/null`
23068 if test -n "$check"; then
23069 addlib=`$cfg --libs`
23070 addcflags=`$cfg --cflags`
23071 version=`$cfg --version`
23072 gtlslib=`$cfg --prefix`/lib$libsuff
23075 addld=-L$OPT_GNUTLS/lib$libsuff
23076 addcflags=-I$OPT_GNUTLS/include
23077 version="" # we just don't know
23078 gtlslib=$OPT_GNUTLS/lib$libsuff
23082 if test -z "$version"; then
23086 if test -n "$addlib"; then
23089 CLEANCPPFLAGS="$CPPFLAGS"
23090 CLEANLDFLAGS="$LDFLAGS"
23092 LIBS="$addlib $LIBS"
23093 LDFLAGS="$LDFLAGS $addld"
23094 if test "$addcflags" != "-I/usr/include"; then
23095 CPPFLAGS="$CPPFLAGS $addcflags"
23098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
23099 $as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
23100 if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
23101 $as_echo_n "(cached) " >&6
23103 ac_check_lib_save_LIBS=$LIBS
23104 LIBS="-lgnutls $LIBS"
23105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23106 /* end confdefs.h. */
23112 char gnutls_check_version ();
23115 return gnutls_check_version ();
23120 if ac_fn_c_try_link "$LINENO"; then :
23121 ac_cv_lib_gnutls_gnutls_check_version=yes
23123 ac_cv_lib_gnutls_gnutls_check_version=no
23125 rm -f core conftest.err conftest.$ac_objext \
23126 conftest$ac_exeext conftest.$ac_ext
23127 LIBS=$ac_check_lib_save_LIBS
23129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
23130 $as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
23131 if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
23134 $as_echo "#define USE_GNUTLS 1" >>confdefs.h
23140 curl_ssl_msg="enabled (GnuTLS)"
23145 CPPFLAGS="$CLEANCPPFLAGS"
23150 if test "x$USE_GNUTLS" = "xyes"; then
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
23152 $as_echo "$as_me: detected GnuTLS version $version" >&6;}
23154 if test -n "$gtlslib"; then
23155 if test "x$cross_compiling" != "xyes"; then
23156 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlslib"
23157 export LD_LIBRARY_PATH
23158 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to LD_LIBRARY_PATH" >&5
23159 $as_echo "$as_me: Added $gtlslib to LD_LIBRARY_PATH" >&6;}
23170 if test "$GNUTLS_ENABLED" = "1"; then
23172 # First check if we can detect either crypto library via transitive linking
23173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
23174 $as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
23175 if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
23176 $as_echo_n "(cached) " >&6
23178 ac_check_lib_save_LIBS=$LIBS
23179 LIBS="-lgnutls $LIBS"
23180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23181 /* end confdefs.h. */
23187 char nettle_MD5Init ();
23190 return nettle_MD5Init ();
23195 if ac_fn_c_try_link "$LINENO"; then :
23196 ac_cv_lib_gnutls_nettle_MD5Init=yes
23198 ac_cv_lib_gnutls_nettle_MD5Init=no
23200 rm -f core conftest.err conftest.$ac_objext \
23201 conftest$ac_exeext conftest.$ac_ext
23202 LIBS=$ac_check_lib_save_LIBS
23204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
23205 $as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
23206 if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
23207 USE_GNUTLS_NETTLE=1
23210 if test "$USE_GNUTLS_NETTLE" = ""; then
23211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
23212 $as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
23213 if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
23214 $as_echo_n "(cached) " >&6
23216 ac_check_lib_save_LIBS=$LIBS
23217 LIBS="-lgnutls $LIBS"
23218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23219 /* end confdefs.h. */
23225 char gcry_control ();
23228 return gcry_control ();
23233 if ac_fn_c_try_link "$LINENO"; then :
23234 ac_cv_lib_gnutls_gcry_control=yes
23236 ac_cv_lib_gnutls_gcry_control=no
23238 rm -f core conftest.err conftest.$ac_objext \
23239 conftest$ac_exeext conftest.$ac_ext
23240 LIBS=$ac_check_lib_save_LIBS
23242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
23243 $as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
23244 if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
23245 USE_GNUTLS_NETTLE=0
23249 # If not, try linking directly to both of them to see if they are available
23250 if test "$USE_GNUTLS_NETTLE" = ""; then
23251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
23252 $as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
23253 if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
23254 $as_echo_n "(cached) " >&6
23256 ac_check_lib_save_LIBS=$LIBS
23257 LIBS="-lnettle $LIBS"
23258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23259 /* end confdefs.h. */
23265 char nettle_MD5Init ();
23268 return nettle_MD5Init ();
23273 if ac_fn_c_try_link "$LINENO"; then :
23274 ac_cv_lib_nettle_nettle_MD5Init=yes
23276 ac_cv_lib_nettle_nettle_MD5Init=no
23278 rm -f core conftest.err conftest.$ac_objext \
23279 conftest$ac_exeext conftest.$ac_ext
23280 LIBS=$ac_check_lib_save_LIBS
23282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
23283 $as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
23284 if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
23285 USE_GNUTLS_NETTLE=1
23289 if test "$USE_GNUTLS_NETTLE" = ""; then
23290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
23291 $as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
23292 if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
23293 $as_echo_n "(cached) " >&6
23295 ac_check_lib_save_LIBS=$LIBS
23296 LIBS="-lgcrypt $LIBS"
23297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23298 /* end confdefs.h. */
23304 char gcry_control ();
23307 return gcry_control ();
23312 if ac_fn_c_try_link "$LINENO"; then :
23313 ac_cv_lib_gcrypt_gcry_control=yes
23315 ac_cv_lib_gcrypt_gcry_control=no
23317 rm -f core conftest.err conftest.$ac_objext \
23318 conftest$ac_exeext conftest.$ac_ext
23319 LIBS=$ac_check_lib_save_LIBS
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
23322 $as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
23323 if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
23324 USE_GNUTLS_NETTLE=0
23328 if test "$USE_GNUTLS_NETTLE" = ""; then
23329 as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
23331 if test "$USE_GNUTLS_NETTLE" = "1"; then
23333 $as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
23335 USE_GNUTLS_NETTLE=1
23337 LIBS="-lnettle $LIBS"
23339 LIBS="-lgcrypt $LIBS"
23343 if test "$GNUTLS_ENABLED" = "1"; then
23344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
23345 $as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
23346 if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
23347 $as_echo_n "(cached) " >&6
23349 ac_check_lib_save_LIBS=$LIBS
23350 LIBS="-lgnutls $LIBS"
23351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23352 /* end confdefs.h. */
23358 char gnutls_srp_verifier ();
23361 return gnutls_srp_verifier ();
23366 if ac_fn_c_try_link "$LINENO"; then :
23367 ac_cv_lib_gnutls_gnutls_srp_verifier=yes
23369 ac_cv_lib_gnutls_gnutls_srp_verifier=no
23371 rm -f core conftest.err conftest.$ac_objext \
23372 conftest$ac_exeext conftest.$ac_ext
23373 LIBS=$ac_check_lib_save_LIBS
23375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
23376 $as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
23377 if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
23380 $as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
23392 _cppflags=$CPPFLAGS
23395 # Check whether --with-polarssl was given.
23396 if test "${with_polarssl+set}" = set; then :
23397 withval=$with_polarssl; OPT_POLARSSL=$withval
23401 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
23403 if test X"$OPT_POLARSSL" != Xno; then
23405 if test "$OPT_POLARSSL" = "yes"; then
23409 if test -z "$OPT_POLARSSL" ; then
23411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
23412 $as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
23413 if ${ac_cv_lib_polarssl_havege_init+:} false; then :
23414 $as_echo_n "(cached) " >&6
23416 ac_check_lib_save_LIBS=$LIBS
23417 LIBS="-lpolarssl $LIBS"
23418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23419 /* end confdefs.h. */
23425 char havege_init ();
23428 return havege_init ();
23433 if ac_fn_c_try_link "$LINENO"; then :
23434 ac_cv_lib_polarssl_havege_init=yes
23436 ac_cv_lib_polarssl_havege_init=no
23438 rm -f core conftest.err conftest.$ac_objext \
23439 conftest$ac_exeext conftest.$ac_ext
23440 LIBS=$ac_check_lib_save_LIBS
23442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
23443 $as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
23444 if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then :
23447 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
23453 curl_ssl_msg="enabled (PolarSSL)"
23464 if test "x$USE_POLARSSL" != "xyes"; then
23465 addld=-L$OPT_POLARSSL/lib$libsuff
23466 addcflags=-I$OPT_POLARSSL/include
23467 polarssllib=$OPT_POLARSSL/lib$libsuff
23469 LDFLAGS="$LDFLAGS $addld"
23470 if test "$addcflags" != "-I/usr/include"; then
23471 CPPFLAGS="$CPPFLAGS $addcflags"
23474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
23475 $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
23476 if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
23477 $as_echo_n "(cached) " >&6
23479 ac_check_lib_save_LIBS=$LIBS
23480 LIBS="-lpolarssl $LIBS"
23481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23482 /* end confdefs.h. */
23491 return ssl_init ();
23496 if ac_fn_c_try_link "$LINENO"; then :
23497 ac_cv_lib_polarssl_ssl_init=yes
23499 ac_cv_lib_polarssl_ssl_init=no
23501 rm -f core conftest.err conftest.$ac_objext \
23502 conftest$ac_exeext conftest.$ac_ext
23503 LIBS=$ac_check_lib_save_LIBS
23505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
23506 $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
23507 if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
23510 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
23516 curl_ssl_msg="enabled (PolarSSL)"
23520 CPPFLAGS=$_cppflags
23527 if test "x$USE_POLARSSL" = "xyes"; then
23528 { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
23529 $as_echo "$as_me: detected PolarSSL" >&6;}
23531 LIBS="-lpolarssl $LIBS"
23533 if test -n "$polarssllib"; then
23534 if test "x$cross_compiling" != "xyes"; then
23535 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$polarssllib"
23536 export LD_LIBRARY_PATH
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to LD_LIBRARY_PATH" >&5
23538 $as_echo "$as_me: Added $polarssllib to LD_LIBRARY_PATH" >&6;}
23549 _cppflags=$CPPFLAGS
23552 # Check whether --with-cyassl was given.
23553 if test "${with_cyassl+set}" = set; then :
23554 withval=$with_cyassl; OPT_CYASSL=$withval
23558 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
23560 if test X"$OPT_CYASSL" != Xno; then
23562 if test "$OPT_CYASSL" = "yes"; then
23566 if test -z "$OPT_CYASSL" ; then
23568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
23569 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
23570 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
23571 $as_echo_n "(cached) " >&6
23573 ac_check_lib_save_LIBS=$LIBS
23574 LIBS="-lcyassl $LIBS"
23575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23576 /* end confdefs.h. */
23582 char CyaSSL_Init ();
23585 return CyaSSL_Init ();
23590 if ac_fn_c_try_link "$LINENO"; then :
23591 ac_cv_lib_cyassl_CyaSSL_Init=yes
23593 ac_cv_lib_cyassl_CyaSSL_Init=no
23595 rm -f core conftest.err conftest.$ac_objext \
23596 conftest$ac_exeext conftest.$ac_ext
23597 LIBS=$ac_check_lib_save_LIBS
23599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
23600 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
23601 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
23604 $as_echo "#define USE_CYASSL 1" >>confdefs.h
23610 curl_ssl_msg="enabled (CyaSSL)"
23621 if test "x$USE_CYASSL" != "xyes"; then
23622 addld=-L$OPT_CYASSL/lib$libsuff
23623 addcflags=-I$OPT_CYASSL/include
23624 cyassllib=$OPT_CYASSL/lib$libsuff
23626 LDFLAGS="$LDFLAGS $addld"
23627 if test "$addcflags" != "-I/usr/include"; then
23628 CPPFLAGS="$CPPFLAGS $addcflags"
23631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
23632 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
23633 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
23634 $as_echo_n "(cached) " >&6
23636 ac_check_lib_save_LIBS=$LIBS
23637 LIBS="-lcyassl $LIBS"
23638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23639 /* end confdefs.h. */
23645 char CyaSSL_Init ();
23648 return CyaSSL_Init ();
23653 if ac_fn_c_try_link "$LINENO"; then :
23654 ac_cv_lib_cyassl_CyaSSL_Init=yes
23656 ac_cv_lib_cyassl_CyaSSL_Init=no
23658 rm -f core conftest.err conftest.$ac_objext \
23659 conftest$ac_exeext conftest.$ac_ext
23660 LIBS=$ac_check_lib_save_LIBS
23662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
23663 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
23664 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
23667 $as_echo "#define USE_CYASSL 1" >>confdefs.h
23673 curl_ssl_msg="enabled (CyaSSL)"
23677 CPPFLAGS=$_cppflags
23684 if test "x$USE_CYASSL" = "xyes"; then
23685 { $as_echo "$as_me:${as_lineno-$LINENO}: detected CyaSSL" >&5
23686 $as_echo "$as_me: detected CyaSSL" >&6;}
23688 LIBS="-lcyassl -lm $LIBS"
23690 if test -n "$cyassllib"; then
23691 if test "x$cross_compiling" != "xyes"; then
23692 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$cyassllib"
23693 export LD_LIBRARY_PATH
23694 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to LD_LIBRARY_PATH" >&5
23695 $as_echo "$as_me: Added $cyassllib to LD_LIBRARY_PATH" >&6;}
23708 # Check whether --with-nss was given.
23709 if test "${with_nss+set}" = set; then :
23710 withval=$with_nss; OPT_NSS=$withval
23714 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
23716 if test X"$OPT_NSS" != Xno; then
23724 if test "x$OPT_NSS" = "xyes"; then
23730 if test -n "$ac_tool_prefix"; then
23731 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23732 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23734 $as_echo_n "checking for $ac_word... " >&6; }
23735 if ${ac_cv_path_PKGCONFIG+:} false; then :
23736 $as_echo_n "(cached) " >&6
23740 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23744 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23745 for as_dir in $as_dummy
23748 test -z "$as_dir" && as_dir=.
23749 for ac_exec_ext in '' $ac_executable_extensions; do
23750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23751 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23762 PKGCONFIG=$ac_cv_path_PKGCONFIG
23763 if test -n "$PKGCONFIG"; then
23764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23765 $as_echo "$PKGCONFIG" >&6; }
23767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23768 $as_echo "no" >&6; }
23773 if test -z "$ac_cv_path_PKGCONFIG"; then
23774 ac_pt_PKGCONFIG=$PKGCONFIG
23775 # Extract the first word of "pkg-config", so it can be a program name with args.
23776 set dummy pkg-config; ac_word=$2
23777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23778 $as_echo_n "checking for $ac_word... " >&6; }
23779 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
23780 $as_echo_n "(cached) " >&6
23782 case $ac_pt_PKGCONFIG in
23784 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23788 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23789 for as_dir in $as_dummy
23792 test -z "$as_dir" && as_dir=.
23793 for ac_exec_ext in '' $ac_executable_extensions; do
23794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23795 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23806 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23807 if test -n "$ac_pt_PKGCONFIG"; then
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23809 $as_echo "$ac_pt_PKGCONFIG" >&6; }
23811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23812 $as_echo "no" >&6; }
23815 if test "x$ac_pt_PKGCONFIG" = x; then
23818 case $cross_compiling:$ac_tool_warned in
23820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23822 ac_tool_warned=yes ;;
23824 PKGCONFIG=$ac_pt_PKGCONFIG
23827 PKGCONFIG="$ac_cv_path_PKGCONFIG"
23831 if test x$PKGCONFIG != xno; then
23832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
23833 $as_echo_n "checking for nss options with pkg-config... " >&6; }
23835 if test -n ""; then
23836 PKG_CONFIG_LIBDIR=""
23837 export PKG_CONFIG_LIBDIR
23839 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
23841 if test -z "$itexists"; then
23843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23844 $as_echo "no" >&6; }
23846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23847 $as_echo "found" >&6; }
23852 if test "$PKGCONFIG" != "no" ; then
23853 addlib=`$PKGCONFIG --libs nss`
23854 addcflags=`$PKGCONFIG --cflags nss`
23855 version=`$PKGCONFIG --modversion nss`
23856 nssprefix=`$PKGCONFIG --variable=prefix nss`
23859 check=`nss-config --version 2>/dev/null`
23860 if test -n "$check"; then
23861 addlib=`nss-config --libs`
23862 addcflags=`nss-config --cflags`
23863 version=`nss-config --version`
23864 nssprefix=`nss-config --prefix`
23872 # Without pkg-config, we'll kludge in some defaults
23873 addlib="-L$OPT_NSS/lib -lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl"
23874 addcflags="-I$OPT_NSS/include"
23879 if test -n "$addlib"; then
23882 CLEANCPPFLAGS="$CPPFLAGS"
23884 LIBS="$addlib $LIBS"
23885 if test "$addcflags" != "-I/usr/include"; then
23886 CPPFLAGS="$CPPFLAGS $addcflags"
23889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PK11_CreateGenericObject in -lnss3" >&5
23890 $as_echo_n "checking for PK11_CreateGenericObject in -lnss3... " >&6; }
23891 if ${ac_cv_lib_nss3_PK11_CreateGenericObject+:} false; then :
23892 $as_echo_n "(cached) " >&6
23894 ac_check_lib_save_LIBS=$LIBS
23895 LIBS="-lnss3 $LIBS"
23896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23897 /* end confdefs.h. */
23903 char PK11_CreateGenericObject ();
23906 return PK11_CreateGenericObject ();
23911 if ac_fn_c_try_link "$LINENO"; then :
23912 ac_cv_lib_nss3_PK11_CreateGenericObject=yes
23914 ac_cv_lib_nss3_PK11_CreateGenericObject=no
23916 rm -f core conftest.err conftest.$ac_objext \
23917 conftest$ac_exeext conftest.$ac_ext
23918 LIBS=$ac_check_lib_save_LIBS
23920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_PK11_CreateGenericObject" >&5
23921 $as_echo "$ac_cv_lib_nss3_PK11_CreateGenericObject" >&6; }
23922 if test "x$ac_cv_lib_nss3_PK11_CreateGenericObject" = xyes; then :
23925 $as_echo "#define USE_NSS 1" >>confdefs.h
23931 curl_ssl_msg="enabled (NSS)"
23936 CPPFLAGS="$CLEANCPPFLAGS"
23941 if test "x$USE_NSS" = "xyes"; then
23942 { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
23943 $as_echo "$as_me: detected NSS version $version" >&6;}
23945 ac_fn_c_check_func "$LINENO" "NSS_InitContext" "ac_cv_func_NSS_InitContext"
23946 if test "x$ac_cv_func_NSS_InitContext" = xyes; then :
23949 $as_echo "#define HAVE_NSS_INITCONTEXT 1" >>confdefs.h
23951 HAVE_NSS_INITCONTEXT=1
23957 if test "x$cross_compiling" != "xyes"; then
23958 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$nssprefix/lib$libsuff"
23959 export LD_LIBRARY_PATH
23960 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&5
23961 $as_echo "$as_me: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;}
23972 # Check whether --with-axtls was given.
23973 if test "${with_axtls+set}" = set; then :
23974 withval=$with_axtls; OPT_AXTLS=$withval
23978 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
23979 if test X"$OPT_AXTLS" != Xno; then
23980 CLEANLDFLAGS="$LDFLAGS"
23981 CLEANCPPFLAGS="$CPPFLAGS"
23984 case "$OPT_AXTLS" in
23986 PREFIX_AXTLS=/usr/local
23987 LIB_AXTLS="$PREFIX_AXTLS/lib"
23988 LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
23989 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
23995 PREFIX_AXTLS=$OPT_AXTLS
23996 LIB_AXTLS="$PREFIX_AXTLS/lib"
23997 LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
23998 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
24002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_version in -laxtls" >&5
24003 $as_echo_n "checking for ssl_version in -laxtls... " >&6; }
24004 if ${ac_cv_lib_axtls_ssl_version+:} false; then :
24005 $as_echo_n "(cached) " >&6
24007 ac_check_lib_save_LIBS=$LIBS
24008 LIBS="-laxtls $LIBS"
24009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24010 /* end confdefs.h. */
24016 char ssl_version ();
24019 return ssl_version ();
24024 if ac_fn_c_try_link "$LINENO"; then :
24025 ac_cv_lib_axtls_ssl_version=yes
24027 ac_cv_lib_axtls_ssl_version=no
24029 rm -f core conftest.err conftest.$ac_objext \
24030 conftest$ac_exeext conftest.$ac_ext
24031 LIBS=$ac_check_lib_save_LIBS
24033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axtls_ssl_version" >&5
24034 $as_echo "$ac_cv_lib_axtls_ssl_version" >&6; }
24035 if test "x$ac_cv_lib_axtls_ssl_version" = xyes; then :
24037 LIBS="-laxtls $LIBS"
24039 $as_echo "#define USE_AXTLS 1" >>confdefs.h
24045 curl_ssl_msg="enabled (axTLS)"
24048 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_AXTLS"
24049 export LD_LIBRARY_PATH
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&5
24051 $as_echo "$as_me: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&6;}
24055 LDFLAGS="$CLEANLDFLAGS"
24056 CPPFLAGS="$CLEANCPPFLAGS"
24064 if test "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED" = "x"; then
24065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
24066 $as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
24067 { $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
24068 $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;}
24070 # SSL is enabled, genericly
24078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
24079 $as_echo_n "checking default CA cert bundle/path... " >&6; }
24082 # Check whether --with-ca-bundle was given.
24083 if test "${with_ca_bundle+set}" = set; then :
24084 withval=$with_ca_bundle;
24086 if test "x$want_ca" = "xyes"; then
24087 as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
24095 # Check whether --with-ca-path was given.
24096 if test "${with_ca_path+set}" = set; then :
24097 withval=$with_ca_path;
24098 want_capath="$withval"
24099 if test "x$want_capath" = "xyes"; then
24100 as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
24104 want_capath="unset"
24108 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
24109 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
24110 as_fn_error $? "Can't specify both --with-ca-bundle and --with-ca-path." "$LINENO" 5
24111 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
24114 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
24115 if test "x$OPENSSL_ENABLED" != "x1"; then
24116 as_fn_error $? "--with-ca-path only works with openSSL" "$LINENO" 5
24118 capath="$want_capath"
24120 elif test "x$cross_compiling" != "xyes"; then
24124 if test "x$want_ca" = "xunset"; then
24125 if test "x$prefix" != xNONE; then
24126 cac="${prefix}/share/curl/curl-ca-bundle.crt"
24128 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
24131 for a in /etc/ssl/certs/ca-certificates.crt \
24132 /etc/pki/tls/certs/ca-bundle.crt \
24133 /usr/share/ssl/certs/ca-bundle.crt \
24134 /usr/local/share/certs/ca-root.crt \
24135 /etc/ssl/cert.pem \
24137 if test -f "$a"; then
24143 if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
24144 "x$OPENSSL_ENABLED" = "x1"; then
24145 for a in /etc/ssl/certs/; do
24146 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
24153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
24154 $as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
24157 if test "x$ca" != "xno"; then
24158 CURL_CA_BUNDLE='"'$ca'"'
24160 cat >>confdefs.h <<_ACEOF
24161 #define CURL_CA_BUNDLE "$ca"
24165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
24166 $as_echo "$ca" >&6; }
24167 elif test "x$capath" != "xno"; then
24168 CURL_CA_PATH="\"$capath\""
24170 cat >>confdefs.h <<_ACEOF
24171 #define CURL_CA_PATH "$capath"
24174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
24175 $as_echo "$capath (capath)" >&6; }
24177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24178 $as_echo "no" >&6; }
24186 # Check whether --with-libmetalink was given.
24187 if test "${with_libmetalink+set}" = set; then :
24188 withval=$with_libmetalink; OPT_LIBMETALINK=$withval
24192 if test X"$OPT_LIBMETALINK" != Xno; then
24201 if test "x$OPT_LIBMETALINK" = "xyes"; then
24207 if test -n "$ac_tool_prefix"; then
24208 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24209 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24211 $as_echo_n "checking for $ac_word... " >&6; }
24212 if ${ac_cv_path_PKGCONFIG+:} false; then :
24213 $as_echo_n "(cached) " >&6
24217 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24221 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24222 for as_dir in $as_dummy
24225 test -z "$as_dir" && as_dir=.
24226 for ac_exec_ext in '' $ac_executable_extensions; do
24227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24228 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24239 PKGCONFIG=$ac_cv_path_PKGCONFIG
24240 if test -n "$PKGCONFIG"; then
24241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24242 $as_echo "$PKGCONFIG" >&6; }
24244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24245 $as_echo "no" >&6; }
24250 if test -z "$ac_cv_path_PKGCONFIG"; then
24251 ac_pt_PKGCONFIG=$PKGCONFIG
24252 # Extract the first word of "pkg-config", so it can be a program name with args.
24253 set dummy pkg-config; ac_word=$2
24254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24255 $as_echo_n "checking for $ac_word... " >&6; }
24256 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24257 $as_echo_n "(cached) " >&6
24259 case $ac_pt_PKGCONFIG in
24261 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24265 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24266 for as_dir in $as_dummy
24269 test -z "$as_dir" && as_dir=.
24270 for ac_exec_ext in '' $ac_executable_extensions; do
24271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24272 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24283 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24284 if test -n "$ac_pt_PKGCONFIG"; then
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24286 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24289 $as_echo "no" >&6; }
24292 if test "x$ac_pt_PKGCONFIG" = x; then
24295 case $cross_compiling:$ac_tool_warned in
24297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24299 ac_tool_warned=yes ;;
24301 PKGCONFIG=$ac_pt_PKGCONFIG
24304 PKGCONFIG="$ac_cv_path_PKGCONFIG"
24308 if test x$PKGCONFIG != xno; then
24309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
24310 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
24312 if test -n ""; then
24313 PKG_CONFIG_LIBDIR=""
24314 export PKG_CONFIG_LIBDIR
24316 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
24318 if test -z "$itexists"; then
24320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24321 $as_echo "no" >&6; }
24323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24324 $as_echo "found" >&6; }
24329 LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
24330 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
24331 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
24332 if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
24335 if test "$PKGTEST" = "yes"; then
24340 if test -n "$ac_tool_prefix"; then
24341 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24342 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24344 $as_echo_n "checking for $ac_word... " >&6; }
24345 if ${ac_cv_path_PKGCONFIG+:} false; then :
24346 $as_echo_n "(cached) " >&6
24350 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24354 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24355 for as_dir in $as_dummy
24358 test -z "$as_dir" && as_dir=.
24359 for ac_exec_ext in '' $ac_executable_extensions; do
24360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24361 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24372 PKGCONFIG=$ac_cv_path_PKGCONFIG
24373 if test -n "$PKGCONFIG"; then
24374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24375 $as_echo "$PKGCONFIG" >&6; }
24377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24378 $as_echo "no" >&6; }
24383 if test -z "$ac_cv_path_PKGCONFIG"; then
24384 ac_pt_PKGCONFIG=$PKGCONFIG
24385 # Extract the first word of "pkg-config", so it can be a program name with args.
24386 set dummy pkg-config; ac_word=$2
24387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24388 $as_echo_n "checking for $ac_word... " >&6; }
24389 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24390 $as_echo_n "(cached) " >&6
24392 case $ac_pt_PKGCONFIG in
24394 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24398 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24399 for as_dir in $as_dummy
24402 test -z "$as_dir" && as_dir=.
24403 for ac_exec_ext in '' $ac_executable_extensions; do
24404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24405 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24416 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24417 if test -n "$ac_pt_PKGCONFIG"; then
24418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24419 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24422 $as_echo "no" >&6; }
24425 if test "x$ac_pt_PKGCONFIG" = x; then
24428 case $cross_compiling:$ac_tool_warned in
24430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24432 ac_tool_warned=yes ;;
24434 PKGCONFIG=$ac_pt_PKGCONFIG
24437 PKGCONFIG="$ac_cv_path_PKGCONFIG"
24441 if test x$PKGCONFIG != xno; then
24442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
24443 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
24445 if test -n "$LIBMETALINK_PCDIR"; then
24446 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
24447 export PKG_CONFIG_LIBDIR
24449 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
24451 if test -z "$itexists"; then
24453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24454 $as_echo "no" >&6; }
24456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24457 $as_echo "found" >&6; }
24463 if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
24465 if test -n "$LIBMETALINK_PCDIR"; then
24466 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
24467 export PKG_CONFIG_LIBDIR
24469 $PKGCONFIG --libs-only-l libmetalink`
24471 if test -n "$LIBMETALINK_PCDIR"; then
24472 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
24473 export PKG_CONFIG_LIBDIR
24475 $PKGCONFIG --libs-only-L libmetalink`
24477 if test -n "$LIBMETALINK_PCDIR"; then
24478 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
24479 export PKG_CONFIG_LIBDIR
24481 $PKGCONFIG --cflags-only-I libmetalink`
24483 if test -n "$LIBMETALINK_PCDIR"; then
24484 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
24485 export PKG_CONFIG_LIBDIR
24487 $PKGCONFIG --modversion libmetalink`
24488 libmetalinklib=`echo $addld | $SED -e 's/-L//'`
24490 if test -n "$addlib"; then
24492 clean_CPPFLAGS="$CPPFLAGS"
24493 clean_LDFLAGS="$LDFLAGS"
24495 CPPFLAGS="$addcflags $clean_CPPFLAGS"
24496 LDFLAGS="$addld $clean_LDFLAGS"
24497 LIBS="$addlib $clean_LIBS"
24498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
24499 $as_echo_n "checking if libmetalink is recent enough... " >&6; }
24500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24501 /* end confdefs.h. */
24504 # include <metalink/metalink.h>
24509 if(0 != metalink_strerror(0)) /* added in 0.1.0 */
24517 if ac_fn_c_try_link "$LINENO"; then :
24519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
24520 $as_echo "yes ($version)" >&6; }
24521 want_metalink="yes"
24525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
24526 $as_echo "no ($version)" >&6; }
24527 { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
24528 $as_echo "$as_me: libmetalink library defective or too old" >&6;}
24532 rm -f core conftest.err conftest.$ac_objext \
24533 conftest$ac_exeext conftest.$ac_ext
24534 CPPFLAGS="$clean_CPPFLAGS"
24535 LDFLAGS="$clean_LDFLAGS"
24537 if test "$want_metalink" = "yes"; then
24539 $as_echo "#define USE_METALINK 1" >>confdefs.h
24541 LIBMETALINK_LIBS=$addlib
24542 LIBMETALINK_LDFLAGS=$addld
24543 LIBMETALINK_CPPFLAGS=$addcflags
24547 curl_mtlnk_msg="enabled"
24556 # Check whether --with-libssh2 was given.
24557 if test "${with_libssh2+set}" = set; then :
24558 withval=$with_libssh2; OPT_LIBSSH2=$withval
24562 if test X"$OPT_LIBSSH2" != Xno; then
24563 CLEANLDFLAGS="$LDFLAGS"
24564 CLEANCPPFLAGS="$CPPFLAGS"
24567 case "$OPT_LIBSSH2" in
24573 if test -n "$ac_tool_prefix"; then
24574 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24575 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24577 $as_echo_n "checking for $ac_word... " >&6; }
24578 if ${ac_cv_path_PKGCONFIG+:} false; then :
24579 $as_echo_n "(cached) " >&6
24583 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24587 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24588 for as_dir in $as_dummy
24591 test -z "$as_dir" && as_dir=.
24592 for ac_exec_ext in '' $ac_executable_extensions; do
24593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24594 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24605 PKGCONFIG=$ac_cv_path_PKGCONFIG
24606 if test -n "$PKGCONFIG"; then
24607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24608 $as_echo "$PKGCONFIG" >&6; }
24610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24611 $as_echo "no" >&6; }
24616 if test -z "$ac_cv_path_PKGCONFIG"; then
24617 ac_pt_PKGCONFIG=$PKGCONFIG
24618 # Extract the first word of "pkg-config", so it can be a program name with args.
24619 set dummy pkg-config; ac_word=$2
24620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24621 $as_echo_n "checking for $ac_word... " >&6; }
24622 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24623 $as_echo_n "(cached) " >&6
24625 case $ac_pt_PKGCONFIG in
24627 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24631 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24632 for as_dir in $as_dummy
24635 test -z "$as_dir" && as_dir=.
24636 for ac_exec_ext in '' $ac_executable_extensions; do
24637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24638 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24649 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24650 if test -n "$ac_pt_PKGCONFIG"; then
24651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24652 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24655 $as_echo "no" >&6; }
24658 if test "x$ac_pt_PKGCONFIG" = x; then
24661 case $cross_compiling:$ac_tool_warned in
24663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24665 ac_tool_warned=yes ;;
24667 PKGCONFIG=$ac_pt_PKGCONFIG
24670 PKGCONFIG="$ac_cv_path_PKGCONFIG"
24674 if test x$PKGCONFIG != xno; then
24675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
24676 $as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
24678 if test -n ""; then
24679 PKG_CONFIG_LIBDIR=""
24680 export PKG_CONFIG_LIBDIR
24682 $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
24684 if test -z "$itexists"; then
24686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24687 $as_echo "no" >&6; }
24689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24690 $as_echo "found" >&6; }
24695 if test "$PKGCONFIG" != "no" ; then
24696 LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2`
24697 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
24698 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
24699 version=`$PKGCONFIG --modversion libssh2`
24700 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
24707 PREFIX_SSH2=$OPT_LIBSSH2
24711 if test -n "$PREFIX_SSH2"; then
24713 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
24714 CPP_SSH2=-I${PREFIX_SSH2}/include
24715 DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
24718 LDFLAGS="$LDFLAGS $LD_SSH2"
24719 CPPFLAGS="$CPPFLAGS $CPP_SSH2"
24720 LIBS="$LIB_SSH2 $LIBS"
24722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
24723 $as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
24724 if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
24725 $as_echo_n "(cached) " >&6
24727 ac_check_lib_save_LIBS=$LIBS
24728 LIBS="-lssh2 $LIBS"
24729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24730 /* end confdefs.h. */
24736 char libssh2_channel_open_ex ();
24739 return libssh2_channel_open_ex ();
24744 if ac_fn_c_try_link "$LINENO"; then :
24745 ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
24747 ac_cv_lib_ssh2_libssh2_channel_open_ex=no
24749 rm -f core conftest.err conftest.$ac_objext \
24750 conftest$ac_exeext conftest.$ac_ext
24751 LIBS=$ac_check_lib_save_LIBS
24753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
24754 $as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
24755 if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
24756 cat >>confdefs.h <<_ACEOF
24757 #define HAVE_LIBSSH2 1
24760 LIBS="-lssh2 $LIBS"
24765 for ac_header in libssh2.h
24767 ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
24768 if test "x$ac_cv_header_libssh2_h" = xyes; then :
24769 cat >>confdefs.h <<_ACEOF
24770 #define HAVE_LIBSSH2_H 1
24772 curl_ssh_msg="enabled (libSSH2)"
24775 $as_echo "#define USE_LIBSSH2 1" >>confdefs.h
24785 if test X"$OPT_LIBSSH2" != Xoff &&
24786 test "$LIBSSH2_ENABLED" != "1"; then
24787 as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
24790 if test "$LIBSSH2_ENABLED" = "1"; then
24791 if test -n "$DIR_SSH2"; then
24793 for ac_func in libssh2_version libssh2_init libssh2_exit \
24794 libssh2_scp_send64 libssh2_session_handshake
24796 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24797 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24798 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24799 cat >>confdefs.h <<_ACEOF
24800 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24806 if test "x$cross_compiling" != "xyes"; then
24807 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH2"
24808 export LD_LIBRARY_PATH
24809 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&5
24810 $as_echo "$as_me: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&6;}
24814 LDFLAGS=$CLEANLDFLAGS
24815 CPPFLAGS=$CLEANCPPFLAGS
24823 # Check whether --with-librtmp was given.
24824 if test "${with_librtmp+set}" = set; then :
24825 withval=$with_librtmp; OPT_LIBRTMP=$withval
24829 if test X"$OPT_LIBRTMP" != Xno; then
24830 CLEANLDFLAGS="$LDFLAGS"
24831 CLEANCPPFLAGS="$CPPFLAGS"
24834 case "$OPT_LIBRTMP" in
24840 if test -n "$ac_tool_prefix"; then
24841 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24842 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24844 $as_echo_n "checking for $ac_word... " >&6; }
24845 if ${ac_cv_path_PKGCONFIG+:} false; then :
24846 $as_echo_n "(cached) " >&6
24850 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24854 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24855 for as_dir in $as_dummy
24858 test -z "$as_dir" && as_dir=.
24859 for ac_exec_ext in '' $ac_executable_extensions; do
24860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24861 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24872 PKGCONFIG=$ac_cv_path_PKGCONFIG
24873 if test -n "$PKGCONFIG"; then
24874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24875 $as_echo "$PKGCONFIG" >&6; }
24877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24878 $as_echo "no" >&6; }
24883 if test -z "$ac_cv_path_PKGCONFIG"; then
24884 ac_pt_PKGCONFIG=$PKGCONFIG
24885 # Extract the first word of "pkg-config", so it can be a program name with args.
24886 set dummy pkg-config; ac_word=$2
24887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24888 $as_echo_n "checking for $ac_word... " >&6; }
24889 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24890 $as_echo_n "(cached) " >&6
24892 case $ac_pt_PKGCONFIG in
24894 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24898 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24899 for as_dir in $as_dummy
24902 test -z "$as_dir" && as_dir=.
24903 for ac_exec_ext in '' $ac_executable_extensions; do
24904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24905 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24916 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24917 if test -n "$ac_pt_PKGCONFIG"; then
24918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24919 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24922 $as_echo "no" >&6; }
24925 if test "x$ac_pt_PKGCONFIG" = x; then
24928 case $cross_compiling:$ac_tool_warned in
24930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24932 ac_tool_warned=yes ;;
24934 PKGCONFIG=$ac_pt_PKGCONFIG
24937 PKGCONFIG="$ac_cv_path_PKGCONFIG"
24941 if test x$PKGCONFIG != xno; then
24942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
24943 $as_echo_n "checking for librtmp options with pkg-config... " >&6; }
24945 if test -n ""; then
24946 PKG_CONFIG_LIBDIR=""
24947 export PKG_CONFIG_LIBDIR
24949 $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
24951 if test -z "$itexists"; then
24953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24954 $as_echo "no" >&6; }
24956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24957 $as_echo "found" >&6; }
24962 if test "$PKGCONFIG" != "no" ; then
24963 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
24964 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
24965 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
24966 version=`$PKGCONFIG --modversion librtmp`
24967 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
24969 as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
24977 PREFIX_RTMP=$OPT_LIBRTMP
24981 if test -n "$PREFIX_RTMP"; then
24982 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
24983 CPP_RTMP=-I${PREFIX_RTMP}/include
24984 DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
24987 LDFLAGS="$LDFLAGS $LD_RTMP"
24988 CPPFLAGS="$CPPFLAGS $CPP_RTMP"
24989 LIBS="$LIB_RTMP $LIBS"
24991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
24992 $as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
24993 if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
24994 $as_echo_n "(cached) " >&6
24996 ac_check_lib_save_LIBS=$LIBS
24997 LIBS="-lrtmp $LIBS"
24998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24999 /* end confdefs.h. */
25008 return RTMP_Init ();
25013 if ac_fn_c_try_link "$LINENO"; then :
25014 ac_cv_lib_rtmp_RTMP_Init=yes
25016 ac_cv_lib_rtmp_RTMP_Init=no
25018 rm -f core conftest.err conftest.$ac_objext \
25019 conftest$ac_exeext conftest.$ac_ext
25020 LIBS=$ac_check_lib_save_LIBS
25022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
25023 $as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
25024 if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
25026 for ac_header in librtmp/rtmp.h
25028 ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
25029 if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
25030 cat >>confdefs.h <<_ACEOF
25031 #define HAVE_LIBRTMP_RTMP_H 1
25033 curl_rtmp_msg="enabled (librtmp)"
25036 $as_echo "#define USE_LIBRTMP 1" >>confdefs.h
25047 LDFLAGS=$CLEANLDFLAGS
25048 CPPFLAGS=$CLEANCPPFLAGS
25054 if test X"$OPT_LIBRTMP" != Xoff &&
25055 test "$LIBRTMP_ENABLED" != "1"; then
25056 as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
25062 versioned_symbols_flavour=
25063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
25064 $as_echo_n "checking whether versioned symbols are wanted... " >&6; }
25065 # Check whether --enable-versioned-symbols was given.
25066 if test "${enable_versioned_symbols+set}" = set; then :
25067 enableval=$enable_versioned_symbols; case "$enableval" in
25068 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25069 $as_echo "yes" >&6; }
25070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
25071 $as_echo_n "checking if libraries can be versioned... " >&6; }
25072 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
25073 if test -z "$GLD"; then
25074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25075 $as_echo "no" >&6; }
25076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
25077 $as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
25079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25080 $as_echo "yes" >&6; }
25081 if test "x$OPENSSL_ENABLED" = "x1"; then
25082 versioned_symbols_flavour="OPENSSL_"
25083 elif test "x$GNUTLS_ENABLED" == "x1"; then
25084 versioned_symbols_flavour="GNUTLS_"
25085 elif test "x$NSS_ENABLED" == "x1"; then
25086 versioned_symbols_flavour="NSS_"
25087 elif test "x$POLARSSL_ENABLED" == "x1"; then
25088 versioned_symbols_flavour="POLARSSL_"
25089 elif test "x$CYASSL_ENABLED" == "x1"; then
25090 versioned_symbols_flavour="CYASSL_"
25091 elif test "x$AXTLS_ENABLED" == "x1"; then
25092 versioned_symbols_flavour="AXTLS_"
25093 elif test "x$WINSSL_ENABLED" == "x1"; then
25094 versioned_symbols_flavour="WINSSL_"
25095 elif test "x$DARWINSSL_ENABLED" == "x1"; then
25096 versioned_symbols_flavour="DARWINSSL_"
25098 versioned_symbols_flavour=""
25100 versioned_symbols="yes"
25104 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25105 $as_echo "no" >&6; }
25111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25112 $as_echo "no" >&6; }
25118 CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
25120 if test "x$versioned_symbols" = 'xyes'; then
25121 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
25122 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
25124 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
25125 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
25130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
25131 $as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
25132 OPT_WINIDN="default"
25134 # Check whether --with-winidn was given.
25135 if test "${with_winidn+set}" = set; then :
25136 withval=$with_winidn; OPT_WINIDN=$withval
25139 case "$OPT_WINIDN" in
25142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25143 $as_echo "no" >&6; }
25147 want_winidn_path="default"
25148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25149 $as_echo "yes" >&6; }
25153 want_winidn_path="$withval"
25154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
25155 $as_echo "yes ($withval)" >&6; }
25159 if test "$want_winidn" = "yes"; then
25160 clean_CPPFLAGS="$CPPFLAGS"
25161 clean_LDFLAGS="$LDFLAGS"
25163 WINIDN_LIBS="-lnormaliz"
25165 if test "$want_winidn_path" != "default"; then
25166 WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
25167 WINIDN_CPPFLAGS="-I$want_winidn_path/include"
25168 WINIDN_DIR="$want_winidn_path/lib$libsuff"
25171 CPPFLAGS="$WINIDN_CPPFLAGS $CPPFLAGS"
25172 LDFLAGS="$WINIDN_LDFLAGS $LDFLAGS"
25173 LIBS="$WINIDN_LIBS $LIBS"
25175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
25176 $as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
25177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25178 /* end confdefs.h. */
25181 #define IdnToUnicode innocuous_IdnToUnicode
25183 # include <limits.h>
25185 # include <assert.h>
25187 #undef IdnToUnicode
25191 char IdnToUnicode ();
25192 #if defined __stub_IdnToUnicode || defined __stub___IdnToUnicode
25198 return IdnToUnicode ();
25204 if ac_fn_c_try_link "$LINENO"; then :
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25207 $as_echo "yes" >&6; }
25208 tst_links_winidn="yes"
25212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25213 $as_echo "no" >&6; }
25214 tst_links_winidn="no"
25217 rm -f core conftest.err conftest.$ac_objext \
25218 conftest$ac_exeext conftest.$ac_ext
25220 if test "$tst_links_winidn" = "yes"; then
25222 $as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
25225 $as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
25229 curl_idn_msg="enabled (Windows-native)"
25231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
25232 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
25233 CPPFLAGS="$clean_CPPFLAGS"
25234 LDFLAGS="$clean_LDFLAGS"
25240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn" >&5
25241 $as_echo_n "checking whether to build with libidn... " >&6; }
25244 # Check whether --with-libidn was given.
25245 if test "${with_libidn+set}" = set; then :
25246 withval=$with_libidn; OPT_IDN=$withval
25252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25253 $as_echo "no" >&6; }
25257 want_idn_path="default"
25258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
25259 $as_echo "(assumed) yes" >&6; }
25263 want_idn_path="default"
25264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25265 $as_echo "yes" >&6; }
25269 want_idn_path="$withval"
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
25271 $as_echo "yes ($withval)" >&6; }
25275 if test "$want_idn" = "yes"; then
25276 clean_CPPFLAGS="$CPPFLAGS"
25277 clean_LDFLAGS="$LDFLAGS"
25281 if test "$want_idn_path" != "default"; then
25282 IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
25287 if test -n "$ac_tool_prefix"; then
25288 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25289 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25291 $as_echo_n "checking for $ac_word... " >&6; }
25292 if ${ac_cv_path_PKGCONFIG+:} false; then :
25293 $as_echo_n "(cached) " >&6
25297 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25301 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25302 for as_dir in $as_dummy
25305 test -z "$as_dir" && as_dir=.
25306 for ac_exec_ext in '' $ac_executable_extensions; do
25307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25308 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25319 PKGCONFIG=$ac_cv_path_PKGCONFIG
25320 if test -n "$PKGCONFIG"; then
25321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25322 $as_echo "$PKGCONFIG" >&6; }
25324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25325 $as_echo "no" >&6; }
25330 if test -z "$ac_cv_path_PKGCONFIG"; then
25331 ac_pt_PKGCONFIG=$PKGCONFIG
25332 # Extract the first word of "pkg-config", so it can be a program name with args.
25333 set dummy pkg-config; ac_word=$2
25334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25335 $as_echo_n "checking for $ac_word... " >&6; }
25336 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25337 $as_echo_n "(cached) " >&6
25339 case $ac_pt_PKGCONFIG in
25341 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25345 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25346 for as_dir in $as_dummy
25349 test -z "$as_dir" && as_dir=.
25350 for ac_exec_ext in '' $ac_executable_extensions; do
25351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25352 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25363 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25364 if test -n "$ac_pt_PKGCONFIG"; then
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25366 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25369 $as_echo "no" >&6; }
25372 if test "x$ac_pt_PKGCONFIG" = x; then
25375 case $cross_compiling:$ac_tool_warned in
25377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25379 ac_tool_warned=yes ;;
25381 PKGCONFIG=$ac_pt_PKGCONFIG
25384 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25388 if test x$PKGCONFIG != xno; then
25389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn options with pkg-config" >&5
25390 $as_echo_n "checking for libidn options with pkg-config... " >&6; }
25392 if test -n "$IDN_PCDIR"; then
25393 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
25394 export PKG_CONFIG_LIBDIR
25396 $PKGCONFIG --exists libidn >/dev/null 2>&1 && echo 1`
25398 if test -z "$itexists"; then
25400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25401 $as_echo "no" >&6; }
25403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25404 $as_echo "found" >&6; }
25408 if test "$PKGCONFIG" != "no"; then
25410 if test -n "$IDN_PCDIR"; then
25411 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
25412 export PKG_CONFIG_LIBDIR
25414 $PKGCONFIG --libs-only-l libidn 2>/dev/null`
25416 if test -n "$IDN_PCDIR"; then
25417 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
25418 export PKG_CONFIG_LIBDIR
25420 $PKGCONFIG --libs-only-L libidn 2>/dev/null`
25422 if test -n "$IDN_PCDIR"; then
25423 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
25424 export PKG_CONFIG_LIBDIR
25426 $PKGCONFIG --cflags-only-I libidn 2>/dev/null`
25427 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
25430 IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
25431 IDN_CPPFLAGS="-I$want_idn_path/include"
25432 IDN_DIR="$want_idn_path/lib$libsuff"
25439 if test -n "$ac_tool_prefix"; then
25440 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25441 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25443 $as_echo_n "checking for $ac_word... " >&6; }
25444 if ${ac_cv_path_PKGCONFIG+:} false; then :
25445 $as_echo_n "(cached) " >&6
25449 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25453 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25454 for as_dir in $as_dummy
25457 test -z "$as_dir" && as_dir=.
25458 for ac_exec_ext in '' $ac_executable_extensions; do
25459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25460 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25471 PKGCONFIG=$ac_cv_path_PKGCONFIG
25472 if test -n "$PKGCONFIG"; then
25473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25474 $as_echo "$PKGCONFIG" >&6; }
25476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25477 $as_echo "no" >&6; }
25482 if test -z "$ac_cv_path_PKGCONFIG"; then
25483 ac_pt_PKGCONFIG=$PKGCONFIG
25484 # Extract the first word of "pkg-config", so it can be a program name with args.
25485 set dummy pkg-config; ac_word=$2
25486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25487 $as_echo_n "checking for $ac_word... " >&6; }
25488 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25489 $as_echo_n "(cached) " >&6
25491 case $ac_pt_PKGCONFIG in
25493 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25497 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25498 for as_dir in $as_dummy
25501 test -z "$as_dir" && as_dir=.
25502 for ac_exec_ext in '' $ac_executable_extensions; do
25503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25504 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25515 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25516 if test -n "$ac_pt_PKGCONFIG"; then
25517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25518 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25521 $as_echo "no" >&6; }
25524 if test "x$ac_pt_PKGCONFIG" = x; then
25527 case $cross_compiling:$ac_tool_warned in
25529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25531 ac_tool_warned=yes ;;
25533 PKGCONFIG=$ac_pt_PKGCONFIG
25536 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25540 if test x$PKGCONFIG != xno; then
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn options with pkg-config" >&5
25542 $as_echo_n "checking for libidn options with pkg-config... " >&6; }
25544 if test -n ""; then
25545 PKG_CONFIG_LIBDIR=""
25546 export PKG_CONFIG_LIBDIR
25548 $PKGCONFIG --exists libidn >/dev/null 2>&1 && echo 1`
25550 if test -z "$itexists"; then
25552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25553 $as_echo "no" >&6; }
25555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25556 $as_echo "found" >&6; }
25560 if test "$PKGCONFIG" != "no"; then
25561 IDN_LIBS=`$PKGCONFIG --libs-only-l libidn 2>/dev/null`
25562 IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn 2>/dev/null`
25563 IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn 2>/dev/null`
25564 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
25570 if test "$PKGCONFIG" != "no"; then
25571 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
25572 $as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
25573 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
25574 $as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
25575 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
25576 $as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
25577 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
25578 $as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
25580 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
25581 $as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
25582 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
25583 $as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
25584 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
25585 $as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
25586 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
25587 $as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
25590 CPPFLAGS="$IDN_CPPFLAGS $CPPFLAGS"
25591 LDFLAGS="$IDN_LDFLAGS $LDFLAGS"
25592 LIBS="$IDN_LIBS $LIBS"
25594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idna_to_ascii_4i can be linked" >&5
25595 $as_echo_n "checking if idna_to_ascii_4i can be linked... " >&6; }
25596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25597 /* end confdefs.h. */
25600 #define idna_to_ascii_4i innocuous_idna_to_ascii_4i
25602 # include <limits.h>
25604 # include <assert.h>
25606 #undef idna_to_ascii_4i
25610 char idna_to_ascii_4i ();
25611 #if defined __stub_idna_to_ascii_4i || defined __stub___idna_to_ascii_4i
25617 return idna_to_ascii_4i ();
25623 if ac_fn_c_try_link "$LINENO"; then :
25625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25626 $as_echo "yes" >&6; }
25627 tst_links_libidn="yes"
25631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25632 $as_echo "no" >&6; }
25633 tst_links_libidn="no"
25636 rm -f core conftest.err conftest.$ac_objext \
25637 conftest$ac_exeext conftest.$ac_ext
25638 if test "$tst_links_libidn" = "no"; then
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idna_to_ascii_lz can be linked" >&5
25640 $as_echo_n "checking if idna_to_ascii_lz can be linked... " >&6; }
25641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25642 /* end confdefs.h. */
25645 #define idna_to_ascii_lz innocuous_idna_to_ascii_lz
25647 # include <limits.h>
25649 # include <assert.h>
25651 #undef idna_to_ascii_lz
25655 char idna_to_ascii_lz ();
25656 #if defined __stub_idna_to_ascii_lz || defined __stub___idna_to_ascii_lz
25662 return idna_to_ascii_lz ();
25668 if ac_fn_c_try_link "$LINENO"; then :
25670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25671 $as_echo "yes" >&6; }
25672 tst_links_libidn="yes"
25676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25677 $as_echo "no" >&6; }
25678 tst_links_libidn="no"
25681 rm -f core conftest.err conftest.$ac_objext \
25682 conftest$ac_exeext conftest.$ac_ext
25685 if test "$tst_links_libidn" = "yes"; then
25687 $as_echo "#define HAVE_LIBIDN 1" >>confdefs.h
25689 for ac_func in idn_free idna_strerror tld_strerror
25691 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25692 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25693 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25694 cat >>confdefs.h <<_ACEOF
25695 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25701 for ac_header in idn-free.h tld.h
25703 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25704 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25705 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25706 cat >>confdefs.h <<_ACEOF
25707 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25714 if test "x$ac_cv_header_tld_h" = "xyes"; then
25717 curl_idn_msg="enabled"
25718 if test -n "$IDN_DIR"; then
25719 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$IDN_DIR"
25720 export LD_LIBRARY_PATH
25721 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to LD_LIBRARY_PATH" >&5
25722 $as_echo "$as_me: Added $IDN_DIR to LD_LIBRARY_PATH" >&6;}
25725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libraries for IDN support too old: IDN disabled" >&5
25726 $as_echo "$as_me: WARNING: Libraries for IDN support too old: IDN disabled" >&2;}
25727 CPPFLAGS="$clean_CPPFLAGS"
25728 LDFLAGS="$clean_LDFLAGS"
25732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
25733 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
25734 CPPFLAGS="$clean_CPPFLAGS"
25735 LDFLAGS="$clean_LDFLAGS"
25744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25745 $as_echo_n "checking for ANSI C header files... " >&6; }
25746 if ${ac_cv_header_stdc+:} false; then :
25747 $as_echo_n "(cached) " >&6
25749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25750 /* end confdefs.h. */
25751 #include <stdlib.h>
25752 #include <stdarg.h>
25753 #include <string.h>
25763 if ac_fn_c_try_compile "$LINENO"; then :
25764 ac_cv_header_stdc=yes
25766 ac_cv_header_stdc=no
25768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25770 if test $ac_cv_header_stdc = yes; then
25771 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25773 /* end confdefs.h. */
25774 #include <string.h>
25777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25778 $EGREP "memchr" >/dev/null 2>&1; then :
25781 ac_cv_header_stdc=no
25787 if test $ac_cv_header_stdc = yes; then
25788 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25790 /* end confdefs.h. */
25791 #include <stdlib.h>
25794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25795 $EGREP "free" >/dev/null 2>&1; then :
25798 ac_cv_header_stdc=no
25804 if test $ac_cv_header_stdc = yes; then
25805 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25806 if test "$cross_compiling" = yes; then :
25809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25810 /* end confdefs.h. */
25812 #include <stdlib.h>
25813 #if ((' ' & 0x0FF) == 0x020)
25814 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25815 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25817 # define ISLOWER(c) \
25818 (('a' <= (c) && (c) <= 'i') \
25819 || ('j' <= (c) && (c) <= 'r') \
25820 || ('s' <= (c) && (c) <= 'z'))
25821 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25824 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25829 for (i = 0; i < 256; i++)
25830 if (XOR (islower (i), ISLOWER (i))
25831 || toupper (i) != TOUPPER (i))
25836 if ac_fn_c_try_run "$LINENO"; then :
25839 ac_cv_header_stdc=no
25841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25842 conftest.$ac_objext conftest.beam conftest.$ac_ext
25847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25848 $as_echo "$ac_cv_header_stdc" >&6; }
25849 if test $ac_cv_header_stdc = yes; then
25851 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
25858 $as_echo_n "checking for malloc.h... " >&6; }
25859 if ${ac_cv_header_malloc_h+:} false; then :
25860 $as_echo_n "(cached) " >&6
25863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25864 /* end confdefs.h. */
25867 #include <malloc.h>
25872 void *p = malloc(10);
25873 void *q = calloc(10,10);
25882 if ac_fn_c_try_compile "$LINENO"; then :
25884 ac_cv_header_malloc_h="yes"
25888 ac_cv_header_malloc_h="no"
25891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_malloc_h" >&5
25895 $as_echo "$ac_cv_header_malloc_h" >&6; }
25896 if test "$ac_cv_header_malloc_h" = "yes"; then
25898 cat >>confdefs.h <<_ACEOF
25899 #define HAVE_MALLOC_H 1
25903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25904 /* end confdefs.h. */
25907 #include <stdlib.h>
25912 void *p = malloc(10);
25913 void *q = calloc(10,10);
25922 if ac_fn_c_try_compile "$LINENO"; then :
25924 curl_cv_need_header_malloc_h="no"
25928 curl_cv_need_header_malloc_h="yes"
25931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25933 case "$curl_cv_need_header_malloc_h" in
25936 cat >>confdefs.h <<_ACEOF
25937 #define NEED_MALLOC_H 1
25945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
25946 $as_echo_n "checking for memory.h... " >&6; }
25947 if ${ac_cv_header_memory_h+:} false; then :
25948 $as_echo_n "(cached) " >&6
25951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25952 /* end confdefs.h. */
25955 #include <memory.h>
25960 void *p = malloc(10);
25961 void *q = calloc(10,10);
25970 if ac_fn_c_try_compile "$LINENO"; then :
25972 ac_cv_header_memory_h="yes"
25976 ac_cv_header_memory_h="no"
25979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_memory_h" >&5
25983 $as_echo "$ac_cv_header_memory_h" >&6; }
25984 if test "$ac_cv_header_memory_h" = "yes"; then
25986 cat >>confdefs.h <<_ACEOF
25987 #define HAVE_MEMORY_H 1
25991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25992 /* end confdefs.h. */
25995 #include <stdlib.h>
26000 void *p = malloc(10);
26001 void *q = calloc(10,10);
26010 if ac_fn_c_try_compile "$LINENO"; then :
26012 curl_cv_need_header_memory_h="no"
26016 curl_cv_need_header_memory_h="yes"
26019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26021 case "$curl_cv_need_header_memory_h" in
26024 cat >>confdefs.h <<_ACEOF
26025 #define NEED_MEMORY_H 1
26033 for ac_header in sys/types.h \
26075 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26076 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
26077 #ifdef HAVE_SYS_TYPES_H
26078 #include <sys/types.h>
26080 #ifdef HAVE_SYS_TIME_H
26081 #include <sys/time.h>
26083 #ifdef HAVE_SYS_SELECT_H
26084 #include <sys/select.h>
26086 #ifdef HAVE_SYS_SOCKET_H
26087 #include <sys/socket.h>
26089 #ifdef HAVE_NETINET_IN_H
26090 #include <netinet/in.h>
26092 #ifdef HAVE_SYS_UN_H
26093 #include <sys/un.h>
26098 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26099 cat >>confdefs.h <<_ACEOF
26100 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26109 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26110 if ${ac_cv_c_const+:} false; then :
26111 $as_echo_n "(cached) " >&6
26113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26114 /* end confdefs.h. */
26119 #ifndef __cplusplus
26120 /* Ultrix mips cc rejects this sort of thing. */
26121 typedef int charset[2];
26122 const charset cs = { 0, 0 };
26123 /* SunOS 4.1.1 cc rejects this. */
26124 char const *const *pcpcc;
26126 /* NEC SVR4.0.2 mips cc rejects this. */
26127 struct point {int x, y;};
26128 static struct point const zero = {0,0};
26129 /* AIX XL C 1.02.0.0 rejects this.
26130 It does not let you subtract one const X* pointer from another in
26131 an arm of an if-expression whose if-part is not a constant
26133 const char *g = "string";
26134 pcpcc = &g + (g ? g-g : 0);
26135 /* HPUX 7.0 cc rejects these. */
26137 ppc = (char**) pcpcc;
26138 pcpcc = (char const *const *) ppc;
26139 { /* SCO 3.2v4 cc rejects this sort of thing. */
26142 char const *s = 0 ? (char *) 0 : (char const *) 0;
26147 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26148 int x[] = {25, 17};
26149 const int *foo = &x[0];
26152 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26153 typedef const int *iptr;
26157 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
26158 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26159 struct s { int j; const int *ap[3]; } bx;
26160 struct s *b = &bx; b->j = 5;
26162 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26163 const int foo = 10;
26164 if (!foo) return 0;
26166 return !cs[0] && !zero.x;
26173 if ac_fn_c_try_compile "$LINENO"; then :
26178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26181 $as_echo "$ac_cv_c_const" >&6; }
26182 if test $ac_cv_c_const = no; then
26184 $as_echo "#define const /**/" >>confdefs.h
26189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
26190 $as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
26191 if ${curl_cv_variadic_macros_c99+:} false; then :
26192 $as_echo_n "(cached) " >&6
26195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26196 /* end confdefs.h. */
26199 #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
26200 #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
26201 int fun3(int arg1, int arg2, int arg3);
26202 int fun2(int arg1, int arg2);
26203 int fun3(int arg1, int arg2, int arg3)
26204 { return arg1 + arg2 + arg3; }
26205 int fun2(int arg1, int arg2)
26206 { return arg1 + arg2; }
26211 int res3 = c99_vmacro3(1, 2, 3);
26212 int res2 = c99_vmacro2(1, 2);
26219 if ac_fn_c_try_compile "$LINENO"; then :
26221 curl_cv_variadic_macros_c99="yes"
26225 curl_cv_variadic_macros_c99="no"
26228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
26232 $as_echo "$curl_cv_variadic_macros_c99" >&6; }
26233 case "$curl_cv_variadic_macros_c99" in
26236 cat >>confdefs.h <<_ACEOF
26237 #define HAVE_VARIADIC_MACROS_C99 1
26242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
26243 $as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
26244 if ${curl_cv_variadic_macros_gcc+:} false; then :
26245 $as_echo_n "(cached) " >&6
26248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26249 /* end confdefs.h. */
26252 #define gcc_vmacro3(first, args...) fun3(first, args)
26253 #define gcc_vmacro2(first, args...) fun2(first, args)
26254 int fun3(int arg1, int arg2, int arg3);
26255 int fun2(int arg1, int arg2);
26256 int fun3(int arg1, int arg2, int arg3)
26257 { return arg1 + arg2 + arg3; }
26258 int fun2(int arg1, int arg2)
26259 { return arg1 + arg2; }
26264 int res3 = gcc_vmacro3(1, 2, 3);
26265 int res2 = gcc_vmacro2(1, 2);
26272 if ac_fn_c_try_compile "$LINENO"; then :
26274 curl_cv_variadic_macros_gcc="yes"
26278 curl_cv_variadic_macros_gcc="no"
26281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
26285 $as_echo "$curl_cv_variadic_macros_gcc" >&6; }
26286 case "$curl_cv_variadic_macros_gcc" in
26289 cat >>confdefs.h <<_ACEOF
26290 #define HAVE_VARIADIC_MACROS_GCC 1
26296 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26297 if test "x$ac_cv_type_size_t" = xyes; then :
26301 cat >>confdefs.h <<_ACEOF
26302 #define size_t unsigned int
26307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26308 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26309 if ${ac_cv_header_time+:} false; then :
26310 $as_echo_n "(cached) " >&6
26312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26313 /* end confdefs.h. */
26314 #include <sys/types.h>
26315 #include <sys/time.h>
26320 if ((struct tm *) 0)
26326 if ac_fn_c_try_compile "$LINENO"; then :
26327 ac_cv_header_time=yes
26329 ac_cv_header_time=no
26331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26334 $as_echo "$ac_cv_header_time" >&6; }
26335 if test $ac_cv_header_time = yes; then
26337 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26342 for ac_header in sys/types.h sys/time.h time.h sys/socket.h
26344 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26345 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26346 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26347 cat >>confdefs.h <<_ACEOF
26348 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
26356 $as_echo_n "checking for struct timeval... " >&6; }
26357 if ${ac_cv_struct_timeval+:} false; then :
26358 $as_echo_n "(cached) " >&6
26361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26362 /* end confdefs.h. */
26366 #ifdef HAVE_WINDOWS_H
26367 #ifndef WIN32_LEAN_AND_MEAN
26368 #define WIN32_LEAN_AND_MEAN
26370 #include <windows.h>
26371 #ifdef HAVE_WINSOCK2_H
26372 #include <winsock2.h>
26374 #ifdef HAVE_WINSOCK_H
26375 #include <winsock.h>
26379 #ifdef HAVE_SYS_TYPES_H
26380 #include <sys/types.h>
26382 #ifdef HAVE_SYS_TIME_H
26383 #include <sys/time.h>
26384 #ifdef TIME_WITH_SYS_TIME
26392 #ifdef HAVE_SYS_SOCKET_H
26393 #include <sys/socket.h>
26408 if ac_fn_c_try_compile "$LINENO"; then :
26410 ac_cv_struct_timeval="yes"
26414 ac_cv_struct_timeval="no"
26417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timeval" >&5
26421 $as_echo "$ac_cv_struct_timeval" >&6; }
26422 case "$ac_cv_struct_timeval" in
26425 cat >>confdefs.h <<_ACEOF
26426 #define HAVE_STRUCT_TIMEVAL 1
26434 if test "x$cross_compiling" != xyes; then
26436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
26437 $as_echo_n "checking run-time libs availability... " >&6; }
26438 if test "$cross_compiling" = yes; then :
26439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26441 as_fn_error $? "cannot run test program while cross compiling
26442 See \`config.log' for more details" "$LINENO" 5; }
26444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26445 /* end confdefs.h. */
26453 if ac_fn_c_try_run "$LINENO"; then :
26454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
26455 $as_echo "fine" >&6; }
26457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
26458 $as_echo "failed" >&6; }
26459 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
26462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26463 conftest.$ac_objext conftest.beam conftest.$ac_ext
26470 # The cast to long int works around a bug in the HP C Compiler
26471 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26472 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26473 # This bug is HP SR number 8606223364.
26474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
26475 $as_echo_n "checking size of size_t... " >&6; }
26476 if ${ac_cv_sizeof_size_t+:} false; then :
26477 $as_echo_n "(cached) " >&6
26479 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
26482 if test "$ac_cv_type_size_t" = yes; then
26483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26484 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26485 as_fn_error 77 "cannot compute sizeof (size_t)
26486 See \`config.log' for more details" "$LINENO" 5; }
26488 ac_cv_sizeof_size_t=0
26493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
26494 $as_echo "$ac_cv_sizeof_size_t" >&6; }
26498 cat >>confdefs.h <<_ACEOF
26499 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
26503 # The cast to long int works around a bug in the HP C Compiler
26504 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26505 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26506 # This bug is HP SR number 8606223364.
26507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
26508 $as_echo_n "checking size of long... " >&6; }
26509 if ${ac_cv_sizeof_long+:} false; then :
26510 $as_echo_n "(cached) " >&6
26512 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
26515 if test "$ac_cv_type_long" = yes; then
26516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26518 as_fn_error 77 "cannot compute sizeof (long)
26519 See \`config.log' for more details" "$LINENO" 5; }
26521 ac_cv_sizeof_long=0
26526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
26527 $as_echo "$ac_cv_sizeof_long" >&6; }
26531 cat >>confdefs.h <<_ACEOF
26532 #define SIZEOF_LONG $ac_cv_sizeof_long
26536 # The cast to long int works around a bug in the HP C Compiler
26537 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26538 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26539 # This bug is HP SR number 8606223364.
26540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
26541 $as_echo_n "checking size of int... " >&6; }
26542 if ${ac_cv_sizeof_int+:} false; then :
26543 $as_echo_n "(cached) " >&6
26545 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
26548 if test "$ac_cv_type_int" = yes; then
26549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26551 as_fn_error 77 "cannot compute sizeof (int)
26552 See \`config.log' for more details" "$LINENO" 5; }
26559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
26560 $as_echo "$ac_cv_sizeof_int" >&6; }
26564 cat >>confdefs.h <<_ACEOF
26565 #define SIZEOF_INT $ac_cv_sizeof_int
26569 # The cast to long int works around a bug in the HP C Compiler
26570 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26571 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26572 # This bug is HP SR number 8606223364.
26573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
26574 $as_echo_n "checking size of short... " >&6; }
26575 if ${ac_cv_sizeof_short+:} false; then :
26576 $as_echo_n "(cached) " >&6
26578 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
26581 if test "$ac_cv_type_short" = yes; then
26582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26584 as_fn_error 77 "cannot compute sizeof (short)
26585 See \`config.log' for more details" "$LINENO" 5; }
26587 ac_cv_sizeof_short=0
26592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
26593 $as_echo "$ac_cv_sizeof_short" >&6; }
26597 cat >>confdefs.h <<_ACEOF
26598 #define SIZEOF_SHORT $ac_cv_sizeof_short
26603 if test -z "$ac_cv_sizeof_long" ||
26604 test "$ac_cv_sizeof_long" -eq "0"; then
26605 as_fn_error $? "cannot find out size of long." "$LINENO" 5
26608 cat >>confdefs.h <<_EOF
26609 #define CURL_SIZEOF_LONG $ac_cv_sizeof_long
26613 # The cast to long int works around a bug in the HP C Compiler
26614 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26615 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26616 # This bug is HP SR number 8606223364.
26617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
26618 $as_echo_n "checking size of time_t... " >&6; }
26619 if ${ac_cv_sizeof_time_t+:} false; then :
26620 $as_echo_n "(cached) " >&6
26622 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
26625 if test "$ac_cv_type_time_t" = yes; then
26626 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26628 as_fn_error 77 "cannot compute sizeof (time_t)
26629 See \`config.log' for more details" "$LINENO" 5; }
26631 ac_cv_sizeof_time_t=0
26636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
26637 $as_echo "$ac_cv_sizeof_time_t" >&6; }
26641 cat >>confdefs.h <<_ACEOF
26642 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
26646 # The cast to long int works around a bug in the HP C Compiler
26647 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26648 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26649 # This bug is HP SR number 8606223364.
26650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
26651 $as_echo_n "checking size of off_t... " >&6; }
26652 if ${ac_cv_sizeof_off_t+:} false; then :
26653 $as_echo_n "(cached) " >&6
26655 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
26658 if test "$ac_cv_type_off_t" = yes; then
26659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26661 as_fn_error 77 "cannot compute sizeof (off_t)
26662 See \`config.log' for more details" "$LINENO" 5; }
26664 ac_cv_sizeof_off_t=0
26669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
26670 $as_echo "$ac_cv_sizeof_off_t" >&6; }
26674 cat >>confdefs.h <<_ACEOF
26675 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
26681 if test x"$ac_cv_native_windows" != "xyes" &&
26682 test $ac_cv_sizeof_off_t -ne $curl_sizeof_curl_off_t; then
26683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This libcurl built is probably not ABI compatible with previous" >&5
26684 $as_echo "$as_me: WARNING: This libcurl built is probably not ABI compatible with previous" >&2;}
26685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&5
26686 $as_echo "$as_me: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&2;}
26691 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
26692 if test "x$ac_cv_type_long_long" = xyes; then :
26694 $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
26701 if test "xyes" = "x$longlong"; then
26702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
26703 $as_echo_n "checking if numberLL works... " >&6; }
26704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26705 /* end confdefs.h. */
26712 long long val = 1000LL;
26719 if ac_fn_c_try_compile "$LINENO"; then :
26721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26722 $as_echo "yes" >&6; }
26724 $as_echo "#define HAVE_LL 1" >>confdefs.h
26729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26730 $as_echo "no" >&6; }
26733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26737 # check for ssize_t
26738 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
26739 if test "x$ac_cv_type_ssize_t" = xyes; then :
26743 $as_echo "#define ssize_t int" >>confdefs.h
26748 # check for bool type
26749 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
26750 #ifdef HAVE_SYS_TYPES_H
26751 #include <sys/types.h>
26753 #ifdef HAVE_STDBOOL_H
26754 #include <stdbool.h>
26758 if test "x$ac_cv_type_bool" = xyes; then :
26761 $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
26768 curl_includes_ws2tcpip="\
26769 /* includes start */
26770 #ifdef HAVE_WINDOWS_H
26771 # ifndef WIN32_LEAN_AND_MEAN
26772 # define WIN32_LEAN_AND_MEAN
26774 # include <windows.h>
26775 # ifdef HAVE_WINSOCK2_H
26776 # include <winsock2.h>
26777 # ifdef HAVE_WS2TCPIP_H
26778 # include <ws2tcpip.h>
26782 /* includes end */"
26784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
26785 $as_echo_n "checking for windows.h... " >&6; }
26786 if ${ac_cv_header_windows_h+:} false; then :
26787 $as_echo_n "(cached) " >&6
26790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26791 /* end confdefs.h. */
26795 #ifndef WIN32_LEAN_AND_MEAN
26796 #define WIN32_LEAN_AND_MEAN
26798 #include <windows.h>
26803 #if defined(__CYGWIN__) || defined(__CEGCC__)
26804 HAVE_WINDOWS_H shall not be defined.
26806 int dummy=2*WINVER;
26814 if ac_fn_c_try_compile "$LINENO"; then :
26816 ac_cv_header_windows_h="yes"
26820 ac_cv_header_windows_h="no"
26823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
26827 $as_echo "$ac_cv_header_windows_h" >&6; }
26828 case "$ac_cv_header_windows_h" in
26831 cat >>confdefs.h <<_ACEOF
26832 #define HAVE_WINDOWS_H 1
26836 cat >>confdefs.h <<_ACEOF
26837 #define WIN32_LEAN_AND_MEAN 1
26844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
26845 $as_echo_n "checking for winsock2.h... " >&6; }
26846 if ${ac_cv_header_winsock2_h+:} false; then :
26847 $as_echo_n "(cached) " >&6
26850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26851 /* end confdefs.h. */
26855 #ifndef WIN32_LEAN_AND_MEAN
26856 #define WIN32_LEAN_AND_MEAN
26858 #include <windows.h>
26859 #include <winsock2.h>
26864 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
26865 HAVE_WINSOCK2_H shall not be defined.
26867 int dummy=2*IPPROTO_ESP;
26875 if ac_fn_c_try_compile "$LINENO"; then :
26877 ac_cv_header_winsock2_h="yes"
26881 ac_cv_header_winsock2_h="no"
26884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
26888 $as_echo "$ac_cv_header_winsock2_h" >&6; }
26889 case "$ac_cv_header_winsock2_h" in
26892 cat >>confdefs.h <<_ACEOF
26893 #define HAVE_WINSOCK2_H 1
26900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
26901 $as_echo_n "checking for ws2tcpip.h... " >&6; }
26902 if ${ac_cv_header_ws2tcpip_h+:} false; then :
26903 $as_echo_n "(cached) " >&6
26906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26907 /* end confdefs.h. */
26911 #ifndef WIN32_LEAN_AND_MEAN
26912 #define WIN32_LEAN_AND_MEAN
26914 #include <windows.h>
26915 #include <winsock2.h>
26916 #include <ws2tcpip.h>
26921 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
26922 HAVE_WS2TCPIP_H shall not be defined.
26924 int dummy=2*IP_PKTINFO;
26932 if ac_fn_c_try_compile "$LINENO"; then :
26934 ac_cv_header_ws2tcpip_h="yes"
26938 ac_cv_header_ws2tcpip_h="no"
26941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
26945 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
26946 case "$ac_cv_header_ws2tcpip_h" in
26949 cat >>confdefs.h <<_ACEOF
26950 #define HAVE_WS2TCPIP_H 1
26958 curl_includes_sys_socket="\
26959 /* includes start */
26960 #ifdef HAVE_SYS_TYPES_H
26961 # include <sys/types.h>
26963 #ifdef HAVE_SYS_SOCKET_H
26964 # include <sys/socket.h>
26966 /* includes end */"
26967 for ac_header in sys/types.h sys/socket.h
26969 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26970 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
26972 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26973 cat >>confdefs.h <<_ACEOF
26974 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26983 curl_preprocess_callconv="\
26984 /* preprocess start */
26985 #ifdef HAVE_WINDOWS_H
26986 # define FUNCALLCONV __stdcall
26988 # define FUNCALLCONV
26990 /* preprocess end */"
26995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_socklen_t data type" >&5
26996 $as_echo_n "checking for curl_socklen_t data type... " >&6; }
26997 curl_typeof_curl_socklen_t="unknown"
26998 for arg1 in int SOCKET; do
26999 for arg2 in 'struct sockaddr' void; do
27000 for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
27001 if test "$curl_typeof_curl_socklen_t" = "unknown"; then
27002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27003 /* end confdefs.h. */
27006 $curl_includes_ws2tcpip
27007 $curl_includes_sys_socket
27008 $curl_preprocess_callconv
27009 extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
27015 if(0 != getpeername(0, 0, lenptr))
27023 if ac_fn_c_try_compile "$LINENO"; then :
27025 curl_typeof_curl_socklen_t="$t"
27028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27033 for t in socklen_t int; do
27034 if test "$curl_typeof_curl_socklen_t" = "void"; then
27035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27036 /* end confdefs.h. */
27039 $curl_includes_sys_socket
27040 typedef $t curl_socklen_t;
27045 curl_socklen_t dummy;
27052 if ac_fn_c_try_compile "$LINENO"; then :
27054 curl_typeof_curl_socklen_t="$t"
27057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_socklen_t" >&5
27061 $as_echo "$curl_typeof_curl_socklen_t" >&6; }
27062 if test "$curl_typeof_curl_socklen_t" = "void" ||
27063 test "$curl_typeof_curl_socklen_t" = "unknown"; then
27064 as_fn_error $? "cannot find data type for curl_socklen_t." "$LINENO" 5
27067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_socklen_t" >&5
27068 $as_echo_n "checking size of curl_socklen_t... " >&6; }
27069 curl_sizeof_curl_socklen_t="unknown"
27070 curl_pull_headers_socklen_t="unknown"
27071 if test "$ac_cv_header_ws2tcpip_h" = "yes"; then
27072 tst_pull_header_checks='none ws2tcpip'
27073 tst_size_checks='4'
27075 tst_pull_header_checks='none systypes syssocket'
27076 tst_size_checks='4 8 2'
27078 for tst_size in $tst_size_checks; do
27079 for tst_pull_headers in $tst_pull_header_checks; do
27080 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
27081 case $tst_pull_headers in
27083 tmp_includes="$curl_includes_ws2tcpip"
27086 tmp_includes="$curl_includes_sys_types"
27089 tmp_includes="$curl_includes_sys_socket"
27095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27096 /* end confdefs.h. */
27100 typedef $curl_typeof_curl_socklen_t curl_socklen_t;
27101 typedef char dummy_arr[sizeof(curl_socklen_t) == $tst_size ? 1 : -1];
27106 curl_socklen_t dummy;
27113 if ac_fn_c_try_compile "$LINENO"; then :
27115 curl_sizeof_curl_socklen_t="$tst_size"
27116 curl_pull_headers_socklen_t="$tst_pull_headers"
27119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_socklen_t" >&5
27124 $as_echo "$curl_sizeof_curl_socklen_t" >&6; }
27125 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
27126 as_fn_error $? "cannot find out size of curl_socklen_t." "$LINENO" 5
27129 case $curl_pull_headers_socklen_t in
27132 cat >>confdefs.h <<_EOF
27133 #define CURL_PULL_WS2TCPIP_H 1
27139 cat >>confdefs.h <<_EOF
27140 #define CURL_PULL_SYS_TYPES_H 1
27146 cat >>confdefs.h <<_EOF
27147 #define CURL_PULL_SYS_TYPES_H 1
27151 cat >>confdefs.h <<_EOF
27152 #define CURL_PULL_SYS_SOCKET_H 1
27158 cat >>confdefs.h <<_EOF
27159 #define CURL_TYPEOF_CURL_SOCKLEN_T $curl_typeof_curl_socklen_t
27163 cat >>confdefs.h <<_EOF
27164 #define CURL_SIZEOF_CURL_SOCKLEN_T $curl_sizeof_curl_socklen_t
27170 curl_includes_poll="\
27171 /* includes start */
27172 #ifdef HAVE_SYS_TYPES_H
27173 # include <sys/types.h>
27178 #ifdef HAVE_SYS_POLL_H
27179 # include <sys/poll.h>
27181 /* includes end */"
27182 for ac_header in sys/types.h poll.h sys/poll.h
27184 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27185 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
27187 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27188 cat >>confdefs.h <<_ACEOF
27189 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27199 tst_poll_events_macro_defined="unknown"
27201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27202 /* end confdefs.h. */
27205 $curl_includes_poll
27210 #if defined(events) || defined(revents)
27213 force compilation error
27221 if ac_fn_c_try_compile "$LINENO"; then :
27223 tst_poll_events_macro_defined="yes"
27227 tst_poll_events_macro_defined="no"
27230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27232 if test "$tst_poll_events_macro_defined" = "yes"; then
27233 if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
27235 cat >>confdefs.h <<_EOF
27236 #define CURL_PULL_SYS_POLL_H 1
27245 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
27247 #ifdef HAVE_WINDOWS_H
27248 #ifndef WIN32_LEAN_AND_MEAN
27249 #define WIN32_LEAN_AND_MEAN
27251 #include <windows.h>
27252 #ifdef HAVE_WINSOCK2_H
27253 #include <winsock2.h>
27255 #ifdef HAVE_WINSOCK_H
27256 #include <winsock.h>
27260 #ifdef HAVE_SYS_TYPES_H
27261 #include <sys/types.h>
27263 #ifdef HAVE_SYS_SOCKET_H
27264 #include <sys/socket.h>
27266 #ifdef HAVE_NETINET_IN_H
27267 #include <netinet/in.h>
27269 #ifdef HAVE_ARPA_INET_H
27270 #include <arpa/inet.h>
27275 if test "x$ac_cv_type_in_addr_t" = xyes; then :
27279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
27280 $as_echo_n "checking for in_addr_t equivalent... " >&6; }
27281 if ${curl_cv_in_addr_t_equiv+:} false; then :
27282 $as_echo_n "(cached) " >&6
27285 curl_cv_in_addr_t_equiv="unknown"
27286 for t in "unsigned long" int size_t unsigned long; do
27287 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
27288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27289 /* end confdefs.h. */
27293 #ifdef HAVE_WINDOWS_H
27294 #ifndef WIN32_LEAN_AND_MEAN
27295 #define WIN32_LEAN_AND_MEAN
27297 #include <windows.h>
27298 #ifdef HAVE_WINSOCK2_H
27299 #include <winsock2.h>
27301 #ifdef HAVE_WINSOCK_H
27302 #include <winsock.h>
27306 #ifdef HAVE_SYS_TYPES_H
27307 #include <sys/types.h>
27309 #ifdef HAVE_SYS_SOCKET_H
27310 #include <sys/socket.h>
27312 #ifdef HAVE_NETINET_IN_H
27313 #include <netinet/in.h>
27315 #ifdef HAVE_ARPA_INET_H
27316 #include <arpa/inet.h>
27323 $t data = inet_addr ("1.2.3.4");
27330 if ac_fn_c_try_link "$LINENO"; then :
27332 curl_cv_in_addr_t_equiv="$t"
27335 rm -f core conftest.err conftest.$ac_objext \
27336 conftest$ac_exeext conftest.$ac_ext
27341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
27342 $as_echo "$curl_cv_in_addr_t_equiv" >&6; }
27343 case "$curl_cv_in_addr_t_equiv" in
27345 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
27349 cat >>confdefs.h <<_ACEOF
27350 #define in_addr_t $curl_cv_in_addr_t_equiv
27361 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
27363 #ifdef HAVE_WINDOWS_H
27364 #ifndef WIN32_LEAN_AND_MEAN
27365 #define WIN32_LEAN_AND_MEAN
27367 #include <windows.h>
27368 #ifdef HAVE_WINSOCK2_H
27369 #include <winsock2.h>
27372 #ifdef HAVE_SYS_TYPES_H
27373 #include <sys/types.h>
27375 #ifdef HAVE_SYS_SOCKET_H
27376 #include <sys/socket.h>
27378 #ifdef HAVE_NETINET_IN_H
27379 #include <netinet/in.h>
27381 #ifdef HAVE_ARPA_INET_H
27382 #include <arpa/inet.h>
27387 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
27389 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
27396 for ac_header in signal.h
27398 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
27399 if test "x$ac_cv_header_signal_h" = xyes; then :
27400 cat >>confdefs.h <<_ACEOF
27401 #define HAVE_SIGNAL_H 1
27408 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
27409 #ifdef HAVE_SIGNAL_H
27410 #include <signal.h>
27414 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
27417 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
27422 case "$ac_cv_type_sig_atomic_t" in
27425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
27426 $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
27427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27428 /* end confdefs.h. */
27431 #ifdef HAVE_SIGNAL_H
27432 #include <signal.h>
27438 static volatile sig_atomic_t dummy = 0;
27445 if ac_fn_c_try_link "$LINENO"; then :
27447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27448 $as_echo "no" >&6; }
27449 ac_cv_sig_atomic_t_volatile="no"
27453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27454 $as_echo "yes" >&6; }
27455 ac_cv_sig_atomic_t_volatile="yes"
27458 rm -f core conftest.err conftest.$ac_objext \
27459 conftest$ac_exeext conftest.$ac_ext
27461 if test "$ac_cv_sig_atomic_t_volatile" = "yes"; then
27463 $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
27470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
27471 $as_echo_n "checking return type of signal handlers... " >&6; }
27472 if ${ac_cv_type_signal+:} false; then :
27473 $as_echo_n "(cached) " >&6
27475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27476 /* end confdefs.h. */
27477 #include <sys/types.h>
27478 #include <signal.h>
27482 return *(signal (0, 0)) (0) == 1;
27487 if ac_fn_c_try_compile "$LINENO"; then :
27488 ac_cv_type_signal=int
27490 ac_cv_type_signal=void
27492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
27495 $as_echo "$ac_cv_type_signal" >&6; }
27497 cat >>confdefs.h <<_ACEOF
27498 #define RETSIGTYPE $ac_cv_type_signal
27504 for ac_header in sys/select.h sys/socket.h
27506 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27507 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27508 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27509 cat >>confdefs.h <<_ACEOF
27510 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
27519 $as_echo_n "checking for select... " >&6; }
27520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27521 /* end confdefs.h. */
27525 #ifdef HAVE_WINDOWS_H
27526 #ifndef WIN32_LEAN_AND_MEAN
27527 #define WIN32_LEAN_AND_MEAN
27529 #include <windows.h>
27530 #ifdef HAVE_WINSOCK2_H
27531 #include <winsock2.h>
27533 #ifdef HAVE_WINSOCK_H
27534 #include <winsock.h>
27538 #ifdef HAVE_SYS_TYPES_H
27539 #include <sys/types.h>
27541 #ifdef HAVE_SYS_TIME_H
27542 #include <sys/time.h>
27543 #ifdef TIME_WITH_SYS_TIME
27551 #ifndef HAVE_WINDOWS_H
27552 #ifdef HAVE_SYS_SELECT_H
27553 #include <sys/select.h>
27555 #ifdef HAVE_SYS_SOCKET_H
27556 #include <sys/socket.h>
27563 select(0, 0, 0, 0, 0);
27570 if ac_fn_c_try_link "$LINENO"; then :
27572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27573 $as_echo "yes" >&6; }
27574 curl_cv_select="yes"
27578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27579 $as_echo "no" >&6; }
27580 curl_cv_select="no"
27583 rm -f core conftest.err conftest.$ac_objext \
27584 conftest$ac_exeext conftest.$ac_ext
27586 if test "$curl_cv_select" = "yes"; then
27587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
27588 $as_echo_n "checking types of args and return type for select... " >&6; }
27589 if ${curl_cv_func_select_args+:} false; then :
27590 $as_echo_n "(cached) " >&6
27593 curl_cv_func_select_args="unknown"
27594 for sel_retv in 'int' 'ssize_t'; do
27595 for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
27596 for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
27597 for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
27598 if test "$curl_cv_func_select_args" = "unknown"; then
27599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27600 /* end confdefs.h. */
27604 #ifdef HAVE_WINDOWS_H
27605 #ifndef WIN32_LEAN_AND_MEAN
27606 #define WIN32_LEAN_AND_MEAN
27608 #include <windows.h>
27609 #ifdef HAVE_WINSOCK2_H
27610 #include <winsock2.h>
27612 #ifdef HAVE_WINSOCK_H
27613 #include <winsock.h>
27616 #define SELECTCALLCONV PASCAL
27618 #ifdef HAVE_SYS_TYPES_H
27619 #include <sys/types.h>
27621 #ifdef HAVE_SYS_TIME_H
27622 #include <sys/time.h>
27623 #ifdef TIME_WITH_SYS_TIME
27631 #ifndef HAVE_WINDOWS_H
27632 #ifdef HAVE_SYS_SELECT_H
27633 #include <sys/select.h>
27635 #ifdef HAVE_SYS_SOCKET_H
27636 #include <sys/socket.h>
27638 #define SELECTCALLCONV
27640 #ifndef HAVE_STRUCT_TIMEVAL
27646 extern $sel_retv SELECTCALLCONV select($sel_arg1,
27656 $sel_arg234 rfds=0;
27657 $sel_arg234 wfds=0;
27658 $sel_arg234 efds=0;
27659 $sel_retv res = select(nfds, rfds, wfds, efds, 0);
27666 if ac_fn_c_try_compile "$LINENO"; then :
27668 curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
27671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
27680 $as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
27681 if test "$curl_cv_func_select_args" = "unknown"; then
27682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
27683 $as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
27684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
27685 $as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
27687 select_prev_IFS=$IFS; IFS=','
27688 set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
27689 IFS=$select_prev_IFS
27692 sel_qual_type_arg5=$3
27695 cat >>confdefs.h <<_ACEOF
27696 #define SELECT_TYPE_ARG1 $1
27700 cat >>confdefs.h <<_ACEOF
27701 #define SELECT_TYPE_ARG234 $2
27705 cat >>confdefs.h <<_ACEOF
27706 #define SELECT_TYPE_RETV $4
27712 case $prev_sh_opts in
27720 case "$sel_qual_type_arg5" in
27722 sel_qual_arg5=const
27723 sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
27727 sel_type_arg5=$sel_qual_type_arg5
27732 cat >>confdefs.h <<_ACEOF
27733 #define SELECT_QUAL_ARG5 $sel_qual_arg5
27737 cat >>confdefs.h <<_ACEOF
27738 #define SELECT_TYPE_ARG5 $sel_type_arg5
27742 case $prev_sh_opts in
27751 cat >>confdefs.h <<_ACEOF
27752 #define HAVE_SELECT 1
27755 ac_cv_func_select="yes"
27761 for ac_header in sys/types.h sys/socket.h
27763 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27764 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27765 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27766 cat >>confdefs.h <<_ACEOF
27767 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
27776 $as_echo_n "checking for recv... " >&6; }
27777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27778 /* end confdefs.h. */
27782 #ifdef HAVE_WINDOWS_H
27783 #ifndef WIN32_LEAN_AND_MEAN
27784 #define WIN32_LEAN_AND_MEAN
27786 #include <windows.h>
27787 #ifdef HAVE_WINSOCK2_H
27788 #include <winsock2.h>
27790 #ifdef HAVE_WINSOCK_H
27791 #include <winsock.h>
27795 #ifdef HAVE_SYS_TYPES_H
27796 #include <sys/types.h>
27798 #ifdef HAVE_SYS_SOCKET_H
27799 #include <sys/socket.h>
27813 if ac_fn_c_try_link "$LINENO"; then :
27815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27816 $as_echo "yes" >&6; }
27821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27822 $as_echo "no" >&6; }
27826 rm -f core conftest.err conftest.$ac_objext \
27827 conftest$ac_exeext conftest.$ac_ext
27829 if test "$curl_cv_recv" = "yes"; then
27830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
27831 $as_echo_n "checking types of args and return type for recv... " >&6; }
27832 if ${curl_cv_func_recv_args+:} false; then :
27833 $as_echo_n "(cached) " >&6
27836 curl_cv_func_recv_args="unknown"
27837 for recv_retv in 'int' 'ssize_t'; do
27838 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
27839 for recv_arg2 in 'char *' 'void *'; do
27840 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
27841 for recv_arg4 in 'int' 'unsigned int'; do
27842 if test "$curl_cv_func_recv_args" = "unknown"; then
27843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27844 /* end confdefs.h. */
27848 #ifdef HAVE_WINDOWS_H
27849 #ifndef WIN32_LEAN_AND_MEAN
27850 #define WIN32_LEAN_AND_MEAN
27852 #include <windows.h>
27853 #ifdef HAVE_WINSOCK2_H
27854 #include <winsock2.h>
27856 #ifdef HAVE_WINSOCK_H
27857 #include <winsock.h>
27860 #define RECVCALLCONV PASCAL
27862 #ifdef HAVE_SYS_TYPES_H
27863 #include <sys/types.h>
27865 #ifdef HAVE_SYS_SOCKET_H
27866 #include <sys/socket.h>
27868 #define RECVCALLCONV
27870 extern $recv_retv RECVCALLCONV
27871 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
27879 $recv_arg4 flags=0;
27880 $recv_retv res = recv(s, buf, len, flags);
27887 if ac_fn_c_try_compile "$LINENO"; then :
27889 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
27892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
27902 $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
27903 if test "$curl_cv_func_recv_args" = "unknown"; then
27904 as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
27906 recv_prev_IFS=$IFS; IFS=','
27907 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
27912 cat >>confdefs.h <<_ACEOF
27913 #define RECV_TYPE_ARG1 $1
27917 cat >>confdefs.h <<_ACEOF
27918 #define RECV_TYPE_ARG2 $2
27922 cat >>confdefs.h <<_ACEOF
27923 #define RECV_TYPE_ARG3 $3
27927 cat >>confdefs.h <<_ACEOF
27928 #define RECV_TYPE_ARG4 $4
27932 cat >>confdefs.h <<_ACEOF
27933 #define RECV_TYPE_RETV $5
27938 cat >>confdefs.h <<_ACEOF
27939 #define HAVE_RECV 1
27942 ac_cv_func_recv="yes"
27945 as_fn_error $? "Unable to link function recv" "$LINENO" 5
27949 for ac_header in sys/types.h sys/socket.h
27951 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27952 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27953 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27954 cat >>confdefs.h <<_ACEOF
27955 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
27964 $as_echo_n "checking for send... " >&6; }
27965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27966 /* end confdefs.h. */
27970 #ifdef HAVE_WINDOWS_H
27971 #ifndef WIN32_LEAN_AND_MEAN
27972 #define WIN32_LEAN_AND_MEAN
27974 #include <windows.h>
27975 #ifdef HAVE_WINSOCK2_H
27976 #include <winsock2.h>
27978 #ifdef HAVE_WINSOCK_H
27979 #include <winsock.h>
27983 #ifdef HAVE_SYS_TYPES_H
27984 #include <sys/types.h>
27986 #ifdef HAVE_SYS_SOCKET_H
27987 #include <sys/socket.h>
28001 if ac_fn_c_try_link "$LINENO"; then :
28003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28004 $as_echo "yes" >&6; }
28009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28010 $as_echo "no" >&6; }
28014 rm -f core conftest.err conftest.$ac_objext \
28015 conftest$ac_exeext conftest.$ac_ext
28017 if test "$curl_cv_send" = "yes"; then
28018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
28019 $as_echo_n "checking types of args and return type for send... " >&6; }
28020 if ${curl_cv_func_send_args+:} false; then :
28021 $as_echo_n "(cached) " >&6
28024 curl_cv_func_send_args="unknown"
28025 for send_retv in 'int' 'ssize_t'; do
28026 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
28027 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
28028 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
28029 for send_arg4 in 'int' 'unsigned int'; do
28030 if test "$curl_cv_func_send_args" = "unknown"; then
28031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28032 /* end confdefs.h. */
28036 #ifdef HAVE_WINDOWS_H
28037 #ifndef WIN32_LEAN_AND_MEAN
28038 #define WIN32_LEAN_AND_MEAN
28040 #include <windows.h>
28041 #ifdef HAVE_WINSOCK2_H
28042 #include <winsock2.h>
28044 #ifdef HAVE_WINSOCK_H
28045 #include <winsock.h>
28048 #define SENDCALLCONV PASCAL
28050 #ifdef HAVE_SYS_TYPES_H
28051 #include <sys/types.h>
28053 #ifdef HAVE_SYS_SOCKET_H
28054 #include <sys/socket.h>
28056 #define SENDCALLCONV
28058 extern $send_retv SENDCALLCONV
28059 send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
28066 $send_arg4 flags=0;
28067 $send_retv res = send(s, 0, len, flags);
28074 if ac_fn_c_try_compile "$LINENO"; then :
28076 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
28079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
28089 $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
28090 if test "$curl_cv_func_send_args" = "unknown"; then
28091 as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
28093 send_prev_IFS=$IFS; IFS=','
28094 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
28098 send_qual_type_arg2=$2
28101 cat >>confdefs.h <<_ACEOF
28102 #define SEND_TYPE_ARG1 $1
28106 cat >>confdefs.h <<_ACEOF
28107 #define SEND_TYPE_ARG3 $3
28111 cat >>confdefs.h <<_ACEOF
28112 #define SEND_TYPE_ARG4 $4
28116 cat >>confdefs.h <<_ACEOF
28117 #define SEND_TYPE_RETV $5
28123 case $prev_sh_opts in
28131 case "$send_qual_type_arg2" in
28133 send_qual_arg2=const
28134 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
28138 send_type_arg2=$send_qual_type_arg2
28143 cat >>confdefs.h <<_ACEOF
28144 #define SEND_QUAL_ARG2 $send_qual_arg2
28148 cat >>confdefs.h <<_ACEOF
28149 #define SEND_TYPE_ARG2 $send_type_arg2
28153 case $prev_sh_opts in
28162 cat >>confdefs.h <<_ACEOF
28163 #define HAVE_SEND 1
28166 ac_cv_func_send="yes"
28169 as_fn_error $? "Unable to link function send" "$LINENO" 5
28173 for ac_header in sys/types.h sys/socket.h
28175 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28176 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28177 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28178 cat >>confdefs.h <<_ACEOF
28179 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
28187 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
28188 if ${ac_cv_msg_nosignal+:} false; then :
28189 $as_echo_n "(cached) " >&6
28192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28193 /* end confdefs.h. */
28197 #ifdef HAVE_WINDOWS_H
28198 #ifndef WIN32_LEAN_AND_MEAN
28199 #define WIN32_LEAN_AND_MEAN
28201 #include <windows.h>
28202 #ifdef HAVE_WINSOCK2_H
28203 #include <winsock2.h>
28205 #ifdef HAVE_WINSOCK_H
28206 #include <winsock.h>
28210 #ifdef HAVE_SYS_TYPES_H
28211 #include <sys/types.h>
28213 #ifdef HAVE_SYS_SOCKET_H
28214 #include <sys/socket.h>
28221 int flag=MSG_NOSIGNAL;
28228 if ac_fn_c_try_compile "$LINENO"; then :
28230 ac_cv_msg_nosignal="yes"
28234 ac_cv_msg_nosignal="no"
28237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_msg_nosignal" >&5
28241 $as_echo "$ac_cv_msg_nosignal" >&6; }
28242 case "$ac_cv_msg_nosignal" in
28245 cat >>confdefs.h <<_ACEOF
28246 #define HAVE_MSG_NOSIGNAL 1
28254 curl_includes_unistd="\
28255 /* includes start */
28256 #ifdef HAVE_SYS_TYPES_H
28257 # include <sys/types.h>
28259 #ifdef HAVE_UNISTD_H
28260 # include <unistd.h>
28262 /* includes end */"
28263 for ac_header in sys/types.h unistd.h
28265 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28266 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
28268 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28269 cat >>confdefs.h <<_ACEOF
28270 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28280 tst_links_alarm="unknown"
28281 tst_proto_alarm="unknown"
28282 tst_compi_alarm="unknown"
28283 tst_allow_alarm="unknown"
28285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
28286 $as_echo_n "checking if alarm can be linked... " >&6; }
28287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28288 /* end confdefs.h. */
28291 #define alarm innocuous_alarm
28293 # include <limits.h>
28295 # include <assert.h>
28302 #if defined __stub_alarm || defined __stub___alarm
28314 if ac_fn_c_try_link "$LINENO"; then :
28316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28317 $as_echo "yes" >&6; }
28318 tst_links_alarm="yes"
28322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28323 $as_echo "no" >&6; }
28324 tst_links_alarm="no"
28327 rm -f core conftest.err conftest.$ac_objext \
28328 conftest$ac_exeext conftest.$ac_ext
28330 if test "$tst_links_alarm" = "yes"; then
28331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
28332 $as_echo_n "checking if alarm is prototyped... " >&6; }
28333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28334 /* end confdefs.h. */
28336 $curl_includes_unistd
28339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28340 $EGREP "alarm" >/dev/null 2>&1; then :
28342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28343 $as_echo "yes" >&6; }
28344 tst_proto_alarm="yes"
28348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28349 $as_echo "no" >&6; }
28350 tst_proto_alarm="no"
28357 if test "$tst_proto_alarm" = "yes"; then
28358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
28359 $as_echo_n "checking if alarm is compilable... " >&6; }
28360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28361 /* end confdefs.h. */
28364 $curl_includes_unistd
28377 if ac_fn_c_try_compile "$LINENO"; then :
28379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28380 $as_echo "yes" >&6; }
28381 tst_compi_alarm="yes"
28385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28386 $as_echo "no" >&6; }
28387 tst_compi_alarm="no"
28390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28393 if test "$tst_compi_alarm" = "yes"; then
28394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
28395 $as_echo_n "checking if alarm usage allowed... " >&6; }
28396 if test "x$curl_disallow_alarm" != "xyes"; then
28397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28398 $as_echo "yes" >&6; }
28399 tst_allow_alarm="yes"
28401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28402 $as_echo "no" >&6; }
28403 tst_allow_alarm="no"
28407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
28408 $as_echo_n "checking if alarm might be used... " >&6; }
28409 if test "$tst_links_alarm" = "yes" &&
28410 test "$tst_proto_alarm" = "yes" &&
28411 test "$tst_compi_alarm" = "yes" &&
28412 test "$tst_allow_alarm" = "yes"; then
28413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28414 $as_echo "yes" >&6; }
28416 cat >>confdefs.h <<_ACEOF
28417 #define HAVE_ALARM 1
28420 ac_cv_func_alarm="yes"
28422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28423 $as_echo "no" >&6; }
28424 ac_cv_func_alarm="no"
28428 curl_includes_string="\
28429 /* includes start */
28430 #ifdef HAVE_SYS_TYPES_H
28431 # include <sys/types.h>
28433 #ifdef HAVE_STRING_H
28434 # include <string.h>
28436 #ifdef HAVE_STRINGS_H
28437 # include <strings.h>
28439 /* includes end */"
28440 for ac_header in sys/types.h string.h strings.h
28442 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28443 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
28445 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28446 cat >>confdefs.h <<_ACEOF
28447 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28456 curl_includes_libgen="\
28457 /* includes start */
28458 #ifdef HAVE_SYS_TYPES_H
28459 # include <sys/types.h>
28461 #ifdef HAVE_LIBGEN_H
28462 # include <libgen.h>
28464 /* includes end */"
28465 for ac_header in sys/types.h libgen.h
28467 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28468 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
28470 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28471 cat >>confdefs.h <<_ACEOF
28472 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28482 tst_links_basename="unknown"
28483 tst_proto_basename="unknown"
28484 tst_compi_basename="unknown"
28485 tst_allow_basename="unknown"
28487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
28488 $as_echo_n "checking if basename can be linked... " >&6; }
28489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28490 /* end confdefs.h. */
28493 #define basename innocuous_basename
28495 # include <limits.h>
28497 # include <assert.h>
28504 #if defined __stub_basename || defined __stub___basename
28510 return basename ();
28516 if ac_fn_c_try_link "$LINENO"; then :
28518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28519 $as_echo "yes" >&6; }
28520 tst_links_basename="yes"
28524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28525 $as_echo "no" >&6; }
28526 tst_links_basename="no"
28529 rm -f core conftest.err conftest.$ac_objext \
28530 conftest$ac_exeext conftest.$ac_ext
28532 if test "$tst_links_basename" = "yes"; then
28533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
28534 $as_echo_n "checking if basename is prototyped... " >&6; }
28535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28536 /* end confdefs.h. */
28538 $curl_includes_string
28539 $curl_includes_libgen
28540 $curl_includes_unistd
28543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28544 $EGREP "basename" >/dev/null 2>&1; then :
28546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28547 $as_echo "yes" >&6; }
28548 tst_proto_basename="yes"
28552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28553 $as_echo "no" >&6; }
28554 tst_proto_basename="no"
28561 if test "$tst_proto_basename" = "yes"; then
28562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
28563 $as_echo_n "checking if basename is compilable... " >&6; }
28564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28565 /* end confdefs.h. */
28568 $curl_includes_string
28569 $curl_includes_libgen
28570 $curl_includes_unistd
28575 if(0 != basename(0))
28583 if ac_fn_c_try_compile "$LINENO"; then :
28585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28586 $as_echo "yes" >&6; }
28587 tst_compi_basename="yes"
28591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28592 $as_echo "no" >&6; }
28593 tst_compi_basename="no"
28596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28599 if test "$tst_compi_basename" = "yes"; then
28600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
28601 $as_echo_n "checking if basename usage allowed... " >&6; }
28602 if test "x$curl_disallow_basename" != "xyes"; then
28603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28604 $as_echo "yes" >&6; }
28605 tst_allow_basename="yes"
28607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28608 $as_echo "no" >&6; }
28609 tst_allow_basename="no"
28613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
28614 $as_echo_n "checking if basename might be used... " >&6; }
28615 if test "$tst_links_basename" = "yes" &&
28616 test "$tst_proto_basename" = "yes" &&
28617 test "$tst_compi_basename" = "yes" &&
28618 test "$tst_allow_basename" = "yes"; then
28619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28620 $as_echo "yes" >&6; }
28622 cat >>confdefs.h <<_ACEOF
28623 #define HAVE_BASENAME 1
28626 ac_cv_func_basename="yes"
28628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28629 $as_echo "no" >&6; }
28630 ac_cv_func_basename="no"
28634 curl_includes_socket="\
28635 /* includes start */
28636 #ifdef HAVE_SYS_TYPES_H
28637 # include <sys/types.h>
28639 #ifdef HAVE_SOCKET_H
28640 # include <socket.h>
28642 /* includes end */"
28643 for ac_header in sys/types.h socket.h
28645 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28646 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
28648 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28649 cat >>confdefs.h <<_ACEOF
28650 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28660 tst_links_closesocket="unknown"
28661 tst_proto_closesocket="unknown"
28662 tst_compi_closesocket="unknown"
28663 tst_allow_closesocket="unknown"
28665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
28666 $as_echo_n "checking if closesocket can be linked... " >&6; }
28667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28668 /* end confdefs.h. */
28671 $curl_includes_winsock2
28672 $curl_includes_socket
28677 if(0 != closesocket(0))
28685 if ac_fn_c_try_link "$LINENO"; then :
28687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28688 $as_echo "yes" >&6; }
28689 tst_links_closesocket="yes"
28693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28694 $as_echo "no" >&6; }
28695 tst_links_closesocket="no"
28698 rm -f core conftest.err conftest.$ac_objext \
28699 conftest$ac_exeext conftest.$ac_ext
28701 if test "$tst_links_closesocket" = "yes"; then
28702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
28703 $as_echo_n "checking if closesocket is prototyped... " >&6; }
28704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28705 /* end confdefs.h. */
28707 $curl_includes_winsock2
28708 $curl_includes_socket
28711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28712 $EGREP "closesocket" >/dev/null 2>&1; then :
28714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28715 $as_echo "yes" >&6; }
28716 tst_proto_closesocket="yes"
28720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28721 $as_echo "no" >&6; }
28722 tst_proto_closesocket="no"
28729 if test "$tst_proto_closesocket" = "yes"; then
28730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
28731 $as_echo_n "checking if closesocket is compilable... " >&6; }
28732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28733 /* end confdefs.h. */
28736 $curl_includes_winsock2
28737 $curl_includes_socket
28742 if(0 != closesocket(0))
28750 if ac_fn_c_try_compile "$LINENO"; then :
28752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28753 $as_echo "yes" >&6; }
28754 tst_compi_closesocket="yes"
28758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28759 $as_echo "no" >&6; }
28760 tst_compi_closesocket="no"
28763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28766 if test "$tst_compi_closesocket" = "yes"; then
28767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
28768 $as_echo_n "checking if closesocket usage allowed... " >&6; }
28769 if test "x$curl_disallow_closesocket" != "xyes"; then
28770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28771 $as_echo "yes" >&6; }
28772 tst_allow_closesocket="yes"
28774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28775 $as_echo "no" >&6; }
28776 tst_allow_closesocket="no"
28780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
28781 $as_echo_n "checking if closesocket might be used... " >&6; }
28782 if test "$tst_links_closesocket" = "yes" &&
28783 test "$tst_proto_closesocket" = "yes" &&
28784 test "$tst_compi_closesocket" = "yes" &&
28785 test "$tst_allow_closesocket" = "yes"; then
28786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28787 $as_echo "yes" >&6; }
28789 cat >>confdefs.h <<_ACEOF
28790 #define HAVE_CLOSESOCKET 1
28793 ac_cv_func_closesocket="yes"
28795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28796 $as_echo "no" >&6; }
28797 ac_cv_func_closesocket="no"
28802 tst_links_closesocket_camel="unknown"
28803 tst_proto_closesocket_camel="unknown"
28804 tst_compi_closesocket_camel="unknown"
28805 tst_allow_closesocket_camel="unknown"
28807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
28808 $as_echo_n "checking if CloseSocket can be linked... " >&6; }
28809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28810 /* end confdefs.h. */
28813 $curl_includes_sys_socket
28818 if(0 != CloseSocket(0))
28826 if ac_fn_c_try_link "$LINENO"; then :
28828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28829 $as_echo "yes" >&6; }
28830 tst_links_closesocket_camel="yes"
28834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28835 $as_echo "no" >&6; }
28836 tst_links_closesocket_camel="no"
28839 rm -f core conftest.err conftest.$ac_objext \
28840 conftest$ac_exeext conftest.$ac_ext
28842 if test "$tst_links_closesocket_camel" = "yes"; then
28843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
28844 $as_echo_n "checking if CloseSocket is prototyped... " >&6; }
28845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28846 /* end confdefs.h. */
28848 $curl_includes_sys_socket
28851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28852 $EGREP "CloseSocket" >/dev/null 2>&1; then :
28854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28855 $as_echo "yes" >&6; }
28856 tst_proto_closesocket_camel="yes"
28860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28861 $as_echo "no" >&6; }
28862 tst_proto_closesocket_camel="no"
28869 if test "$tst_proto_closesocket_camel" = "yes"; then
28870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
28871 $as_echo_n "checking if CloseSocket is compilable... " >&6; }
28872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28873 /* end confdefs.h. */
28876 $curl_includes_sys_socket
28881 if(0 != CloseSocket(0))
28889 if ac_fn_c_try_compile "$LINENO"; then :
28891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28892 $as_echo "yes" >&6; }
28893 tst_compi_closesocket_camel="yes"
28897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28898 $as_echo "no" >&6; }
28899 tst_compi_closesocket_camel="no"
28902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28905 if test "$tst_compi_closesocket_camel" = "yes"; then
28906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
28907 $as_echo_n "checking if CloseSocket usage allowed... " >&6; }
28908 if test "x$curl_disallow_closesocket_camel" != "xyes"; then
28909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28910 $as_echo "yes" >&6; }
28911 tst_allow_closesocket_camel="yes"
28913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28914 $as_echo "no" >&6; }
28915 tst_allow_closesocket_camel="no"
28919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
28920 $as_echo_n "checking if CloseSocket might be used... " >&6; }
28921 if test "$tst_links_closesocket_camel" = "yes" &&
28922 test "$tst_proto_closesocket_camel" = "yes" &&
28923 test "$tst_compi_closesocket_camel" = "yes" &&
28924 test "$tst_allow_closesocket_camel" = "yes"; then
28925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28926 $as_echo "yes" >&6; }
28928 cat >>confdefs.h <<_ACEOF
28929 #define HAVE_CLOSESOCKET_CAMEL 1
28932 ac_cv_func_closesocket_camel="yes"
28934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28935 $as_echo "no" >&6; }
28936 ac_cv_func_closesocket_camel="no"
28941 tst_links_connect="unknown"
28942 tst_proto_connect="unknown"
28943 tst_compi_connect="unknown"
28944 tst_allow_connect="unknown"
28946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
28947 $as_echo_n "checking if connect can be linked... " >&6; }
28948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28949 /* end confdefs.h. */
28952 $curl_includes_winsock2
28953 $curl_includes_sys_socket
28954 $curl_includes_socket
28959 if(0 != connect(0, 0, 0))
28967 if ac_fn_c_try_link "$LINENO"; then :
28969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28970 $as_echo "yes" >&6; }
28971 tst_links_connect="yes"
28975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28976 $as_echo "no" >&6; }
28977 tst_links_connect="no"
28980 rm -f core conftest.err conftest.$ac_objext \
28981 conftest$ac_exeext conftest.$ac_ext
28983 if test "$tst_links_connect" = "yes"; then
28984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
28985 $as_echo_n "checking if connect is prototyped... " >&6; }
28986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28987 /* end confdefs.h. */
28989 $curl_includes_winsock2
28990 $curl_includes_sys_socket
28991 $curl_includes_socket
28994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28995 $EGREP "connect" >/dev/null 2>&1; then :
28997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28998 $as_echo "yes" >&6; }
28999 tst_proto_connect="yes"
29003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29004 $as_echo "no" >&6; }
29005 tst_proto_connect="no"
29012 if test "$tst_proto_connect" = "yes"; then
29013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
29014 $as_echo_n "checking if connect is compilable... " >&6; }
29015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29016 /* end confdefs.h. */
29019 $curl_includes_winsock2
29020 $curl_includes_sys_socket
29021 $curl_includes_socket
29026 if(0 != connect(0, 0, 0))
29034 if ac_fn_c_try_compile "$LINENO"; then :
29036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29037 $as_echo "yes" >&6; }
29038 tst_compi_connect="yes"
29042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29043 $as_echo "no" >&6; }
29044 tst_compi_connect="no"
29047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29050 if test "$tst_compi_connect" = "yes"; then
29051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
29052 $as_echo_n "checking if connect usage allowed... " >&6; }
29053 if test "x$curl_disallow_connect" != "xyes"; then
29054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29055 $as_echo "yes" >&6; }
29056 tst_allow_connect="yes"
29058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29059 $as_echo "no" >&6; }
29060 tst_allow_connect="no"
29064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
29065 $as_echo_n "checking if connect might be used... " >&6; }
29066 if test "$tst_links_connect" = "yes" &&
29067 test "$tst_proto_connect" = "yes" &&
29068 test "$tst_compi_connect" = "yes" &&
29069 test "$tst_allow_connect" = "yes"; then
29070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29071 $as_echo "yes" >&6; }
29073 cat >>confdefs.h <<_ACEOF
29074 #define HAVE_CONNECT 1
29077 ac_cv_func_connect="yes"
29079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29080 $as_echo "no" >&6; }
29081 ac_cv_func_connect="no"
29085 curl_includes_fcntl="\
29086 /* includes start */
29087 #ifdef HAVE_SYS_TYPES_H
29088 # include <sys/types.h>
29090 #ifdef HAVE_UNISTD_H
29091 # include <unistd.h>
29093 #ifdef HAVE_FCNTL_H
29094 # include <fcntl.h>
29096 /* includes end */"
29097 for ac_header in sys/types.h unistd.h fcntl.h
29099 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29100 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
29102 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29103 cat >>confdefs.h <<_ACEOF
29104 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29114 tst_links_fcntl="unknown"
29115 tst_proto_fcntl="unknown"
29116 tst_compi_fcntl="unknown"
29117 tst_allow_fcntl="unknown"
29119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
29120 $as_echo_n "checking if fcntl can be linked... " >&6; }
29121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29122 /* end confdefs.h. */
29125 #define fcntl innocuous_fcntl
29127 # include <limits.h>
29129 # include <assert.h>
29136 #if defined __stub_fcntl || defined __stub___fcntl
29148 if ac_fn_c_try_link "$LINENO"; then :
29150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29151 $as_echo "yes" >&6; }
29152 tst_links_fcntl="yes"
29156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29157 $as_echo "no" >&6; }
29158 tst_links_fcntl="no"
29161 rm -f core conftest.err conftest.$ac_objext \
29162 conftest$ac_exeext conftest.$ac_ext
29164 if test "$tst_links_fcntl" = "yes"; then
29165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
29166 $as_echo_n "checking if fcntl is prototyped... " >&6; }
29167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29168 /* end confdefs.h. */
29170 $curl_includes_fcntl
29173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29174 $EGREP "fcntl" >/dev/null 2>&1; then :
29176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29177 $as_echo "yes" >&6; }
29178 tst_proto_fcntl="yes"
29182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29183 $as_echo "no" >&6; }
29184 tst_proto_fcntl="no"
29191 if test "$tst_proto_fcntl" = "yes"; then
29192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
29193 $as_echo_n "checking if fcntl is compilable... " >&6; }
29194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29195 /* end confdefs.h. */
29198 $curl_includes_fcntl
29203 if(0 != fcntl(0, 0, 0))
29211 if ac_fn_c_try_compile "$LINENO"; then :
29213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29214 $as_echo "yes" >&6; }
29215 tst_compi_fcntl="yes"
29219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29220 $as_echo "no" >&6; }
29221 tst_compi_fcntl="no"
29224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29227 if test "$tst_compi_fcntl" = "yes"; then
29228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
29229 $as_echo_n "checking if fcntl usage allowed... " >&6; }
29230 if test "x$curl_disallow_fcntl" != "xyes"; then
29231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29232 $as_echo "yes" >&6; }
29233 tst_allow_fcntl="yes"
29235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29236 $as_echo "no" >&6; }
29237 tst_allow_fcntl="no"
29241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
29242 $as_echo_n "checking if fcntl might be used... " >&6; }
29243 if test "$tst_links_fcntl" = "yes" &&
29244 test "$tst_proto_fcntl" = "yes" &&
29245 test "$tst_compi_fcntl" = "yes" &&
29246 test "$tst_allow_fcntl" = "yes"; then
29247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29248 $as_echo "yes" >&6; }
29250 cat >>confdefs.h <<_ACEOF
29251 #define HAVE_FCNTL 1
29254 ac_cv_func_fcntl="yes"
29257 tst_compi_fcntl_o_nonblock="unknown"
29258 tst_allow_fcntl_o_nonblock="unknown"
29261 sunos4* | aix3* | beos*)
29262 curl_disallow_fcntl_o_nonblock="yes"
29266 if test "$ac_cv_func_fcntl" = "yes"; then
29267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
29268 $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
29269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29270 /* end confdefs.h. */
29273 $curl_includes_fcntl
29279 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
29287 if ac_fn_c_try_compile "$LINENO"; then :
29289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29290 $as_echo "yes" >&6; }
29291 tst_compi_fcntl_o_nonblock="yes"
29295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29296 $as_echo "no" >&6; }
29297 tst_compi_fcntl_o_nonblock="no"
29300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29303 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
29304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
29305 $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
29306 if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
29307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29308 $as_echo "yes" >&6; }
29309 tst_allow_fcntl_o_nonblock="yes"
29311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29312 $as_echo "no" >&6; }
29313 tst_allow_fcntl_o_nonblock="no"
29317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
29318 $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
29319 if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
29320 test "$tst_allow_fcntl_o_nonblock" = "yes"; then
29321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29322 $as_echo "yes" >&6; }
29324 cat >>confdefs.h <<_ACEOF
29325 #define HAVE_FCNTL_O_NONBLOCK 1
29328 ac_cv_func_fcntl_o_nonblock="yes"
29330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29331 $as_echo "no" >&6; }
29332 ac_cv_func_fcntl_o_nonblock="no"
29336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29337 $as_echo "no" >&6; }
29338 ac_cv_func_fcntl="no"
29342 curl_includes_stdio="\
29343 /* includes start */
29344 #ifdef HAVE_SYS_TYPES_H
29345 # include <sys/types.h>
29347 #ifdef HAVE_STDIO_H
29348 # include <stdio.h>
29350 /* includes end */"
29351 for ac_header in sys/types.h stdio.h
29353 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29354 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio
29356 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29357 cat >>confdefs.h <<_ACEOF
29358 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29368 tst_links_fdopen="unknown"
29369 tst_proto_fdopen="unknown"
29370 tst_compi_fdopen="unknown"
29371 tst_allow_fdopen="unknown"
29373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5
29374 $as_echo_n "checking if fdopen can be linked... " >&6; }
29375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29376 /* end confdefs.h. */
29379 #define fdopen innocuous_fdopen
29381 # include <limits.h>
29383 # include <assert.h>
29390 #if defined __stub_fdopen || defined __stub___fdopen
29402 if ac_fn_c_try_link "$LINENO"; then :
29404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29405 $as_echo "yes" >&6; }
29406 tst_links_fdopen="yes"
29410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29411 $as_echo "no" >&6; }
29412 tst_links_fdopen="no"
29415 rm -f core conftest.err conftest.$ac_objext \
29416 conftest$ac_exeext conftest.$ac_ext
29418 if test "$tst_links_fdopen" = "yes"; then
29419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5
29420 $as_echo_n "checking if fdopen is prototyped... " >&6; }
29421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29422 /* end confdefs.h. */
29424 $curl_includes_stdio
29427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29428 $EGREP "fdopen" >/dev/null 2>&1; then :
29430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29431 $as_echo "yes" >&6; }
29432 tst_proto_fdopen="yes"
29436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29437 $as_echo "no" >&6; }
29438 tst_proto_fdopen="no"
29445 if test "$tst_proto_fdopen" = "yes"; then
29446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5
29447 $as_echo_n "checking if fdopen is compilable... " >&6; }
29448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29449 /* end confdefs.h. */
29452 $curl_includes_stdio
29457 if(0 != fdopen(0, 0))
29465 if ac_fn_c_try_compile "$LINENO"; then :
29467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29468 $as_echo "yes" >&6; }
29469 tst_compi_fdopen="yes"
29473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29474 $as_echo "no" >&6; }
29475 tst_compi_fdopen="no"
29478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29481 if test "$tst_compi_fdopen" = "yes"; then
29482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5
29483 $as_echo_n "checking if fdopen usage allowed... " >&6; }
29484 if test "x$curl_disallow_fdopen" != "xyes"; then
29485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29486 $as_echo "yes" >&6; }
29487 tst_allow_fdopen="yes"
29489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29490 $as_echo "no" >&6; }
29491 tst_allow_fdopen="no"
29495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5
29496 $as_echo_n "checking if fdopen might be used... " >&6; }
29497 if test "$tst_links_fdopen" = "yes" &&
29498 test "$tst_proto_fdopen" = "yes" &&
29499 test "$tst_compi_fdopen" = "yes" &&
29500 test "$tst_allow_fdopen" = "yes"; then
29501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29502 $as_echo "yes" >&6; }
29504 cat >>confdefs.h <<_ACEOF
29505 #define HAVE_FDOPEN 1
29508 ac_cv_func_fdopen="yes"
29510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29511 $as_echo "no" >&6; }
29512 ac_cv_func_fdopen="no"
29516 curl_includes_netdb="\
29517 /* includes start */
29518 #ifdef HAVE_SYS_TYPES_H
29519 # include <sys/types.h>
29521 #ifdef HAVE_NETDB_H
29522 # include <netdb.h>
29524 /* includes end */"
29525 for ac_header in sys/types.h netdb.h
29527 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29528 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
29530 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29531 cat >>confdefs.h <<_ACEOF
29532 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29542 tst_links_freeaddrinfo="unknown"
29543 tst_proto_freeaddrinfo="unknown"
29544 tst_compi_freeaddrinfo="unknown"
29545 tst_allow_freeaddrinfo="unknown"
29547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
29548 $as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
29549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29550 /* end confdefs.h. */
29553 $curl_includes_ws2tcpip
29554 $curl_includes_sys_socket
29555 $curl_includes_netdb
29567 if ac_fn_c_try_link "$LINENO"; then :
29569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29570 $as_echo "yes" >&6; }
29571 tst_links_freeaddrinfo="yes"
29575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29576 $as_echo "no" >&6; }
29577 tst_links_freeaddrinfo="no"
29580 rm -f core conftest.err conftest.$ac_objext \
29581 conftest$ac_exeext conftest.$ac_ext
29583 if test "$tst_links_freeaddrinfo" = "yes"; then
29584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
29585 $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
29586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29587 /* end confdefs.h. */
29589 $curl_includes_ws2tcpip
29590 $curl_includes_sys_socket
29591 $curl_includes_netdb
29594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29595 $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
29597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29598 $as_echo "yes" >&6; }
29599 tst_proto_freeaddrinfo="yes"
29603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29604 $as_echo "no" >&6; }
29605 tst_proto_freeaddrinfo="no"
29612 if test "$tst_proto_freeaddrinfo" = "yes"; then
29613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
29614 $as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
29615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29616 /* end confdefs.h. */
29619 $curl_includes_ws2tcpip
29620 $curl_includes_sys_socket
29621 $curl_includes_netdb
29633 if ac_fn_c_try_compile "$LINENO"; then :
29635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29636 $as_echo "yes" >&6; }
29637 tst_compi_freeaddrinfo="yes"
29641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29642 $as_echo "no" >&6; }
29643 tst_compi_freeaddrinfo="no"
29646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29649 if test "$tst_compi_freeaddrinfo" = "yes"; then
29650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
29651 $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
29652 if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
29653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29654 $as_echo "yes" >&6; }
29655 tst_allow_freeaddrinfo="yes"
29657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29658 $as_echo "no" >&6; }
29659 tst_allow_freeaddrinfo="no"
29663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
29664 $as_echo_n "checking if freeaddrinfo might be used... " >&6; }
29665 if test "$tst_links_freeaddrinfo" = "yes" &&
29666 test "$tst_proto_freeaddrinfo" = "yes" &&
29667 test "$tst_compi_freeaddrinfo" = "yes" &&
29668 test "$tst_allow_freeaddrinfo" = "yes"; then
29669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29670 $as_echo "yes" >&6; }
29672 cat >>confdefs.h <<_ACEOF
29673 #define HAVE_FREEADDRINFO 1
29676 ac_cv_func_freeaddrinfo="yes"
29678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29679 $as_echo "no" >&6; }
29680 ac_cv_func_freeaddrinfo="no"
29684 curl_includes_ifaddrs="\
29685 /* includes start */
29686 #ifdef HAVE_SYS_TYPES_H
29687 # include <sys/types.h>
29689 #ifdef HAVE_SYS_SOCKET_H
29690 # include <sys/socket.h>
29692 #ifdef HAVE_NETINET_IN_H
29693 # include <netinet/in.h>
29695 #ifdef HAVE_IFADDRS_H
29696 # include <ifaddrs.h>
29698 /* includes end */"
29699 for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
29701 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29702 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
29704 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29705 cat >>confdefs.h <<_ACEOF
29706 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29716 tst_links_freeifaddrs="unknown"
29717 tst_proto_freeifaddrs="unknown"
29718 tst_compi_freeifaddrs="unknown"
29719 tst_allow_freeifaddrs="unknown"
29721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
29722 $as_echo_n "checking if freeifaddrs can be linked... " >&6; }
29723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29724 /* end confdefs.h. */
29727 #define freeifaddrs innocuous_freeifaddrs
29729 # include <limits.h>
29731 # include <assert.h>
29737 char freeifaddrs ();
29738 #if defined __stub_freeifaddrs || defined __stub___freeifaddrs
29744 return freeifaddrs ();
29750 if ac_fn_c_try_link "$LINENO"; then :
29752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29753 $as_echo "yes" >&6; }
29754 tst_links_freeifaddrs="yes"
29758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29759 $as_echo "no" >&6; }
29760 tst_links_freeifaddrs="no"
29763 rm -f core conftest.err conftest.$ac_objext \
29764 conftest$ac_exeext conftest.$ac_ext
29766 if test "$tst_links_freeifaddrs" = "yes"; then
29767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
29768 $as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
29769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29770 /* end confdefs.h. */
29772 $curl_includes_ifaddrs
29775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29776 $EGREP "freeifaddrs" >/dev/null 2>&1; then :
29778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29779 $as_echo "yes" >&6; }
29780 tst_proto_freeifaddrs="yes"
29784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29785 $as_echo "no" >&6; }
29786 tst_proto_freeifaddrs="no"
29793 if test "$tst_proto_freeifaddrs" = "yes"; then
29794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
29795 $as_echo_n "checking if freeifaddrs is compilable... " >&6; }
29796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29797 /* end confdefs.h. */
29800 $curl_includes_ifaddrs
29812 if ac_fn_c_try_compile "$LINENO"; then :
29814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29815 $as_echo "yes" >&6; }
29816 tst_compi_freeifaddrs="yes"
29820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29821 $as_echo "no" >&6; }
29822 tst_compi_freeifaddrs="no"
29825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29828 if test "$tst_compi_freeifaddrs" = "yes"; then
29829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
29830 $as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
29831 if test "x$curl_disallow_freeifaddrs" != "xyes"; then
29832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29833 $as_echo "yes" >&6; }
29834 tst_allow_freeifaddrs="yes"
29836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29837 $as_echo "no" >&6; }
29838 tst_allow_freeifaddrs="no"
29842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
29843 $as_echo_n "checking if freeifaddrs might be used... " >&6; }
29844 if test "$tst_links_freeifaddrs" = "yes" &&
29845 test "$tst_proto_freeifaddrs" = "yes" &&
29846 test "$tst_compi_freeifaddrs" = "yes" &&
29847 test "$tst_allow_freeifaddrs" = "yes"; then
29848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29849 $as_echo "yes" >&6; }
29851 cat >>confdefs.h <<_ACEOF
29852 #define HAVE_FREEIFADDRS 1
29855 ac_cv_func_freeifaddrs="yes"
29857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29858 $as_echo "no" >&6; }
29859 ac_cv_func_freeifaddrs="no"
29863 curl_includes_sys_xattr="\
29864 /* includes start */
29865 #ifdef HAVE_SYS_TYPES_H
29866 # include <sys/types.h>
29868 #ifdef HAVE_SYS_XATTR_H
29869 # include <sys/xattr.h>
29871 /* includes end */"
29872 for ac_header in sys/types.h sys/xattr.h
29874 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29875 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
29877 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29878 cat >>confdefs.h <<_ACEOF
29879 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29889 tst_links_fsetxattr="unknown"
29890 tst_proto_fsetxattr="unknown"
29891 tst_compi_fsetxattr="unknown"
29892 tst_allow_fsetxattr="unknown"
29893 tst_nargs_fsetxattr="unknown"
29895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
29896 $as_echo_n "checking if fsetxattr can be linked... " >&6; }
29897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29898 /* end confdefs.h. */
29901 #define fsetxattr innocuous_fsetxattr
29903 # include <limits.h>
29905 # include <assert.h>
29912 #if defined __stub_fsetxattr || defined __stub___fsetxattr
29918 return fsetxattr ();
29924 if ac_fn_c_try_link "$LINENO"; then :
29926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29927 $as_echo "yes" >&6; }
29928 tst_links_fsetxattr="yes"
29932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29933 $as_echo "no" >&6; }
29934 tst_links_fsetxattr="no"
29937 rm -f core conftest.err conftest.$ac_objext \
29938 conftest$ac_exeext conftest.$ac_ext
29940 if test "$tst_links_fsetxattr" = "yes"; then
29941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
29942 $as_echo_n "checking if fsetxattr is prototyped... " >&6; }
29943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29944 /* end confdefs.h. */
29946 $curl_includes_sys_xattr
29949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29950 $EGREP "fsetxattr" >/dev/null 2>&1; then :
29952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29953 $as_echo "yes" >&6; }
29954 tst_proto_fsetxattr="yes"
29958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29959 $as_echo "no" >&6; }
29960 tst_proto_fsetxattr="no"
29967 if test "$tst_proto_fsetxattr" = "yes"; then
29968 if test "$tst_nargs_fsetxattr" = "unknown"; then
29969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
29970 $as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
29971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29972 /* end confdefs.h. */
29975 $curl_includes_sys_xattr
29980 if(0 != fsetxattr(0, 0, 0, 0, 0))
29988 if ac_fn_c_try_compile "$LINENO"; then :
29990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29991 $as_echo "yes" >&6; }
29992 tst_compi_fsetxattr="yes"
29993 tst_nargs_fsetxattr="5"
29997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29998 $as_echo "no" >&6; }
29999 tst_compi_fsetxattr="no"
30002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30004 if test "$tst_nargs_fsetxattr" = "unknown"; then
30005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
30006 $as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
30007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30008 /* end confdefs.h. */
30011 $curl_includes_sys_xattr
30016 if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
30024 if ac_fn_c_try_compile "$LINENO"; then :
30026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30027 $as_echo "yes" >&6; }
30028 tst_compi_fsetxattr="yes"
30029 tst_nargs_fsetxattr="6"
30033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30034 $as_echo "no" >&6; }
30035 tst_compi_fsetxattr="no"
30038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
30041 $as_echo_n "checking if fsetxattr is compilable... " >&6; }
30042 if test "$tst_compi_fsetxattr" = "yes"; then
30043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30044 $as_echo "yes" >&6; }
30046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30047 $as_echo "no" >&6; }
30051 if test "$tst_compi_fsetxattr" = "yes"; then
30052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
30053 $as_echo_n "checking if fsetxattr usage allowed... " >&6; }
30054 if test "x$curl_disallow_fsetxattr" != "xyes"; then
30055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30056 $as_echo "yes" >&6; }
30057 tst_allow_fsetxattr="yes"
30059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30060 $as_echo "no" >&6; }
30061 tst_allow_fsetxattr="no"
30065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
30066 $as_echo_n "checking if fsetxattr might be used... " >&6; }
30067 if test "$tst_links_fsetxattr" = "yes" &&
30068 test "$tst_proto_fsetxattr" = "yes" &&
30069 test "$tst_compi_fsetxattr" = "yes" &&
30070 test "$tst_allow_fsetxattr" = "yes"; then
30071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30072 $as_echo "yes" >&6; }
30074 cat >>confdefs.h <<_ACEOF
30075 #define HAVE_FSETXATTR 1
30079 if test "$tst_nargs_fsetxattr" -eq "5"; then
30081 $as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
30083 elif test "$tst_nargs_fsetxattr" -eq "6"; then
30085 $as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
30089 ac_cv_func_fsetxattr="yes"
30091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30092 $as_echo "no" >&6; }
30093 ac_cv_func_fsetxattr="no"
30098 tst_links_ftruncate="unknown"
30099 tst_proto_ftruncate="unknown"
30100 tst_compi_ftruncate="unknown"
30101 tst_allow_ftruncate="unknown"
30103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
30104 $as_echo_n "checking if ftruncate can be linked... " >&6; }
30105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30106 /* end confdefs.h. */
30109 #define ftruncate innocuous_ftruncate
30111 # include <limits.h>
30113 # include <assert.h>
30120 #if defined __stub_ftruncate || defined __stub___ftruncate
30126 return ftruncate ();
30132 if ac_fn_c_try_link "$LINENO"; then :
30134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30135 $as_echo "yes" >&6; }
30136 tst_links_ftruncate="yes"
30140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30141 $as_echo "no" >&6; }
30142 tst_links_ftruncate="no"
30145 rm -f core conftest.err conftest.$ac_objext \
30146 conftest$ac_exeext conftest.$ac_ext
30148 if test "$tst_links_ftruncate" = "yes"; then
30149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
30150 $as_echo_n "checking if ftruncate is prototyped... " >&6; }
30151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30152 /* end confdefs.h. */
30154 $curl_includes_unistd
30157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30158 $EGREP "ftruncate" >/dev/null 2>&1; then :
30160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30161 $as_echo "yes" >&6; }
30162 tst_proto_ftruncate="yes"
30166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30167 $as_echo "no" >&6; }
30168 tst_proto_ftruncate="no"
30175 if test "$tst_proto_ftruncate" = "yes"; then
30176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
30177 $as_echo_n "checking if ftruncate is compilable... " >&6; }
30178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30179 /* end confdefs.h. */
30182 $curl_includes_unistd
30187 if(0 != ftruncate(0, 0))
30195 if ac_fn_c_try_compile "$LINENO"; then :
30197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30198 $as_echo "yes" >&6; }
30199 tst_compi_ftruncate="yes"
30203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30204 $as_echo "no" >&6; }
30205 tst_compi_ftruncate="no"
30208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30211 if test "$tst_compi_ftruncate" = "yes"; then
30212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
30213 $as_echo_n "checking if ftruncate usage allowed... " >&6; }
30214 if test "x$curl_disallow_ftruncate" != "xyes"; then
30215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30216 $as_echo "yes" >&6; }
30217 tst_allow_ftruncate="yes"
30219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30220 $as_echo "no" >&6; }
30221 tst_allow_ftruncate="no"
30225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
30226 $as_echo_n "checking if ftruncate might be used... " >&6; }
30227 if test "$tst_links_ftruncate" = "yes" &&
30228 test "$tst_proto_ftruncate" = "yes" &&
30229 test "$tst_compi_ftruncate" = "yes" &&
30230 test "$tst_allow_ftruncate" = "yes"; then
30231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30232 $as_echo "yes" >&6; }
30234 cat >>confdefs.h <<_ACEOF
30235 #define HAVE_FTRUNCATE 1
30238 ac_cv_func_ftruncate="yes"
30240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30241 $as_echo "no" >&6; }
30242 ac_cv_func_ftruncate="no"
30246 curl_includes_stdlib="\
30247 /* includes start */
30248 #ifdef HAVE_SYS_TYPES_H
30249 # include <sys/types.h>
30251 #ifdef HAVE_STDLIB_H
30252 # include <stdlib.h>
30254 /* includes end */"
30255 for ac_header in sys/types.h stdlib.h
30257 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30258 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
30260 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30261 cat >>confdefs.h <<_ACEOF
30262 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30272 tst_links_getaddrinfo="unknown"
30273 tst_proto_getaddrinfo="unknown"
30274 tst_compi_getaddrinfo="unknown"
30275 tst_works_getaddrinfo="unknown"
30276 tst_allow_getaddrinfo="unknown"
30277 tst_tsafe_getaddrinfo="unknown"
30279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
30280 $as_echo_n "checking if getaddrinfo can be linked... " >&6; }
30281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30282 /* end confdefs.h. */
30285 $curl_includes_ws2tcpip
30286 $curl_includes_sys_socket
30287 $curl_includes_netdb
30292 if(0 != getaddrinfo(0, 0, 0, 0))
30300 if ac_fn_c_try_link "$LINENO"; then :
30302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30303 $as_echo "yes" >&6; }
30304 tst_links_getaddrinfo="yes"
30308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30309 $as_echo "no" >&6; }
30310 tst_links_getaddrinfo="no"
30313 rm -f core conftest.err conftest.$ac_objext \
30314 conftest$ac_exeext conftest.$ac_ext
30316 if test "$tst_links_getaddrinfo" = "yes"; then
30317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
30318 $as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
30319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30320 /* end confdefs.h. */
30322 $curl_includes_ws2tcpip
30323 $curl_includes_sys_socket
30324 $curl_includes_netdb
30327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30328 $EGREP "getaddrinfo" >/dev/null 2>&1; then :
30330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30331 $as_echo "yes" >&6; }
30332 tst_proto_getaddrinfo="yes"
30336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30337 $as_echo "no" >&6; }
30338 tst_proto_getaddrinfo="no"
30345 if test "$tst_proto_getaddrinfo" = "yes"; then
30346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
30347 $as_echo_n "checking if getaddrinfo is compilable... " >&6; }
30348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30349 /* end confdefs.h. */
30352 $curl_includes_ws2tcpip
30353 $curl_includes_sys_socket
30354 $curl_includes_netdb
30359 if(0 != getaddrinfo(0, 0, 0, 0))
30367 if ac_fn_c_try_compile "$LINENO"; then :
30369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30370 $as_echo "yes" >&6; }
30371 tst_compi_getaddrinfo="yes"
30375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30376 $as_echo "no" >&6; }
30377 tst_compi_getaddrinfo="no"
30380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30383 if test "x$cross_compiling" != "xyes" &&
30384 test "$tst_compi_getaddrinfo" = "yes"; then
30385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
30386 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
30387 if test "$cross_compiling" = yes; then :
30388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30390 as_fn_error $? "cannot run test program while cross compiling
30391 See \`config.log' for more details" "$LINENO" 5; }
30393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30394 /* end confdefs.h. */
30397 $curl_includes_ws2tcpip
30398 $curl_includes_stdlib
30399 $curl_includes_string
30400 $curl_includes_sys_socket
30401 $curl_includes_netdb
30406 struct addrinfo hints;
30407 struct addrinfo *ai = 0;
30410 memset(&hints, 0, sizeof(hints));
30411 hints.ai_flags = AI_NUMERICHOST;
30412 hints.ai_family = AF_UNSPEC;
30413 hints.ai_socktype = SOCK_STREAM;
30414 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
30416 exit(1); /* fail */
30425 if ac_fn_c_try_run "$LINENO"; then :
30427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30428 $as_echo "yes" >&6; }
30429 tst_works_getaddrinfo="yes"
30433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30434 $as_echo "no" >&6; }
30435 tst_works_getaddrinfo="no"
30438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30439 conftest.$ac_objext conftest.beam conftest.$ac_ext
30444 if test "$tst_compi_getaddrinfo" = "yes" &&
30445 test "$tst_works_getaddrinfo" != "no"; then
30446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
30447 $as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
30448 if test "x$curl_disallow_getaddrinfo" != "xyes"; then
30449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30450 $as_echo "yes" >&6; }
30451 tst_allow_getaddrinfo="yes"
30453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30454 $as_echo "no" >&6; }
30455 tst_allow_getaddrinfo="no"
30459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
30460 $as_echo_n "checking if getaddrinfo might be used... " >&6; }
30461 if test "$tst_links_getaddrinfo" = "yes" &&
30462 test "$tst_proto_getaddrinfo" = "yes" &&
30463 test "$tst_compi_getaddrinfo" = "yes" &&
30464 test "$tst_allow_getaddrinfo" = "yes" &&
30465 test "$tst_works_getaddrinfo" != "no"; then
30466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30467 $as_echo "yes" >&6; }
30469 cat >>confdefs.h <<_ACEOF
30470 #define HAVE_GETADDRINFO 1
30473 ac_cv_func_getaddrinfo="yes"
30475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30476 $as_echo "no" >&6; }
30477 ac_cv_func_getaddrinfo="no"
30478 ac_cv_func_getaddrinfo_threadsafe="no"
30481 if test "$ac_cv_func_getaddrinfo" = "yes"; then
30482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
30483 $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
30485 aix[1234].* | aix5.[01].*)
30486 tst_tsafe_getaddrinfo="no"
30489 tst_tsafe_getaddrinfo="yes"
30492 tst_tsafe_getaddrinfo="no"
30495 tst_tsafe_getaddrinfo="yes"
30497 freebsd[1234].* | freebsd5.[1234]*)
30498 tst_tsafe_getaddrinfo="no"
30501 tst_tsafe_getaddrinfo="yes"
30503 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
30504 tst_tsafe_getaddrinfo="no"
30507 tst_tsafe_getaddrinfo="yes"
30510 tst_tsafe_getaddrinfo="no"
30513 tst_tsafe_getaddrinfo="yes"
30516 tst_tsafe_getaddrinfo="no"
30519 tst_tsafe_getaddrinfo="yes"
30522 if test "$tst_tsafe_getaddrinfo" = "unknown" &&
30523 test "$ac_cv_native_windows" = "yes"; then
30524 tst_tsafe_getaddrinfo="yes"
30526 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
30529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30530 /* end confdefs.h. */
30533 $curl_includes_sys_socket
30534 $curl_includes_netdb
30541 force compilation error
30547 if ac_fn_c_try_compile "$LINENO"; then :
30549 tst_symbol_defined="yes"
30553 tst_symbol_defined="no"
30556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30557 if test "$tst_symbol_defined" = "yes"; then
30558 curl_cv_have_def_h_errno=yes
30561 curl_cv_have_def_h_errno=no
30565 if test "$curl_cv_have_def_h_errno" = "yes"; then
30566 tst_h_errno_macro="yes"
30568 tst_h_errno_macro="no"
30570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30571 /* end confdefs.h. */
30574 $curl_includes_sys_socket
30575 $curl_includes_netdb
30589 if ac_fn_c_try_compile "$LINENO"; then :
30591 tst_h_errno_modifiable_lvalue="yes"
30595 tst_h_errno_modifiable_lvalue="no"
30598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30600 /* end confdefs.h. */
30607 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
30609 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
30612 force compilation error
30620 if ac_fn_c_try_compile "$LINENO"; then :
30622 tst_h_errno_sbs_issue_7="yes"
30626 tst_h_errno_sbs_issue_7="no"
30629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30630 if test "$tst_h_errno_macro" = "no" &&
30631 test "$tst_h_errno_modifiable_lvalue" = "no" &&
30632 test "$tst_h_errno_sbs_issue_7" = "no"; then
30633 tst_tsafe_getaddrinfo="no"
30635 tst_tsafe_getaddrinfo="yes"
30638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
30639 $as_echo "$tst_tsafe_getaddrinfo" >&6; }
30640 if test "$tst_tsafe_getaddrinfo" = "yes"; then
30642 cat >>confdefs.h <<_ACEOF
30643 #define HAVE_GETADDRINFO_THREADSAFE 1
30646 ac_cv_func_getaddrinfo_threadsafe="yes"
30648 ac_cv_func_getaddrinfo_threadsafe="no"
30654 tst_links_gai_strerror="unknown"
30655 tst_proto_gai_strerror="unknown"
30656 tst_compi_gai_strerror="unknown"
30657 tst_allow_gai_strerror="unknown"
30659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
30660 $as_echo_n "checking if gai_strerror can be linked... " >&6; }
30661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30662 /* end confdefs.h. */
30665 $curl_includes_winsock2
30666 $curl_includes_netdb
30671 if(0 != gai_strerror(0))
30679 if ac_fn_c_try_link "$LINENO"; then :
30681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30682 $as_echo "yes" >&6; }
30683 tst_links_gai_strerror="yes"
30687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30688 $as_echo "no" >&6; }
30689 tst_links_gai_strerror="no"
30692 rm -f core conftest.err conftest.$ac_objext \
30693 conftest$ac_exeext conftest.$ac_ext
30695 if test "$tst_links_gai_strerror" = "yes"; then
30696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
30697 $as_echo_n "checking if gai_strerror is prototyped... " >&6; }
30698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30699 /* end confdefs.h. */
30701 $curl_includes_winsock2
30702 $curl_includes_netdb
30705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30706 $EGREP "gai_strerror" >/dev/null 2>&1; then :
30708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30709 $as_echo "yes" >&6; }
30710 tst_proto_gai_strerror="yes"
30714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30715 $as_echo "no" >&6; }
30716 tst_proto_gai_strerror="no"
30723 if test "$tst_proto_gai_strerror" = "yes"; then
30724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
30725 $as_echo_n "checking if gai_strerror is compilable... " >&6; }
30726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30727 /* end confdefs.h. */
30730 $curl_includes_winsock2
30731 $curl_includes_netdb
30736 if(0 != gai_strerror(0))
30744 if ac_fn_c_try_compile "$LINENO"; then :
30746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30747 $as_echo "yes" >&6; }
30748 tst_compi_gai_strerror="yes"
30752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30753 $as_echo "no" >&6; }
30754 tst_compi_gai_strerror="no"
30757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30760 if test "$tst_compi_gai_strerror" = "yes"; then
30761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
30762 $as_echo_n "checking if gai_strerror usage allowed... " >&6; }
30763 if test "x$curl_disallow_gai_strerror" != "xyes"; then
30764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30765 $as_echo "yes" >&6; }
30766 tst_allow_gai_strerror="yes"
30768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30769 $as_echo "no" >&6; }
30770 tst_allow_gai_strerror="no"
30774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
30775 $as_echo_n "checking if gai_strerror might be used... " >&6; }
30776 if test "$tst_links_gai_strerror" = "yes" &&
30777 test "$tst_proto_gai_strerror" = "yes" &&
30778 test "$tst_compi_gai_strerror" = "yes" &&
30779 test "$tst_allow_gai_strerror" = "yes"; then
30780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30781 $as_echo "yes" >&6; }
30783 cat >>confdefs.h <<_ACEOF
30784 #define HAVE_GAI_STRERROR 1
30787 ac_cv_func_gai_strerror="yes"
30789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30790 $as_echo "no" >&6; }
30791 ac_cv_func_gai_strerror="no"
30796 tst_links_gethostbyaddr="unknown"
30797 tst_proto_gethostbyaddr="unknown"
30798 tst_compi_gethostbyaddr="unknown"
30799 tst_allow_gethostbyaddr="unknown"
30801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
30802 $as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
30803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30804 /* end confdefs.h. */
30807 $curl_includes_winsock2
30808 $curl_includes_netdb
30813 if(0 != gethostbyaddr(0, 0, 0))
30821 if ac_fn_c_try_link "$LINENO"; then :
30823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30824 $as_echo "yes" >&6; }
30825 tst_links_gethostbyaddr="yes"
30829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30830 $as_echo "no" >&6; }
30831 tst_links_gethostbyaddr="no"
30834 rm -f core conftest.err conftest.$ac_objext \
30835 conftest$ac_exeext conftest.$ac_ext
30837 if test "$tst_links_gethostbyaddr" = "yes"; then
30838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
30839 $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
30840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30841 /* end confdefs.h. */
30843 $curl_includes_winsock2
30844 $curl_includes_netdb
30847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30848 $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
30850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30851 $as_echo "yes" >&6; }
30852 tst_proto_gethostbyaddr="yes"
30856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30857 $as_echo "no" >&6; }
30858 tst_proto_gethostbyaddr="no"
30865 if test "$tst_proto_gethostbyaddr" = "yes"; then
30866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
30867 $as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
30868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30869 /* end confdefs.h. */
30872 $curl_includes_winsock2
30873 $curl_includes_netdb
30878 if(0 != gethostbyaddr(0, 0, 0))
30886 if ac_fn_c_try_compile "$LINENO"; then :
30888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30889 $as_echo "yes" >&6; }
30890 tst_compi_gethostbyaddr="yes"
30894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30895 $as_echo "no" >&6; }
30896 tst_compi_gethostbyaddr="no"
30899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30902 if test "$tst_compi_gethostbyaddr" = "yes"; then
30903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
30904 $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
30905 if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
30906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30907 $as_echo "yes" >&6; }
30908 tst_allow_gethostbyaddr="yes"
30910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30911 $as_echo "no" >&6; }
30912 tst_allow_gethostbyaddr="no"
30916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
30917 $as_echo_n "checking if gethostbyaddr might be used... " >&6; }
30918 if test "$tst_links_gethostbyaddr" = "yes" &&
30919 test "$tst_proto_gethostbyaddr" = "yes" &&
30920 test "$tst_compi_gethostbyaddr" = "yes" &&
30921 test "$tst_allow_gethostbyaddr" = "yes"; then
30922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30923 $as_echo "yes" >&6; }
30925 cat >>confdefs.h <<_ACEOF
30926 #define HAVE_GETHOSTBYADDR 1
30929 ac_cv_func_gethostbyaddr="yes"
30931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30932 $as_echo "no" >&6; }
30933 ac_cv_func_gethostbyaddr="no"
30938 tst_links_gethostbyaddr_r="unknown"
30939 tst_proto_gethostbyaddr_r="unknown"
30940 tst_compi_gethostbyaddr_r="unknown"
30941 tst_allow_gethostbyaddr_r="unknown"
30942 tst_nargs_gethostbyaddr_r="unknown"
30944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
30945 $as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
30946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30947 /* end confdefs.h. */
30950 #define gethostbyaddr_r innocuous_gethostbyaddr_r
30952 # include <limits.h>
30954 # include <assert.h>
30956 #undef gethostbyaddr_r
30960 char gethostbyaddr_r ();
30961 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
30967 return gethostbyaddr_r ();
30973 if ac_fn_c_try_link "$LINENO"; then :
30975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30976 $as_echo "yes" >&6; }
30977 tst_links_gethostbyaddr_r="yes"
30981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30982 $as_echo "no" >&6; }
30983 tst_links_gethostbyaddr_r="no"
30986 rm -f core conftest.err conftest.$ac_objext \
30987 conftest$ac_exeext conftest.$ac_ext
30989 if test "$tst_links_gethostbyaddr_r" = "yes"; then
30990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
30991 $as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
30992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30993 /* end confdefs.h. */
30995 $curl_includes_netdb
30998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30999 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
31001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31002 $as_echo "yes" >&6; }
31003 tst_proto_gethostbyaddr_r="yes"
31007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31008 $as_echo "no" >&6; }
31009 tst_proto_gethostbyaddr_r="no"
31016 if test "$tst_proto_gethostbyaddr_r" = "yes"; then
31017 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
31018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
31019 $as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
31020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31021 /* end confdefs.h. */
31024 $curl_includes_netdb
31029 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
31037 if ac_fn_c_try_compile "$LINENO"; then :
31039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31040 $as_echo "yes" >&6; }
31041 tst_compi_gethostbyaddr_r="yes"
31042 tst_nargs_gethostbyaddr_r="5"
31046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31047 $as_echo "no" >&6; }
31048 tst_compi_gethostbyaddr_r="no"
31051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31053 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
31054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
31055 $as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
31056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31057 /* end confdefs.h. */
31060 $curl_includes_netdb
31065 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
31073 if ac_fn_c_try_compile "$LINENO"; then :
31075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31076 $as_echo "yes" >&6; }
31077 tst_compi_gethostbyaddr_r="yes"
31078 tst_nargs_gethostbyaddr_r="7"
31082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31083 $as_echo "no" >&6; }
31084 tst_compi_gethostbyaddr_r="no"
31087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31089 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
31090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
31091 $as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
31092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31093 /* end confdefs.h. */
31096 $curl_includes_netdb
31101 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
31109 if ac_fn_c_try_compile "$LINENO"; then :
31111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31112 $as_echo "yes" >&6; }
31113 tst_compi_gethostbyaddr_r="yes"
31114 tst_nargs_gethostbyaddr_r="8"
31118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31119 $as_echo "no" >&6; }
31120 tst_compi_gethostbyaddr_r="no"
31123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
31126 $as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
31127 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
31128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31129 $as_echo "yes" >&6; }
31131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31132 $as_echo "no" >&6; }
31136 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
31137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
31138 $as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
31139 if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
31140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31141 $as_echo "yes" >&6; }
31142 tst_allow_gethostbyaddr_r="yes"
31144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31145 $as_echo "no" >&6; }
31146 tst_allow_gethostbyaddr_r="no"
31150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
31151 $as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
31152 if test "$tst_links_gethostbyaddr_r" = "yes" &&
31153 test "$tst_proto_gethostbyaddr_r" = "yes" &&
31154 test "$tst_compi_gethostbyaddr_r" = "yes" &&
31155 test "$tst_allow_gethostbyaddr_r" = "yes"; then
31156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31157 $as_echo "yes" >&6; }
31159 cat >>confdefs.h <<_ACEOF
31160 #define HAVE_GETHOSTBYADDR_R 1
31164 if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
31166 $as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
31168 elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
31170 $as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
31172 elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
31174 $as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
31178 ac_cv_func_gethostbyaddr_r="yes"
31180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31181 $as_echo "no" >&6; }
31182 ac_cv_func_gethostbyaddr_r="no"
31187 tst_links_gethostbyname="unknown"
31188 tst_proto_gethostbyname="unknown"
31189 tst_compi_gethostbyname="unknown"
31190 tst_allow_gethostbyname="unknown"
31192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
31193 $as_echo_n "checking if gethostbyname can be linked... " >&6; }
31194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31195 /* end confdefs.h. */
31198 $curl_includes_winsock2
31199 $curl_includes_netdb
31204 if(0 != gethostbyname(0))
31212 if ac_fn_c_try_link "$LINENO"; then :
31214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31215 $as_echo "yes" >&6; }
31216 tst_links_gethostbyname="yes"
31220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31221 $as_echo "no" >&6; }
31222 tst_links_gethostbyname="no"
31225 rm -f core conftest.err conftest.$ac_objext \
31226 conftest$ac_exeext conftest.$ac_ext
31228 if test "$tst_links_gethostbyname" = "yes"; then
31229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
31230 $as_echo_n "checking if gethostbyname is prototyped... " >&6; }
31231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31232 /* end confdefs.h. */
31234 $curl_includes_winsock2
31235 $curl_includes_netdb
31238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31239 $EGREP "gethostbyname" >/dev/null 2>&1; then :
31241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31242 $as_echo "yes" >&6; }
31243 tst_proto_gethostbyname="yes"
31247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31248 $as_echo "no" >&6; }
31249 tst_proto_gethostbyname="no"
31256 if test "$tst_proto_gethostbyname" = "yes"; then
31257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
31258 $as_echo_n "checking if gethostbyname is compilable... " >&6; }
31259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31260 /* end confdefs.h. */
31263 $curl_includes_winsock2
31264 $curl_includes_netdb
31269 if(0 != gethostbyname(0))
31277 if ac_fn_c_try_compile "$LINENO"; then :
31279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31280 $as_echo "yes" >&6; }
31281 tst_compi_gethostbyname="yes"
31285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31286 $as_echo "no" >&6; }
31287 tst_compi_gethostbyname="no"
31290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31293 if test "$tst_compi_gethostbyname" = "yes"; then
31294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
31295 $as_echo_n "checking if gethostbyname usage allowed... " >&6; }
31296 if test "x$curl_disallow_gethostbyname" != "xyes"; then
31297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31298 $as_echo "yes" >&6; }
31299 tst_allow_gethostbyname="yes"
31301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31302 $as_echo "no" >&6; }
31303 tst_allow_gethostbyname="no"
31307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
31308 $as_echo_n "checking if gethostbyname might be used... " >&6; }
31309 if test "$tst_links_gethostbyname" = "yes" &&
31310 test "$tst_proto_gethostbyname" = "yes" &&
31311 test "$tst_compi_gethostbyname" = "yes" &&
31312 test "$tst_allow_gethostbyname" = "yes"; then
31313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31314 $as_echo "yes" >&6; }
31316 cat >>confdefs.h <<_ACEOF
31317 #define HAVE_GETHOSTBYNAME 1
31320 ac_cv_func_gethostbyname="yes"
31322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31323 $as_echo "no" >&6; }
31324 ac_cv_func_gethostbyname="no"
31329 tst_links_gethostbyname_r="unknown"
31330 tst_proto_gethostbyname_r="unknown"
31331 tst_compi_gethostbyname_r="unknown"
31332 tst_allow_gethostbyname_r="unknown"
31333 tst_nargs_gethostbyname_r="unknown"
31335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
31336 $as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
31337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31338 /* end confdefs.h. */
31341 #define gethostbyname_r innocuous_gethostbyname_r
31343 # include <limits.h>
31345 # include <assert.h>
31347 #undef gethostbyname_r
31351 char gethostbyname_r ();
31352 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
31358 return gethostbyname_r ();
31364 if ac_fn_c_try_link "$LINENO"; then :
31366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31367 $as_echo "yes" >&6; }
31368 tst_links_gethostbyname_r="yes"
31372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31373 $as_echo "no" >&6; }
31374 tst_links_gethostbyname_r="no"
31377 rm -f core conftest.err conftest.$ac_objext \
31378 conftest$ac_exeext conftest.$ac_ext
31380 if test "$tst_links_gethostbyname_r" = "yes"; then
31381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
31382 $as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
31383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31384 /* end confdefs.h. */
31386 $curl_includes_netdb
31389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31390 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
31392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31393 $as_echo "yes" >&6; }
31394 tst_proto_gethostbyname_r="yes"
31398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31399 $as_echo "no" >&6; }
31400 tst_proto_gethostbyname_r="no"
31407 if test "$tst_proto_gethostbyname_r" = "yes"; then
31408 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
31409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
31410 $as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
31411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31412 /* end confdefs.h. */
31415 $curl_includes_netdb
31420 if(0 != gethostbyname_r(0, 0, 0))
31428 if ac_fn_c_try_compile "$LINENO"; then :
31430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31431 $as_echo "yes" >&6; }
31432 tst_compi_gethostbyname_r="yes"
31433 tst_nargs_gethostbyname_r="3"
31437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31438 $as_echo "no" >&6; }
31439 tst_compi_gethostbyname_r="no"
31442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31444 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
31445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
31446 $as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
31447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31448 /* end confdefs.h. */
31451 $curl_includes_netdb
31456 if(0 != gethostbyname_r(0, 0, 0, 0, 0))
31464 if ac_fn_c_try_compile "$LINENO"; then :
31466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31467 $as_echo "yes" >&6; }
31468 tst_compi_gethostbyname_r="yes"
31469 tst_nargs_gethostbyname_r="5"
31473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31474 $as_echo "no" >&6; }
31475 tst_compi_gethostbyname_r="no"
31478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31480 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
31481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
31482 $as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
31483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31484 /* end confdefs.h. */
31487 $curl_includes_netdb
31492 if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
31500 if ac_fn_c_try_compile "$LINENO"; then :
31502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31503 $as_echo "yes" >&6; }
31504 tst_compi_gethostbyname_r="yes"
31505 tst_nargs_gethostbyname_r="6"
31509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31510 $as_echo "no" >&6; }
31511 tst_compi_gethostbyname_r="no"
31514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
31517 $as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
31518 if test "$tst_compi_gethostbyname_r" = "yes"; then
31519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31520 $as_echo "yes" >&6; }
31522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31523 $as_echo "no" >&6; }
31527 if test "$tst_compi_gethostbyname_r" = "yes"; then
31528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
31529 $as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
31530 if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
31531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31532 $as_echo "yes" >&6; }
31533 tst_allow_gethostbyname_r="yes"
31535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31536 $as_echo "no" >&6; }
31537 tst_allow_gethostbyname_r="no"
31541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
31542 $as_echo_n "checking if gethostbyname_r might be used... " >&6; }
31543 if test "$tst_links_gethostbyname_r" = "yes" &&
31544 test "$tst_proto_gethostbyname_r" = "yes" &&
31545 test "$tst_compi_gethostbyname_r" = "yes" &&
31546 test "$tst_allow_gethostbyname_r" = "yes"; then
31547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31548 $as_echo "yes" >&6; }
31550 cat >>confdefs.h <<_ACEOF
31551 #define HAVE_GETHOSTBYNAME_R 1
31555 if test "$tst_nargs_gethostbyname_r" -eq "3"; then
31557 $as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
31559 elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
31561 $as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
31563 elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
31565 $as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
31569 ac_cv_func_gethostbyname_r="yes"
31571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31572 $as_echo "no" >&6; }
31573 ac_cv_func_gethostbyname_r="no"
31578 tst_links_gethostname="unknown"
31579 tst_proto_gethostname="unknown"
31580 tst_compi_gethostname="unknown"
31581 tst_allow_gethostname="unknown"
31583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
31584 $as_echo_n "checking if gethostname can be linked... " >&6; }
31585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31586 /* end confdefs.h. */
31589 $curl_includes_winsock2
31590 $curl_includes_unistd
31595 if(0 != gethostname(0, 0))
31603 if ac_fn_c_try_link "$LINENO"; then :
31605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31606 $as_echo "yes" >&6; }
31607 tst_links_gethostname="yes"
31611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31612 $as_echo "no" >&6; }
31613 tst_links_gethostname="no"
31616 rm -f core conftest.err conftest.$ac_objext \
31617 conftest$ac_exeext conftest.$ac_ext
31619 if test "$tst_links_gethostname" = "yes"; then
31620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
31621 $as_echo_n "checking if gethostname is prototyped... " >&6; }
31622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31623 /* end confdefs.h. */
31625 $curl_includes_winsock2
31626 $curl_includes_unistd
31629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31630 $EGREP "gethostname" >/dev/null 2>&1; then :
31632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31633 $as_echo "yes" >&6; }
31634 tst_proto_gethostname="yes"
31638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31639 $as_echo "no" >&6; }
31640 tst_proto_gethostname="no"
31647 if test "$tst_proto_gethostname" = "yes"; then
31648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
31649 $as_echo_n "checking if gethostname is compilable... " >&6; }
31650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31651 /* end confdefs.h. */
31654 $curl_includes_winsock2
31655 $curl_includes_unistd
31660 if(0 != gethostname(0, 0))
31668 if ac_fn_c_try_compile "$LINENO"; then :
31670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31671 $as_echo "yes" >&6; }
31672 tst_compi_gethostname="yes"
31676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31677 $as_echo "no" >&6; }
31678 tst_compi_gethostname="no"
31681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31684 if test "$tst_compi_gethostname" = "yes"; then
31685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
31686 $as_echo_n "checking for gethostname arg 2 data type... " >&6; }
31687 tst_gethostname_type_arg2="unknown"
31688 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
31689 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
31690 if test "$tst_gethostname_type_arg2" = "unknown"; then
31691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31692 /* end confdefs.h. */
31695 $curl_includes_winsock2
31696 $curl_includes_unistd
31697 $curl_preprocess_callconv
31698 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
31703 if(0 != gethostname(0, 0))
31711 if ac_fn_c_try_compile "$LINENO"; then :
31713 tst_gethostname_type_arg2="$tst_arg2"
31716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
31721 $as_echo "$tst_gethostname_type_arg2" >&6; }
31722 if test "$tst_gethostname_type_arg2" != "unknown"; then
31724 cat >>confdefs.h <<_ACEOF
31725 #define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
31731 if test "$tst_compi_gethostname" = "yes"; then
31732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
31733 $as_echo_n "checking if gethostname usage allowed... " >&6; }
31734 if test "x$curl_disallow_gethostname" != "xyes"; then
31735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31736 $as_echo "yes" >&6; }
31737 tst_allow_gethostname="yes"
31739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31740 $as_echo "no" >&6; }
31741 tst_allow_gethostname="no"
31745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
31746 $as_echo_n "checking if gethostname might be used... " >&6; }
31747 if test "$tst_links_gethostname" = "yes" &&
31748 test "$tst_proto_gethostname" = "yes" &&
31749 test "$tst_compi_gethostname" = "yes" &&
31750 test "$tst_allow_gethostname" = "yes"; then
31751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31752 $as_echo "yes" >&6; }
31754 cat >>confdefs.h <<_ACEOF
31755 #define HAVE_GETHOSTNAME 1
31758 ac_cv_func_gethostname="yes"
31760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31761 $as_echo "no" >&6; }
31762 ac_cv_func_gethostname="no"
31767 tst_links_getifaddrs="unknown"
31768 tst_proto_getifaddrs="unknown"
31769 tst_compi_getifaddrs="unknown"
31770 tst_works_getifaddrs="unknown"
31771 tst_allow_getifaddrs="unknown"
31773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
31774 $as_echo_n "checking if getifaddrs can be linked... " >&6; }
31775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31776 /* end confdefs.h. */
31779 #define getifaddrs innocuous_getifaddrs
31781 # include <limits.h>
31783 # include <assert.h>
31789 char getifaddrs ();
31790 #if defined __stub_getifaddrs || defined __stub___getifaddrs
31796 return getifaddrs ();
31802 if ac_fn_c_try_link "$LINENO"; then :
31804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31805 $as_echo "yes" >&6; }
31806 tst_links_getifaddrs="yes"
31810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31811 $as_echo "no" >&6; }
31812 tst_links_getifaddrs="no"
31815 rm -f core conftest.err conftest.$ac_objext \
31816 conftest$ac_exeext conftest.$ac_ext
31818 if test "$tst_links_getifaddrs" = "yes"; then
31819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
31820 $as_echo_n "checking if getifaddrs is prototyped... " >&6; }
31821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31822 /* end confdefs.h. */
31824 $curl_includes_ifaddrs
31827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31828 $EGREP "getifaddrs" >/dev/null 2>&1; then :
31830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31831 $as_echo "yes" >&6; }
31832 tst_proto_getifaddrs="yes"
31836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31837 $as_echo "no" >&6; }
31838 tst_proto_getifaddrs="no"
31845 if test "$tst_proto_getifaddrs" = "yes"; then
31846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
31847 $as_echo_n "checking if getifaddrs is compilable... " >&6; }
31848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31849 /* end confdefs.h. */
31852 $curl_includes_ifaddrs
31857 if(0 != getifaddrs(0))
31865 if ac_fn_c_try_compile "$LINENO"; then :
31867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31868 $as_echo "yes" >&6; }
31869 tst_compi_getifaddrs="yes"
31873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31874 $as_echo "no" >&6; }
31875 tst_compi_getifaddrs="no"
31878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31881 if test "x$cross_compiling" != "xyes" &&
31882 test "$tst_compi_getifaddrs" = "yes"; then
31883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
31884 $as_echo_n "checking if getifaddrs seems to work... " >&6; }
31885 if test "$cross_compiling" = yes; then :
31886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31888 as_fn_error $? "cannot run test program while cross compiling
31889 See \`config.log' for more details" "$LINENO" 5; }
31891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31892 /* end confdefs.h. */
31895 $curl_includes_stdlib
31896 $curl_includes_ifaddrs
31901 struct ifaddrs *ifa = 0;
31904 error = getifaddrs(&ifa);
31906 exit(1); /* fail */
31915 if ac_fn_c_try_run "$LINENO"; then :
31917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31918 $as_echo "yes" >&6; }
31919 tst_works_getifaddrs="yes"
31923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31924 $as_echo "no" >&6; }
31925 tst_works_getifaddrs="no"
31928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31929 conftest.$ac_objext conftest.beam conftest.$ac_ext
31934 if test "$tst_compi_getifaddrs" = "yes" &&
31935 test "$tst_works_getifaddrs" != "no"; then
31936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
31937 $as_echo_n "checking if getifaddrs usage allowed... " >&6; }
31938 if test "x$curl_disallow_getifaddrs" != "xyes"; then
31939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31940 $as_echo "yes" >&6; }
31941 tst_allow_getifaddrs="yes"
31943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31944 $as_echo "no" >&6; }
31945 tst_allow_getifaddrs="no"
31949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
31950 $as_echo_n "checking if getifaddrs might be used... " >&6; }
31951 if test "$tst_links_getifaddrs" = "yes" &&
31952 test "$tst_proto_getifaddrs" = "yes" &&
31953 test "$tst_compi_getifaddrs" = "yes" &&
31954 test "$tst_allow_getifaddrs" = "yes" &&
31955 test "$tst_works_getifaddrs" != "no"; then
31956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31957 $as_echo "yes" >&6; }
31959 cat >>confdefs.h <<_ACEOF
31960 #define HAVE_GETIFADDRS 1
31963 ac_cv_func_getifaddrs="yes"
31965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31966 $as_echo "no" >&6; }
31967 ac_cv_func_getifaddrs="no"
31972 tst_links_getservbyport_r="unknown"
31973 tst_proto_getservbyport_r="unknown"
31974 tst_compi_getservbyport_r="unknown"
31975 tst_allow_getservbyport_r="unknown"
31976 tst_nargs_getservbyport_r="unknown"
31978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
31979 $as_echo_n "checking if getservbyport_r can be linked... " >&6; }
31980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31981 /* end confdefs.h. */
31984 #define getservbyport_r innocuous_getservbyport_r
31986 # include <limits.h>
31988 # include <assert.h>
31990 #undef getservbyport_r
31994 char getservbyport_r ();
31995 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
32001 return getservbyport_r ();
32007 if ac_fn_c_try_link "$LINENO"; then :
32009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32010 $as_echo "yes" >&6; }
32011 tst_links_getservbyport_r="yes"
32015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32016 $as_echo "no" >&6; }
32017 tst_links_getservbyport_r="no"
32020 rm -f core conftest.err conftest.$ac_objext \
32021 conftest$ac_exeext conftest.$ac_ext
32023 if test "$tst_links_getservbyport_r" = "yes"; then
32024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
32025 $as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
32026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32027 /* end confdefs.h. */
32029 $curl_includes_netdb
32032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32033 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
32035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32036 $as_echo "yes" >&6; }
32037 tst_proto_getservbyport_r="yes"
32041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32042 $as_echo "no" >&6; }
32043 tst_proto_getservbyport_r="no"
32050 if test "$tst_proto_getservbyport_r" = "yes"; then
32051 if test "$tst_nargs_getservbyport_r" = "unknown"; then
32052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
32053 $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
32054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32055 /* end confdefs.h. */
32058 $curl_includes_netdb
32063 if(0 != getservbyport_r(0, 0, 0, 0))
32071 if ac_fn_c_try_compile "$LINENO"; then :
32073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32074 $as_echo "yes" >&6; }
32075 tst_compi_getservbyport_r="yes"
32076 tst_nargs_getservbyport_r="4"
32080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32081 $as_echo "no" >&6; }
32082 tst_compi_getservbyport_r="no"
32085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32087 if test "$tst_nargs_getservbyport_r" = "unknown"; then
32088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
32089 $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
32090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32091 /* end confdefs.h. */
32094 $curl_includes_netdb
32099 if(0 != getservbyport_r(0, 0, 0, 0, 0))
32107 if ac_fn_c_try_compile "$LINENO"; then :
32109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32110 $as_echo "yes" >&6; }
32111 tst_compi_getservbyport_r="yes"
32112 tst_nargs_getservbyport_r="5"
32116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32117 $as_echo "no" >&6; }
32118 tst_compi_getservbyport_r="no"
32121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32123 if test "$tst_nargs_getservbyport_r" = "unknown"; then
32124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
32125 $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
32126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32127 /* end confdefs.h. */
32130 $curl_includes_netdb
32135 if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
32143 if ac_fn_c_try_compile "$LINENO"; then :
32145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32146 $as_echo "yes" >&6; }
32147 tst_compi_getservbyport_r="yes"
32148 tst_nargs_getservbyport_r="6"
32152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32153 $as_echo "no" >&6; }
32154 tst_compi_getservbyport_r="no"
32157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
32160 $as_echo_n "checking if getservbyport_r is compilable... " >&6; }
32161 if test "$tst_compi_getservbyport_r" = "yes"; then
32162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32163 $as_echo "yes" >&6; }
32165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32166 $as_echo "no" >&6; }
32170 if test "$tst_compi_getservbyport_r" = "yes"; then
32171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
32172 $as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
32173 if test "x$curl_disallow_getservbyport_r" != "xyes"; then
32174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32175 $as_echo "yes" >&6; }
32176 tst_allow_getservbyport_r="yes"
32178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32179 $as_echo "no" >&6; }
32180 tst_allow_getservbyport_r="no"
32184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
32185 $as_echo_n "checking if getservbyport_r might be used... " >&6; }
32186 if test "$tst_links_getservbyport_r" = "yes" &&
32187 test "$tst_proto_getservbyport_r" = "yes" &&
32188 test "$tst_compi_getservbyport_r" = "yes" &&
32189 test "$tst_allow_getservbyport_r" = "yes"; then
32190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32191 $as_echo "yes" >&6; }
32193 cat >>confdefs.h <<_ACEOF
32194 #define HAVE_GETSERVBYPORT_R 1
32198 cat >>confdefs.h <<_ACEOF
32199 #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
32202 if test "$tst_nargs_getservbyport_r" -eq "4"; then
32204 $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
32208 $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
32211 ac_cv_func_getservbyport_r="yes"
32213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32214 $as_echo "no" >&6; }
32215 ac_cv_func_getservbyport_r="no"
32219 curl_includes_time="\
32220 /* includes start */
32221 #ifdef HAVE_SYS_TYPES_H
32222 # include <sys/types.h>
32224 #ifdef HAVE_SYS_TIME_H
32225 # include <sys/time.h>
32226 # ifdef TIME_WITH_SYS_TIME
32230 # ifdef HAVE_TIME_H
32234 /* includes end */"
32235 for ac_header in sys/types.h sys/time.h time.h
32237 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32238 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
32240 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32241 cat >>confdefs.h <<_ACEOF
32242 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32252 tst_links_gmtime_r="unknown"
32253 tst_proto_gmtime_r="unknown"
32254 tst_compi_gmtime_r="unknown"
32255 tst_works_gmtime_r="unknown"
32256 tst_allow_gmtime_r="unknown"
32258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
32259 $as_echo_n "checking if gmtime_r can be linked... " >&6; }
32260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32261 /* end confdefs.h. */
32264 #define gmtime_r innocuous_gmtime_r
32266 # include <limits.h>
32268 # include <assert.h>
32275 #if defined __stub_gmtime_r || defined __stub___gmtime_r
32281 return gmtime_r ();
32287 if ac_fn_c_try_link "$LINENO"; then :
32289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32290 $as_echo "yes" >&6; }
32291 tst_links_gmtime_r="yes"
32295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32296 $as_echo "no" >&6; }
32297 tst_links_gmtime_r="no"
32300 rm -f core conftest.err conftest.$ac_objext \
32301 conftest$ac_exeext conftest.$ac_ext
32303 if test "$tst_links_gmtime_r" = "yes"; then
32304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
32305 $as_echo_n "checking if gmtime_r is prototyped... " >&6; }
32306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32307 /* end confdefs.h. */
32309 $curl_includes_time
32312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32313 $EGREP "gmtime_r" >/dev/null 2>&1; then :
32315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32316 $as_echo "yes" >&6; }
32317 tst_proto_gmtime_r="yes"
32321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32322 $as_echo "no" >&6; }
32323 tst_proto_gmtime_r="no"
32330 if test "$tst_proto_gmtime_r" = "yes"; then
32331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
32332 $as_echo_n "checking if gmtime_r is compilable... " >&6; }
32333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32334 /* end confdefs.h. */
32337 $curl_includes_time
32342 if(0 != gmtime_r(0, 0))
32350 if ac_fn_c_try_compile "$LINENO"; then :
32352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32353 $as_echo "yes" >&6; }
32354 tst_compi_gmtime_r="yes"
32358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32359 $as_echo "no" >&6; }
32360 tst_compi_gmtime_r="no"
32363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32366 if test "x$cross_compiling" != "xyes" &&
32367 test "$tst_compi_gmtime_r" = "yes"; then
32368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
32369 $as_echo_n "checking if gmtime_r seems to work... " >&6; }
32370 if test "$cross_compiling" = yes; then :
32371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32373 as_fn_error $? "cannot run test program while cross compiling
32374 See \`config.log' for more details" "$LINENO" 5; }
32376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32377 /* end confdefs.h. */
32380 $curl_includes_stdlib
32381 $curl_includes_time
32386 time_t local = 1170352587;
32387 struct tm *gmt = 0;
32389 gmt = gmtime_r(&local, &result);
32400 if ac_fn_c_try_run "$LINENO"; then :
32402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32403 $as_echo "yes" >&6; }
32404 tst_works_gmtime_r="yes"
32408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32409 $as_echo "no" >&6; }
32410 tst_works_gmtime_r="no"
32413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32414 conftest.$ac_objext conftest.beam conftest.$ac_ext
32419 if test "$tst_compi_gmtime_r" = "yes" &&
32420 test "$tst_works_gmtime_r" != "no"; then
32421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
32422 $as_echo_n "checking if gmtime_r usage allowed... " >&6; }
32423 if test "x$curl_disallow_gmtime_r" != "xyes"; then
32424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32425 $as_echo "yes" >&6; }
32426 tst_allow_gmtime_r="yes"
32428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32429 $as_echo "no" >&6; }
32430 tst_allow_gmtime_r="no"
32434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
32435 $as_echo_n "checking if gmtime_r might be used... " >&6; }
32436 if test "$tst_links_gmtime_r" = "yes" &&
32437 test "$tst_proto_gmtime_r" = "yes" &&
32438 test "$tst_compi_gmtime_r" = "yes" &&
32439 test "$tst_allow_gmtime_r" = "yes" &&
32440 test "$tst_works_gmtime_r" != "no"; then
32441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32442 $as_echo "yes" >&6; }
32444 cat >>confdefs.h <<_ACEOF
32445 #define HAVE_GMTIME_R 1
32448 ac_cv_func_gmtime_r="yes"
32450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32451 $as_echo "no" >&6; }
32452 ac_cv_func_gmtime_r="no"
32456 curl_includes_arpa_inet="\
32457 /* includes start */
32458 #ifdef HAVE_SYS_TYPES_H
32459 # include <sys/types.h>
32461 #ifdef HAVE_SYS_SOCKET_H
32462 # include <sys/socket.h>
32464 #ifdef HAVE_NETINET_IN_H
32465 # include <netinet/in.h>
32467 #ifdef HAVE_ARPA_INET_H
32468 # include <arpa/inet.h>
32470 /* includes end */"
32471 for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
32473 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32474 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
32476 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32477 cat >>confdefs.h <<_ACEOF
32478 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32488 tst_links_inet_ntoa_r="unknown"
32489 tst_proto_inet_ntoa_r="unknown"
32490 tst_compi_inet_ntoa_r="unknown"
32491 tst_allow_inet_ntoa_r="unknown"
32492 tst_nargs_inet_ntoa_r="unknown"
32494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
32495 $as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
32496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32497 /* end confdefs.h. */
32500 #define inet_ntoa_r innocuous_inet_ntoa_r
32502 # include <limits.h>
32504 # include <assert.h>
32510 char inet_ntoa_r ();
32511 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
32517 return inet_ntoa_r ();
32523 if ac_fn_c_try_link "$LINENO"; then :
32525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32526 $as_echo "yes" >&6; }
32527 tst_links_inet_ntoa_r="yes"
32531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32532 $as_echo "no" >&6; }
32533 tst_links_inet_ntoa_r="no"
32536 rm -f core conftest.err conftest.$ac_objext \
32537 conftest$ac_exeext conftest.$ac_ext
32539 if test "$tst_links_inet_ntoa_r" = "yes"; then
32540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
32541 $as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
32542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32543 /* end confdefs.h. */
32545 $curl_includes_arpa_inet
32548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32549 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
32551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32552 $as_echo "yes" >&6; }
32553 tst_proto_inet_ntoa_r="yes"
32557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32558 $as_echo "no" >&6; }
32559 tst_proto_inet_ntoa_r="no"
32566 if test "$tst_proto_inet_ntoa_r" = "yes"; then
32567 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
32568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
32569 $as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
32570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32571 /* end confdefs.h. */
32574 $curl_includes_arpa_inet
32579 struct in_addr addr;
32580 if(0 != inet_ntoa_r(addr, 0))
32588 if ac_fn_c_try_compile "$LINENO"; then :
32590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32591 $as_echo "yes" >&6; }
32592 tst_compi_inet_ntoa_r="yes"
32593 tst_nargs_inet_ntoa_r="2"
32597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32598 $as_echo "no" >&6; }
32599 tst_compi_inet_ntoa_r="no"
32602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32604 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
32605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
32606 $as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
32607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32608 /* end confdefs.h. */
32611 $curl_includes_arpa_inet
32616 struct in_addr addr;
32617 if(0 != inet_ntoa_r(addr, 0, 0))
32625 if ac_fn_c_try_compile "$LINENO"; then :
32627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32628 $as_echo "yes" >&6; }
32629 tst_compi_inet_ntoa_r="yes"
32630 tst_nargs_inet_ntoa_r="3"
32634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32635 $as_echo "no" >&6; }
32636 tst_compi_inet_ntoa_r="no"
32639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
32642 $as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
32643 if test "$tst_compi_inet_ntoa_r" = "yes"; then
32644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32645 $as_echo "yes" >&6; }
32647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32648 $as_echo "no" >&6; }
32652 if test "$tst_compi_inet_ntoa_r" = "yes"; then
32653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
32654 $as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
32655 if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
32656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32657 $as_echo "yes" >&6; }
32658 tst_allow_inet_ntoa_r="yes"
32660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32661 $as_echo "no" >&6; }
32662 tst_allow_inet_ntoa_r="no"
32666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
32667 $as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
32668 if test "$tst_links_inet_ntoa_r" = "yes" &&
32669 test "$tst_proto_inet_ntoa_r" = "yes" &&
32670 test "$tst_compi_inet_ntoa_r" = "yes" &&
32671 test "$tst_allow_inet_ntoa_r" = "yes"; then
32672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32673 $as_echo "yes" >&6; }
32675 cat >>confdefs.h <<_ACEOF
32676 #define HAVE_INET_NTOA_R 1
32680 if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
32682 $as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
32684 elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
32686 $as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
32690 ac_cv_func_inet_ntoa_r="yes"
32692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32693 $as_echo "no" >&6; }
32694 ac_cv_func_inet_ntoa_r="no"
32699 tst_links_inet_ntop="unknown"
32700 tst_proto_inet_ntop="unknown"
32701 tst_compi_inet_ntop="unknown"
32702 tst_works_inet_ntop="unknown"
32703 tst_allow_inet_ntop="unknown"
32705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
32706 $as_echo_n "checking if inet_ntop can be linked... " >&6; }
32707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32708 /* end confdefs.h. */
32711 #define inet_ntop innocuous_inet_ntop
32713 # include <limits.h>
32715 # include <assert.h>
32722 #if defined __stub_inet_ntop || defined __stub___inet_ntop
32728 return inet_ntop ();
32734 if ac_fn_c_try_link "$LINENO"; then :
32736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32737 $as_echo "yes" >&6; }
32738 tst_links_inet_ntop="yes"
32742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32743 $as_echo "no" >&6; }
32744 tst_links_inet_ntop="no"
32747 rm -f core conftest.err conftest.$ac_objext \
32748 conftest$ac_exeext conftest.$ac_ext
32750 if test "$tst_links_inet_ntop" = "yes"; then
32751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
32752 $as_echo_n "checking if inet_ntop is prototyped... " >&6; }
32753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32754 /* end confdefs.h. */
32756 $curl_includes_arpa_inet
32759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32760 $EGREP "inet_ntop" >/dev/null 2>&1; then :
32762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32763 $as_echo "yes" >&6; }
32764 tst_proto_inet_ntop="yes"
32768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32769 $as_echo "no" >&6; }
32770 tst_proto_inet_ntop="no"
32777 if test "$tst_proto_inet_ntop" = "yes"; then
32778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
32779 $as_echo_n "checking if inet_ntop is compilable... " >&6; }
32780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32781 /* end confdefs.h. */
32784 $curl_includes_arpa_inet
32789 if(0 != inet_ntop(0, 0, 0, 0))
32797 if ac_fn_c_try_compile "$LINENO"; then :
32799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32800 $as_echo "yes" >&6; }
32801 tst_compi_inet_ntop="yes"
32805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32806 $as_echo "no" >&6; }
32807 tst_compi_inet_ntop="no"
32810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32813 if test "x$cross_compiling" != "xyes" &&
32814 test "$tst_compi_inet_ntop" = "yes"; then
32815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
32816 $as_echo_n "checking if inet_ntop seems to work... " >&6; }
32817 if test "$cross_compiling" = yes; then :
32818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32820 as_fn_error $? "cannot run test program while cross compiling
32821 See \`config.log' for more details" "$LINENO" 5; }
32823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32824 /* end confdefs.h. */
32827 $curl_includes_stdlib
32828 $curl_includes_arpa_inet
32829 $curl_includes_string
32834 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
32835 char ipv4res[sizeof "255.255.255.255"];
32836 unsigned char ipv6a[26];
32837 unsigned char ipv4a[5];
32848 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
32850 exit(1); /* fail */
32851 if(ipv4ptr != ipv4res)
32852 exit(1); /* fail */
32854 exit(1); /* fail */
32855 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
32856 exit(1); /* fail */
32859 memset(ipv6a, 0, sizeof(ipv6a));
32872 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
32874 exit(1); /* fail */
32875 if(ipv6ptr != ipv6res)
32876 exit(1); /* fail */
32878 exit(1); /* fail */
32879 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
32880 exit(1); /* fail */
32889 if ac_fn_c_try_run "$LINENO"; then :
32891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32892 $as_echo "yes" >&6; }
32893 tst_works_inet_ntop="yes"
32897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32898 $as_echo "no" >&6; }
32899 tst_works_inet_ntop="no"
32902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32903 conftest.$ac_objext conftest.beam conftest.$ac_ext
32908 if test "$tst_compi_inet_ntop" = "yes" &&
32909 test "$tst_works_inet_ntop" != "no"; then
32910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
32911 $as_echo_n "checking if inet_ntop usage allowed... " >&6; }
32912 if test "x$curl_disallow_inet_ntop" != "xyes"; then
32913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32914 $as_echo "yes" >&6; }
32915 tst_allow_inet_ntop="yes"
32917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32918 $as_echo "no" >&6; }
32919 tst_allow_inet_ntop="no"
32923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
32924 $as_echo_n "checking if inet_ntop might be used... " >&6; }
32925 if test "$tst_links_inet_ntop" = "yes" &&
32926 test "$tst_proto_inet_ntop" = "yes" &&
32927 test "$tst_compi_inet_ntop" = "yes" &&
32928 test "$tst_allow_inet_ntop" = "yes" &&
32929 test "$tst_works_inet_ntop" != "no"; then
32930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32931 $as_echo "yes" >&6; }
32933 cat >>confdefs.h <<_ACEOF
32934 #define HAVE_INET_NTOP 1
32937 ac_cv_func_inet_ntop="yes"
32939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32940 $as_echo "no" >&6; }
32941 ac_cv_func_inet_ntop="no"
32946 tst_links_inet_pton="unknown"
32947 tst_proto_inet_pton="unknown"
32948 tst_compi_inet_pton="unknown"
32949 tst_works_inet_pton="unknown"
32950 tst_allow_inet_pton="unknown"
32952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
32953 $as_echo_n "checking if inet_pton can be linked... " >&6; }
32954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32955 /* end confdefs.h. */
32958 #define inet_pton innocuous_inet_pton
32960 # include <limits.h>
32962 # include <assert.h>
32969 #if defined __stub_inet_pton || defined __stub___inet_pton
32975 return inet_pton ();
32981 if ac_fn_c_try_link "$LINENO"; then :
32983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32984 $as_echo "yes" >&6; }
32985 tst_links_inet_pton="yes"
32989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32990 $as_echo "no" >&6; }
32991 tst_links_inet_pton="no"
32994 rm -f core conftest.err conftest.$ac_objext \
32995 conftest$ac_exeext conftest.$ac_ext
32997 if test "$tst_links_inet_pton" = "yes"; then
32998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
32999 $as_echo_n "checking if inet_pton is prototyped... " >&6; }
33000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33001 /* end confdefs.h. */
33003 $curl_includes_arpa_inet
33006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33007 $EGREP "inet_pton" >/dev/null 2>&1; then :
33009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33010 $as_echo "yes" >&6; }
33011 tst_proto_inet_pton="yes"
33015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33016 $as_echo "no" >&6; }
33017 tst_proto_inet_pton="no"
33024 if test "$tst_proto_inet_pton" = "yes"; then
33025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
33026 $as_echo_n "checking if inet_pton is compilable... " >&6; }
33027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33028 /* end confdefs.h. */
33031 $curl_includes_arpa_inet
33036 if(0 != inet_pton(0, 0, 0))
33044 if ac_fn_c_try_compile "$LINENO"; then :
33046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33047 $as_echo "yes" >&6; }
33048 tst_compi_inet_pton="yes"
33052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33053 $as_echo "no" >&6; }
33054 tst_compi_inet_pton="no"
33057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33060 if test "x$cross_compiling" != "xyes" &&
33061 test "$tst_compi_inet_pton" = "yes"; then
33062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
33063 $as_echo_n "checking if inet_pton seems to work... " >&6; }
33064 if test "$cross_compiling" = yes; then :
33065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33067 as_fn_error $? "cannot run test program while cross compiling
33068 See \`config.log' for more details" "$LINENO" 5; }
33070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33071 /* end confdefs.h. */
33074 $curl_includes_stdlib
33075 $curl_includes_arpa_inet
33076 $curl_includes_string
33081 unsigned char ipv6a[16+1];
33082 unsigned char ipv4a[4+1];
33083 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
33084 const char *ipv4src = "192.168.100.1";
33086 memset(ipv4a, 1, sizeof(ipv4a));
33087 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
33088 exit(1); /* fail */
33090 if( (ipv4a[0] != 0xc0) ||
33091 (ipv4a[1] != 0xa8) ||
33092 (ipv4a[2] != 0x64) ||
33093 (ipv4a[3] != 0x01) ||
33094 (ipv4a[4] != 0x01) )
33095 exit(1); /* fail */
33097 memset(ipv6a, 1, sizeof(ipv6a));
33098 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
33099 exit(1); /* fail */
33101 if( (ipv6a[0] != 0xfe) ||
33102 (ipv6a[1] != 0x80) ||
33103 (ipv6a[8] != 0x02) ||
33104 (ipv6a[9] != 0x14) ||
33105 (ipv6a[10] != 0x4f) ||
33106 (ipv6a[11] != 0xff) ||
33107 (ipv6a[12] != 0xfe) ||
33108 (ipv6a[13] != 0x0b) ||
33109 (ipv6a[14] != 0x76) ||
33110 (ipv6a[15] != 0xc8) ||
33111 (ipv6a[16] != 0x01) )
33112 exit(1); /* fail */
33114 if( (ipv6a[2] != 0x0) ||
33115 (ipv6a[3] != 0x0) ||
33116 (ipv6a[4] != 0x0) ||
33117 (ipv6a[5] != 0x0) ||
33118 (ipv6a[6] != 0x0) ||
33119 (ipv6a[7] != 0x0) )
33120 exit(1); /* fail */
33129 if ac_fn_c_try_run "$LINENO"; then :
33131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33132 $as_echo "yes" >&6; }
33133 tst_works_inet_pton="yes"
33137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33138 $as_echo "no" >&6; }
33139 tst_works_inet_pton="no"
33142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33143 conftest.$ac_objext conftest.beam conftest.$ac_ext
33148 if test "$tst_compi_inet_pton" = "yes" &&
33149 test "$tst_works_inet_pton" != "no"; then
33150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
33151 $as_echo_n "checking if inet_pton usage allowed... " >&6; }
33152 if test "x$curl_disallow_inet_pton" != "xyes"; then
33153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33154 $as_echo "yes" >&6; }
33155 tst_allow_inet_pton="yes"
33157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33158 $as_echo "no" >&6; }
33159 tst_allow_inet_pton="no"
33163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
33164 $as_echo_n "checking if inet_pton might be used... " >&6; }
33165 if test "$tst_links_inet_pton" = "yes" &&
33166 test "$tst_proto_inet_pton" = "yes" &&
33167 test "$tst_compi_inet_pton" = "yes" &&
33168 test "$tst_allow_inet_pton" = "yes" &&
33169 test "$tst_works_inet_pton" != "no"; then
33170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33171 $as_echo "yes" >&6; }
33173 cat >>confdefs.h <<_ACEOF
33174 #define HAVE_INET_PTON 1
33177 ac_cv_func_inet_pton="yes"
33179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33180 $as_echo "no" >&6; }
33181 ac_cv_func_inet_pton="no"
33185 curl_includes_stropts="\
33186 /* includes start */
33187 #ifdef HAVE_SYS_TYPES_H
33188 # include <sys/types.h>
33190 #ifdef HAVE_UNISTD_H
33191 # include <unistd.h>
33193 #ifdef HAVE_SYS_SOCKET_H
33194 # include <sys/socket.h>
33196 #ifdef HAVE_SYS_IOCTL_H
33197 # include <sys/ioctl.h>
33199 #ifdef HAVE_STROPTS_H
33200 # include <stropts.h>
33202 /* includes end */"
33203 for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
33205 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33206 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
33208 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33209 cat >>confdefs.h <<_ACEOF
33210 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33220 tst_links_ioctl="unknown"
33221 tst_proto_ioctl="unknown"
33222 tst_compi_ioctl="unknown"
33223 tst_allow_ioctl="unknown"
33225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
33226 $as_echo_n "checking if ioctl can be linked... " >&6; }
33227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33228 /* end confdefs.h. */
33231 #define ioctl innocuous_ioctl
33233 # include <limits.h>
33235 # include <assert.h>
33242 #if defined __stub_ioctl || defined __stub___ioctl
33254 if ac_fn_c_try_link "$LINENO"; then :
33256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33257 $as_echo "yes" >&6; }
33258 tst_links_ioctl="yes"
33262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33263 $as_echo "no" >&6; }
33264 tst_links_ioctl="no"
33267 rm -f core conftest.err conftest.$ac_objext \
33268 conftest$ac_exeext conftest.$ac_ext
33270 if test "$tst_links_ioctl" = "yes"; then
33271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
33272 $as_echo_n "checking if ioctl is prototyped... " >&6; }
33273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33274 /* end confdefs.h. */
33276 $curl_includes_stropts
33279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33280 $EGREP "ioctl" >/dev/null 2>&1; then :
33282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33283 $as_echo "yes" >&6; }
33284 tst_proto_ioctl="yes"
33288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33289 $as_echo "no" >&6; }
33290 tst_proto_ioctl="no"
33297 if test "$tst_proto_ioctl" = "yes"; then
33298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
33299 $as_echo_n "checking if ioctl is compilable... " >&6; }
33300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33301 /* end confdefs.h. */
33304 $curl_includes_stropts
33309 if(0 != ioctl(0, 0, 0))
33317 if ac_fn_c_try_compile "$LINENO"; then :
33319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33320 $as_echo "yes" >&6; }
33321 tst_compi_ioctl="yes"
33325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33326 $as_echo "no" >&6; }
33327 tst_compi_ioctl="no"
33330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33333 if test "$tst_compi_ioctl" = "yes"; then
33334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
33335 $as_echo_n "checking if ioctl usage allowed... " >&6; }
33336 if test "x$curl_disallow_ioctl" != "xyes"; then
33337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33338 $as_echo "yes" >&6; }
33339 tst_allow_ioctl="yes"
33341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33342 $as_echo "no" >&6; }
33343 tst_allow_ioctl="no"
33347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
33348 $as_echo_n "checking if ioctl might be used... " >&6; }
33349 if test "$tst_links_ioctl" = "yes" &&
33350 test "$tst_proto_ioctl" = "yes" &&
33351 test "$tst_compi_ioctl" = "yes" &&
33352 test "$tst_allow_ioctl" = "yes"; then
33353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33354 $as_echo "yes" >&6; }
33356 cat >>confdefs.h <<_ACEOF
33357 #define HAVE_IOCTL 1
33360 ac_cv_func_ioctl="yes"
33363 tst_compi_ioctl_fionbio="unknown"
33364 tst_allow_ioctl_fionbio="unknown"
33366 if test "$ac_cv_func_ioctl" = "yes"; then
33367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
33368 $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
33369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33370 /* end confdefs.h. */
33373 $curl_includes_stropts
33379 if(0 != ioctl(0, FIONBIO, &flags))
33387 if ac_fn_c_try_compile "$LINENO"; then :
33389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33390 $as_echo "yes" >&6; }
33391 tst_compi_ioctl_fionbio="yes"
33395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33396 $as_echo "no" >&6; }
33397 tst_compi_ioctl_fionbio="no"
33400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33403 if test "$tst_compi_ioctl_fionbio" = "yes"; then
33404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
33405 $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
33406 if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
33407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33408 $as_echo "yes" >&6; }
33409 tst_allow_ioctl_fionbio="yes"
33411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33412 $as_echo "no" >&6; }
33413 tst_allow_ioctl_fionbio="no"
33417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
33418 $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
33419 if test "$tst_compi_ioctl_fionbio" = "yes" &&
33420 test "$tst_allow_ioctl_fionbio" = "yes"; then
33421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33422 $as_echo "yes" >&6; }
33424 cat >>confdefs.h <<_ACEOF
33425 #define HAVE_IOCTL_FIONBIO 1
33428 ac_cv_func_ioctl_fionbio="yes"
33430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33431 $as_echo "no" >&6; }
33432 ac_cv_func_ioctl_fionbio="no"
33437 tst_compi_ioctl_siocgifaddr="unknown"
33438 tst_allow_ioctl_siocgifaddr="unknown"
33440 if test "$ac_cv_func_ioctl" = "yes"; then
33441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
33442 $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
33443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33444 /* end confdefs.h. */
33447 $curl_includes_stropts
33448 #include <net/if.h>
33454 if(0 != ioctl(0, SIOCGIFADDR, &ifr))
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_siocgifaddr="yes"
33470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33471 $as_echo "no" >&6; }
33472 tst_compi_ioctl_siocgifaddr="no"
33475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33478 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
33479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
33480 $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
33481 if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
33482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33483 $as_echo "yes" >&6; }
33484 tst_allow_ioctl_siocgifaddr="yes"
33486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33487 $as_echo "no" >&6; }
33488 tst_allow_ioctl_siocgifaddr="no"
33492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
33493 $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
33494 if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
33495 test "$tst_allow_ioctl_siocgifaddr" = "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_SIOCGIFADDR 1
33503 ac_cv_func_ioctl_siocgifaddr="yes"
33505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33506 $as_echo "no" >&6; }
33507 ac_cv_func_ioctl_siocgifaddr="no"
33511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33512 $as_echo "no" >&6; }
33513 ac_cv_func_ioctl="no"
33518 tst_links_ioctlsocket="unknown"
33519 tst_proto_ioctlsocket="unknown"
33520 tst_compi_ioctlsocket="unknown"
33521 tst_allow_ioctlsocket="unknown"
33523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
33524 $as_echo_n "checking if ioctlsocket can be linked... " >&6; }
33525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33526 /* end confdefs.h. */
33529 $curl_includes_winsock2
33534 if(0 != ioctlsocket(0, 0, 0))
33542 if ac_fn_c_try_link "$LINENO"; then :
33544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33545 $as_echo "yes" >&6; }
33546 tst_links_ioctlsocket="yes"
33550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33551 $as_echo "no" >&6; }
33552 tst_links_ioctlsocket="no"
33555 rm -f core conftest.err conftest.$ac_objext \
33556 conftest$ac_exeext conftest.$ac_ext
33558 if test "$tst_links_ioctlsocket" = "yes"; then
33559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
33560 $as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
33561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33562 /* end confdefs.h. */
33564 $curl_includes_winsock2
33567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33568 $EGREP "ioctlsocket" >/dev/null 2>&1; then :
33570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33571 $as_echo "yes" >&6; }
33572 tst_proto_ioctlsocket="yes"
33576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33577 $as_echo "no" >&6; }
33578 tst_proto_ioctlsocket="no"
33585 if test "$tst_proto_ioctlsocket" = "yes"; then
33586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
33587 $as_echo_n "checking if ioctlsocket is compilable... " >&6; }
33588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33589 /* end confdefs.h. */
33592 $curl_includes_winsock2
33597 if(0 != ioctlsocket(0, 0, 0))
33605 if ac_fn_c_try_compile "$LINENO"; then :
33607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33608 $as_echo "yes" >&6; }
33609 tst_compi_ioctlsocket="yes"
33613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33614 $as_echo "no" >&6; }
33615 tst_compi_ioctlsocket="no"
33618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33621 if test "$tst_compi_ioctlsocket" = "yes"; then
33622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
33623 $as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
33624 if test "x$curl_disallow_ioctlsocket" != "xyes"; then
33625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33626 $as_echo "yes" >&6; }
33627 tst_allow_ioctlsocket="yes"
33629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33630 $as_echo "no" >&6; }
33631 tst_allow_ioctlsocket="no"
33635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
33636 $as_echo_n "checking if ioctlsocket might be used... " >&6; }
33637 if test "$tst_links_ioctlsocket" = "yes" &&
33638 test "$tst_proto_ioctlsocket" = "yes" &&
33639 test "$tst_compi_ioctlsocket" = "yes" &&
33640 test "$tst_allow_ioctlsocket" = "yes"; then
33641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33642 $as_echo "yes" >&6; }
33644 cat >>confdefs.h <<_ACEOF
33645 #define HAVE_IOCTLSOCKET 1
33648 ac_cv_func_ioctlsocket="yes"
33651 tst_compi_ioctlsocket_fionbio="unknown"
33652 tst_allow_ioctlsocket_fionbio="unknown"
33654 if test "$ac_cv_func_ioctlsocket" = "yes"; then
33655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
33656 $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
33657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33658 /* end confdefs.h. */
33661 $curl_includes_winsock2
33667 if(0 != ioctlsocket(0, FIONBIO, &flags))
33675 if ac_fn_c_try_compile "$LINENO"; then :
33677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33678 $as_echo "yes" >&6; }
33679 tst_compi_ioctlsocket_fionbio="yes"
33683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33684 $as_echo "no" >&6; }
33685 tst_compi_ioctlsocket_fionbio="no"
33688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33691 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
33692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
33693 $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
33694 if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
33695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33696 $as_echo "yes" >&6; }
33697 tst_allow_ioctlsocket_fionbio="yes"
33699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33700 $as_echo "no" >&6; }
33701 tst_allow_ioctlsocket_fionbio="no"
33705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
33706 $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
33707 if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
33708 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
33709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33710 $as_echo "yes" >&6; }
33712 cat >>confdefs.h <<_ACEOF
33713 #define HAVE_IOCTLSOCKET_FIONBIO 1
33716 ac_cv_func_ioctlsocket_fionbio="yes"
33718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33719 $as_echo "no" >&6; }
33720 ac_cv_func_ioctlsocket_fionbio="no"
33724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33725 $as_echo "no" >&6; }
33726 ac_cv_func_ioctlsocket="no"
33731 tst_links_ioctlsocket_camel="unknown"
33732 tst_proto_ioctlsocket_camel="unknown"
33733 tst_compi_ioctlsocket_camel="unknown"
33734 tst_allow_ioctlsocket_camel="unknown"
33736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
33737 $as_echo_n "checking if IoctlSocket can be linked... " >&6; }
33738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33739 /* end confdefs.h. */
33742 #define IoctlSocket innocuous_IoctlSocket
33744 # include <limits.h>
33746 # include <assert.h>
33752 char IoctlSocket ();
33753 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
33759 return IoctlSocket ();
33765 if ac_fn_c_try_link "$LINENO"; then :
33767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33768 $as_echo "yes" >&6; }
33769 tst_links_ioctlsocket_camel="yes"
33773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33774 $as_echo "no" >&6; }
33775 tst_links_ioctlsocket_camel="no"
33778 rm -f core conftest.err conftest.$ac_objext \
33779 conftest$ac_exeext conftest.$ac_ext
33781 if test "$tst_links_ioctlsocket_camel" = "yes"; then
33782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
33783 $as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
33784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33785 /* end confdefs.h. */
33787 $curl_includes_stropts
33790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33791 $EGREP "IoctlSocket" >/dev/null 2>&1; then :
33793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33794 $as_echo "yes" >&6; }
33795 tst_proto_ioctlsocket_camel="yes"
33799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33800 $as_echo "no" >&6; }
33801 tst_proto_ioctlsocket_camel="no"
33808 if test "$tst_proto_ioctlsocket_camel" = "yes"; then
33809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
33810 $as_echo_n "checking if IoctlSocket is compilable... " >&6; }
33811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33812 /* end confdefs.h. */
33815 $curl_includes_stropts
33820 if(0 != IoctlSocket(0, 0, 0))
33828 if ac_fn_c_try_compile "$LINENO"; then :
33830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33831 $as_echo "yes" >&6; }
33832 tst_compi_ioctlsocket_camel="yes"
33836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33837 $as_echo "no" >&6; }
33838 tst_compi_ioctlsocket_camel="no"
33841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33844 if test "$tst_compi_ioctlsocket_camel" = "yes"; then
33845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
33846 $as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
33847 if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
33848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33849 $as_echo "yes" >&6; }
33850 tst_allow_ioctlsocket_camel="yes"
33852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33853 $as_echo "no" >&6; }
33854 tst_allow_ioctlsocket_camel="no"
33858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
33859 $as_echo_n "checking if IoctlSocket might be used... " >&6; }
33860 if test "$tst_links_ioctlsocket_camel" = "yes" &&
33861 test "$tst_proto_ioctlsocket_camel" = "yes" &&
33862 test "$tst_compi_ioctlsocket_camel" = "yes" &&
33863 test "$tst_allow_ioctlsocket_camel" = "yes"; then
33864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33865 $as_echo "yes" >&6; }
33867 cat >>confdefs.h <<_ACEOF
33868 #define HAVE_IOCTLSOCKET_CAMEL 1
33871 ac_cv_func_ioctlsocket_camel="yes"
33874 tst_compi_ioctlsocket_camel_fionbio="unknown"
33875 tst_allow_ioctlsocket_camel_fionbio="unknown"
33877 if test "$ac_cv_func_ioctlsocket_camel" = "yes"; then
33878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
33879 $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
33880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33881 /* end confdefs.h. */
33884 $curl_includes_stropts
33890 if(0 != ioctlsocket(0, FIONBIO, &flags))
33898 if ac_fn_c_try_compile "$LINENO"; then :
33900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33901 $as_echo "yes" >&6; }
33902 tst_compi_ioctlsocket_camel_fionbio="yes"
33906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33907 $as_echo "no" >&6; }
33908 tst_compi_ioctlsocket_camel_fionbio="no"
33911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33914 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
33915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
33916 $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
33917 if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
33918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33919 $as_echo "yes" >&6; }
33920 tst_allow_ioctlsocket_camel_fionbio="yes"
33922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33923 $as_echo "no" >&6; }
33924 tst_allow_ioctlsocket_camel_fionbio="no"
33928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
33929 $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
33930 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
33931 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
33932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33933 $as_echo "yes" >&6; }
33935 cat >>confdefs.h <<_ACEOF
33936 #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
33939 ac_cv_func_ioctlsocket_camel_fionbio="yes"
33941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33942 $as_echo "no" >&6; }
33943 ac_cv_func_ioctlsocket_camel_fionbio="no"
33947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33948 $as_echo "no" >&6; }
33949 ac_cv_func_ioctlsocket_camel="no"
33954 tst_links_localtime_r="unknown"
33955 tst_proto_localtime_r="unknown"
33956 tst_compi_localtime_r="unknown"
33957 tst_works_localtime_r="unknown"
33958 tst_allow_localtime_r="unknown"
33960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
33961 $as_echo_n "checking if localtime_r can be linked... " >&6; }
33962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33963 /* end confdefs.h. */
33966 #define localtime_r innocuous_localtime_r
33968 # include <limits.h>
33970 # include <assert.h>
33976 char localtime_r ();
33977 #if defined __stub_localtime_r || defined __stub___localtime_r
33983 return localtime_r ();
33989 if ac_fn_c_try_link "$LINENO"; then :
33991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33992 $as_echo "yes" >&6; }
33993 tst_links_localtime_r="yes"
33997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33998 $as_echo "no" >&6; }
33999 tst_links_localtime_r="no"
34002 rm -f core conftest.err conftest.$ac_objext \
34003 conftest$ac_exeext conftest.$ac_ext
34005 if test "$tst_links_localtime_r" = "yes"; then
34006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
34007 $as_echo_n "checking if localtime_r is prototyped... " >&6; }
34008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34009 /* end confdefs.h. */
34011 $curl_includes_time
34014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34015 $EGREP "localtime_r" >/dev/null 2>&1; then :
34017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34018 $as_echo "yes" >&6; }
34019 tst_proto_localtime_r="yes"
34023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34024 $as_echo "no" >&6; }
34025 tst_proto_localtime_r="no"
34032 if test "$tst_proto_localtime_r" = "yes"; then
34033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
34034 $as_echo_n "checking if localtime_r is compilable... " >&6; }
34035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34036 /* end confdefs.h. */
34039 $curl_includes_time
34044 if(0 != localtime_r(0, 0))
34052 if ac_fn_c_try_compile "$LINENO"; then :
34054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34055 $as_echo "yes" >&6; }
34056 tst_compi_localtime_r="yes"
34060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34061 $as_echo "no" >&6; }
34062 tst_compi_localtime_r="no"
34065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34068 if test "x$cross_compiling" != "xyes" &&
34069 test "$tst_compi_localtime_r" = "yes"; then
34070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
34071 $as_echo_n "checking if localtime_r seems to work... " >&6; }
34072 if test "$cross_compiling" = yes; then :
34073 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34075 as_fn_error $? "cannot run test program while cross compiling
34076 See \`config.log' for more details" "$LINENO" 5; }
34078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34079 /* end confdefs.h. */
34082 $curl_includes_stdlib
34083 $curl_includes_time
34088 time_t clock = 1170352587;
34089 struct tm *tmp = 0;
34091 tmp = localtime_r(&clock, &result);
34102 if ac_fn_c_try_run "$LINENO"; then :
34104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34105 $as_echo "yes" >&6; }
34106 tst_works_localtime_r="yes"
34110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34111 $as_echo "no" >&6; }
34112 tst_works_localtime_r="no"
34115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34116 conftest.$ac_objext conftest.beam conftest.$ac_ext
34121 if test "$tst_compi_localtime_r" = "yes" &&
34122 test "$tst_works_localtime_r" != "no"; then
34123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
34124 $as_echo_n "checking if localtime_r usage allowed... " >&6; }
34125 if test "x$curl_disallow_localtime_r" != "xyes"; then
34126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34127 $as_echo "yes" >&6; }
34128 tst_allow_localtime_r="yes"
34130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34131 $as_echo "no" >&6; }
34132 tst_allow_localtime_r="no"
34136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
34137 $as_echo_n "checking if localtime_r might be used... " >&6; }
34138 if test "$tst_links_localtime_r" = "yes" &&
34139 test "$tst_proto_localtime_r" = "yes" &&
34140 test "$tst_compi_localtime_r" = "yes" &&
34141 test "$tst_allow_localtime_r" = "yes" &&
34142 test "$tst_works_localtime_r" != "no"; then
34143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34144 $as_echo "yes" >&6; }
34146 cat >>confdefs.h <<_ACEOF
34147 #define HAVE_LOCALTIME_R 1
34150 ac_cv_func_localtime_r="yes"
34152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34153 $as_echo "no" >&6; }
34154 ac_cv_func_localtime_r="no"
34159 tst_links_memrchr="unknown"
34160 tst_macro_memrchr="unknown"
34161 tst_proto_memrchr="unknown"
34162 tst_compi_memrchr="unknown"
34163 tst_allow_memrchr="unknown"
34165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
34166 $as_echo_n "checking if memrchr can be linked... " >&6; }
34167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34168 /* end confdefs.h. */
34171 #define memrchr innocuous_memrchr
34173 # include <limits.h>
34175 # include <assert.h>
34182 #if defined __stub_memrchr || defined __stub___memrchr
34194 if ac_fn_c_try_link "$LINENO"; then :
34196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34197 $as_echo "yes" >&6; }
34198 tst_links_memrchr="yes"
34202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34203 $as_echo "no" >&6; }
34204 tst_links_memrchr="no"
34207 rm -f core conftest.err conftest.$ac_objext \
34208 conftest$ac_exeext conftest.$ac_ext
34210 if test "$tst_links_memrchr" = "no"; then
34211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
34212 $as_echo_n "checking if memrchr seems a macro... " >&6; }
34213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34214 /* end confdefs.h. */
34217 $curl_includes_string
34222 if(0 != memrchr(0, 0, 0))
34230 if ac_fn_c_try_link "$LINENO"; then :
34232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34233 $as_echo "yes" >&6; }
34234 tst_macro_memrchr="yes"
34238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34239 $as_echo "no" >&6; }
34240 tst_macro_memrchr="no"
34243 rm -f core conftest.err conftest.$ac_objext \
34244 conftest$ac_exeext conftest.$ac_ext
34247 if test "$tst_links_memrchr" = "yes"; then
34248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
34249 $as_echo_n "checking if memrchr is prototyped... " >&6; }
34250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34251 /* end confdefs.h. */
34253 $curl_includes_string
34256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34257 $EGREP "memrchr" >/dev/null 2>&1; then :
34259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34260 $as_echo "yes" >&6; }
34261 tst_proto_memrchr="yes"
34265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34266 $as_echo "no" >&6; }
34267 tst_proto_memrchr="no"
34274 if test "$tst_proto_memrchr" = "yes" ||
34275 test "$tst_macro_memrchr" = "yes"; then
34276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
34277 $as_echo_n "checking if memrchr is compilable... " >&6; }
34278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34279 /* end confdefs.h. */
34282 $curl_includes_string
34287 if(0 != memrchr(0, 0, 0))
34295 if ac_fn_c_try_compile "$LINENO"; then :
34297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34298 $as_echo "yes" >&6; }
34299 tst_compi_memrchr="yes"
34303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34304 $as_echo "no" >&6; }
34305 tst_compi_memrchr="no"
34308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34311 if test "$tst_compi_memrchr" = "yes"; then
34312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
34313 $as_echo_n "checking if memrchr usage allowed... " >&6; }
34314 if test "x$curl_disallow_memrchr" != "xyes"; then
34315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34316 $as_echo "yes" >&6; }
34317 tst_allow_memrchr="yes"
34319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34320 $as_echo "no" >&6; }
34321 tst_allow_memrchr="no"
34325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
34326 $as_echo_n "checking if memrchr might be used... " >&6; }
34327 if (test "$tst_proto_memrchr" = "yes" ||
34328 test "$tst_macro_memrchr" = "yes") &&
34329 test "$tst_compi_memrchr" = "yes" &&
34330 test "$tst_allow_memrchr" = "yes"; then
34331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34332 $as_echo "yes" >&6; }
34334 cat >>confdefs.h <<_ACEOF
34335 #define HAVE_MEMRCHR 1
34338 ac_cv_func_memrchr="yes"
34340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34341 $as_echo "no" >&6; }
34342 ac_cv_func_memrchr="no"
34347 tst_links_poll="unknown"
34348 tst_proto_poll="unknown"
34349 tst_compi_poll="unknown"
34350 tst_works_poll="unknown"
34351 tst_allow_poll="unknown"
34355 curl_disallow_poll="yes"
34359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
34360 $as_echo_n "checking if poll can be linked... " >&6; }
34361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34362 /* end confdefs.h. */
34365 $curl_includes_poll
34370 if(0 != poll(0, 0, 0))
34378 if ac_fn_c_try_link "$LINENO"; then :
34380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34381 $as_echo "yes" >&6; }
34382 tst_links_poll="yes"
34386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34387 $as_echo "no" >&6; }
34388 tst_links_poll="no"
34391 rm -f core conftest.err conftest.$ac_objext \
34392 conftest$ac_exeext conftest.$ac_ext
34394 if test "$tst_links_poll" = "yes"; then
34395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
34396 $as_echo_n "checking if poll is prototyped... " >&6; }
34397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34398 /* end confdefs.h. */
34400 $curl_includes_poll
34403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34404 $EGREP "poll" >/dev/null 2>&1; then :
34406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34407 $as_echo "yes" >&6; }
34408 tst_proto_poll="yes"
34412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34413 $as_echo "no" >&6; }
34414 tst_proto_poll="no"
34421 if test "$tst_proto_poll" = "yes"; then
34422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
34423 $as_echo_n "checking if poll is compilable... " >&6; }
34424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34425 /* end confdefs.h. */
34428 $curl_includes_poll
34433 if(0 != poll(0, 0, 0))
34441 if ac_fn_c_try_compile "$LINENO"; then :
34443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34444 $as_echo "yes" >&6; }
34445 tst_compi_poll="yes"
34449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34450 $as_echo "no" >&6; }
34451 tst_compi_poll="no"
34454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34457 if test "x$cross_compiling" != "xyes" &&
34458 test "$tst_compi_poll" = "yes"; then
34459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
34460 $as_echo_n "checking if poll seems to work... " >&6; }
34461 if test "$cross_compiling" = yes; then :
34462 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34464 as_fn_error $? "cannot run test program while cross compiling
34465 See \`config.log' for more details" "$LINENO" 5; }
34467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34468 /* end confdefs.h. */
34471 $curl_includes_stdlib
34472 $curl_includes_poll
34477 if(0 != poll(0, 0, 10))
34478 exit(1); /* fail */
34487 if ac_fn_c_try_run "$LINENO"; then :
34489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34490 $as_echo "yes" >&6; }
34491 tst_works_poll="yes"
34495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34496 $as_echo "no" >&6; }
34497 tst_works_poll="no"
34500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34501 conftest.$ac_objext conftest.beam conftest.$ac_ext
34506 if test "$tst_compi_poll" = "yes" &&
34507 test "$tst_works_poll" != "no"; then
34508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
34509 $as_echo_n "checking if poll usage allowed... " >&6; }
34510 if test "x$curl_disallow_poll" != "xyes"; then
34511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34512 $as_echo "yes" >&6; }
34513 tst_allow_poll="yes"
34515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34516 $as_echo "no" >&6; }
34517 tst_allow_poll="no"
34521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
34522 $as_echo_n "checking if poll might be used... " >&6; }
34523 if test "$tst_links_poll" = "yes" &&
34524 test "$tst_proto_poll" = "yes" &&
34525 test "$tst_compi_poll" = "yes" &&
34526 test "$tst_allow_poll" = "yes" &&
34527 test "$tst_works_poll" != "no"; then
34528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34529 $as_echo "yes" >&6; }
34531 cat >>confdefs.h <<_ACEOF
34532 #define HAVE_POLL 1
34536 cat >>confdefs.h <<_ACEOF
34537 #define HAVE_POLL_FINE 1
34540 ac_cv_func_poll="yes"
34542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34543 $as_echo "no" >&6; }
34544 ac_cv_func_poll="no"
34549 tst_links_setsockopt="unknown"
34550 tst_proto_setsockopt="unknown"
34551 tst_compi_setsockopt="unknown"
34552 tst_allow_setsockopt="unknown"
34554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
34555 $as_echo_n "checking if setsockopt can be linked... " >&6; }
34556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34557 /* end confdefs.h. */
34560 $curl_includes_winsock2
34561 $curl_includes_sys_socket
34566 if(0 != setsockopt(0, 0, 0, 0, 0))
34574 if ac_fn_c_try_link "$LINENO"; then :
34576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34577 $as_echo "yes" >&6; }
34578 tst_links_setsockopt="yes"
34582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34583 $as_echo "no" >&6; }
34584 tst_links_setsockopt="no"
34587 rm -f core conftest.err conftest.$ac_objext \
34588 conftest$ac_exeext conftest.$ac_ext
34590 if test "$tst_links_setsockopt" = "yes"; then
34591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
34592 $as_echo_n "checking if setsockopt is prototyped... " >&6; }
34593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34594 /* end confdefs.h. */
34596 $curl_includes_winsock2
34597 $curl_includes_sys_socket
34600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34601 $EGREP "setsockopt" >/dev/null 2>&1; then :
34603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34604 $as_echo "yes" >&6; }
34605 tst_proto_setsockopt="yes"
34609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34610 $as_echo "no" >&6; }
34611 tst_proto_setsockopt="no"
34618 if test "$tst_proto_setsockopt" = "yes"; then
34619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
34620 $as_echo_n "checking if setsockopt is compilable... " >&6; }
34621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34622 /* end confdefs.h. */
34625 $curl_includes_winsock2
34626 $curl_includes_sys_socket
34631 if(0 != setsockopt(0, 0, 0, 0, 0))
34639 if ac_fn_c_try_compile "$LINENO"; then :
34641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34642 $as_echo "yes" >&6; }
34643 tst_compi_setsockopt="yes"
34647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34648 $as_echo "no" >&6; }
34649 tst_compi_setsockopt="no"
34652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34655 if test "$tst_compi_setsockopt" = "yes"; then
34656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
34657 $as_echo_n "checking if setsockopt usage allowed... " >&6; }
34658 if test "x$curl_disallow_setsockopt" != "xyes"; then
34659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34660 $as_echo "yes" >&6; }
34661 tst_allow_setsockopt="yes"
34663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34664 $as_echo "no" >&6; }
34665 tst_allow_setsockopt="no"
34669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
34670 $as_echo_n "checking if setsockopt might be used... " >&6; }
34671 if test "$tst_links_setsockopt" = "yes" &&
34672 test "$tst_proto_setsockopt" = "yes" &&
34673 test "$tst_compi_setsockopt" = "yes" &&
34674 test "$tst_allow_setsockopt" = "yes"; then
34675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34676 $as_echo "yes" >&6; }
34678 cat >>confdefs.h <<_ACEOF
34679 #define HAVE_SETSOCKOPT 1
34682 ac_cv_func_setsockopt="yes"
34685 tst_compi_setsockopt_so_nonblock="unknown"
34686 tst_allow_setsockopt_so_nonblock="unknown"
34688 if test "$ac_cv_func_setsockopt" = "yes"; then
34689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
34690 $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
34691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34692 /* end confdefs.h. */
34695 $curl_includes_winsock2
34696 $curl_includes_sys_socket
34701 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
34709 if ac_fn_c_try_compile "$LINENO"; then :
34711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34712 $as_echo "yes" >&6; }
34713 tst_compi_setsockopt_so_nonblock="yes"
34717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34718 $as_echo "no" >&6; }
34719 tst_compi_setsockopt_so_nonblock="no"
34722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34725 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
34726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
34727 $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
34728 if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
34729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34730 $as_echo "yes" >&6; }
34731 tst_allow_setsockopt_so_nonblock="yes"
34733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34734 $as_echo "no" >&6; }
34735 tst_allow_setsockopt_so_nonblock="no"
34739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
34740 $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
34741 if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
34742 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
34743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34744 $as_echo "yes" >&6; }
34746 cat >>confdefs.h <<_ACEOF
34747 #define HAVE_SETSOCKOPT_SO_NONBLOCK 1
34750 ac_cv_func_setsockopt_so_nonblock="yes"
34752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34753 $as_echo "no" >&6; }
34754 ac_cv_func_setsockopt_so_nonblock="no"
34758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34759 $as_echo "no" >&6; }
34760 ac_cv_func_setsockopt="no"
34764 curl_includes_signal="\
34765 /* includes start */
34766 #ifdef HAVE_SYS_TYPES_H
34767 # include <sys/types.h>
34769 #ifdef HAVE_SIGNAL_H
34770 # include <signal.h>
34772 /* includes end */"
34773 for ac_header in sys/types.h signal.h
34775 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34776 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
34778 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34779 cat >>confdefs.h <<_ACEOF
34780 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34790 tst_links_sigaction="unknown"
34791 tst_proto_sigaction="unknown"
34792 tst_compi_sigaction="unknown"
34793 tst_allow_sigaction="unknown"
34795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
34796 $as_echo_n "checking if sigaction can be linked... " >&6; }
34797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34798 /* end confdefs.h. */
34801 #define sigaction innocuous_sigaction
34803 # include <limits.h>
34805 # include <assert.h>
34812 #if defined __stub_sigaction || defined __stub___sigaction
34818 return sigaction ();
34824 if ac_fn_c_try_link "$LINENO"; then :
34826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34827 $as_echo "yes" >&6; }
34828 tst_links_sigaction="yes"
34832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34833 $as_echo "no" >&6; }
34834 tst_links_sigaction="no"
34837 rm -f core conftest.err conftest.$ac_objext \
34838 conftest$ac_exeext conftest.$ac_ext
34840 if test "$tst_links_sigaction" = "yes"; then
34841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
34842 $as_echo_n "checking if sigaction is prototyped... " >&6; }
34843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34844 /* end confdefs.h. */
34846 $curl_includes_signal
34849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34850 $EGREP "sigaction" >/dev/null 2>&1; then :
34852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34853 $as_echo "yes" >&6; }
34854 tst_proto_sigaction="yes"
34858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34859 $as_echo "no" >&6; }
34860 tst_proto_sigaction="no"
34867 if test "$tst_proto_sigaction" = "yes"; then
34868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
34869 $as_echo_n "checking if sigaction is compilable... " >&6; }
34870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34871 /* end confdefs.h. */
34874 $curl_includes_signal
34879 if(0 != sigaction(0, 0, 0))
34887 if ac_fn_c_try_compile "$LINENO"; then :
34889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34890 $as_echo "yes" >&6; }
34891 tst_compi_sigaction="yes"
34895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34896 $as_echo "no" >&6; }
34897 tst_compi_sigaction="no"
34900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34903 if test "$tst_compi_sigaction" = "yes"; then
34904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
34905 $as_echo_n "checking if sigaction usage allowed... " >&6; }
34906 if test "x$curl_disallow_sigaction" != "xyes"; then
34907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34908 $as_echo "yes" >&6; }
34909 tst_allow_sigaction="yes"
34911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34912 $as_echo "no" >&6; }
34913 tst_allow_sigaction="no"
34917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
34918 $as_echo_n "checking if sigaction might be used... " >&6; }
34919 if test "$tst_links_sigaction" = "yes" &&
34920 test "$tst_proto_sigaction" = "yes" &&
34921 test "$tst_compi_sigaction" = "yes" &&
34922 test "$tst_allow_sigaction" = "yes"; then
34923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34924 $as_echo "yes" >&6; }
34926 cat >>confdefs.h <<_ACEOF
34927 #define HAVE_SIGACTION 1
34930 ac_cv_func_sigaction="yes"
34932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34933 $as_echo "no" >&6; }
34934 ac_cv_func_sigaction="no"
34939 tst_links_siginterrupt="unknown"
34940 tst_proto_siginterrupt="unknown"
34941 tst_compi_siginterrupt="unknown"
34942 tst_allow_siginterrupt="unknown"
34944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
34945 $as_echo_n "checking if siginterrupt can be linked... " >&6; }
34946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34947 /* end confdefs.h. */
34950 #define siginterrupt innocuous_siginterrupt
34952 # include <limits.h>
34954 # include <assert.h>
34956 #undef siginterrupt
34960 char siginterrupt ();
34961 #if defined __stub_siginterrupt || defined __stub___siginterrupt
34967 return siginterrupt ();
34973 if ac_fn_c_try_link "$LINENO"; then :
34975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34976 $as_echo "yes" >&6; }
34977 tst_links_siginterrupt="yes"
34981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34982 $as_echo "no" >&6; }
34983 tst_links_siginterrupt="no"
34986 rm -f core conftest.err conftest.$ac_objext \
34987 conftest$ac_exeext conftest.$ac_ext
34989 if test "$tst_links_siginterrupt" = "yes"; then
34990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
34991 $as_echo_n "checking if siginterrupt is prototyped... " >&6; }
34992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34993 /* end confdefs.h. */
34995 $curl_includes_signal
34998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34999 $EGREP "siginterrupt" >/dev/null 2>&1; then :
35001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35002 $as_echo "yes" >&6; }
35003 tst_proto_siginterrupt="yes"
35007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35008 $as_echo "no" >&6; }
35009 tst_proto_siginterrupt="no"
35016 if test "$tst_proto_siginterrupt" = "yes"; then
35017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
35018 $as_echo_n "checking if siginterrupt is compilable... " >&6; }
35019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35020 /* end confdefs.h. */
35023 $curl_includes_signal
35028 if(0 != siginterrupt(0, 0))
35036 if ac_fn_c_try_compile "$LINENO"; then :
35038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35039 $as_echo "yes" >&6; }
35040 tst_compi_siginterrupt="yes"
35044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35045 $as_echo "no" >&6; }
35046 tst_compi_siginterrupt="no"
35049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35052 if test "$tst_compi_siginterrupt" = "yes"; then
35053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
35054 $as_echo_n "checking if siginterrupt usage allowed... " >&6; }
35055 if test "x$curl_disallow_siginterrupt" != "xyes"; then
35056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35057 $as_echo "yes" >&6; }
35058 tst_allow_siginterrupt="yes"
35060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35061 $as_echo "no" >&6; }
35062 tst_allow_siginterrupt="no"
35066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
35067 $as_echo_n "checking if siginterrupt might be used... " >&6; }
35068 if test "$tst_links_siginterrupt" = "yes" &&
35069 test "$tst_proto_siginterrupt" = "yes" &&
35070 test "$tst_compi_siginterrupt" = "yes" &&
35071 test "$tst_allow_siginterrupt" = "yes"; then
35072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35073 $as_echo "yes" >&6; }
35075 cat >>confdefs.h <<_ACEOF
35076 #define HAVE_SIGINTERRUPT 1
35079 ac_cv_func_siginterrupt="yes"
35081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35082 $as_echo "no" >&6; }
35083 ac_cv_func_siginterrupt="no"
35088 tst_links_signal="unknown"
35089 tst_proto_signal="unknown"
35090 tst_compi_signal="unknown"
35091 tst_allow_signal="unknown"
35093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
35094 $as_echo_n "checking if signal can be linked... " >&6; }
35095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35096 /* end confdefs.h. */
35099 #define signal innocuous_signal
35101 # include <limits.h>
35103 # include <assert.h>
35110 #if defined __stub_signal || defined __stub___signal
35122 if ac_fn_c_try_link "$LINENO"; then :
35124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35125 $as_echo "yes" >&6; }
35126 tst_links_signal="yes"
35130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35131 $as_echo "no" >&6; }
35132 tst_links_signal="no"
35135 rm -f core conftest.err conftest.$ac_objext \
35136 conftest$ac_exeext conftest.$ac_ext
35138 if test "$tst_links_signal" = "yes"; then
35139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
35140 $as_echo_n "checking if signal is prototyped... " >&6; }
35141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35142 /* end confdefs.h. */
35144 $curl_includes_signal
35147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35148 $EGREP "signal" >/dev/null 2>&1; then :
35150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35151 $as_echo "yes" >&6; }
35152 tst_proto_signal="yes"
35156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35157 $as_echo "no" >&6; }
35158 tst_proto_signal="no"
35165 if test "$tst_proto_signal" = "yes"; then
35166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
35167 $as_echo_n "checking if signal is compilable... " >&6; }
35168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35169 /* end confdefs.h. */
35172 $curl_includes_signal
35177 if(0 != signal(0, 0))
35185 if ac_fn_c_try_compile "$LINENO"; then :
35187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35188 $as_echo "yes" >&6; }
35189 tst_compi_signal="yes"
35193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35194 $as_echo "no" >&6; }
35195 tst_compi_signal="no"
35198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35201 if test "$tst_compi_signal" = "yes"; then
35202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
35203 $as_echo_n "checking if signal usage allowed... " >&6; }
35204 if test "x$curl_disallow_signal" != "xyes"; then
35205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35206 $as_echo "yes" >&6; }
35207 tst_allow_signal="yes"
35209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35210 $as_echo "no" >&6; }
35211 tst_allow_signal="no"
35215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
35216 $as_echo_n "checking if signal might be used... " >&6; }
35217 if test "$tst_links_signal" = "yes" &&
35218 test "$tst_proto_signal" = "yes" &&
35219 test "$tst_compi_signal" = "yes" &&
35220 test "$tst_allow_signal" = "yes"; then
35221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35222 $as_echo "yes" >&6; }
35224 cat >>confdefs.h <<_ACEOF
35225 #define HAVE_SIGNAL 1
35228 ac_cv_func_signal="yes"
35230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35231 $as_echo "no" >&6; }
35232 ac_cv_func_signal="no"
35236 curl_includes_setjmp="\
35237 /* includes start */
35238 #ifdef HAVE_SYS_TYPES_H
35239 # include <sys/types.h>
35241 #ifdef HAVE_SETJMP_H
35242 # include <setjmp.h>
35244 /* includes end */"
35245 for ac_header in sys/types.h setjmp.h
35247 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35248 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
35250 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35251 cat >>confdefs.h <<_ACEOF
35252 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35262 tst_links_sigsetjmp="unknown"
35263 tst_macro_sigsetjmp="unknown"
35264 tst_proto_sigsetjmp="unknown"
35265 tst_compi_sigsetjmp="unknown"
35266 tst_allow_sigsetjmp="unknown"
35268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
35269 $as_echo_n "checking if sigsetjmp can be linked... " >&6; }
35270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35271 /* end confdefs.h. */
35274 #define sigsetjmp innocuous_sigsetjmp
35276 # include <limits.h>
35278 # include <assert.h>
35285 #if defined __stub_sigsetjmp || defined __stub___sigsetjmp
35291 return sigsetjmp ();
35297 if ac_fn_c_try_link "$LINENO"; then :
35299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35300 $as_echo "yes" >&6; }
35301 tst_links_sigsetjmp="yes"
35305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35306 $as_echo "no" >&6; }
35307 tst_links_sigsetjmp="no"
35310 rm -f core conftest.err conftest.$ac_objext \
35311 conftest$ac_exeext conftest.$ac_ext
35313 if test "$tst_links_sigsetjmp" = "no"; then
35314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
35315 $as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
35316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35317 /* end confdefs.h. */
35320 $curl_includes_setjmp
35326 if(0 != sigsetjmp(env, 0))
35334 if ac_fn_c_try_link "$LINENO"; then :
35336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35337 $as_echo "yes" >&6; }
35338 tst_macro_sigsetjmp="yes"
35342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35343 $as_echo "no" >&6; }
35344 tst_macro_sigsetjmp="no"
35347 rm -f core conftest.err conftest.$ac_objext \
35348 conftest$ac_exeext conftest.$ac_ext
35351 if test "$tst_links_sigsetjmp" = "yes"; then
35352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
35353 $as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
35354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35355 /* end confdefs.h. */
35357 $curl_includes_setjmp
35360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35361 $EGREP "sigsetjmp" >/dev/null 2>&1; then :
35363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35364 $as_echo "yes" >&6; }
35365 tst_proto_sigsetjmp="yes"
35369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35370 $as_echo "no" >&6; }
35371 tst_proto_sigsetjmp="no"
35378 if test "$tst_proto_sigsetjmp" = "yes" ||
35379 test "$tst_macro_sigsetjmp" = "yes"; then
35380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
35381 $as_echo_n "checking if sigsetjmp is compilable... " >&6; }
35382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35383 /* end confdefs.h. */
35386 $curl_includes_setjmp
35392 if(0 != sigsetjmp(env, 0))
35400 if ac_fn_c_try_compile "$LINENO"; then :
35402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35403 $as_echo "yes" >&6; }
35404 tst_compi_sigsetjmp="yes"
35408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35409 $as_echo "no" >&6; }
35410 tst_compi_sigsetjmp="no"
35413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35416 if test "$tst_compi_sigsetjmp" = "yes"; then
35417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
35418 $as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
35419 if test "x$curl_disallow_sigsetjmp" != "xyes"; then
35420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35421 $as_echo "yes" >&6; }
35422 tst_allow_sigsetjmp="yes"
35424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35425 $as_echo "no" >&6; }
35426 tst_allow_sigsetjmp="no"
35430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
35431 $as_echo_n "checking if sigsetjmp might be used... " >&6; }
35432 if (test "$tst_proto_sigsetjmp" = "yes" ||
35433 test "$tst_macro_sigsetjmp" = "yes") &&
35434 test "$tst_compi_sigsetjmp" = "yes" &&
35435 test "$tst_allow_sigsetjmp" = "yes"; then
35436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35437 $as_echo "yes" >&6; }
35439 cat >>confdefs.h <<_ACEOF
35440 #define HAVE_SIGSETJMP 1
35443 ac_cv_func_sigsetjmp="yes"
35445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35446 $as_echo "no" >&6; }
35447 ac_cv_func_sigsetjmp="no"
35452 tst_links_socket="unknown"
35453 tst_proto_socket="unknown"
35454 tst_compi_socket="unknown"
35455 tst_allow_socket="unknown"
35457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
35458 $as_echo_n "checking if socket can be linked... " >&6; }
35459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35460 /* end confdefs.h. */
35463 $curl_includes_winsock2
35464 $curl_includes_sys_socket
35465 $curl_includes_socket
35470 if(0 != socket(0, 0, 0))
35478 if ac_fn_c_try_link "$LINENO"; then :
35480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35481 $as_echo "yes" >&6; }
35482 tst_links_socket="yes"
35486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35487 $as_echo "no" >&6; }
35488 tst_links_socket="no"
35491 rm -f core conftest.err conftest.$ac_objext \
35492 conftest$ac_exeext conftest.$ac_ext
35494 if test "$tst_links_socket" = "yes"; then
35495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
35496 $as_echo_n "checking if socket is prototyped... " >&6; }
35497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35498 /* end confdefs.h. */
35500 $curl_includes_winsock2
35501 $curl_includes_sys_socket
35502 $curl_includes_socket
35505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35506 $EGREP "socket" >/dev/null 2>&1; then :
35508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35509 $as_echo "yes" >&6; }
35510 tst_proto_socket="yes"
35514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35515 $as_echo "no" >&6; }
35516 tst_proto_socket="no"
35523 if test "$tst_proto_socket" = "yes"; then
35524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
35525 $as_echo_n "checking if socket is compilable... " >&6; }
35526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35527 /* end confdefs.h. */
35530 $curl_includes_winsock2
35531 $curl_includes_sys_socket
35532 $curl_includes_socket
35537 if(0 != socket(0, 0, 0))
35545 if ac_fn_c_try_compile "$LINENO"; then :
35547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35548 $as_echo "yes" >&6; }
35549 tst_compi_socket="yes"
35553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35554 $as_echo "no" >&6; }
35555 tst_compi_socket="no"
35558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35561 if test "$tst_compi_socket" = "yes"; then
35562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
35563 $as_echo_n "checking if socket usage allowed... " >&6; }
35564 if test "x$curl_disallow_socket" != "xyes"; then
35565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35566 $as_echo "yes" >&6; }
35567 tst_allow_socket="yes"
35569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35570 $as_echo "no" >&6; }
35571 tst_allow_socket="no"
35575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
35576 $as_echo_n "checking if socket might be used... " >&6; }
35577 if test "$tst_links_socket" = "yes" &&
35578 test "$tst_proto_socket" = "yes" &&
35579 test "$tst_compi_socket" = "yes" &&
35580 test "$tst_allow_socket" = "yes"; then
35581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35582 $as_echo "yes" >&6; }
35584 cat >>confdefs.h <<_ACEOF
35585 #define HAVE_SOCKET 1
35588 ac_cv_func_socket="yes"
35590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35591 $as_echo "no" >&6; }
35592 ac_cv_func_socket="no"
35597 tst_links_socketpair="unknown"
35598 tst_proto_socketpair="unknown"
35599 tst_compi_socketpair="unknown"
35600 tst_allow_socketpair="unknown"
35602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
35603 $as_echo_n "checking if socketpair can be linked... " >&6; }
35604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35605 /* end confdefs.h. */
35608 #define socketpair innocuous_socketpair
35610 # include <limits.h>
35612 # include <assert.h>
35618 char socketpair ();
35619 #if defined __stub_socketpair || defined __stub___socketpair
35625 return socketpair ();
35631 if ac_fn_c_try_link "$LINENO"; then :
35633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35634 $as_echo "yes" >&6; }
35635 tst_links_socketpair="yes"
35639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35640 $as_echo "no" >&6; }
35641 tst_links_socketpair="no"
35644 rm -f core conftest.err conftest.$ac_objext \
35645 conftest$ac_exeext conftest.$ac_ext
35647 if test "$tst_links_socketpair" = "yes"; then
35648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
35649 $as_echo_n "checking if socketpair is prototyped... " >&6; }
35650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35651 /* end confdefs.h. */
35653 $curl_includes_sys_socket
35654 $curl_includes_socket
35657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35658 $EGREP "socketpair" >/dev/null 2>&1; then :
35660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35661 $as_echo "yes" >&6; }
35662 tst_proto_socketpair="yes"
35666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35667 $as_echo "no" >&6; }
35668 tst_proto_socketpair="no"
35675 if test "$tst_proto_socketpair" = "yes"; then
35676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
35677 $as_echo_n "checking if socketpair is compilable... " >&6; }
35678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35679 /* end confdefs.h. */
35682 $curl_includes_sys_socket
35683 $curl_includes_socket
35689 if(0 != socketpair(0, 0, 0, sv))
35697 if ac_fn_c_try_compile "$LINENO"; then :
35699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35700 $as_echo "yes" >&6; }
35701 tst_compi_socketpair="yes"
35705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35706 $as_echo "no" >&6; }
35707 tst_compi_socketpair="no"
35710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35713 if test "$tst_compi_socketpair" = "yes"; then
35714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
35715 $as_echo_n "checking if socketpair usage allowed... " >&6; }
35716 if test "x$curl_disallow_socketpair" != "xyes"; then
35717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35718 $as_echo "yes" >&6; }
35719 tst_allow_socketpair="yes"
35721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35722 $as_echo "no" >&6; }
35723 tst_allow_socketpair="no"
35727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
35728 $as_echo_n "checking if socketpair might be used... " >&6; }
35729 if test "$tst_links_socketpair" = "yes" &&
35730 test "$tst_proto_socketpair" = "yes" &&
35731 test "$tst_compi_socketpair" = "yes" &&
35732 test "$tst_allow_socketpair" = "yes"; then
35733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35734 $as_echo "yes" >&6; }
35736 cat >>confdefs.h <<_ACEOF
35737 #define HAVE_SOCKETPAIR 1
35740 ac_cv_func_socketpair="yes"
35742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35743 $as_echo "no" >&6; }
35744 ac_cv_func_socketpair="no"
35749 tst_links_strcasecmp="unknown"
35750 tst_proto_strcasecmp="unknown"
35751 tst_compi_strcasecmp="unknown"
35752 tst_allow_strcasecmp="unknown"
35754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
35755 $as_echo_n "checking if strcasecmp can be linked... " >&6; }
35756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35757 /* end confdefs.h. */
35760 #define strcasecmp innocuous_strcasecmp
35762 # include <limits.h>
35764 # include <assert.h>
35770 char strcasecmp ();
35771 #if defined __stub_strcasecmp || defined __stub___strcasecmp
35777 return strcasecmp ();
35783 if ac_fn_c_try_link "$LINENO"; then :
35785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35786 $as_echo "yes" >&6; }
35787 tst_links_strcasecmp="yes"
35791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35792 $as_echo "no" >&6; }
35793 tst_links_strcasecmp="no"
35796 rm -f core conftest.err conftest.$ac_objext \
35797 conftest$ac_exeext conftest.$ac_ext
35799 if test "$tst_links_strcasecmp" = "yes"; then
35800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
35801 $as_echo_n "checking if strcasecmp is prototyped... " >&6; }
35802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35803 /* end confdefs.h. */
35805 $curl_includes_string
35808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35809 $EGREP "strcasecmp" >/dev/null 2>&1; then :
35811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35812 $as_echo "yes" >&6; }
35813 tst_proto_strcasecmp="yes"
35817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35818 $as_echo "no" >&6; }
35819 tst_proto_strcasecmp="no"
35826 if test "$tst_proto_strcasecmp" = "yes"; then
35827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
35828 $as_echo_n "checking if strcasecmp is compilable... " >&6; }
35829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35830 /* end confdefs.h. */
35833 $curl_includes_string
35838 if(0 != strcasecmp(0, 0))
35846 if ac_fn_c_try_compile "$LINENO"; then :
35848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35849 $as_echo "yes" >&6; }
35850 tst_compi_strcasecmp="yes"
35854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35855 $as_echo "no" >&6; }
35856 tst_compi_strcasecmp="no"
35859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35862 if test "$tst_compi_strcasecmp" = "yes"; then
35863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
35864 $as_echo_n "checking if strcasecmp usage allowed... " >&6; }
35865 if test "x$curl_disallow_strcasecmp" != "xyes"; then
35866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35867 $as_echo "yes" >&6; }
35868 tst_allow_strcasecmp="yes"
35870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35871 $as_echo "no" >&6; }
35872 tst_allow_strcasecmp="no"
35876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
35877 $as_echo_n "checking if strcasecmp might be used... " >&6; }
35878 if test "$tst_links_strcasecmp" = "yes" &&
35879 test "$tst_proto_strcasecmp" = "yes" &&
35880 test "$tst_compi_strcasecmp" = "yes" &&
35881 test "$tst_allow_strcasecmp" = "yes"; then
35882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35883 $as_echo "yes" >&6; }
35885 cat >>confdefs.h <<_ACEOF
35886 #define HAVE_STRCASECMP 1
35889 ac_cv_func_strcasecmp="yes"
35891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35892 $as_echo "no" >&6; }
35893 ac_cv_func_strcasecmp="no"
35898 tst_links_strcmpi="unknown"
35899 tst_proto_strcmpi="unknown"
35900 tst_compi_strcmpi="unknown"
35901 tst_allow_strcmpi="unknown"
35903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
35904 $as_echo_n "checking if strcmpi can be linked... " >&6; }
35905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35906 /* end confdefs.h. */
35909 #define strcmpi innocuous_strcmpi
35911 # include <limits.h>
35913 # include <assert.h>
35920 #if defined __stub_strcmpi || defined __stub___strcmpi
35932 if ac_fn_c_try_link "$LINENO"; then :
35934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35935 $as_echo "yes" >&6; }
35936 tst_links_strcmpi="yes"
35940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35941 $as_echo "no" >&6; }
35942 tst_links_strcmpi="no"
35945 rm -f core conftest.err conftest.$ac_objext \
35946 conftest$ac_exeext conftest.$ac_ext
35948 if test "$tst_links_strcmpi" = "yes"; then
35949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
35950 $as_echo_n "checking if strcmpi is prototyped... " >&6; }
35951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35952 /* end confdefs.h. */
35954 $curl_includes_string
35957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35958 $EGREP "strcmpi" >/dev/null 2>&1; then :
35960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35961 $as_echo "yes" >&6; }
35962 tst_proto_strcmpi="yes"
35966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35967 $as_echo "no" >&6; }
35968 tst_proto_strcmpi="no"
35975 if test "$tst_proto_strcmpi" = "yes"; then
35976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
35977 $as_echo_n "checking if strcmpi is compilable... " >&6; }
35978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35979 /* end confdefs.h. */
35982 $curl_includes_string
35987 if(0 != strcmpi(0, 0))
35995 if ac_fn_c_try_compile "$LINENO"; then :
35997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35998 $as_echo "yes" >&6; }
35999 tst_compi_strcmpi="yes"
36003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36004 $as_echo "no" >&6; }
36005 tst_compi_strcmpi="no"
36008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36011 if test "$tst_compi_strcmpi" = "yes"; then
36012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
36013 $as_echo_n "checking if strcmpi usage allowed... " >&6; }
36014 if test "x$curl_disallow_strcmpi" != "xyes"; then
36015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36016 $as_echo "yes" >&6; }
36017 tst_allow_strcmpi="yes"
36019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36020 $as_echo "no" >&6; }
36021 tst_allow_strcmpi="no"
36025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
36026 $as_echo_n "checking if strcmpi might be used... " >&6; }
36027 if test "$tst_links_strcmpi" = "yes" &&
36028 test "$tst_proto_strcmpi" = "yes" &&
36029 test "$tst_compi_strcmpi" = "yes" &&
36030 test "$tst_allow_strcmpi" = "yes"; then
36031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36032 $as_echo "yes" >&6; }
36034 cat >>confdefs.h <<_ACEOF
36035 #define HAVE_STRCMPI 1
36038 ac_cv_func_strcmpi="yes"
36040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36041 $as_echo "no" >&6; }
36042 ac_cv_func_strcmpi="no"
36047 tst_links_strdup="unknown"
36048 tst_proto_strdup="unknown"
36049 tst_compi_strdup="unknown"
36050 tst_allow_strdup="unknown"
36052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
36053 $as_echo_n "checking if strdup can be linked... " >&6; }
36054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36055 /* end confdefs.h. */
36058 #define strdup innocuous_strdup
36060 # include <limits.h>
36062 # include <assert.h>
36069 #if defined __stub_strdup || defined __stub___strdup
36081 if ac_fn_c_try_link "$LINENO"; then :
36083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36084 $as_echo "yes" >&6; }
36085 tst_links_strdup="yes"
36089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36090 $as_echo "no" >&6; }
36091 tst_links_strdup="no"
36094 rm -f core conftest.err conftest.$ac_objext \
36095 conftest$ac_exeext conftest.$ac_ext
36097 if test "$tst_links_strdup" = "yes"; then
36098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
36099 $as_echo_n "checking if strdup is prototyped... " >&6; }
36100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36101 /* end confdefs.h. */
36103 $curl_includes_string
36106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36107 $EGREP "strdup" >/dev/null 2>&1; then :
36109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36110 $as_echo "yes" >&6; }
36111 tst_proto_strdup="yes"
36115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36116 $as_echo "no" >&6; }
36117 tst_proto_strdup="no"
36124 if test "$tst_proto_strdup" = "yes"; then
36125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
36126 $as_echo_n "checking if strdup is compilable... " >&6; }
36127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36128 /* end confdefs.h. */
36131 $curl_includes_string
36144 if ac_fn_c_try_compile "$LINENO"; then :
36146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36147 $as_echo "yes" >&6; }
36148 tst_compi_strdup="yes"
36152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36153 $as_echo "no" >&6; }
36154 tst_compi_strdup="no"
36157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36160 if test "$tst_compi_strdup" = "yes"; then
36161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
36162 $as_echo_n "checking if strdup usage allowed... " >&6; }
36163 if test "x$curl_disallow_strdup" != "xyes"; then
36164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36165 $as_echo "yes" >&6; }
36166 tst_allow_strdup="yes"
36168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36169 $as_echo "no" >&6; }
36170 tst_allow_strdup="no"
36174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
36175 $as_echo_n "checking if strdup might be used... " >&6; }
36176 if test "$tst_links_strdup" = "yes" &&
36177 test "$tst_proto_strdup" = "yes" &&
36178 test "$tst_compi_strdup" = "yes" &&
36179 test "$tst_allow_strdup" = "yes"; then
36180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36181 $as_echo "yes" >&6; }
36183 cat >>confdefs.h <<_ACEOF
36184 #define HAVE_STRDUP 1
36187 ac_cv_func_strdup="yes"
36189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36190 $as_echo "no" >&6; }
36191 ac_cv_func_strdup="no"
36196 tst_links_strerror_r="unknown"
36197 tst_proto_strerror_r="unknown"
36198 tst_compi_strerror_r="unknown"
36199 tst_glibc_strerror_r="unknown"
36200 tst_posix_strerror_r="unknown"
36201 tst_allow_strerror_r="unknown"
36202 tst_works_glibc_strerror_r="unknown"
36203 tst_works_posix_strerror_r="unknown"
36204 tst_glibc_strerror_r_type_arg3="unknown"
36205 tst_posix_strerror_r_type_arg3="unknown"
36207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
36208 $as_echo_n "checking if strerror_r can be linked... " >&6; }
36209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36210 /* end confdefs.h. */
36213 #define strerror_r innocuous_strerror_r
36215 # include <limits.h>
36217 # include <assert.h>
36223 char strerror_r ();
36224 #if defined __stub_strerror_r || defined __stub___strerror_r
36230 return strerror_r ();
36236 if ac_fn_c_try_link "$LINENO"; then :
36238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36239 $as_echo "yes" >&6; }
36240 tst_links_strerror_r="yes"
36244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36245 $as_echo "no" >&6; }
36246 tst_links_strerror_r="no"
36249 rm -f core conftest.err conftest.$ac_objext \
36250 conftest$ac_exeext conftest.$ac_ext
36252 if test "$tst_links_strerror_r" = "yes"; then
36253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
36254 $as_echo_n "checking if strerror_r is prototyped... " >&6; }
36255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36256 /* end confdefs.h. */
36258 $curl_includes_string
36261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36262 $EGREP "strerror_r" >/dev/null 2>&1; then :
36264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36265 $as_echo "yes" >&6; }
36266 tst_proto_strerror_r="yes"
36270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36271 $as_echo "no" >&6; }
36272 tst_proto_strerror_r="no"
36279 if test "$tst_proto_strerror_r" = "yes"; then
36280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
36281 $as_echo_n "checking if strerror_r is compilable... " >&6; }
36282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36283 /* end confdefs.h. */
36286 $curl_includes_string
36291 if(0 != strerror_r(0, 0, 0))
36299 if ac_fn_c_try_compile "$LINENO"; then :
36301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36302 $as_echo "yes" >&6; }
36303 tst_compi_strerror_r="yes"
36307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36308 $as_echo "no" >&6; }
36309 tst_compi_strerror_r="no"
36312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36315 if test "$tst_compi_strerror_r" = "yes"; then
36316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
36317 $as_echo_n "checking if strerror_r is glibc like... " >&6; }
36318 tst_glibc_strerror_r_type_arg3="unknown"
36319 for arg3 in 'size_t' 'int' 'unsigned int'; do
36320 if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
36321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36322 /* end confdefs.h. */
36325 $curl_includes_string
36326 char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
36331 if(0 != strerror_r(0, 0, 0))
36339 if ac_fn_c_try_compile "$LINENO"; then :
36341 tst_glibc_strerror_r_type_arg3="$arg3"
36344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36347 case "$tst_glibc_strerror_r_type_arg3" in
36349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36350 $as_echo "no" >&6; }
36351 tst_glibc_strerror_r="no"
36354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36355 $as_echo "yes" >&6; }
36356 tst_glibc_strerror_r="yes"
36361 if test "x$cross_compiling" != "xyes" &&
36362 test "$tst_glibc_strerror_r" = "yes"; then
36363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
36364 $as_echo_n "checking if strerror_r seems to work... " >&6; }
36365 if test "$cross_compiling" = yes; then :
36366 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36368 as_fn_error $? "cannot run test program while cross compiling
36369 See \`config.log' for more details" "$LINENO" 5; }
36371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36372 /* end confdefs.h. */
36375 $curl_includes_stdlib
36376 $curl_includes_string
36377 # include <errno.h>
36385 string = strerror_r(EACCES, buffer, sizeof(buffer));
36387 exit(1); /* fail */
36389 exit(1); /* fail */
36398 if ac_fn_c_try_run "$LINENO"; then :
36400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36401 $as_echo "yes" >&6; }
36402 tst_works_glibc_strerror_r="yes"
36406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36407 $as_echo "no" >&6; }
36408 tst_works_glibc_strerror_r="no"
36411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36412 conftest.$ac_objext conftest.beam conftest.$ac_ext
36417 if test "$tst_compi_strerror_r" = "yes" &&
36418 test "$tst_works_glibc_strerror_r" != "yes"; then
36419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
36420 $as_echo_n "checking if strerror_r is POSIX like... " >&6; }
36421 tst_posix_strerror_r_type_arg3="unknown"
36422 for arg3 in 'size_t' 'int' 'unsigned int'; do
36423 if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
36424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36425 /* end confdefs.h. */
36428 $curl_includes_string
36429 int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
36434 if(0 != strerror_r(0, 0, 0))
36442 if ac_fn_c_try_compile "$LINENO"; then :
36444 tst_posix_strerror_r_type_arg3="$arg3"
36447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36450 case "$tst_posix_strerror_r_type_arg3" in
36452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36453 $as_echo "no" >&6; }
36454 tst_posix_strerror_r="no"
36457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36458 $as_echo "yes" >&6; }
36459 tst_posix_strerror_r="yes"
36464 if test "x$cross_compiling" != "xyes" &&
36465 test "$tst_posix_strerror_r" = "yes"; then
36466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
36467 $as_echo_n "checking if strerror_r seems to work... " >&6; }
36468 if test "$cross_compiling" = yes; then :
36469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36471 as_fn_error $? "cannot run test program while cross compiling
36472 See \`config.log' for more details" "$LINENO" 5; }
36474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36475 /* end confdefs.h. */
36478 $curl_includes_stdlib
36479 $curl_includes_string
36480 # include <errno.h>
36488 error = strerror_r(EACCES, buffer, sizeof(buffer));
36490 exit(1); /* fail */
36491 if(buffer[0] == '\0')
36492 exit(1); /* fail */
36501 if ac_fn_c_try_run "$LINENO"; then :
36503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36504 $as_echo "yes" >&6; }
36505 tst_works_posix_strerror_r="yes"
36509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36510 $as_echo "no" >&6; }
36511 tst_works_posix_strerror_r="no"
36514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36515 conftest.$ac_objext conftest.beam conftest.$ac_ext
36520 if test "$tst_works_glibc_strerror_r" = "yes"; then
36521 tst_posix_strerror_r="no"
36523 if test "$tst_works_posix_strerror_r" = "yes"; then
36524 tst_glibc_strerror_r="no"
36526 if test "$tst_glibc_strerror_r" = "yes" &&
36527 test "$tst_works_glibc_strerror_r" != "no" &&
36528 test "$tst_posix_strerror_r" != "yes"; then
36529 tst_allow_strerror_r="check"
36531 if test "$tst_posix_strerror_r" = "yes" &&
36532 test "$tst_works_posix_strerror_r" != "no" &&
36533 test "$tst_glibc_strerror_r" != "yes"; then
36534 tst_allow_strerror_r="check"
36536 if test "$tst_allow_strerror_r" = "check"; then
36537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
36538 $as_echo_n "checking if strerror_r usage allowed... " >&6; }
36539 if test "x$curl_disallow_strerror_r" != "xyes"; then
36540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36541 $as_echo "yes" >&6; }
36542 tst_allow_strerror_r="yes"
36544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36545 $as_echo "no" >&6; }
36546 tst_allow_strerror_r="no"
36550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
36551 $as_echo_n "checking if strerror_r might be used... " >&6; }
36552 if test "$tst_links_strerror_r" = "yes" &&
36553 test "$tst_proto_strerror_r" = "yes" &&
36554 test "$tst_compi_strerror_r" = "yes" &&
36555 test "$tst_allow_strerror_r" = "yes"; then
36556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36557 $as_echo "yes" >&6; }
36558 if test "$tst_glibc_strerror_r" = "yes"; then
36560 cat >>confdefs.h <<_ACEOF
36561 #define HAVE_STRERROR_R 1
36565 cat >>confdefs.h <<_ACEOF
36566 #define HAVE_GLIBC_STRERROR_R 1
36570 cat >>confdefs.h <<_ACEOF
36571 #define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
36575 if test "$tst_posix_strerror_r" = "yes"; then
36577 cat >>confdefs.h <<_ACEOF
36578 #define HAVE_STRERROR_R 1
36582 cat >>confdefs.h <<_ACEOF
36583 #define HAVE_POSIX_STRERROR_R 1
36587 cat >>confdefs.h <<_ACEOF
36588 #define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
36592 ac_cv_func_strerror_r="yes"
36594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36595 $as_echo "no" >&6; }
36596 ac_cv_func_strerror_r="no"
36599 if test "$tst_compi_strerror_r" = "yes" &&
36600 test "$tst_allow_strerror_r" = "unknown"; then
36601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
36602 $as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
36608 tst_links_stricmp="unknown"
36609 tst_proto_stricmp="unknown"
36610 tst_compi_stricmp="unknown"
36611 tst_allow_stricmp="unknown"
36613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
36614 $as_echo_n "checking if stricmp can be linked... " >&6; }
36615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36616 /* end confdefs.h. */
36619 #define stricmp innocuous_stricmp
36621 # include <limits.h>
36623 # include <assert.h>
36630 #if defined __stub_stricmp || defined __stub___stricmp
36642 if ac_fn_c_try_link "$LINENO"; then :
36644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36645 $as_echo "yes" >&6; }
36646 tst_links_stricmp="yes"
36650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36651 $as_echo "no" >&6; }
36652 tst_links_stricmp="no"
36655 rm -f core conftest.err conftest.$ac_objext \
36656 conftest$ac_exeext conftest.$ac_ext
36658 if test "$tst_links_stricmp" = "yes"; then
36659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
36660 $as_echo_n "checking if stricmp is prototyped... " >&6; }
36661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36662 /* end confdefs.h. */
36664 $curl_includes_string
36667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36668 $EGREP "stricmp" >/dev/null 2>&1; then :
36670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36671 $as_echo "yes" >&6; }
36672 tst_proto_stricmp="yes"
36676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36677 $as_echo "no" >&6; }
36678 tst_proto_stricmp="no"
36685 if test "$tst_proto_stricmp" = "yes"; then
36686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
36687 $as_echo_n "checking if stricmp is compilable... " >&6; }
36688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36689 /* end confdefs.h. */
36692 $curl_includes_string
36697 if(0 != stricmp(0, 0))
36705 if ac_fn_c_try_compile "$LINENO"; then :
36707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36708 $as_echo "yes" >&6; }
36709 tst_compi_stricmp="yes"
36713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36714 $as_echo "no" >&6; }
36715 tst_compi_stricmp="no"
36718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36721 if test "$tst_compi_stricmp" = "yes"; then
36722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
36723 $as_echo_n "checking if stricmp usage allowed... " >&6; }
36724 if test "x$curl_disallow_stricmp" != "xyes"; then
36725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36726 $as_echo "yes" >&6; }
36727 tst_allow_stricmp="yes"
36729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36730 $as_echo "no" >&6; }
36731 tst_allow_stricmp="no"
36735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
36736 $as_echo_n "checking if stricmp might be used... " >&6; }
36737 if test "$tst_links_stricmp" = "yes" &&
36738 test "$tst_proto_stricmp" = "yes" &&
36739 test "$tst_compi_stricmp" = "yes" &&
36740 test "$tst_allow_stricmp" = "yes"; then
36741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36742 $as_echo "yes" >&6; }
36744 cat >>confdefs.h <<_ACEOF
36745 #define HAVE_STRICMP 1
36748 ac_cv_func_stricmp="yes"
36750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36751 $as_echo "no" >&6; }
36752 ac_cv_func_stricmp="no"
36757 tst_links_strncasecmp="unknown"
36758 tst_proto_strncasecmp="unknown"
36759 tst_compi_strncasecmp="unknown"
36760 tst_allow_strncasecmp="unknown"
36762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
36763 $as_echo_n "checking if strncasecmp can be linked... " >&6; }
36764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36765 /* end confdefs.h. */
36768 #define strncasecmp innocuous_strncasecmp
36770 # include <limits.h>
36772 # include <assert.h>
36778 char strncasecmp ();
36779 #if defined __stub_strncasecmp || defined __stub___strncasecmp
36785 return strncasecmp ();
36791 if ac_fn_c_try_link "$LINENO"; then :
36793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36794 $as_echo "yes" >&6; }
36795 tst_links_strncasecmp="yes"
36799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36800 $as_echo "no" >&6; }
36801 tst_links_strncasecmp="no"
36804 rm -f core conftest.err conftest.$ac_objext \
36805 conftest$ac_exeext conftest.$ac_ext
36807 if test "$tst_links_strncasecmp" = "yes"; then
36808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
36809 $as_echo_n "checking if strncasecmp is prototyped... " >&6; }
36810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36811 /* end confdefs.h. */
36813 $curl_includes_string
36816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36817 $EGREP "strncasecmp" >/dev/null 2>&1; then :
36819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36820 $as_echo "yes" >&6; }
36821 tst_proto_strncasecmp="yes"
36825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36826 $as_echo "no" >&6; }
36827 tst_proto_strncasecmp="no"
36834 if test "$tst_proto_strncasecmp" = "yes"; then
36835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
36836 $as_echo_n "checking if strncasecmp is compilable... " >&6; }
36837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36838 /* end confdefs.h. */
36841 $curl_includes_string
36846 if(0 != strncasecmp(0, 0, 0))
36854 if ac_fn_c_try_compile "$LINENO"; then :
36856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36857 $as_echo "yes" >&6; }
36858 tst_compi_strncasecmp="yes"
36862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36863 $as_echo "no" >&6; }
36864 tst_compi_strncasecmp="no"
36867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36870 if test "$tst_compi_strncasecmp" = "yes"; then
36871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
36872 $as_echo_n "checking if strncasecmp usage allowed... " >&6; }
36873 if test "x$curl_disallow_strncasecmp" != "xyes"; then
36874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36875 $as_echo "yes" >&6; }
36876 tst_allow_strncasecmp="yes"
36878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36879 $as_echo "no" >&6; }
36880 tst_allow_strncasecmp="no"
36884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
36885 $as_echo_n "checking if strncasecmp might be used... " >&6; }
36886 if test "$tst_links_strncasecmp" = "yes" &&
36887 test "$tst_proto_strncasecmp" = "yes" &&
36888 test "$tst_compi_strncasecmp" = "yes" &&
36889 test "$tst_allow_strncasecmp" = "yes"; then
36890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36891 $as_echo "yes" >&6; }
36893 cat >>confdefs.h <<_ACEOF
36894 #define HAVE_STRNCASECMP 1
36897 ac_cv_func_strncasecmp="yes"
36899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36900 $as_echo "no" >&6; }
36901 ac_cv_func_strncasecmp="no"
36906 tst_links_strncmpi="unknown"
36907 tst_proto_strncmpi="unknown"
36908 tst_compi_strncmpi="unknown"
36909 tst_allow_strncmpi="unknown"
36911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
36912 $as_echo_n "checking if strncmpi can be linked... " >&6; }
36913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36914 /* end confdefs.h. */
36917 #define strncmpi innocuous_strncmpi
36919 # include <limits.h>
36921 # include <assert.h>
36928 #if defined __stub_strncmpi || defined __stub___strncmpi
36934 return strncmpi ();
36940 if ac_fn_c_try_link "$LINENO"; then :
36942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36943 $as_echo "yes" >&6; }
36944 tst_links_strncmpi="yes"
36948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36949 $as_echo "no" >&6; }
36950 tst_links_strncmpi="no"
36953 rm -f core conftest.err conftest.$ac_objext \
36954 conftest$ac_exeext conftest.$ac_ext
36956 if test "$tst_links_strncmpi" = "yes"; then
36957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
36958 $as_echo_n "checking if strncmpi is prototyped... " >&6; }
36959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36960 /* end confdefs.h. */
36962 $curl_includes_string
36965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36966 $EGREP "strncmpi" >/dev/null 2>&1; then :
36968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36969 $as_echo "yes" >&6; }
36970 tst_proto_strncmpi="yes"
36974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36975 $as_echo "no" >&6; }
36976 tst_proto_strncmpi="no"
36983 if test "$tst_proto_strncmpi" = "yes"; then
36984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
36985 $as_echo_n "checking if strncmpi is compilable... " >&6; }
36986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36987 /* end confdefs.h. */
36990 $curl_includes_string
36995 if(0 != strncmpi(0, 0))
37003 if ac_fn_c_try_compile "$LINENO"; then :
37005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37006 $as_echo "yes" >&6; }
37007 tst_compi_strncmpi="yes"
37011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37012 $as_echo "no" >&6; }
37013 tst_compi_strncmpi="no"
37016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37019 if test "$tst_compi_strncmpi" = "yes"; then
37020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
37021 $as_echo_n "checking if strncmpi usage allowed... " >&6; }
37022 if test "x$curl_disallow_strncmpi" != "xyes"; then
37023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37024 $as_echo "yes" >&6; }
37025 tst_allow_strncmpi="yes"
37027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37028 $as_echo "no" >&6; }
37029 tst_allow_strncmpi="no"
37033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
37034 $as_echo_n "checking if strncmpi might be used... " >&6; }
37035 if test "$tst_links_strncmpi" = "yes" &&
37036 test "$tst_proto_strncmpi" = "yes" &&
37037 test "$tst_compi_strncmpi" = "yes" &&
37038 test "$tst_allow_strncmpi" = "yes"; then
37039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37040 $as_echo "yes" >&6; }
37042 cat >>confdefs.h <<_ACEOF
37043 #define HAVE_STRNCMPI 1
37046 ac_cv_func_strncmpi="yes"
37048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37049 $as_echo "no" >&6; }
37050 ac_cv_func_strncmpi="no"
37055 tst_links_strnicmp="unknown"
37056 tst_proto_strnicmp="unknown"
37057 tst_compi_strnicmp="unknown"
37058 tst_allow_strnicmp="unknown"
37060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
37061 $as_echo_n "checking if strnicmp can be linked... " >&6; }
37062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37063 /* end confdefs.h. */
37066 #define strnicmp innocuous_strnicmp
37068 # include <limits.h>
37070 # include <assert.h>
37077 #if defined __stub_strnicmp || defined __stub___strnicmp
37083 return strnicmp ();
37089 if ac_fn_c_try_link "$LINENO"; then :
37091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37092 $as_echo "yes" >&6; }
37093 tst_links_strnicmp="yes"
37097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37098 $as_echo "no" >&6; }
37099 tst_links_strnicmp="no"
37102 rm -f core conftest.err conftest.$ac_objext \
37103 conftest$ac_exeext conftest.$ac_ext
37105 if test "$tst_links_strnicmp" = "yes"; then
37106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
37107 $as_echo_n "checking if strnicmp is prototyped... " >&6; }
37108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37109 /* end confdefs.h. */
37111 $curl_includes_string
37114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37115 $EGREP "strnicmp" >/dev/null 2>&1; then :
37117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37118 $as_echo "yes" >&6; }
37119 tst_proto_strnicmp="yes"
37123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37124 $as_echo "no" >&6; }
37125 tst_proto_strnicmp="no"
37132 if test "$tst_proto_strnicmp" = "yes"; then
37133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
37134 $as_echo_n "checking if strnicmp is compilable... " >&6; }
37135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37136 /* end confdefs.h. */
37139 $curl_includes_string
37144 if(0 != strnicmp(0, 0))
37152 if ac_fn_c_try_compile "$LINENO"; then :
37154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37155 $as_echo "yes" >&6; }
37156 tst_compi_strnicmp="yes"
37160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37161 $as_echo "no" >&6; }
37162 tst_compi_strnicmp="no"
37165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37168 if test "$tst_compi_strnicmp" = "yes"; then
37169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
37170 $as_echo_n "checking if strnicmp usage allowed... " >&6; }
37171 if test "x$curl_disallow_strnicmp" != "xyes"; then
37172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37173 $as_echo "yes" >&6; }
37174 tst_allow_strnicmp="yes"
37176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37177 $as_echo "no" >&6; }
37178 tst_allow_strnicmp="no"
37182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
37183 $as_echo_n "checking if strnicmp might be used... " >&6; }
37184 if test "$tst_links_strnicmp" = "yes" &&
37185 test "$tst_proto_strnicmp" = "yes" &&
37186 test "$tst_compi_strnicmp" = "yes" &&
37187 test "$tst_allow_strnicmp" = "yes"; then
37188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37189 $as_echo "yes" >&6; }
37191 cat >>confdefs.h <<_ACEOF
37192 #define HAVE_STRNICMP 1
37195 ac_cv_func_strnicmp="yes"
37197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37198 $as_echo "no" >&6; }
37199 ac_cv_func_strnicmp="no"
37204 tst_links_strstr="unknown"
37205 tst_proto_strstr="unknown"
37206 tst_compi_strstr="unknown"
37207 tst_allow_strstr="unknown"
37209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
37210 $as_echo_n "checking if strstr can be linked... " >&6; }
37211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37212 /* end confdefs.h. */
37215 #define strstr innocuous_strstr
37217 # include <limits.h>
37219 # include <assert.h>
37226 #if defined __stub_strstr || defined __stub___strstr
37238 if ac_fn_c_try_link "$LINENO"; then :
37240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37241 $as_echo "yes" >&6; }
37242 tst_links_strstr="yes"
37246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37247 $as_echo "no" >&6; }
37248 tst_links_strstr="no"
37251 rm -f core conftest.err conftest.$ac_objext \
37252 conftest$ac_exeext conftest.$ac_ext
37254 if test "$tst_links_strstr" = "yes"; then
37255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
37256 $as_echo_n "checking if strstr is prototyped... " >&6; }
37257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37258 /* end confdefs.h. */
37260 $curl_includes_string
37263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37264 $EGREP "strstr" >/dev/null 2>&1; then :
37266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37267 $as_echo "yes" >&6; }
37268 tst_proto_strstr="yes"
37272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37273 $as_echo "no" >&6; }
37274 tst_proto_strstr="no"
37281 if test "$tst_proto_strstr" = "yes"; then
37282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
37283 $as_echo_n "checking if strstr is compilable... " >&6; }
37284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37285 /* end confdefs.h. */
37288 $curl_includes_string
37293 if(0 != strstr(0, 0))
37301 if ac_fn_c_try_compile "$LINENO"; then :
37303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37304 $as_echo "yes" >&6; }
37305 tst_compi_strstr="yes"
37309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37310 $as_echo "no" >&6; }
37311 tst_compi_strstr="no"
37314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37317 if test "$tst_compi_strstr" = "yes"; then
37318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
37319 $as_echo_n "checking if strstr usage allowed... " >&6; }
37320 if test "x$curl_disallow_strstr" != "xyes"; then
37321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37322 $as_echo "yes" >&6; }
37323 tst_allow_strstr="yes"
37325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37326 $as_echo "no" >&6; }
37327 tst_allow_strstr="no"
37331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
37332 $as_echo_n "checking if strstr might be used... " >&6; }
37333 if test "$tst_links_strstr" = "yes" &&
37334 test "$tst_proto_strstr" = "yes" &&
37335 test "$tst_compi_strstr" = "yes" &&
37336 test "$tst_allow_strstr" = "yes"; then
37337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37338 $as_echo "yes" >&6; }
37340 cat >>confdefs.h <<_ACEOF
37341 #define HAVE_STRSTR 1
37344 ac_cv_func_strstr="yes"
37346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37347 $as_echo "no" >&6; }
37348 ac_cv_func_strstr="no"
37353 tst_links_strtok_r="unknown"
37354 tst_proto_strtok_r="unknown"
37355 tst_compi_strtok_r="unknown"
37356 tst_allow_strtok_r="unknown"
37358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
37359 $as_echo_n "checking if strtok_r can be linked... " >&6; }
37360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37361 /* end confdefs.h. */
37364 #define strtok_r innocuous_strtok_r
37366 # include <limits.h>
37368 # include <assert.h>
37375 #if defined __stub_strtok_r || defined __stub___strtok_r
37381 return strtok_r ();
37387 if ac_fn_c_try_link "$LINENO"; then :
37389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37390 $as_echo "yes" >&6; }
37391 tst_links_strtok_r="yes"
37395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37396 $as_echo "no" >&6; }
37397 tst_links_strtok_r="no"
37400 rm -f core conftest.err conftest.$ac_objext \
37401 conftest$ac_exeext conftest.$ac_ext
37403 if test "$tst_links_strtok_r" = "yes"; then
37404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
37405 $as_echo_n "checking if strtok_r is prototyped... " >&6; }
37406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37407 /* end confdefs.h. */
37409 $curl_includes_string
37412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37413 $EGREP "strtok_r" >/dev/null 2>&1; then :
37415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37416 $as_echo "yes" >&6; }
37417 tst_proto_strtok_r="yes"
37421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37422 $as_echo "no" >&6; }
37423 tst_proto_strtok_r="no"
37430 if test "$tst_proto_strtok_r" = "yes"; then
37431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
37432 $as_echo_n "checking if strtok_r is compilable... " >&6; }
37433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37434 /* end confdefs.h. */
37437 $curl_includes_string
37442 if(0 != strtok_r(0, 0, 0))
37450 if ac_fn_c_try_compile "$LINENO"; then :
37452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37453 $as_echo "yes" >&6; }
37454 tst_compi_strtok_r="yes"
37458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37459 $as_echo "no" >&6; }
37460 tst_compi_strtok_r="no"
37463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37466 if test "$tst_compi_strtok_r" = "yes"; then
37467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
37468 $as_echo_n "checking if strtok_r usage allowed... " >&6; }
37469 if test "x$curl_disallow_strtok_r" != "xyes"; then
37470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37471 $as_echo "yes" >&6; }
37472 tst_allow_strtok_r="yes"
37474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37475 $as_echo "no" >&6; }
37476 tst_allow_strtok_r="no"
37480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
37481 $as_echo_n "checking if strtok_r might be used... " >&6; }
37482 if test "$tst_links_strtok_r" = "yes" &&
37483 test "$tst_proto_strtok_r" = "yes" &&
37484 test "$tst_compi_strtok_r" = "yes" &&
37485 test "$tst_allow_strtok_r" = "yes"; then
37486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37487 $as_echo "yes" >&6; }
37489 cat >>confdefs.h <<_ACEOF
37490 #define HAVE_STRTOK_R 1
37493 ac_cv_func_strtok_r="yes"
37495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37496 $as_echo "no" >&6; }
37497 ac_cv_func_strtok_r="no"
37502 tst_links_strtoll="unknown"
37503 tst_proto_strtoll="unknown"
37504 tst_compi_strtoll="unknown"
37505 tst_allow_strtoll="unknown"
37507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
37508 $as_echo_n "checking if strtoll can be linked... " >&6; }
37509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37510 /* end confdefs.h. */
37513 #define strtoll innocuous_strtoll
37515 # include <limits.h>
37517 # include <assert.h>
37524 #if defined __stub_strtoll || defined __stub___strtoll
37536 if ac_fn_c_try_link "$LINENO"; then :
37538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37539 $as_echo "yes" >&6; }
37540 tst_links_strtoll="yes"
37544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37545 $as_echo "no" >&6; }
37546 tst_links_strtoll="no"
37549 rm -f core conftest.err conftest.$ac_objext \
37550 conftest$ac_exeext conftest.$ac_ext
37552 if test "$tst_links_strtoll" = "yes"; then
37553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
37554 $as_echo_n "checking if strtoll is prototyped... " >&6; }
37555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37556 /* end confdefs.h. */
37558 $curl_includes_stdlib
37561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37562 $EGREP "strtoll" >/dev/null 2>&1; then :
37564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37565 $as_echo "yes" >&6; }
37566 tst_proto_strtoll="yes"
37570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37571 $as_echo "no" >&6; }
37572 tst_proto_strtoll="no"
37579 if test "$tst_proto_strtoll" = "yes"; then
37580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
37581 $as_echo_n "checking if strtoll is compilable... " >&6; }
37582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37583 /* end confdefs.h. */
37586 $curl_includes_stdlib
37591 if(0 != strtoll(0, 0, 0))
37599 if ac_fn_c_try_compile "$LINENO"; then :
37601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37602 $as_echo "yes" >&6; }
37603 tst_compi_strtoll="yes"
37607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37608 $as_echo "no" >&6; }
37609 tst_compi_strtoll="no"
37612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37615 if test "$tst_compi_strtoll" = "yes"; then
37616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
37617 $as_echo_n "checking if strtoll usage allowed... " >&6; }
37618 if test "x$curl_disallow_strtoll" != "xyes"; then
37619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37620 $as_echo "yes" >&6; }
37621 tst_allow_strtoll="yes"
37623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37624 $as_echo "no" >&6; }
37625 tst_allow_strtoll="no"
37629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
37630 $as_echo_n "checking if strtoll might be used... " >&6; }
37631 if test "$tst_links_strtoll" = "yes" &&
37632 test "$tst_proto_strtoll" = "yes" &&
37633 test "$tst_compi_strtoll" = "yes" &&
37634 test "$tst_allow_strtoll" = "yes"; then
37635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37636 $as_echo "yes" >&6; }
37638 cat >>confdefs.h <<_ACEOF
37639 #define HAVE_STRTOLL 1
37642 ac_cv_func_strtoll="yes"
37644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37645 $as_echo "no" >&6; }
37646 ac_cv_func_strtoll="no"
37650 curl_includes_sys_uio="\
37651 /* includes start */
37652 #ifdef HAVE_SYS_TYPES_H
37653 # include <sys/types.h>
37655 #ifdef HAVE_SYS_UIO_H
37656 # include <sys/uio.h>
37658 /* includes end */"
37659 for ac_header in sys/types.h sys/uio.h
37661 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37662 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
37664 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37665 cat >>confdefs.h <<_ACEOF
37666 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37676 tst_links_writev="unknown"
37677 tst_proto_writev="unknown"
37678 tst_compi_writev="unknown"
37679 tst_allow_writev="unknown"
37681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
37682 $as_echo_n "checking if writev can be linked... " >&6; }
37683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37684 /* end confdefs.h. */
37687 #define writev innocuous_writev
37689 # include <limits.h>
37691 # include <assert.h>
37698 #if defined __stub_writev || defined __stub___writev
37710 if ac_fn_c_try_link "$LINENO"; then :
37712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37713 $as_echo "yes" >&6; }
37714 tst_links_writev="yes"
37718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37719 $as_echo "no" >&6; }
37720 tst_links_writev="no"
37723 rm -f core conftest.err conftest.$ac_objext \
37724 conftest$ac_exeext conftest.$ac_ext
37726 if test "$tst_links_writev" = "yes"; then
37727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
37728 $as_echo_n "checking if writev is prototyped... " >&6; }
37729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37730 /* end confdefs.h. */
37732 $curl_includes_sys_uio
37735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37736 $EGREP "writev" >/dev/null 2>&1; then :
37738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37739 $as_echo "yes" >&6; }
37740 tst_proto_writev="yes"
37744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37745 $as_echo "no" >&6; }
37746 tst_proto_writev="no"
37753 if test "$tst_proto_writev" = "yes"; then
37754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
37755 $as_echo_n "checking if writev is compilable... " >&6; }
37756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37757 /* end confdefs.h. */
37760 $curl_includes_sys_uio
37765 if(0 != writev(0, 0, 0))
37773 if ac_fn_c_try_compile "$LINENO"; then :
37775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37776 $as_echo "yes" >&6; }
37777 tst_compi_writev="yes"
37781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37782 $as_echo "no" >&6; }
37783 tst_compi_writev="no"
37786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37789 if test "$tst_compi_writev" = "yes"; then
37790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
37791 $as_echo_n "checking if writev usage allowed... " >&6; }
37792 if test "x$curl_disallow_writev" != "xyes"; then
37793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37794 $as_echo "yes" >&6; }
37795 tst_allow_writev="yes"
37797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37798 $as_echo "no" >&6; }
37799 tst_allow_writev="no"
37803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
37804 $as_echo_n "checking if writev might be used... " >&6; }
37805 if test "$tst_links_writev" = "yes" &&
37806 test "$tst_proto_writev" = "yes" &&
37807 test "$tst_compi_writev" = "yes" &&
37808 test "$tst_allow_writev" = "yes"; then
37809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37810 $as_echo "yes" >&6; }
37812 cat >>confdefs.h <<_ACEOF
37813 #define HAVE_WRITEV 1
37816 ac_cv_func_writev="yes"
37818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37819 $as_echo "no" >&6; }
37820 ac_cv_func_writev="no"
37828 { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
37829 $as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
37833 for ac_func in fork \
37851 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
37852 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
37853 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
37854 cat >>confdefs.h <<_ACEOF
37855 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
37862 eval skipcheck=\$skipcheck_$func
37863 if test "x$skipcheck" != "xyes"; then
37864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
37865 $as_echo_n "checking deeper for $func... " >&6; }
37866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37867 /* end confdefs.h. */
37881 if ac_fn_c_try_link "$LINENO"; then :
37883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37884 $as_echo "yes" >&6; }
37885 eval "ac_cv_func_$func=yes"
37887 cat >>confdefs.h <<_ACEOF
37888 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
37894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
37895 $as_echo "but still no" >&6; }
37898 rm -f core conftest.err conftest.$ac_objext \
37899 conftest$ac_exeext conftest.$ac_ext
37907 for ac_header in sys/types.h sys/socket.h netdb.h
37909 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37910 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
37911 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37912 cat >>confdefs.h <<_ACEOF
37913 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
37922 $as_echo_n "checking for getnameinfo... " >&6; }
37923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37924 /* end confdefs.h. */
37927 #define getnameinfo innocuous_getnameinfo
37929 # include <limits.h>
37931 # include <assert.h>
37937 char getnameinfo ();
37938 #if defined __stub_getnameinfo || defined __stub___getnameinfo
37944 return getnameinfo ();
37950 if ac_fn_c_try_link "$LINENO"; then :
37952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37953 $as_echo "yes" >&6; }
37954 curl_cv_getnameinfo="yes"
37958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37959 $as_echo "no" >&6; }
37960 curl_cv_getnameinfo="no"
37963 rm -f core conftest.err conftest.$ac_objext \
37964 conftest$ac_exeext conftest.$ac_ext
37966 if test "$curl_cv_getnameinfo" != "yes"; then
37967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
37968 $as_echo_n "checking deeper for getnameinfo... " >&6; }
37969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37970 /* end confdefs.h. */
37984 if ac_fn_c_try_link "$LINENO"; then :
37986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37987 $as_echo "yes" >&6; }
37988 curl_cv_getnameinfo="yes"
37992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
37993 $as_echo "but still no" >&6; }
37994 curl_cv_getnameinfo="no"
37997 rm -f core conftest.err conftest.$ac_objext \
37998 conftest$ac_exeext conftest.$ac_ext
38001 if test "$curl_cv_getnameinfo" != "yes"; then
38002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
38003 $as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
38004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38005 /* end confdefs.h. */
38009 #ifdef HAVE_WINDOWS_H
38010 #ifndef WIN32_LEAN_AND_MEAN
38011 #define WIN32_LEAN_AND_MEAN
38013 #include <windows.h>
38014 #ifdef HAVE_WINSOCK2_H
38015 #include <winsock2.h>
38016 #ifdef HAVE_WS2TCPIP_H
38017 #include <ws2tcpip.h>
38021 #ifdef HAVE_SYS_TYPES_H
38022 #include <sys/types.h>
38024 #ifdef HAVE_SYS_SOCKET_H
38025 #include <sys/socket.h>
38027 #ifdef HAVE_NETDB_H
38035 getnameinfo(0, 0, 0, 0, 0, 0, 0);
38042 if ac_fn_c_try_link "$LINENO"; then :
38044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38045 $as_echo "yes" >&6; }
38046 curl_cv_getnameinfo="yes"
38050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
38051 $as_echo "but still no" >&6; }
38052 curl_cv_getnameinfo="no"
38055 rm -f core conftest.err conftest.$ac_objext \
38056 conftest$ac_exeext conftest.$ac_ext
38059 if test "$curl_cv_getnameinfo" = "yes"; then
38060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
38061 $as_echo_n "checking types of arguments for getnameinfo... " >&6; }
38062 if ${curl_cv_func_getnameinfo_args+:} false; then :
38063 $as_echo_n "(cached) " >&6
38066 curl_cv_func_getnameinfo_args="unknown"
38067 for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
38068 for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
38069 for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
38070 for gni_arg7 in 'int' 'unsigned int'; do
38071 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
38072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38073 /* end confdefs.h. */
38077 #ifdef HAVE_WINDOWS_H
38078 #ifndef WIN32_LEAN_AND_MEAN
38079 #define WIN32_LEAN_AND_MEAN
38081 #if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
38082 #undef _WIN32_WINNT
38083 #define _WIN32_WINNT 0x0501
38085 #include <windows.h>
38086 #ifdef HAVE_WINSOCK2_H
38087 #include <winsock2.h>
38088 #ifdef HAVE_WS2TCPIP_H
38089 #include <ws2tcpip.h>
38092 #define GNICALLCONV WSAAPI
38094 #ifdef HAVE_SYS_TYPES_H
38095 #include <sys/types.h>
38097 #ifdef HAVE_SYS_SOCKET_H
38098 #include <sys/socket.h>
38100 #ifdef HAVE_NETDB_H
38103 #define GNICALLCONV
38105 extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
38106 char *, $gni_arg46,
38107 char *, $gni_arg46,
38114 $gni_arg46 hostlen=0;
38115 $gni_arg46 servlen=0;
38117 int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
38124 if ac_fn_c_try_compile "$LINENO"; then :
38126 curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
38129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
38138 $as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
38139 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
38140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
38141 $as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
38142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
38143 $as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
38145 gni_prev_IFS=$IFS; IFS=','
38146 set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
38150 gni_qual_type_arg1=$1
38153 cat >>confdefs.h <<_ACEOF
38154 #define GETNAMEINFO_TYPE_ARG2 $2
38158 cat >>confdefs.h <<_ACEOF
38159 #define GETNAMEINFO_TYPE_ARG46 $3
38163 cat >>confdefs.h <<_ACEOF
38164 #define GETNAMEINFO_TYPE_ARG7 $4
38170 case $prev_sh_opts in
38178 case "$gni_qual_type_arg1" in
38180 gni_qual_arg1=const
38181 gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
38185 gni_type_arg1=$gni_qual_type_arg1
38190 cat >>confdefs.h <<_ACEOF
38191 #define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
38195 cat >>confdefs.h <<_ACEOF
38196 #define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
38200 case $prev_sh_opts in
38209 cat >>confdefs.h <<_ACEOF
38210 #define HAVE_GETNAMEINFO 1
38213 ac_cv_func_getnameinfo="yes"
38218 if test "$ipv6" = "yes"; then
38219 if test "$ac_cv_func_getaddrinfo" = "yes"; then
38221 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
38227 for ac_header in stdio.h sys/types.h sys/socket.h \
38228 netdb.h netinet/in.h arpa/inet.h
38230 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38231 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
38232 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
38233 cat >>confdefs.h <<_ACEOF
38234 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working NI_WITHSCOPEID" >&5
38243 $as_echo_n "checking for working NI_WITHSCOPEID... " >&6; }
38244 if ${ac_cv_working_ni_withscopeid+:} false; then :
38245 $as_echo_n "(cached) " >&6
38248 if test "$cross_compiling" = yes; then :
38250 # Program is not run when cross-compiling. So we assume
38251 # NI_WITHSCOPEID will work if we are able to compile it.
38252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38253 /* end confdefs.h. */
38256 #include <sys/types.h>
38257 #include <sys/socket.h>
38263 unsigned int dummy= NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
38270 if ac_fn_c_try_compile "$LINENO"; then :
38272 ac_cv_working_ni_withscopeid="yes"
38276 ac_cv_working_ni_withscopeid="no"
38279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # AC-COMPILE-IFELSE
38282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38283 /* end confdefs.h. */
38286 #ifdef HAVE_STDLIB_H
38287 #include <stdlib.h>
38289 #ifdef HAVE_STDIO_H
38292 #ifdef HAVE_SYS_TYPES_H
38293 #include <sys/types.h>
38295 #ifdef HAVE_SYS_SOCKET_H
38296 #include <sys/socket.h>
38298 #ifdef HAVE_NETDB_H
38301 #ifdef HAVE_NETINET_IN_H
38302 #include <netinet/in.h>
38304 #ifdef HAVE_ARPA_INET_H
38305 #include <arpa/inet.h>
38311 #if defined(NI_WITHSCOPEID) && defined(HAVE_GETNAMEINFO)
38312 #ifdef HAVE_STRUCT_SOCKADDR_STORAGE
38313 struct sockaddr_storage sa;
38315 unsigned char sa[256];
38317 char hostbuf[NI_MAXHOST];
38319 GETNAMEINFO_TYPE_ARG2 salen = (GETNAMEINFO_TYPE_ARG2)sizeof(sa);
38320 GETNAMEINFO_TYPE_ARG46 hostlen = (GETNAMEINFO_TYPE_ARG46)sizeof(hostbuf);
38321 GETNAMEINFO_TYPE_ARG7 flags = NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
38322 int fd = socket(AF_INET6, SOCK_STREAM, 0);
38324 perror("socket()");
38325 return 1; /* Error creating socket */
38327 rc = getsockname(fd, (GETNAMEINFO_TYPE_ARG1)&sa, &salen);
38329 perror("getsockname()");
38330 return 2; /* Error retrieving socket name */
38332 rc = getnameinfo((GETNAMEINFO_TYPE_ARG1)&sa, salen, hostbuf, hostlen, NULL, 0, flags);
38334 printf("rc = %s\n", gai_strerror(rc));
38335 return 3; /* Error translating socket address */
38337 return 0; /* Ok, NI_WITHSCOPEID works */
38339 return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */
38344 } # AC-LANG-PROGRAM
38347 if ac_fn_c_try_run "$LINENO"; then :
38349 # Exit code == 0. Program worked.
38350 ac_cv_working_ni_withscopeid="yes"
38354 # Exit code != 0. Program failed.
38355 ac_cv_working_ni_withscopeid="no"
38358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38359 conftest.$ac_objext conftest.beam conftest.$ac_ext
38364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_ni_withscopeid" >&5
38365 $as_echo "$ac_cv_working_ni_withscopeid" >&6; } # AC-CACHE-CHECK
38366 case "$ac_cv_working_ni_withscopeid" in
38369 $as_echo "#define HAVE_NI_WITHSCOPEID 1" >>confdefs.h
38378 tst_method="unknown"
38380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
38381 $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
38382 if test "x$ac_cv_func_fcntl_o_nonblock" = "xyes"; then
38383 tst_method="fcntl O_NONBLOCK"
38384 elif test "x$ac_cv_func_ioctl_fionbio" = "xyes"; then
38385 tst_method="ioctl FIONBIO"
38386 elif test "x$ac_cv_func_ioctlsocket_fionbio" = "xyes"; then
38387 tst_method="ioctlsocket FIONBIO"
38388 elif test "x$ac_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
38389 tst_method="IoctlSocket FIONBIO"
38390 elif test "x$ac_cv_func_setsockopt_so_nonblock" = "xyes"; then
38391 tst_method="setsockopt SO_NONBLOCK"
38393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
38394 $as_echo "$tst_method" >&6; }
38395 if test "$tst_method" = "unknown"; then
38396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
38397 $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
38402 # Extract the first word of "perl", so it can be a program name with args.
38403 set dummy perl; ac_word=$2
38404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38405 $as_echo_n "checking for $ac_word... " >&6; }
38406 if ${ac_cv_path_PERL+:} false; then :
38407 $as_echo_n "(cached) " >&6
38411 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
38414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38415 as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
38416 for as_dir in $as_dummy
38419 test -z "$as_dir" && as_dir=.
38420 for ac_exec_ext in '' $ac_executable_extensions; do
38421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38422 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
38423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38433 PERL=$ac_cv_path_PERL
38434 if test -n "$PERL"; then
38435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
38436 $as_echo "$PERL" >&6; }
38438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38439 $as_echo "no" >&6; }
38445 for ac_prog in gnroff nroff
38447 # Extract the first word of "$ac_prog", so it can be a program name with args.
38448 set dummy $ac_prog; ac_word=$2
38449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38450 $as_echo_n "checking for $ac_word... " >&6; }
38451 if ${ac_cv_path_NROFF+:} false; then :
38452 $as_echo_n "(cached) " >&6
38456 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
38459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38460 as_dummy="$PATH:/usr/bin/:/usr/local/bin "
38461 for as_dir in $as_dummy
38464 test -z "$as_dir" && as_dir=.
38465 for ac_exec_ext in '' $ac_executable_extensions; do
38466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38467 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
38468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38478 NROFF=$ac_cv_path_NROFF
38479 if test -n "$NROFF"; then
38480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
38481 $as_echo "$NROFF" >&6; }
38483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38484 $as_echo "no" >&6; }
38488 test -n "$NROFF" && break
38493 if test -n "$NROFF"; then
38495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
38496 $as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
38498 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
38499 if test -z "$mancheck"; then
38501 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
38502 if test -z "$mancheck"; then
38504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
38505 $as_echo "failed" >&6; }
38506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
38507 $as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
38509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
38510 $as_echo "$MANOPT" >&6; }
38513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
38514 $as_echo "$MANOPT" >&6; }
38519 if test -z "$MANOPT"
38521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
38522 $as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
38527 if test "$USE_MANUAL" = "1"; then
38529 $as_echo "#define USE_MANUAL 1" >>confdefs.h
38531 curl_manual_msg="enabled"
38534 if test x"$USE_MANUAL" = x1; then
38536 USE_MANUAL_FALSE='#'
38538 USE_MANUAL_TRUE='#'
38547 if test "$want_ares" = "yes"; then
38548 clean_CPPFLAGS="$CPPFLAGS"
38549 clean_LDFLAGS="$LDFLAGS"
38551 embedded_ares="unknown"
38552 configure_runpath=`pwd`
38553 embedded_ares_builddir="$configure_runpath/ares"
38554 if test -n "$want_ares_path"; then
38555 ares_CPPFLAGS="-I$want_ares_path/include"
38556 ares_LDFLAGS="-L$want_ares_path/lib"
38557 ares_LIBS="-lcares"
38559 if test -d "$srcdir/ares"; then
38560 embedded_ares="yes"
38561 subdirs="$subdirs ares"
38564 ares_LDFLAGS="-L$embedded_ares_builddir"
38565 ares_LIBS="-lcares"
38569 ares_LIBS="-lcares"
38573 CPPFLAGS="$ares_CPPFLAGS $clean_CPPFLAGS"
38574 LDFLAGS="$ares_LDFLAGS $clean_LDFLAGS"
38575 LIBS="$ares_LIBS $clean_LIBS"
38577 if test "$embedded_ares" != "yes"; then
38578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
38579 $as_echo_n "checking that c-ares is good and recent enough... " >&6; }
38580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38581 /* end confdefs.h. */
38585 /* set of dummy functions in case c-ares was built with debug */
38586 void curl_dofree() { }
38587 void curl_sclose() { }
38588 void curl_domalloc() { }
38589 void curl_docalloc() { }
38590 void curl_socket() { }
38595 ares_channel channel;
38596 ares_cancel(channel); /* added in 1.2.0 */
38597 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
38598 ares_dup(&channel, channel); /* added in 1.6.0 */
38605 if ac_fn_c_try_link "$LINENO"; then :
38607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38608 $as_echo "yes" >&6; }
38612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38613 $as_echo "no" >&6; }
38614 as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
38615 CPPFLAGS="$clean_CPPFLAGS"
38616 LDFLAGS="$clean_LDFLAGS"
38622 rm -f core conftest.err conftest.$ac_objext \
38623 conftest$ac_exeext conftest.$ac_ext
38625 if test "$want_ares" = "yes"; then
38627 $as_echo "#define USE_ARES 1" >>confdefs.h
38631 curl_res_msg="c-ares"
38635 if test x$embedded_ares = xyes; then
38636 USE_EMBEDDED_ARES_TRUE=
38637 USE_EMBEDDED_ARES_FALSE='#'
38639 USE_EMBEDDED_ARES_TRUE='#'
38640 USE_EMBEDDED_ARES_FALSE=
38644 if test "x$ac_cv_native_windows" != "xyes" &&
38645 test "x$enable_shared" = "xyes"; then
38646 build_libhostname=yes
38648 build_libhostname=no
38650 if test x$build_libhostname = xyes; then
38651 BUILD_LIBHOSTNAME_TRUE=
38652 BUILD_LIBHOSTNAME_FALSE='#'
38654 BUILD_LIBHOSTNAME_TRUE='#'
38655 BUILD_LIBHOSTNAME_FALSE=
38660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
38661 $as_echo_n "checking whether to enable the threaded resolver... " >&6; }
38662 OPT_THRES="default"
38663 # Check whether --enable-threaded_resolver was given.
38664 if test "${enable_threaded_resolver+set}" = set; then :
38665 enableval=$enable_threaded_resolver; OPT_THRES=$enableval
38668 case "$OPT_THRES" in
38676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
38677 $as_echo "$want_thres" >&6; }
38680 if test "x$want_thres" = xyes && test "x$want_ares" = xyes; then
38681 as_fn_error $? "Options --enable-threaded-resolver and --enable-ares are mutually exclusive" "$LINENO" 5
38684 if test "$want_thres" = "yes"; then
38685 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
38686 if test "x$ac_cv_header_pthread_h" = xyes; then :
38688 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
38690 save_CFLAGS="$CFLAGS"
38692 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
38693 if test "x$ac_cv_func_pthread_create" = xyes; then :
38694 USE_THREADS_POSIX=1
38698 if test "$USE_THREADS_POSIX" != "1"
38700 CFLAGS="$CFLAGS -pthread"
38701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
38702 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
38703 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
38704 $as_echo_n "(cached) " >&6
38706 ac_check_lib_save_LIBS=$LIBS
38707 LIBS="-lpthread $LIBS"
38708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38709 /* end confdefs.h. */
38715 char pthread_create ();
38718 return pthread_create ();
38723 if ac_fn_c_try_link "$LINENO"; then :
38724 ac_cv_lib_pthread_pthread_create=yes
38726 ac_cv_lib_pthread_pthread_create=no
38728 rm -f core conftest.err conftest.$ac_objext \
38729 conftest$ac_exeext conftest.$ac_ext
38730 LIBS=$ac_check_lib_save_LIBS
38732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
38733 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
38734 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
38735 USE_THREADS_POSIX=1
38737 CFLAGS="$save_CFLAGS"
38742 if test "x$USE_THREADS_POSIX" = "x1"
38745 $as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
38747 curl_res_msg="POSIX threaded"
38757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
38758 $as_echo_n "checking whether to enable verbose strings... " >&6; }
38759 # Check whether --enable-verbose was given.
38760 if test "${enable_verbose+set}" = set; then :
38761 enableval=$enable_verbose; case "$enableval" in
38763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38764 $as_echo "no" >&6; }
38766 $as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
38768 curl_verbose_msg="no"
38770 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38771 $as_echo "yes" >&6; }
38775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38776 $as_echo "yes" >&6; }
38781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
38782 $as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
38783 # Check whether --enable-sspi was given.
38784 if test "${enable_sspi+set}" = set; then :
38785 enableval=$enable_sspi; case "$enableval" in
38787 if test "$ac_cv_native_windows" = "yes"; then
38788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38789 $as_echo "yes" >&6; }
38791 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
38795 curl_sspi_msg="enabled"
38797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38798 $as_echo "no" >&6; }
38799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
38800 $as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
38804 if test "x$WINSSL_ENABLED" = "x1"; then
38805 # --with-winssl implies --enable-sspi
38806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38807 $as_echo "yes" >&6; }
38809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38810 $as_echo "no" >&6; }
38815 if test "x$WINSSL_ENABLED" = "x1"; then
38816 # --with-winssl implies --enable-sspi
38817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38818 $as_echo "yes" >&6; }
38820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38821 $as_echo "no" >&6; }
38827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
38828 $as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
38829 # Check whether --enable-crypto-auth was given.
38830 if test "${enable_crypto_auth+set}" = set; then :
38831 enableval=$enable_crypto_auth; case "$enableval" in
38833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38834 $as_echo "no" >&6; }
38836 $as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
38839 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38840 $as_echo "yes" >&6; }
38844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38845 $as_echo "yes" >&6; }
38851 OPT_NTLM_WB="default"
38852 # Check whether --enable-ntlm-wb was given.
38853 if test "${enable_ntlm_wb+set}" = set; then :
38854 enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
38857 want_ntlm_wb_file="/usr/bin/ntlm_auth"
38858 case "$OPT_NTLM_WB" in
38867 if test -n "$enableval" && test "$enableval" != "yes"; then
38868 want_ntlm_wb_file="$enableval"
38875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
38876 $as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
38877 if test "$ac_cv_native_windows" = "yes" ||
38878 test "x$SSL_ENABLED" = "x"; then
38879 want_ntlm_wb_file=""
38882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
38883 $as_echo "$want_ntlm_wb" >&6; }
38884 if test "$want_ntlm_wb" = "yes"; then
38886 $as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
38889 cat >>confdefs.h <<_ACEOF
38890 #define NTLM_WB_FILE "$want_ntlm_wb_file"
38897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
38898 $as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
38899 # Check whether --enable-tls-srp was given.
38900 if test "${enable_tls_srp+set}" = set; then :
38901 enableval=$enable_tls_srp; case "$enableval" in
38903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38904 $as_echo "no" >&6; }
38906 $as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h
38910 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38911 $as_echo "yes" >&6; }
38916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38917 $as_echo "yes" >&6; }
38923 if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_SSLEAY_SRP" = "x1") ; then
38925 $as_echo "#define USE_TLS_SRP 1" >>confdefs.h
38928 curl_tls_srp_msg="enabled"
38931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
38932 $as_echo_n "checking whether to enable support for cookies... " >&6; }
38933 # Check whether --enable-cookies was given.
38934 if test "${enable_cookies+set}" = set; then :
38935 enableval=$enable_cookies; case "$enableval" in
38937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38938 $as_echo "no" >&6; }
38940 $as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
38943 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38944 $as_echo "yes" >&6; }
38948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38949 $as_echo "yes" >&6; }
38955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
38956 $as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
38957 CFLAG_CURL_SYMBOL_HIDING=""
38958 doing_symbol_hiding="no"
38959 if test x"$ac_cv_native_windows" != "xyes" &&
38960 test "$want_symbol_hiding" = "yes" &&
38961 test "$supports_symbol_hiding" = "yes"; then
38962 doing_symbol_hiding="yes"
38963 CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
38965 cat >>confdefs.h <<_ACEOF
38966 #define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
38969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38970 $as_echo "yes" >&6; }
38972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38973 $as_echo "no" >&6; }
38975 if test x$doing_symbol_hiding = xyes; then
38976 DOING_CURL_SYMBOL_HIDING_TRUE=
38977 DOING_CURL_SYMBOL_HIDING_FALSE='#'
38979 DOING_CURL_SYMBOL_HIDING_TRUE='#'
38980 DOING_CURL_SYMBOL_HIDING_FALSE=
38987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enforce SONAME bump" >&5
38988 $as_echo_n "checking whether to enforce SONAME bump... " >&6; }
38989 # Check whether --enable-soname-bump was given.
38990 if test "${enable_soname_bump+set}" = set; then :
38991 enableval=$enable_soname_bump; case "$enableval" in
38992 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38993 $as_echo "yes" >&6; }
38997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38998 $as_echo "no" >&6; }
39002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $soname_bump" >&5
39003 $as_echo "$soname_bump" >&6; }
39007 if test x$soname_bump = xyes; then
39009 SONAME_BUMP_FALSE='#'
39011 SONAME_BUMP_TRUE='#'
39025 if test x$cross_compiling = xyes; then
39026 CROSSCOMPILING_TRUE=
39027 CROSSCOMPILING_FALSE='#'
39029 CROSSCOMPILING_TRUE='#'
39030 CROSSCOMPILING_FALSE=
39034 ENABLE_SHARED="$enable_shared"
39037 ENABLE_STATIC="$enable_static"
39042 if test "x$USE_SSLEAY" = "x1"; then
39043 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
39044 elif test -n "$SSL_ENABLED"; then
39045 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
39047 if test "@KRB4_ENABLED@" = "x1"; then
39048 SUPPORT_FEATURES="$SUPPORT_FEATURES KRB4"
39050 if test "x$IPV6_ENABLED" = "x1"; then
39051 SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
39053 if test "x$HAVE_LIBZ" = "x1"; then
39054 SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
39056 if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1"; then
39057 SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
39059 if test "x$IDN_ENABLED" = "x1"; then
39060 SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
39062 if test "x$USE_WINDOWS_SSPI" = "x1"; then
39063 SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
39065 if test "x$CURL_DISABLE_HTTP" != "x1"; then
39066 if test "x$USE_SSLEAY" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
39067 -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1" \
39068 -o "x$DARWINSSL_ENABLED" = "x1"; then
39069 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
39070 if test "x$NTLM_WB_ENABLED" = "x1"; then
39071 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
39075 if test "x$USE_TLS_SRP" = "x1"; then
39076 SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
39081 if test "x$CURL_DISABLE_HTTP" != "x1"; then
39082 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
39083 if test "x$SSL_ENABLED" = "x1"; then
39084 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
39087 if test "x$CURL_DISABLE_FTP" != "x1"; then
39088 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
39089 if test "x$SSL_ENABLED" = "x1"; then
39090 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
39093 if test "x$CURL_DISABLE_FILE" != "x1"; then
39094 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
39096 if test "x$CURL_DISABLE_TELNET" != "x1"; then
39097 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
39099 if test "x$CURL_DISABLE_LDAP" != "x1"; then
39100 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
39101 if test "x$CURL_DISABLE_LDAPS" != "x1"; then
39102 if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
39103 (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then
39104 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
39108 if test "x$CURL_DISABLE_DICT" != "x1"; then
39109 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
39111 if test "x$CURL_DISABLE_TFTP" != "x1"; then
39112 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
39114 if test "x$CURL_DISABLE_GOPHER" != "x1"; then
39115 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
39117 if test "x$CURL_DISABLE_POP3" != "x1"; then
39118 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
39119 if test "x$SSL_ENABLED" = "x1"; then
39120 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
39123 if test "x$CURL_DISABLE_IMAP" != "x1"; then
39124 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
39125 if test "x$SSL_ENABLED" = "x1"; then
39126 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
39129 if test "x$CURL_DISABLE_SMTP" != "x1"; then
39130 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
39131 if test "x$SSL_ENABLED" = "x1"; then
39132 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
39135 if test "x$USE_LIBSSH2" = "x1"; then
39136 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
39137 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
39139 if test "x$CURL_DISABLE_RTSP" != "x1"; then
39140 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
39142 if test "x$USE_LIBRTMP" = "x1"; then
39143 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
39146 SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
39157 squeeze LIBCURL_LIBS
39158 squeeze CURL_NETWORK_LIBS
39159 squeeze CURL_NETWORK_AND_TIME_LIBS
39161 squeeze SUPPORT_FEATURES
39162 squeeze SUPPORT_PROTOCOLS
39167 for xc_word in $LIBS; do
39173 xc_bad_var_libs=yes
39177 if test $xc_bad_var_libs = yes; then
39178 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
39179 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
39180 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
39181 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
39185 xc_bad_var_ldflags=no
39186 for xc_word in $LDFLAGS; do
39189 xc_bad_var_ldflags=yes
39192 xc_bad_var_ldflags=yes
39195 xc_bad_var_ldflags=yes
39198 xc_bad_var_ldflags=yes
39202 if test $xc_bad_var_ldflags = yes; then
39203 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
39204 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
39205 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
39206 for xc_word in $LDFLAGS; do
39209 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
39210 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
39213 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
39214 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
39217 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
39218 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
39221 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
39222 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
39229 xc_bad_var_cppflags=no
39230 for xc_word in $CPPFLAGS; do
39233 xc_bad_var_cppflags=yes
39235 -L* | --library-path=*)
39236 xc_bad_var_cppflags=yes
39239 xc_bad_var_cppflags=yes
39243 if test $xc_bad_var_cppflags = yes; then
39244 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
39245 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
39246 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
39247 for xc_word in $CPPFLAGS; do
39250 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
39251 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
39253 -L* | --library-path=*)
39254 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
39255 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
39258 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
39259 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
39266 xc_bad_var_cflags=no
39267 for xc_word in $CFLAGS; do
39270 xc_bad_var_cflags=yes
39273 xc_bad_var_cflags=yes
39276 xc_bad_var_cflags=yes
39279 xc_bad_var_cflags=yes
39281 -L* | --library-path=*)
39282 xc_bad_var_cflags=yes
39285 xc_bad_var_cflags=yes
39289 if test $xc_bad_var_cflags = yes; then
39290 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
39291 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
39292 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
39293 for xc_word in $CFLAGS; do
39296 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
39297 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
39300 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
39301 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
39304 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
39305 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
39308 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
39309 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
39311 -L* | --library-path=*)
39312 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
39313 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
39316 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
39317 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
39323 if test $xc_bad_var_libs = yes ||
39324 test $xc_bad_var_cflags = yes ||
39325 test $xc_bad_var_ldflags = yes ||
39326 test $xc_bad_var_cppflags = yes; then
39327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
39328 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
39332 if test "x$want_curldebug_assumed" = "xyes" &&
39333 test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
39334 ac_configure_args="$ac_configure_args --enable-curldebug"
39337 ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/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"
39339 cat >confcache <<\_ACEOF
39340 # This file is a shell script that caches the results of configure
39341 # tests run on this system so they can be shared between configure
39342 # scripts and configure runs, see configure's option --config-cache.
39343 # It is not useful on other systems. If it contains results you don't
39344 # want to keep, you may remove or edit it.
39346 # config.status only pays attention to the cache file if you give it
39347 # the --recheck option to rerun configure.
39349 # `ac_cv_env_foo' variables (set or unset) will be overridden when
39350 # loading this file, other *unset* `ac_cv_foo' will be assigned the
39351 # following values.
39355 # The following way of writing the cache mishandles newlines in values,
39356 # but we know of no workaround that is simple, portable, and efficient.
39357 # So, we kill variables containing newlines.
39358 # Ultrix sh set writes to stderr and can't be redirected directly,
39359 # and sets the high bit in the cache file unless we assign to the vars.
39361 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
39362 eval ac_val=\$$ac_var
39366 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
39367 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
39370 _ | IFS | as_nl) ;; #(
39371 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
39372 *) { eval $ac_var=; unset $ac_var;} ;;
39378 case $as_nl`(ac_space=' '; set) 2>&1` in #(
39379 *${as_nl}ac_space=\ *)
39380 # `set' does not quote correctly, so add quotes: double-quote
39381 # substitution turns \\\\ into \\, and sed turns \\ into \.
39384 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
39387 # `set' quotes correctly as required by POSIX, so do not add quotes.
39388 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
39397 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39399 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39401 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
39402 if test -w "$cache_file"; then
39403 if test "x$cache_file" != "x/dev/null"; then
39404 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
39405 $as_echo "$as_me: updating cache $cache_file" >&6;}
39406 if test ! -f "$cache_file" || test -h "$cache_file"; then
39407 cat confcache >"$cache_file"
39409 case $cache_file in #(
39411 mv -f confcache "$cache_file"$$ &&
39412 mv -f "$cache_file"$$ "$cache_file" ;; #(
39414 mv -f confcache "$cache_file" ;;
39419 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
39420 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
39425 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39426 # Let make expand exec_prefix.
39427 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39429 DEFS=-DHAVE_CONFIG_H
39434 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39435 # 1. Remove the extension, and $U if already installed.
39436 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
39437 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
39438 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
39439 # will be set to the directory where LIBOBJS objects are built.
39440 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
39441 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
39443 LIBOBJS=$ac_libobjs
39445 LTLIBOBJS=$ac_ltlibobjs
39448 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
39449 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
39450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
39453 $as_echo_n "checking that generated files are newer than configure... " >&6; }
39454 if test -n "$am_sleep_pid"; then
39455 # Hide warnings about reused PIDs.
39456 wait $am_sleep_pid 2>/dev/null
39458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
39459 $as_echo "done" >&6; }
39460 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
39461 as_fn_error $? "conditional \"AMDEP\" was never defined.
39462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39464 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39465 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
39466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39468 if test -n "$EXEEXT"; then
39470 am__EXEEXT_FALSE='#'
39472 am__EXEEXT_TRUE='#'
39476 if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
39477 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
39478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39480 if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
39481 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
39482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39484 if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
39485 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
39486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39488 if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
39489 as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
39490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39492 if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
39493 as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
39494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39496 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
39497 as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
39498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39500 if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
39501 as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
39502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39504 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
39505 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
39506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39508 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
39509 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
39510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39512 if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
39513 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
39514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39516 if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
39517 as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
39518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39520 if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
39521 as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
39522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39524 if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
39525 as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
39526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39528 if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
39529 as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
39530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39532 if test -z "${SONAME_BUMP_TRUE}" && test -z "${SONAME_BUMP_FALSE}"; then
39533 as_fn_error $? "conditional \"SONAME_BUMP\" was never defined.
39534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39536 if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
39537 as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
39538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39541 : "${CONFIG_STATUS=./config.status}"
39543 ac_clean_files_save=$ac_clean_files
39544 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39545 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
39546 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
39548 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
39550 # Generated by $as_me.
39551 # Run this file to recreate the current configuration.
39552 # Compiler output produced by configure, useful for debugging
39553 # configure, is in config.log if it exists.
39556 ac_cs_recheck=false
39559 SHELL=\${CONFIG_SHELL-$SHELL}
39562 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
39563 ## -------------------- ##
39564 ## M4sh Initialization. ##
39565 ## -------------------- ##
39567 # Be more Bourne compatible
39568 DUALCASE=1; export DUALCASE # for MKS sh
39569 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
39572 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
39573 # is contrary to our usage. Disable this feature.
39574 alias -g '${1+"$@"}'='"$@"'
39575 setopt NO_GLOB_SUBST
39577 case `(set -o) 2>/dev/null` in #(
39589 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39590 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39591 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
39592 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
39593 # Prefer a ksh shell builtin over an external printf program on Solaris,
39594 # but without wasting forks for bash or zsh.
39595 if test -z "$BASH_VERSION$ZSH_VERSION" \
39596 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
39597 as_echo='print -r --'
39598 as_echo_n='print -rn --'
39599 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
39600 as_echo='printf %s\n'
39601 as_echo_n='printf %s'
39603 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
39604 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
39605 as_echo_n='/usr/ucb/echo -n'
39607 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
39608 as_echo_n_body='eval
39612 expr "X$arg" : "X\\(.*\\)$as_nl";
39613 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
39615 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
39617 export as_echo_n_body
39618 as_echo_n='sh -c $as_echo_n_body as_echo'
39620 export as_echo_body
39621 as_echo='sh -c $as_echo_body as_echo'
39627 # We need space, tab and new line, in precisely that order. Quoting is
39628 # there to prevent editors from complaining about space-tab.
39629 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
39630 # splitting by setting IFS to empty value.)
39633 # Find who we are. Look in the path if we contain no directory separator.
39636 *[\\/]* ) as_myself=$0 ;;
39637 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39638 for as_dir in $PATH
39641 test -z "$as_dir" && as_dir=.
39642 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39648 # We did not find ourselves, most probably we were run as `sh COMMAND'
39649 # in which case we are not to be found in the path.
39650 if test "x$as_myself" = x; then
39653 if test ! -f "$as_myself"; then
39654 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
39658 # Unset variables that we do not need and which cause bugs (e.g. in
39659 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
39660 # suppresses any "Segmentation fault" message there. '((' could
39661 # trigger a bug in pdksh 5.2.14.
39662 for as_var in BASH_ENV ENV MAIL MAILPATH
39663 do eval test x\${$as_var+set} = xset \
39664 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
39677 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
39680 # as_fn_error STATUS ERROR [LINENO LOG_FD]
39681 # ----------------------------------------
39682 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
39683 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
39684 # script with STATUS, using 1 if that was 0.
39687 as_status=$1; test $as_status -eq 0 && as_status=1
39689 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
39690 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
39692 $as_echo "$as_me: error: $2" >&2
39693 as_fn_exit $as_status
39697 # as_fn_set_status STATUS
39698 # -----------------------
39699 # Set $? to STATUS, without forking.
39700 as_fn_set_status ()
39703 } # as_fn_set_status
39705 # as_fn_exit STATUS
39706 # -----------------
39707 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
39711 as_fn_set_status $1
39717 # Portably unset VAR.
39720 { eval $1=; unset $1;}
39722 as_unset=as_fn_unset
39723 # as_fn_append VAR VALUE
39724 # ----------------------
39725 # Append the text in VALUE to the end of the definition contained in VAR. Take
39726 # advantage of any shell optimizations that allow amortized linear growth over
39727 # repeated appends, instead of the typical quadratic growth present in naive
39729 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
39730 eval 'as_fn_append ()
39741 # as_fn_arith ARG...
39742 # ------------------
39743 # Perform arithmetic evaluation on the ARGs, and store the result in the
39744 # global $as_val. Take advantage of shells that can avoid forks. The arguments
39745 # must be portable across $(()) and expr.
39746 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
39747 eval 'as_fn_arith ()
39754 as_val=`expr "$@" || test $? -eq 1`
39759 if expr a : '\(a\)' >/dev/null 2>&1 &&
39760 test "X`expr 00001 : '.*\(...\)'`" = X001; then
39766 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
39767 as_basename=basename
39772 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
39778 as_me=`$as_basename -- "$0" ||
39779 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39780 X"$0" : 'X\(//\)$' \| \
39781 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39783 sed '/^.*\/\([^/][^/]*\)\/*$/{
39797 # Avoid depending upon Character Ranges.
39798 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39799 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39800 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39801 as_cr_digits='0123456789'
39802 as_cr_alnum=$as_cr_Letters$as_cr_digits
39804 ECHO_C= ECHO_N= ECHO_T=
39805 case `echo -n x` in #(((((
39807 case `echo 'xy\c'` in
39808 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
39810 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
39817 rm -f conf$$ conf$$.exe conf$$.file
39818 if test -d conf$$.dir; then
39819 rm -f conf$$.dir/conf$$.file
39822 mkdir conf$$.dir 2>/dev/null
39824 if (echo >conf$$.file) 2>/dev/null; then
39825 if ln -s conf$$.file conf$$ 2>/dev/null; then
39827 # ... but there are two gotchas:
39828 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
39829 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
39830 # In both cases, we have to default to `cp -pR'.
39831 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
39833 elif ln conf$$.file conf$$ 2>/dev/null; then
39841 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
39842 rmdir conf$$.dir 2>/dev/null
39847 # Create "$as_dir" as a directory, including parents if necessary.
39852 -*) as_dir=./$as_dir;;
39854 test -d "$as_dir" || eval $as_mkdir_p || {
39858 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
39859 *) as_qdir=$as_dir;;
39861 as_dirs="'$as_qdir' $as_dirs"
39862 as_dir=`$as_dirname -- "$as_dir" ||
39863 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39864 X"$as_dir" : 'X\(//\)[^/]' \| \
39865 X"$as_dir" : 'X\(//\)$' \| \
39866 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39867 $as_echo X"$as_dir" |
39868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39872 /^X\(\/\/\)[^/].*/{
39885 test -d "$as_dir" && break
39887 test -z "$as_dirs" || eval "mkdir $as_dirs"
39888 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
39892 if mkdir -p . 2>/dev/null; then
39893 as_mkdir_p='mkdir -p "$as_dir"'
39895 test -d ./-p && rmdir ./-p
39900 # as_fn_executable_p FILE
39901 # -----------------------
39902 # Test if FILE is an executable regular file.
39903 as_fn_executable_p ()
39905 test -f "$1" && test -x "$1"
39906 } # as_fn_executable_p
39907 as_test_x='test -x'
39908 as_executable_p=as_fn_executable_p
39910 # Sed expression to map a string onto a valid CPP name.
39911 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39913 # Sed expression to map a string onto a valid variable name.
39914 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39918 ## ----------------------------------- ##
39919 ## Main body of $CONFIG_STATUS script. ##
39920 ## ----------------------------------- ##
39922 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
39924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39925 # Save the log message, to keep $0 and so on meaningful, and to
39926 # report actual input values of CONFIG_FILES etc. instead of their
39927 # values after options handling.
39929 This file was extended by curl $as_me -, which was
39930 generated by GNU Autoconf 2.69. Invocation command line was
39932 CONFIG_FILES = $CONFIG_FILES
39933 CONFIG_HEADERS = $CONFIG_HEADERS
39934 CONFIG_LINKS = $CONFIG_LINKS
39935 CONFIG_COMMANDS = $CONFIG_COMMANDS
39938 on `(hostname || uname -n) 2>/dev/null | sed 1q`
39943 case $ac_config_files in *"
39944 "*) set x $ac_config_files; shift; ac_config_files=$*;;
39947 case $ac_config_headers in *"
39948 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
39952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39953 # Files that config.status was made for.
39954 config_files="$ac_config_files"
39955 config_headers="$ac_config_headers"
39956 config_commands="$ac_config_commands"
39960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39962 \`$as_me' instantiates files and other configuration actions
39963 from templates according to the current configuration. Unless the files
39964 and actions are specified as TAGs, all are instantiated by default.
39966 Usage: $0 [OPTION]... [TAG]...
39968 -h, --help print this help, then exit
39969 -V, --version print version number and configuration settings, then exit
39970 --config print configuration, then exit
39971 -q, --quiet, --silent
39972 do not print progress messages
39973 -d, --debug don't remove temporary files
39974 --recheck update $as_me by reconfiguring in the same conditions
39975 --file=FILE[:TEMPLATE]
39976 instantiate the configuration file FILE
39977 --header=FILE[:TEMPLATE]
39978 instantiate the configuration header FILE
39980 Configuration files:
39983 Configuration headers:
39986 Configuration commands:
39989 Report bugs to <a suitable curl mailing list: http://curl.haxx.se/mail/>."
39992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39993 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
39995 curl config.status -
39996 configured by $0, generated by GNU Autoconf 2.69,
39997 with options \\"\$ac_cs_config\\"
39999 Copyright (C) 2012 Free Software Foundation, Inc.
40000 This config.status script is free software; the Free Software Foundation
40001 gives unlimited permission to copy, distribute and modify it."
40008 test -n "\$AWK" || AWK=awk
40011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40012 # The default lists apply if the user does not specify any file.
40018 ac_option=`expr "X$1" : 'X\([^=]*\)='`
40019 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
40023 ac_option=`expr "X$1" : 'X\([^=]*\)='`
40035 # Handling of the options.
40036 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
40038 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
40039 $as_echo "$ac_cs_version"; exit ;;
40040 --config | --confi | --conf | --con | --co | --c )
40041 $as_echo "$ac_cs_config"; exit ;;
40042 --debug | --debu | --deb | --de | --d | -d )
40044 --file | --fil | --fi | --f )
40047 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
40048 '') as_fn_error $? "missing file argument" ;;
40050 as_fn_append CONFIG_FILES " '$ac_optarg'"
40051 ac_need_defaults=false;;
40052 --header | --heade | --head | --hea )
40055 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
40057 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
40058 ac_need_defaults=false;;
40060 # Conflict between --help and --header
40061 as_fn_error $? "ambiguous option: \`$1'
40062 Try \`$0 --help' for more information.";;
40063 --help | --hel | -h )
40064 $as_echo "$ac_cs_usage"; exit ;;
40065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
40066 | -silent | --silent | --silen | --sile | --sil | --si | --s)
40069 # This is an error.
40070 -*) as_fn_error $? "unrecognized option: \`$1'
40071 Try \`$0 --help' for more information." ;;
40073 *) as_fn_append ac_config_targets " $1"
40074 ac_need_defaults=false ;;
40080 ac_configure_extra_args=
40082 if $ac_cs_silent; then
40084 ac_configure_extra_args="$ac_configure_extra_args --silent"
40088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40089 if \$ac_cs_recheck; then
40090 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
40092 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
40093 CONFIG_SHELL='$SHELL'
40094 export CONFIG_SHELL
40099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40103 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
40104 ## Running $as_me. ##
40110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40114 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
40117 # The HP-UX ksh and POSIX shell print the target directory to stdout
40118 # if CDPATH is set.
40119 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
40121 sed_quote_subst='$sed_quote_subst'
40122 double_quote_subst='$double_quote_subst'
40123 delay_variable_subst='$delay_variable_subst'
40124 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
40125 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
40126 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
40127 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
40128 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
40129 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
40130 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
40131 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
40132 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
40133 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
40134 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
40135 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
40136 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
40137 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
40138 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
40139 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
40140 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
40141 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
40142 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
40143 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
40144 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
40145 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
40146 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
40147 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
40148 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
40149 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
40150 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
40151 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
40152 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
40153 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
40154 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
40155 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
40156 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
40157 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
40158 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
40159 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
40160 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
40161 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
40162 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
40163 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
40164 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
40165 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
40166 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
40167 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
40168 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
40169 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
40170 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
40171 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
40172 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
40173 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
40174 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
40175 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
40176 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
40177 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
40178 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
40179 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
40180 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
40181 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"`'
40182 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
40183 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
40184 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
40185 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
40186 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
40187 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
40188 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
40189 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
40190 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
40191 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
40192 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
40193 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
40194 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
40195 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
40196 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
40197 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
40198 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
40199 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
40200 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
40201 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
40202 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
40203 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
40204 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
40205 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
40206 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
40207 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
40208 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
40209 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
40210 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
40211 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
40212 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
40213 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
40214 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
40215 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
40216 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
40217 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
40218 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
40219 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
40220 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
40221 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
40222 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
40223 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
40224 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
40225 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
40226 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
40227 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
40228 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
40229 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
40230 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
40231 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
40232 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
40233 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
40234 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
40235 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
40236 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
40237 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
40238 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
40239 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
40240 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
40241 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
40242 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
40243 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
40244 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
40245 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
40246 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
40247 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
40248 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
40249 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
40250 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
40251 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
40252 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
40253 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
40254 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
40257 LTCFLAGS='$LTCFLAGS'
40258 compiler='$compiler_DEFAULT'
40260 # A function that is used when there is no print builtin or printf.
40261 func_fallback_echo ()
40263 eval 'cat <<_LTECHO_EOF
40268 # Quote evaled strings.
40285 deplibs_check_method \
40289 sharedlib_from_linklib_cmd \
40292 archiver_list_spec \
40298 lt_cv_sys_global_symbol_pipe \
40299 lt_cv_sys_global_symbol_to_cdecl \
40300 lt_cv_sys_global_symbol_to_c_name_address \
40301 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
40302 nm_file_list_spec \
40303 lt_prog_compiler_no_builtin_flag \
40304 lt_prog_compiler_pic \
40305 lt_prog_compiler_wl \
40306 lt_prog_compiler_static \
40307 lt_cv_prog_compiler_c_o \
40316 export_dynamic_flag_spec \
40317 whole_archive_flag_spec \
40318 compiler_needs_object \
40320 allow_undefined_flag \
40321 no_undefined_flag \
40322 hardcode_libdir_flag_spec \
40323 hardcode_libdir_separator \
40327 variables_saved_for_relink \
40329 library_names_spec \
40331 install_override_mode \
40335 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
40336 *[\\\\\\\`\\"\\\$]*)
40337 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
40340 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
40345 # Double-quote double-evaled strings.
40346 for var in reload_cmds \
40347 old_postinstall_cmds \
40348 old_postuninstall_cmds \
40350 extract_expsyms_cmds \
40351 old_archive_from_new_cmds \
40352 old_archive_from_expsyms_cmds \
40354 archive_expsym_cmds \
40356 module_expsym_cmds \
40357 export_symbols_cmds \
40361 postuninstall_cmds \
40363 sys_lib_search_path_spec \
40364 sys_lib_dlsearch_path_spec; do
40365 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
40366 *[\\\\\\\`\\"\\\$]*)
40367 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
40370 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
40375 ac_aux_dir='$ac_aux_dir'
40376 xsi_shell='$xsi_shell'
40377 lt_shell_append='$lt_shell_append'
40379 # See if we are running on zsh, and set the options which allow our
40380 # commands through without removal of \ escapes INIT.
40381 if test -n "\${ZSH_VERSION+set}" ; then
40382 setopt NO_GLOB_SUBST
40388 TIMESTAMP='$TIMESTAMP'
40397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40399 # Handling of arguments.
40400 for ac_config_target in $ac_config_targets
40402 case $ac_config_target in
40403 "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
40404 "include/curl/curlbuild.h") CONFIG_HEADERS="$CONFIG_HEADERS include/curl/curlbuild.h" ;;
40405 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
40406 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
40407 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
40408 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
40409 "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
40410 "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
40411 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
40412 "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
40413 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
40414 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
40415 "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
40416 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
40417 "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
40418 "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
40419 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
40420 "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
40421 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
40422 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
40423 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
40424 "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
40425 "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
40426 "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
40427 "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
40428 "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
40429 "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
40430 "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
40431 "packages/EPM/curl.list") CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
40432 "packages/EPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
40433 "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
40434 "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;;
40435 "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;;
40436 "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;;
40437 "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
40438 "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
40440 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
40445 # If the user did not use the arguments to specify the items to instantiate,
40446 # then the envvar interface is used. Set only those that are not.
40447 # We use the long form for the default assignment because of an extremely
40448 # bizarre bug on SunOS 4.1.3.
40449 if $ac_need_defaults; then
40450 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
40451 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
40452 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
40455 # Have a temporary directory for convenience. Make it in the build tree
40456 # simply because there is no reason against having it here, and in addition,
40457 # creating and moving files from /tmp can sometimes cause problems.
40458 # Hook for its removal unless debugging.
40459 # Note that there is a small window in which the directory will not be cleaned:
40460 # after its creation but before its name has been assigned to `$tmp'.
40464 trap 'exit_status=$?
40465 : "${ac_tmp:=$tmp}"
40466 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
40468 trap 'as_fn_exit 1' 1 2 13 15
40470 # Create a (secure) tmp directory for tmp files.
40473 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
40477 tmp=./conf$$-$RANDOM
40478 (umask 077 && mkdir "$tmp")
40479 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
40482 # Set up the scripts for CONFIG_FILES section.
40483 # No need to generate them if there are no CONFIG_FILES.
40484 # This happens for instance with `./config.status config.h'.
40485 if test -n "$CONFIG_FILES"; then
40488 ac_cr=`echo X | tr X '\015'`
40489 # On cygwin, bash can eat \r inside `` if the user requested igncr.
40490 # But we know of no other shell where ac_cr would be empty at this
40491 # point, so we can use a bashism as a fallback.
40492 if test "x$ac_cr" = x; then
40493 eval ac_cr=\$\'\\r\'
40495 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
40496 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
40499 ac_cs_awk_cr=$ac_cr
40502 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
40507 echo "cat >conf$$subs.awk <<_ACEOF" &&
40508 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
40510 } >conf$$subs.sh ||
40511 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
40512 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
40514 for ac_last_try in false false false false false :; do
40515 . ./conf$$subs.sh ||
40516 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
40518 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
40519 if test $ac_delim_n = $ac_delim_num; then
40521 elif $ac_last_try; then
40522 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
40524 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40527 rm -f conf$$subs.sh
40529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40530 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
40534 s/^/S["/; s/!.*/"]=/
40544 s/\(.\{148\}\)..*/\1/
40546 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
40551 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
40558 s/\(.\{148\}\)..*/\1/
40560 s/["\\]/\\&/g; s/^/"/; s/$/"/
40564 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
40569 ' <conf$$subs.awk | sed '
40574 ' >>$CONFIG_STATUS || ac_write_fail=1
40575 rm -f conf$$subs.awk
40576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40578 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
40579 for (key in S) S_is_set[key] = 1
40585 nfields = split(line, field, "@")
40587 len = length(field[1])
40588 for (i = 2; i < nfields; i++) {
40590 keylen = length(key)
40591 if (S_is_set[key]) {
40593 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
40594 len += length(value) + length(field[++i])
40605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40606 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
40607 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
40610 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
40611 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
40614 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
40615 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
40616 # trailing colons and then remove the whole line if VPATH becomes empty
40617 # (actually we leave an empty line to preserve line numbers).
40618 if test "x$srcdir" = x.; then
40619 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
40637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40638 fi # test -n "$CONFIG_FILES"
40640 # Set up the scripts for CONFIG_HEADERS section.
40641 # No need to generate them if there are no CONFIG_HEADERS.
40642 # This happens for instance with `./config.status Makefile'.
40643 if test -n "$CONFIG_HEADERS"; then
40644 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
40648 # Transform confdefs.h into an awk script `defines.awk', embedded as
40649 # here-document in config.status, that substitutes the proper values into
40650 # config.h.in to produce config.h.
40652 # Create a delimiter string that does not exist in confdefs.h, to ease
40653 # handling of long lines.
40655 for ac_last_try in false false :; do
40656 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
40657 if test -z "$ac_tt"; then
40659 elif $ac_last_try; then
40660 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
40662 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40666 # For the awk script, D is an array of macro values keyed by name,
40667 # likewise P contains macro parameters if any. Preserve backslash
40668 # newline sequences.
40670 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
40672 s/.\{148\}/&'"$ac_delim"'/g
40675 s/^[ ]*#[ ]*define[ ][ ]*/ /
40682 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
40684 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
40688 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
40689 D["\1"]=" \3\\\\\\n"\\/p
40691 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
40696 s/.\{148\}/&'"$ac_delim"'/g
40701 s/["\\]/\\&/g; s/^/"/; s/$/"/p
40704 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
40706 ' <confdefs.h | sed '
40707 s/'"$ac_delim"'/"\\\
40708 "/g' >>$CONFIG_STATUS || ac_write_fail=1
40710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40711 for (key in D) D_is_set[key] = 1
40714 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
40716 split(line, arg, " ")
40717 if (arg[1] == "#") {
40721 defundef = substr(arg[1], 2)
40724 split(mac1, mac2, "(") #)
40726 prefix = substr(line, 1, index(line, defundef) - 1)
40727 if (D_is_set[macro]) {
40728 # Preserve the white space surrounding the "#".
40729 print prefix "define", macro P[macro] D[macro]
40732 # Replace #undef with comments. This is necessary, for example,
40733 # in the case of _POSIX_SOURCE, which is predefined and required
40734 # on some systems where configure will not decide to define it.
40735 if (defundef == "undef") {
40736 print "/*", prefix defundef, macro, "*/"
40744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40745 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
40746 fi # test -n "$CONFIG_HEADERS"
40749 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
40754 :[FHLC]) ac_mode=$ac_tag; continue;;
40756 case $ac_mode$ac_tag in
40758 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
40759 :[FH]-) ac_tag=-:-;;
40760 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
40777 -) ac_f="$ac_tmp/stdin";;
40778 *) # Look for the file first in the build tree, then in the source tree
40779 # (if the path is not absolute). The absolute path cannot be DOS-style,
40780 # because $ac_f cannot contain `:'.
40784 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
40786 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
40788 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
40789 as_fn_append ac_file_inputs " '$ac_f'"
40792 # Let's still pretend it is `configure' which instantiates (i.e., don't
40793 # use $as_me), people would be surprised to read:
40794 # /* config.h. Generated by config.status. */
40795 configure_input='Generated from '`
40796 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
40798 if test x"$ac_file" != x-; then
40799 configure_input="$ac_file. $configure_input"
40800 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
40801 $as_echo "$as_me: creating $ac_file" >&6;}
40803 # Neutralize special characters interpreted by sed in replacement strings.
40804 case $configure_input in #(
40805 *\&* | *\|* | *\\* )
40806 ac_sed_conf_input=`$as_echo "$configure_input" |
40807 sed 's/[\\\\&|]/\\\\&/g'`;; #(
40808 *) ac_sed_conf_input=$configure_input;;
40812 *:-:* | *:-) cat >"$ac_tmp/stdin" \
40813 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
40818 ac_dir=`$as_dirname -- "$ac_file" ||
40819 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40820 X"$ac_file" : 'X\(//\)[^/]' \| \
40821 X"$ac_file" : 'X\(//\)$' \| \
40822 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
40823 $as_echo X"$ac_file" |
40824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40828 /^X\(\/\/\)[^/].*/{
40841 as_dir="$ac_dir"; as_fn_mkdir_p
40845 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
40847 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
40848 # A ".." for each directory in $ac_dir_suffix.
40849 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
40850 case $ac_top_builddir_sub in
40851 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
40852 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
40855 ac_abs_top_builddir=$ac_pwd
40856 ac_abs_builddir=$ac_pwd$ac_dir_suffix
40857 # for backward compatibility:
40858 ac_top_builddir=$ac_top_build_prefix
40861 .) # We are building in place.
40863 ac_top_srcdir=$ac_top_builddir_sub
40864 ac_abs_top_srcdir=$ac_pwd ;;
40865 [\\/]* | ?:[\\/]* ) # Absolute name.
40866 ac_srcdir=$srcdir$ac_dir_suffix;
40867 ac_top_srcdir=$srcdir
40868 ac_abs_top_srcdir=$srcdir ;;
40869 *) # Relative name.
40870 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
40871 ac_top_srcdir=$ac_top_build_prefix$srcdir
40872 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
40874 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
40884 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40885 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
40887 ac_MKDIR_P=$MKDIR_P
40889 [\\/$]* | ?:[\\/]* ) ;;
40890 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
40894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40895 # If the template does not know about datarootdir, expand it.
40896 # FIXME: This hack should be removed a few years after 2.60.
40897 ac_datarootdir_hack=; ac_datarootdir_seen=
40908 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
40909 *datarootdir*) ac_datarootdir_seen=yes;;
40910 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
40911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
40912 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
40914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40915 ac_datarootdir_hack='
40916 s&@datadir@&$datadir&g
40917 s&@docdir@&$docdir&g
40918 s&@infodir@&$infodir&g
40919 s&@localedir@&$localedir&g
40920 s&@mandir@&$mandir&g
40921 s&\\\${datarootdir}&$datarootdir&g' ;;
40925 # Neutralize VPATH when `$srcdir' = `.'.
40926 # Shell code in configure.ac might set extrasub.
40927 # FIXME: do we really want to maintain this feature?
40928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40929 ac_sed_extra="$ac_vpsub
40932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40934 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40935 s|@configure_input@|$ac_sed_conf_input|;t t
40936 s&@top_builddir@&$ac_top_builddir_sub&;t t
40937 s&@top_build_prefix@&$ac_top_build_prefix&;t t
40938 s&@srcdir@&$ac_srcdir&;t t
40939 s&@abs_srcdir@&$ac_abs_srcdir&;t t
40940 s&@top_srcdir@&$ac_top_srcdir&;t t
40941 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
40942 s&@builddir@&$ac_builddir&;t t
40943 s&@abs_builddir@&$ac_abs_builddir&;t t
40944 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
40945 s&@INSTALL@&$ac_INSTALL&;t t
40946 s&@MKDIR_P@&$ac_MKDIR_P&;t t
40947 $ac_datarootdir_hack
40949 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
40950 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
40952 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
40953 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
40954 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
40955 "$ac_tmp/out"`; test -z "$ac_out"; } &&
40956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40957 which seems to be undefined. Please make sure it is defined" >&5
40958 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40959 which seems to be undefined. Please make sure it is defined" >&2;}
40961 rm -f "$ac_tmp/stdin"
40963 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
40964 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
40966 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
40972 if test x"$ac_file" != x-; then
40974 $as_echo "/* $configure_input */" \
40975 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
40976 } >"$ac_tmp/config.h" \
40977 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
40978 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
40979 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
40980 $as_echo "$as_me: $ac_file is unchanged" >&6;}
40983 mv "$ac_tmp/config.h" "$ac_file" \
40984 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
40987 $as_echo "/* $configure_input */" \
40988 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
40989 || as_fn_error $? "could not create -" "$LINENO" 5
40991 # Compute "$ac_file"'s index in $config_headers.
40994 for _am_header in $config_headers :; do
40995 case $_am_header in
40996 $_am_arg | $_am_arg:* )
40999 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
41002 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
41003 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41004 X"$_am_arg" : 'X\(//\)[^/]' \| \
41005 X"$_am_arg" : 'X\(//\)$' \| \
41006 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
41007 $as_echo X"$_am_arg" |
41008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41012 /^X\(\/\/\)[^/].*/{
41024 s/.*/./; q'`/stamp-h$_am_stamp_count
41027 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
41028 $as_echo "$as_me: executing $ac_file commands" >&6;}
41033 case $ac_file$ac_mode in
41034 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
41035 # Older Autoconf quotes --file arguments for eval, but not when files
41036 # are listed without --file. Let's play safe and only enable the eval
41037 # if we detect the quoting.
41038 case $CONFIG_FILES in
41039 *\'*) eval set x "$CONFIG_FILES" ;;
41040 *) set x $CONFIG_FILES ;;
41045 # Strip MF so we end up with the name of the file.
41046 mf=`echo "$mf" | sed -e 's/:.*$//'`
41047 # Check whether this is an Automake generated Makefile or not.
41048 # We used to match only the files named 'Makefile.in', but
41049 # some people rename them; so instead we look at the file content.
41050 # Grep'ing the first line is not enough: some people post-process
41051 # each Makefile.in and add a new line on top of each file to say so.
41052 # Grep'ing the whole file is not good either: AIX grep has a line
41053 # limit of 2048, but all sed's we know have understand at least 4000.
41054 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
41055 dirpart=`$as_dirname -- "$mf" ||
41056 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41057 X"$mf" : 'X\(//\)[^/]' \| \
41058 X"$mf" : 'X\(//\)$' \| \
41059 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
41061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41065 /^X\(\/\/\)[^/].*/{
41081 # Extract the definition of DEPDIR, am__include, and am__quote
41082 # from the Makefile without running 'make'.
41083 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
41084 test -z "$DEPDIR" && continue
41085 am__include=`sed -n 's/^am__include = //p' < "$mf"`
41086 test -z "$am__include" && continue
41087 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
41088 # Find all dependency output files, they are included files with
41089 # $(DEPDIR) in their names. We invoke sed twice because it is the
41090 # simplest approach to changing $(DEPDIR) to its actual value in the
41092 for file in `sed -n "
41093 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
41094 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
41095 # Make sure the directory exists.
41096 test -f "$dirpart/$file" && continue
41097 fdir=`$as_dirname -- "$file" ||
41098 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41099 X"$file" : 'X\(//\)[^/]' \| \
41100 X"$file" : 'X\(//\)$' \| \
41101 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
41102 $as_echo X"$file" |
41103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41107 /^X\(\/\/\)[^/].*/{
41120 as_dir=$dirpart/$fdir; as_fn_mkdir_p
41121 # echo "creating $dirpart/$file"
41122 echo '# dummy' > "$dirpart/$file"
41129 # See if we are running on zsh, and set the options which allow our
41130 # commands through without removal of \ escapes.
41131 if test -n "${ZSH_VERSION+set}" ; then
41132 setopt NO_GLOB_SUBST
41135 cfgfile="${ofile}T"
41136 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
41139 cat <<_LT_EOF >> "$cfgfile"
41142 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
41143 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
41144 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
41145 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
41147 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
41148 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
41150 # Written by Gordon Matzigkeit, 1996
41152 # This file is part of GNU Libtool.
41154 # GNU Libtool is free software; you can redistribute it and/or
41155 # modify it under the terms of the GNU General Public License as
41156 # published by the Free Software Foundation; either version 2 of
41157 # the License, or (at your option) any later version.
41159 # As a special exception to the GNU General Public License,
41160 # if you distribute this file as part of a program or library that
41161 # is built using GNU Libtool, you may include this file under the
41162 # same distribution terms that you use for the rest of that program.
41164 # GNU Libtool is distributed in the hope that it will be useful,
41165 # but WITHOUT ANY WARRANTY; without even the implied warranty of
41166 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41167 # GNU General Public License for more details.
41169 # You should have received a copy of the GNU General Public License
41170 # along with GNU Libtool; see the file COPYING. If not, a copy
41171 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
41172 # obtained by writing to the Free Software Foundation, Inc.,
41173 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
41176 # The names of the tagged configurations supported by this script.
41179 # ### BEGIN LIBTOOL CONFIG
41181 # Which release of libtool.m4 was used?
41182 macro_version=$macro_version
41183 macro_revision=$macro_revision
41185 # Assembler program.
41188 # DLL creation program.
41189 DLLTOOL=$lt_DLLTOOL
41191 # Object dumper program.
41192 OBJDUMP=$lt_OBJDUMP
41194 # Whether or not to build shared libraries.
41195 build_libtool_libs=$enable_shared
41197 # Whether or not to build static libraries.
41198 build_old_libs=$enable_static
41200 # What type of objects to build.
41203 # Whether or not to optimize for fast installation.
41204 fast_install=$enable_fast_install
41206 # Shell to use when invoking shell scripts.
41209 # An echo program that protects backslashes.
41212 # The PATH separator for the build system.
41213 PATH_SEPARATOR=$lt_PATH_SEPARATOR
41216 host_alias=$host_alias
41220 # The build system.
41221 build_alias=$build_alias
41225 # A sed program that does not truncate output.
41228 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
41229 Xsed="\$SED -e 1s/^X//"
41231 # A grep program that handles long lines.
41237 # A literal string matcher.
41240 # A BSD- or MS-compatible name lister.
41243 # Whether we need soft or hard links.
41246 # What is the maximum length of a command?
41247 max_cmd_len=$max_cmd_len
41249 # Object file suffix (normally "o").
41252 # Executable file suffix (normally "").
41255 # whether the shell understands "unset".
41258 # turn spaces into newlines.
41261 # turn newlines into spaces.
41264 # convert \$build file names to \$host format.
41265 to_host_file_cmd=$lt_cv_to_host_file_cmd
41267 # convert \$build files to toolchain format.
41268 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
41270 # Method to check whether dependent libraries are shared objects.
41271 deplibs_check_method=$lt_deplibs_check_method
41273 # Command to use when deplibs_check_method = "file_magic".
41274 file_magic_cmd=$lt_file_magic_cmd
41276 # How to find potential files when deplibs_check_method = "file_magic".
41277 file_magic_glob=$lt_file_magic_glob
41279 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
41280 want_nocaseglob=$lt_want_nocaseglob
41282 # Command to associate shared and link libraries.
41283 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
41288 # Flags to create an archive.
41289 AR_FLAGS=$lt_AR_FLAGS
41291 # How to feed a file listing to the archiver.
41292 archiver_list_spec=$lt_archiver_list_spec
41294 # A symbol stripping program.
41297 # Commands used to install an old-style archive.
41299 old_postinstall_cmds=$lt_old_postinstall_cmds
41300 old_postuninstall_cmds=$lt_old_postuninstall_cmds
41302 # Whether to use a lock for old archive extraction.
41303 lock_old_archive_extraction=$lock_old_archive_extraction
41308 # LTCC compiler flags.
41309 LTCFLAGS=$lt_CFLAGS
41311 # Take the output of nm and produce a listing of raw symbols and C names.
41312 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
41314 # Transform the output of nm in a proper C declaration.
41315 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
41317 # Transform the output of nm in a C name address pair.
41318 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
41320 # Transform the output of nm in a C name address pair when lib prefix is needed.
41321 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
41323 # Specify filename containing input files for \$NM.
41324 nm_file_list_spec=$lt_nm_file_list_spec
41326 # The root where to search for dependent libraries,and in which our libraries should be installed.
41327 lt_sysroot=$lt_sysroot
41329 # The name of the directory that contains temporary libtool files.
41332 # Used to examine libraries when file_magic_cmd begins with "file".
41333 MAGIC_CMD=$MAGIC_CMD
41335 # Must we lock files when doing compilation?
41336 need_locks=$lt_need_locks
41339 MANIFEST_TOOL=$lt_MANIFEST_TOOL
41341 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
41342 DSYMUTIL=$lt_DSYMUTIL
41344 # Tool to change global to local symbols on Mac OS X.
41347 # Tool to manipulate fat objects and archives on Mac OS X.
41350 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
41353 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
41354 OTOOL64=$lt_OTOOL64
41356 # Old archive suffix (normally "a").
41359 # Shared library suffix (normally ".so").
41360 shrext_cmds=$lt_shrext_cmds
41362 # The commands to extract the exported symbol list from a shared archive.
41363 extract_expsyms_cmds=$lt_extract_expsyms_cmds
41365 # Variables whose values should be saved in libtool wrapper scripts and
41366 # restored at link time.
41367 variables_saved_for_relink=$lt_variables_saved_for_relink
41369 # Do we need the "lib" prefix for modules?
41370 need_lib_prefix=$need_lib_prefix
41372 # Do we need a version for libraries?
41373 need_version=$need_version
41375 # Library versioning type.
41376 version_type=$version_type
41378 # Shared library runtime path variable.
41379 runpath_var=$runpath_var
41381 # Shared library path variable.
41382 shlibpath_var=$shlibpath_var
41384 # Is shlibpath searched before the hard-coded library search path?
41385 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
41387 # Format of library name prefix.
41388 libname_spec=$lt_libname_spec
41390 # List of archive names. First name is the real one, the rest are links.
41391 # The last name is the one that the linker finds with -lNAME
41392 library_names_spec=$lt_library_names_spec
41394 # The coded name of the library, if different from the real name.
41395 soname_spec=$lt_soname_spec
41397 # Permission mode override for installation of shared libraries.
41398 install_override_mode=$lt_install_override_mode
41400 # Command to use after installation of a shared archive.
41401 postinstall_cmds=$lt_postinstall_cmds
41403 # Command to use after uninstallation of a shared archive.
41404 postuninstall_cmds=$lt_postuninstall_cmds
41406 # Commands used to finish a libtool library installation in a directory.
41407 finish_cmds=$lt_finish_cmds
41409 # As "finish_cmds", except a single script fragment to be evaled but
41411 finish_eval=$lt_finish_eval
41413 # Whether we should hardcode library paths into libraries.
41414 hardcode_into_libs=$hardcode_into_libs
41416 # Compile-time system search path for libraries.
41417 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
41419 # Run-time system search path for libraries.
41420 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
41422 # Whether dlopen is supported.
41423 dlopen_support=$enable_dlopen
41425 # Whether dlopen of programs is supported.
41426 dlopen_self=$enable_dlopen_self
41428 # Whether dlopen of statically linked programs is supported.
41429 dlopen_self_static=$enable_dlopen_self_static
41431 # Commands to strip libraries.
41432 old_striplib=$lt_old_striplib
41433 striplib=$lt_striplib
41436 # The linker used to build libraries.
41439 # How to create reloadable object files.
41440 reload_flag=$lt_reload_flag
41441 reload_cmds=$lt_reload_cmds
41443 # Commands used to build an old-style archive.
41444 old_archive_cmds=$lt_old_archive_cmds
41446 # A language specific compiler.
41449 # Is the compiler the GNU compiler?
41452 # Compiler flag to turn off builtin functions.
41453 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
41455 # Additional compiler flags for building library objects.
41456 pic_flag=$lt_lt_prog_compiler_pic
41458 # How to pass a linker flag through the compiler.
41459 wl=$lt_lt_prog_compiler_wl
41461 # Compiler flag to prevent dynamic linking.
41462 link_static_flag=$lt_lt_prog_compiler_static
41464 # Does compiler simultaneously support -c and -o options?
41465 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
41467 # Whether or not to add -lc for building shared libraries.
41468 build_libtool_need_lc=$archive_cmds_need_lc
41470 # Whether or not to disallow shared libs when runtime libs are static.
41471 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
41473 # Compiler flag to allow reflexive dlopens.
41474 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
41476 # Compiler flag to generate shared objects directly from archives.
41477 whole_archive_flag_spec=$lt_whole_archive_flag_spec
41479 # Whether the compiler copes with passing no objects directly.
41480 compiler_needs_object=$lt_compiler_needs_object
41482 # Create an old-style archive from a shared archive.
41483 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
41485 # Create a temporary old-style archive to link instead of a shared archive.
41486 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
41488 # Commands used to build a shared archive.
41489 archive_cmds=$lt_archive_cmds
41490 archive_expsym_cmds=$lt_archive_expsym_cmds
41492 # Commands used to build a loadable module if different from building
41493 # a shared archive.
41494 module_cmds=$lt_module_cmds
41495 module_expsym_cmds=$lt_module_expsym_cmds
41497 # Whether we are building with GNU ld or not.
41498 with_gnu_ld=$lt_with_gnu_ld
41500 # Flag that allows shared libraries with undefined symbols to be built.
41501 allow_undefined_flag=$lt_allow_undefined_flag
41503 # Flag that enforces no undefined symbols.
41504 no_undefined_flag=$lt_no_undefined_flag
41506 # Flag to hardcode \$libdir into a binary during linking.
41507 # This must work even if \$libdir does not exist
41508 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
41510 # Whether we need a single "-rpath" flag with a separated argument.
41511 hardcode_libdir_separator=$lt_hardcode_libdir_separator
41513 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
41514 # DIR into the resulting binary.
41515 hardcode_direct=$hardcode_direct
41517 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
41518 # DIR into the resulting binary and the resulting library dependency is
41519 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
41520 # library is relocated.
41521 hardcode_direct_absolute=$hardcode_direct_absolute
41523 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
41524 # into the resulting binary.
41525 hardcode_minus_L=$hardcode_minus_L
41527 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
41528 # into the resulting binary.
41529 hardcode_shlibpath_var=$hardcode_shlibpath_var
41531 # Set to "yes" if building a shared library automatically hardcodes DIR
41532 # into the library and all subsequent libraries and executables linked
41534 hardcode_automatic=$hardcode_automatic
41536 # Set to yes if linker adds runtime paths of dependent libraries
41537 # to runtime path list.
41538 inherit_rpath=$inherit_rpath
41540 # Whether libtool must link a program against all its dependency libraries.
41541 link_all_deplibs=$link_all_deplibs
41543 # Set to "yes" if exported symbols are required.
41544 always_export_symbols=$always_export_symbols
41546 # The commands to list exported symbols.
41547 export_symbols_cmds=$lt_export_symbols_cmds
41549 # Symbols that should not be listed in the preloaded symbols.
41550 exclude_expsyms=$lt_exclude_expsyms
41552 # Symbols that must always be exported.
41553 include_expsyms=$lt_include_expsyms
41555 # Commands necessary for linking programs (against libraries) with templates.
41556 prelink_cmds=$lt_prelink_cmds
41558 # Commands necessary for finishing linking programs.
41559 postlink_cmds=$lt_postlink_cmds
41561 # Specify filename containing input files.
41562 file_list_spec=$lt_file_list_spec
41564 # How to hardcode a shared library path into an executable.
41565 hardcode_action=$hardcode_action
41567 # ### END LIBTOOL CONFIG
41573 cat <<\_LT_EOF >> "$cfgfile"
41574 # AIX sometimes has problems with the GCC collect2 program. For some
41575 # reason, if we set the COLLECT_NAMES environment variable, the problems
41576 # vanish in a puff of smoke.
41577 if test "X${COLLECT_NAMES+set}" != Xset; then
41579 export COLLECT_NAMES
41586 ltmain="$ac_aux_dir/ltmain.sh"
41589 # We use sed instead of cat because bash on DJGPP gets confused if
41590 # if finds mixed CR/LF and LF-only lines. Since sed operates in
41591 # text mode, it properly converts lines to CR/LF. This bash problem
41592 # is reportedly fixed, but why not run on old versions too?
41593 sed '$q' "$ltmain" >> "$cfgfile" \
41594 || (rm -f "$cfgfile"; exit 1)
41596 if test x"$xsi_shell" = xyes; then
41597 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
41601 \ */*) func_dirname_result="${1%/*}${2}" ;;\
41602 \ * ) func_dirname_result="${3}" ;;\
41604 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
41605 && mv -f "$cfgfile.tmp" "$cfgfile" \
41606 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41607 test 0 -eq $? || _lt_function_replace_fail=:
41610 sed -e '/^func_basename ()$/,/^} # func_basename /c\
41613 \ func_basename_result="${1##*/}"\
41614 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
41615 && mv -f "$cfgfile.tmp" "$cfgfile" \
41616 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41617 test 0 -eq $? || _lt_function_replace_fail=:
41620 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
41621 func_dirname_and_basename ()\
41624 \ */*) func_dirname_result="${1%/*}${2}" ;;\
41625 \ * ) func_dirname_result="${3}" ;;\
41627 \ func_basename_result="${1##*/}"\
41628 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
41629 && mv -f "$cfgfile.tmp" "$cfgfile" \
41630 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41631 test 0 -eq $? || _lt_function_replace_fail=:
41634 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
41637 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
41638 \ # positional parameters, so assign one to ordinary parameter first.\
41639 \ func_stripname_result=${3}\
41640 \ func_stripname_result=${func_stripname_result#"${1}"}\
41641 \ func_stripname_result=${func_stripname_result%"${2}"}\
41642 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
41643 && mv -f "$cfgfile.tmp" "$cfgfile" \
41644 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41645 test 0 -eq $? || _lt_function_replace_fail=:
41648 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
41649 func_split_long_opt ()\
41651 \ func_split_long_opt_name=${1%%=*}\
41652 \ func_split_long_opt_arg=${1#*=}\
41653 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
41654 && mv -f "$cfgfile.tmp" "$cfgfile" \
41655 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41656 test 0 -eq $? || _lt_function_replace_fail=:
41659 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
41660 func_split_short_opt ()\
41662 \ func_split_short_opt_arg=${1#??}\
41663 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
41664 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
41665 && mv -f "$cfgfile.tmp" "$cfgfile" \
41666 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41667 test 0 -eq $? || _lt_function_replace_fail=:
41670 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
41674 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
41675 \ *) func_lo2o_result=${1} ;;\
41677 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
41678 && mv -f "$cfgfile.tmp" "$cfgfile" \
41679 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41680 test 0 -eq $? || _lt_function_replace_fail=:
41683 sed -e '/^func_xform ()$/,/^} # func_xform /c\
41686 func_xform_result=${1%.*}.lo\
41687 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
41688 && mv -f "$cfgfile.tmp" "$cfgfile" \
41689 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41690 test 0 -eq $? || _lt_function_replace_fail=:
41693 sed -e '/^func_arith ()$/,/^} # func_arith /c\
41696 func_arith_result=$(( $* ))\
41697 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
41698 && mv -f "$cfgfile.tmp" "$cfgfile" \
41699 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41700 test 0 -eq $? || _lt_function_replace_fail=:
41703 sed -e '/^func_len ()$/,/^} # func_len /c\
41706 func_len_result=${#1}\
41707 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
41708 && mv -f "$cfgfile.tmp" "$cfgfile" \
41709 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41710 test 0 -eq $? || _lt_function_replace_fail=:
41714 if test x"$lt_shell_append" = xyes; then
41715 sed -e '/^func_append ()$/,/^} # func_append /c\
41718 eval "${1}+=\\${2}"\
41719 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
41720 && mv -f "$cfgfile.tmp" "$cfgfile" \
41721 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41722 test 0 -eq $? || _lt_function_replace_fail=:
41725 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
41726 func_append_quoted ()\
41728 \ func_quote_for_eval "${2}"\
41729 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
41730 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
41731 && mv -f "$cfgfile.tmp" "$cfgfile" \
41732 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41733 test 0 -eq $? || _lt_function_replace_fail=:
41736 # Save a `func_append' function call where possible by direct use of '+='
41737 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
41738 && mv -f "$cfgfile.tmp" "$cfgfile" \
41739 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41740 test 0 -eq $? || _lt_function_replace_fail=:
41742 # Save a `func_append' function call even when '+=' is not available
41743 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
41744 && mv -f "$cfgfile.tmp" "$cfgfile" \
41745 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41746 test 0 -eq $? || _lt_function_replace_fail=:
41749 if test x"$_lt_function_replace_fail" = x":"; then
41750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
41751 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
41755 mv -f "$cfgfile" "$ofile" ||
41756 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
41767 ac_clean_files=$ac_clean_files_save
41769 test $ac_write_fail = 0 ||
41770 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
41773 # configure is writing to config.log, and then calls config.status.
41774 # config.status does its own redirection, appending to config.log.
41775 # Unfortunately, on DOS this fails, as config.log is still kept open
41776 # by configure, so config.status won't be able to write to it; its
41777 # output is simply discarded. So we exec the FD to /dev/null,
41778 # effectively closing config.log, so it can be properly (re)opened and
41779 # appended to by config.status. When coming back to configure, we
41780 # need to make the FD available again.
41781 if test "$no_create" != yes; then
41783 ac_config_status_args=
41784 test "$silent" = yes &&
41785 ac_config_status_args="$ac_config_status_args --quiet"
41787 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
41789 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
41790 # would make configure fail if this is the last instruction.
41791 $ac_cs_success || as_fn_exit 1
41795 # CONFIG_SUBDIRS section.
41797 if test "$no_recursion" != yes; then
41799 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
41800 # so they do not pile up.
41801 ac_sub_configure_args=
41803 eval "set x $ac_configure_args"
41807 if test -n "$ac_prev"; then
41812 -cache-file | --cache-file | --cache-fil | --cache-fi \
41813 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
41814 ac_prev=cache_file ;;
41815 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
41816 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
41819 --config-cache | -C)
41821 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
41823 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
41825 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
41827 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
41829 --disable-option-checking)
41833 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
41835 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
41839 # Always prepend --prefix to ensure using the same prefix
41840 # in subdir configurations.
41841 ac_arg="--prefix=$prefix"
41843 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
41845 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
41848 if test "$silent" = yes; then
41849 ac_sub_configure_args="--silent $ac_sub_configure_args"
41852 # Always prepend --disable-option-checking to silence warnings, since
41853 # different subdirs can have different --enable and --with options.
41854 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
41857 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
41859 # Do not complain, so a configure script can configure whichever
41860 # parts of a large source tree are present.
41861 test -d "$srcdir/$ac_dir" || continue
41863 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
41864 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
41865 $as_echo "$ac_msg" >&6
41866 as_dir="$ac_dir"; as_fn_mkdir_p
41870 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
41872 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
41873 # A ".." for each directory in $ac_dir_suffix.
41874 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
41875 case $ac_top_builddir_sub in
41876 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
41877 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
41880 ac_abs_top_builddir=$ac_pwd
41881 ac_abs_builddir=$ac_pwd$ac_dir_suffix
41882 # for backward compatibility:
41883 ac_top_builddir=$ac_top_build_prefix
41886 .) # We are building in place.
41888 ac_top_srcdir=$ac_top_builddir_sub
41889 ac_abs_top_srcdir=$ac_pwd ;;
41890 [\\/]* | ?:[\\/]* ) # Absolute name.
41891 ac_srcdir=$srcdir$ac_dir_suffix;
41892 ac_top_srcdir=$srcdir
41893 ac_abs_top_srcdir=$srcdir ;;
41894 *) # Relative name.
41895 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
41896 ac_top_srcdir=$ac_top_build_prefix$srcdir
41897 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
41899 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
41904 # Check for guested configure; otherwise get Cygnus style configure.
41905 if test -f "$ac_srcdir/configure.gnu"; then
41906 ac_sub_configure=$ac_srcdir/configure.gnu
41907 elif test -f "$ac_srcdir/configure"; then
41908 ac_sub_configure=$ac_srcdir/configure
41909 elif test -f "$ac_srcdir/configure.in"; then
41910 # This should be Cygnus configure.
41911 ac_sub_configure=$ac_aux_dir/configure
41913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
41914 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
41918 # The recursion is here.
41919 if test -n "$ac_sub_configure"; then
41920 # Make the cache file name correct relative to the subdirectory.
41921 case $cache_file in
41922 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
41923 *) # Relative name.
41924 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
41927 { $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
41928 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
41929 # The eval makes quoting arguments work.
41930 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
41931 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
41932 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
41938 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
41939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
41940 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
41945 tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
41946 if test -z "$tmp_cpp"; then
41949 cat >./tests/configurehelp.pm <<_EOF
41950 # This is a generated file. Do not edit.
41952 package configurehelp;
41964 @ISA = qw(Exporter);
41970 \$Cpreprocessor = '$tmp_cpp';
41978 { $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
41980 curl version: ${CURLVERSION}
41981 Host setup: ${host}
41982 Install prefix: ${prefix}
41984 SSL support: ${curl_ssl_msg}
41985 SSH support: ${curl_ssh_msg}
41986 zlib support: ${curl_zlib_msg}
41987 krb4 support: ${curl_krb4_msg}
41988 GSSAPI support: ${curl_gss_msg}
41989 SPNEGO support: ${curl_spnego_msg}
41990 TLS-SRP support: ${curl_tls_srp_msg}
41991 resolver: ${curl_res_msg}
41992 ipv6 support: ${curl_ipv6_msg}
41993 IDN support: ${curl_idn_msg}
41994 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
41995 Built-in manual: ${curl_manual_msg}
41996 --libcurl option: ${curl_libcurl_msg}
41997 Verbose errors: ${curl_verbose_msg}
41998 SSPI support: ${curl_sspi_msg}
41999 ca cert bundle: ${ca}
42000 ca cert path: ${capath}
42001 LDAP support: ${curl_ldap_msg}
42002 LDAPS support: ${curl_ldaps_msg}
42003 RTSP support: ${curl_rtsp_msg}
42004 RTMP support: ${curl_rtmp_msg}
42005 metalink support: ${curl_mtlnk_msg}
42006 Protocols: ${SUPPORT_PROTOCOLS}
42008 $as_echo "$as_me: Configured to build curl/libcurl:
42010 curl version: ${CURLVERSION}
42011 Host setup: ${host}
42012 Install prefix: ${prefix}
42014 SSL support: ${curl_ssl_msg}
42015 SSH support: ${curl_ssh_msg}
42016 zlib support: ${curl_zlib_msg}
42017 krb4 support: ${curl_krb4_msg}
42018 GSSAPI support: ${curl_gss_msg}
42019 SPNEGO support: ${curl_spnego_msg}
42020 TLS-SRP support: ${curl_tls_srp_msg}
42021 resolver: ${curl_res_msg}
42022 ipv6 support: ${curl_ipv6_msg}
42023 IDN support: ${curl_idn_msg}
42024 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
42025 Built-in manual: ${curl_manual_msg}
42026 --libcurl option: ${curl_libcurl_msg}
42027 Verbose errors: ${curl_verbose_msg}
42028 SSPI support: ${curl_sspi_msg}
42029 ca cert bundle: ${ca}
42030 ca cert path: ${capath}
42031 LDAP support: ${curl_ldap_msg}
42032 LDAPS support: ${curl_ldaps_msg}
42033 RTSP support: ${curl_rtsp_msg}
42034 RTMP support: ${curl_rtmp_msg}
42035 metalink support: ${curl_mtlnk_msg}
42036 Protocols: ${SUPPORT_PROTOCOLS}
42039 if test "x$soname_bump" = "xyes"; then
42042 SONAME bump: yes - WARNING: this library will be built with the SONAME
42043 number bumped due to (a detected) ABI breakage.
42044 See lib/README.curl_off_t for details on this.