2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for curl -.
5 # Report bugs to <a suitable curl mailing list: http://curl.haxx.se/mail/>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
16 # Copyright (c) 1998 - 2010 Daniel Stenberg, <daniel@haxx.se>
17 # This configure script may be copied, distributed and modified under the
18 # terms of the curl license; see COPYING for more details
19 ## -------------------- ##
20 ## M4sh Initialization. ##
21 ## -------------------- ##
23 # Be more Bourne compatible
24 DUALCASE=1; export DUALCASE # for MKS sh
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29 # is contrary to our usage. Disable this feature.
30 alias -g '${1+"$@"}'='"$@"'
33 case `(set -o) 2>/dev/null` in #(
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 # Prefer a ksh shell builtin over an external printf program on Solaris,
50 # but without wasting forks for bash or zsh.
51 if test -z "$BASH_VERSION$ZSH_VERSION" \
52 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
54 as_echo_n='print -rn --'
55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
59 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
60 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
61 as_echo_n='/usr/ucb/echo -n'
63 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
68 expr "X$arg" : "X\\(.*\\)$as_nl";
69 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
71 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
74 as_echo_n='sh -c $as_echo_n_body as_echo'
77 as_echo='sh -c $as_echo_body as_echo'
81 if test -z "$curl_cv_PATH_SEPARATOR"; then
82 if test -z "$PATH"; then
83 as_fn_error $? "PATH not set. Cannot continue without PATH being set."
86 tst_save_IFS=$IFS; IFS=':'
87 for tst_dir in $PATH; do
89 test -d "$tst_dir" && tst_dirs_col=`expr $tst_dirs_col + 1`
93 tst_save_IFS=$IFS; IFS=';'
94 for tst_dir in $PATH; do
96 test -d "$tst_dir" && tst_dirs_sem=`expr $tst_dirs_sem + 1`
99 if test $tst_dirs_sem -eq $tst_dirs_col; then
100 if test -z "$PATH_SEPARATOR"; then
101 as_fn_error $? "PATH_SEPARATOR not set. Cannot continue without it."
104 if test $tst_dirs_sem -gt $tst_dirs_col; then
105 tst_auto_separator=';'
107 tst_auto_separator=':'
109 if test -z "$PATH_SEPARATOR"; then
110 PATH_SEPARATOR="$tst_auto_separator"
113 curl_cv_PATH_SEPARATOR="$PATH_SEPARATOR"
121 # We need space, tab and new line, in precisely that order. Quoting is
122 # there to prevent editors from complaining about space-tab.
123 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
124 # splitting by setting IFS to empty value.)
127 # Find who we are. Look in the path if we contain no directory separator.
129 *[\\/]* ) as_myself=$0 ;;
130 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 test -z "$as_dir" && as_dir=.
135 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
141 # We did not find ourselves, most probably we were run as `sh COMMAND'
142 # in which case we are not to be found in the path.
143 if test "x$as_myself" = x; then
146 if test ! -f "$as_myself"; then
147 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
151 # Unset variables that we do not need and which cause bugs (e.g. in
152 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
153 # suppresses any "Segmentation fault" message there. '((' could
154 # trigger a bug in pdksh 5.2.14.
155 for as_var in BASH_ENV ENV MAIL MAILPATH
156 do eval test x\${$as_var+set} = xset \
157 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
170 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
172 if test "x$CONFIG_SHELL" = x; then
173 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
176 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
177 # is contrary to our usage. Disable this feature.
178 alias -g '\${1+\"\$@\"}'='\"\$@\"'
181 case \`(set -o) 2>/dev/null\` in #(
189 as_required="as_fn_return () { (exit \$1); }
190 as_fn_success () { as_fn_return 0; }
191 as_fn_failure () { as_fn_return 1; }
192 as_fn_ret_success () { return 0; }
193 as_fn_ret_failure () { return 1; }
196 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
197 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
198 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
199 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
200 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
203 exitcode=1; echo positional parameters were not saved.
205 test x\$exitcode = x0 || exit 1"
206 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
207 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
208 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
209 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
210 test \$(( 1 + 1 )) = 2 || exit 1"
211 if (eval "$as_required") 2>/dev/null; then :
216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 # Try only shells that exist, to save several forks.
230 as_shell=$as_dir/$as_base
231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 CONFIG_SHELL=$as_shell as_have_required=yes
234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
249 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
255 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org and a suitable curl
268 $0: mailing list: http://curl.haxx.se/mail/ about your
269 $0: system, including any error possibly output before this
270 $0: message. Then install a modern shell, or manually run
271 $0: the script under such a shell if you do have one."
277 SHELL=${CONFIG_SHELL-/bin/sh}
279 # Unset more variables known to interfere with behavior of common tools.
280 CLICOLOR_FORCE= GREP_OPTIONS=
281 unset CLICOLOR_FORCE GREP_OPTIONS
283 ## --------------------- ##
284 ## M4sh Shell Functions. ##
285 ## --------------------- ##
288 # Portably unset VAR.
291 { eval $1=; unset $1;}
295 # as_fn_set_status STATUS
296 # -----------------------
297 # Set $? to STATUS, without forking.
305 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 # Create "$as_dir" as a directory, including parents if necessary.
320 -*) as_dir=./$as_dir;;
322 test -d "$as_dir" || eval $as_mkdir_p || {
326 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 as_dirs="'$as_qdir' $as_dirs"
330 as_dir=`$as_dirname -- "$as_dir" ||
331 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
332 X"$as_dir" : 'X\(//\)[^/]' \| \
333 X"$as_dir" : 'X\(//\)$' \| \
334 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
335 $as_echo X"$as_dir" |
336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353 test -d "$as_dir" && break
355 test -z "$as_dirs" || eval "mkdir $as_dirs"
356 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360 # as_fn_append VAR VALUE
361 # ----------------------
362 # Append the text in VALUE to the end of the definition contained in VAR. Take
363 # advantage of any shell optimizations that allow amortized linear growth over
364 # repeated appends, instead of the typical quadratic growth present in naive
366 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
367 eval 'as_fn_append ()
380 # Perform arithmetic evaluation on the ARGs, and store the result in the
381 # global $as_val. Take advantage of shells that can avoid forks. The arguments
382 # must be portable across $(()) and expr.
383 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 as_val=`expr "$@" || test $? -eq 1`
396 # as_fn_error STATUS ERROR [LINENO LOG_FD]
397 # ----------------------------------------
398 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
399 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
400 # script with STATUS, using 1 if that was 0.
403 as_status=$1; test $as_status -eq 0 && as_status=1
405 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
406 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
408 $as_echo "$as_me: error: $2" >&2
409 as_fn_exit $as_status
412 if expr a : '\(a\)' >/dev/null 2>&1 &&
413 test "X`expr 00001 : '.*\(...\)'`" = X001; then
419 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
425 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
431 as_me=`$as_basename -- "$0" ||
432 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
433 X"$0" : 'X\(//\)$' \| \
434 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
436 sed '/^.*\/\([^/][^/]*\)\/*$/{
450 # Avoid depending upon Character Ranges.
451 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
452 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
453 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
454 as_cr_digits='0123456789'
455 as_cr_alnum=$as_cr_Letters$as_cr_digits
458 as_lineno_1=$LINENO as_lineno_1a=$LINENO
459 as_lineno_2=$LINENO as_lineno_2a=$LINENO
460 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
461 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
462 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
478 chmod +x "$as_me.lineno" ||
479 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
481 # Don't try to exec as it changes $[0], causing all sort of problems
482 # (the dirname of $[0] is not the place where we might find the
483 # original and so on. Autoconf is especially sensitive to this).
485 # Exit status is that of the last command.
489 ECHO_C= ECHO_N= ECHO_T=
490 case `echo -n x` in #(((((
492 case `echo 'xy\c'` in
493 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
495 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
502 rm -f conf$$ conf$$.exe conf$$.file
503 if test -d conf$$.dir; then
504 rm -f conf$$.dir/conf$$.file
507 mkdir conf$$.dir 2>/dev/null
509 if (echo >conf$$.file) 2>/dev/null; then
510 if ln -s conf$$.file conf$$ 2>/dev/null; then
512 # ... but there are two gotchas:
513 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
514 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
515 # In both cases, we have to default to `cp -p'.
516 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
518 elif ln conf$$.file conf$$ 2>/dev/null; then
526 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
527 rmdir conf$$.dir 2>/dev/null
529 if mkdir -p . 2>/dev/null; then
530 as_mkdir_p='mkdir -p "$as_dir"'
532 test -d ./-p && rmdir ./-p
536 if test -x / >/dev/null 2>&1; then
539 if ls -dL / >/dev/null 2>&1; then
546 if test -d "$1"; then
552 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
553 ???[sx]*):;;*)false;;esac;fi
557 as_executable_p=$as_test_x
559 # Sed expression to map a string onto a valid CPP name.
560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
562 # Sed expression to map a string onto a valid variable name.
563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 # Check that we are running under the correct shell.
568 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Remove one level of quotation (which was required for Make).
573 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
578 if test "X$1" = X--no-reexec; then
579 # Discard the --no-reexec flag, and continue.
581 elif test "X$1" = X--fallback-echo; then
582 # Avoid inline document here, it may be left over
584 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
585 # Yippee, $ECHO works!
588 # Restart under the correct shell.
589 exec $SHELL "$0" --no-reexec ${1+"$@"}
592 if test "X$1" = X--fallback-echo; then
593 # used as fallback echo
601 # The HP-UX ksh and POSIX shell print the target directory to stdout
603 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
605 if test -z "$lt_ECHO"; then
606 if test "X${echo_test_string+set}" != Xset; then
607 # find a string as large as possible, as long as the shell can cope with it
608 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
609 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
610 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
611 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
618 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
619 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
620 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # The Solaris, AIX, and Digital Unix default echo programs unquote
624 # backslashes. This makes it impossible to quote backslashes using
625 # echo "$something" | sed 's/\\/\\\\/g'
627 # So, first we look for a working echo in the user's PATH.
629 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
630 for dir in $PATH /usr/ucb; do
632 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
633 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
642 if test "X$ECHO" = Xecho; then
643 # We didn't find a better echo, so look for alternatives.
644 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
645 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
646 test "X$echo_testing_string" = "X$echo_test_string"; then
647 # This shell has a builtin print -r that does the trick.
649 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
650 test "X$CONFIG_SHELL" != X/bin/ksh; then
651 # If we have ksh, try running configure again with it.
652 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
653 export ORIGINAL_CONFIG_SHELL
654 CONFIG_SHELL=/bin/ksh
656 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
660 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
661 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
662 test "X$echo_testing_string" = "X$echo_test_string"; then
665 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666 test "X$echo_testing_string" = 'X\t' &&
667 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668 test "X$echo_testing_string" = "X$echo_test_string"; then
669 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
671 SHELL="$CONFIG_SHELL"
673 ECHO="$CONFIG_SHELL $0 --fallback-echo"
674 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
675 test "X$echo_testing_string" = 'X\t' &&
676 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
677 test "X$echo_testing_string" = "X$echo_test_string"; then
678 ECHO="$CONFIG_SHELL $0 --fallback-echo"
680 # maybe with a smaller string...
683 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
684 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
691 if test "$prev" != 'sed 50q "$0"'; then
692 echo_test_string=`eval $prev`
693 export echo_test_string
694 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
696 # Oops. We lost completely, so just stick with echo.
705 # Copy echo and quote the copy suitably for passing to libtool from
706 # the Makefile, instead of quoting the original, which is used later.
708 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
709 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
715 test -n "$DJDIR" || exec 7<&0 </dev/null
719 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
720 # so uname gets run too.
721 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
726 ac_default_prefix=/usr/local
728 ac_config_libobj_dir=.
735 # Identity of this package.
737 PACKAGE_TARNAME='curl'
739 PACKAGE_STRING='curl -'
740 PACKAGE_BUGREPORT='a suitable curl mailing list: http://curl.haxx.se/mail/'
743 ac_unique_file="lib/urldata.h"
744 # Factoring default headers for most tests.
745 ac_includes_default="\
747 #ifdef HAVE_SYS_TYPES_H
748 # include <sys/types.h>
750 #ifdef HAVE_SYS_STAT_H
751 # include <sys/stat.h>
757 # ifdef HAVE_STDLIB_H
762 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
767 #ifdef HAVE_STRINGS_H
768 # include <strings.h>
770 #ifdef HAVE_INTTYPES_H
771 # include <inttypes.h>
780 enable_option_checking=no
781 ac_subst_vars='LTLIBOBJS
795 BUILD_LIBHOSTNAME_FALSE
796 BUILD_LIBHOSTNAME_TRUE
797 USE_EMBEDDED_ARES_FALSE
798 USE_EMBEDDED_ARES_TRUE
813 HAVE_PK11_CREATEGENERICOBJECT
901 INSTALL_STRIP_PROGRAM
923 MAINTAINER_MODE_FALSE
952 program_transform_name
966 enable_option_checking
967 enable_maintainer_mode
974 enable_dependency_tracking
1005 with_gssapi_includes
1021 enable_threaded_resolver
1026 enable_hidden_symbols
1029 ac_precious_vars='build_alias
1038 ac_subdirs_all='ares'
1040 # Initialize some variables set by options.
1042 ac_init_version=false
1043 ac_unrecognized_opts=
1044 ac_unrecognized_sep=
1045 # The variables have the same names as the options, with
1046 # dashes changed to underlines.
1047 cache_file=/dev/null
1054 program_transform_name=s,x,x,
1062 # Installation directory options.
1063 # These are left unexpanded so users can "make install exec_prefix=/foo"
1064 # and all the variables that are supposed to be based on exec_prefix
1065 # by default will actually change.
1066 # Use braces instead of parens because sh, perl, etc. also accept them.
1067 # (The list follows the same order as the GNU Coding Standards.)
1068 bindir='${exec_prefix}/bin'
1069 sbindir='${exec_prefix}/sbin'
1070 libexecdir='${exec_prefix}/libexec'
1071 datarootdir='${prefix}/share'
1072 datadir='${datarootdir}'
1073 sysconfdir='${prefix}/etc'
1074 sharedstatedir='${prefix}/com'
1075 localstatedir='${prefix}/var'
1076 includedir='${prefix}/include'
1077 oldincludedir='/usr/include'
1078 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1079 infodir='${datarootdir}/info'
1084 libdir='${exec_prefix}/lib'
1085 localedir='${datarootdir}/locale'
1086 mandir='${datarootdir}/man'
1092 # If the previous option needs an argument, assign it.
1093 if test -n "$ac_prev"; then
1094 eval $ac_prev=\$ac_option
1100 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1105 # Accept the important Cygnus configure options, so we can diagnose typos.
1107 case $ac_dashdash$ac_option in
1111 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1113 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1114 bindir=$ac_optarg ;;
1116 -build | --build | --buil | --bui | --bu)
1117 ac_prev=build_alias ;;
1118 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1119 build_alias=$ac_optarg ;;
1121 -cache-file | --cache-file | --cache-fil | --cache-fi \
1122 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1123 ac_prev=cache_file ;;
1124 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1125 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1126 cache_file=$ac_optarg ;;
1128 --config-cache | -C)
1129 cache_file=config.cache ;;
1131 -datadir | --datadir | --datadi | --datad)
1133 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1134 datadir=$ac_optarg ;;
1136 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1137 | --dataroo | --dataro | --datar)
1138 ac_prev=datarootdir ;;
1139 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1140 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1141 datarootdir=$ac_optarg ;;
1143 -disable-* | --disable-*)
1144 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error $? "invalid feature name: $ac_useropt"
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1152 "enable_$ac_useropt"
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
1157 eval enable_$ac_useropt=no ;;
1159 -docdir | --docdir | --docdi | --doc | --do)
1161 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1162 docdir=$ac_optarg ;;
1164 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1166 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1167 dvidir=$ac_optarg ;;
1169 -enable-* | --enable-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error $? "invalid feature name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1178 "enable_$ac_useropt"
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1183 eval enable_$ac_useropt=\$ac_optarg ;;
1185 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1186 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1187 | --exec | --exe | --ex)
1188 ac_prev=exec_prefix ;;
1189 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1190 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1191 | --exec=* | --exe=* | --ex=*)
1192 exec_prefix=$ac_optarg ;;
1194 -gas | --gas | --ga | --g)
1195 # Obsolete; use --with-gas.
1198 -help | --help | --hel | --he | -h)
1199 ac_init_help=long ;;
1200 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1201 ac_init_help=recursive ;;
1202 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1203 ac_init_help=short ;;
1205 -host | --host | --hos | --ho)
1206 ac_prev=host_alias ;;
1207 -host=* | --host=* | --hos=* | --ho=*)
1208 host_alias=$ac_optarg ;;
1210 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1212 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1214 htmldir=$ac_optarg ;;
1216 -includedir | --includedir | --includedi | --included | --include \
1217 | --includ | --inclu | --incl | --inc)
1218 ac_prev=includedir ;;
1219 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1220 | --includ=* | --inclu=* | --incl=* | --inc=*)
1221 includedir=$ac_optarg ;;
1223 -infodir | --infodir | --infodi | --infod | --info | --inf)
1225 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1226 infodir=$ac_optarg ;;
1228 -libdir | --libdir | --libdi | --libd)
1230 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1231 libdir=$ac_optarg ;;
1233 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1234 | --libexe | --libex | --libe)
1235 ac_prev=libexecdir ;;
1236 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1237 | --libexe=* | --libex=* | --libe=*)
1238 libexecdir=$ac_optarg ;;
1240 -localedir | --localedir | --localedi | --localed | --locale)
1241 ac_prev=localedir ;;
1242 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1243 localedir=$ac_optarg ;;
1245 -localstatedir | --localstatedir | --localstatedi | --localstated \
1246 | --localstate | --localstat | --localsta | --localst | --locals)
1247 ac_prev=localstatedir ;;
1248 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1249 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1250 localstatedir=$ac_optarg ;;
1252 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1254 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1255 mandir=$ac_optarg ;;
1257 -nfp | --nfp | --nf)
1258 # Obsolete; use --without-fp.
1261 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1262 | --no-cr | --no-c | -n)
1265 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1266 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1269 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1270 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1271 | --oldin | --oldi | --old | --ol | --o)
1272 ac_prev=oldincludedir ;;
1273 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1274 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1275 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1276 oldincludedir=$ac_optarg ;;
1278 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1280 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1281 prefix=$ac_optarg ;;
1283 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1284 | --program-pre | --program-pr | --program-p)
1285 ac_prev=program_prefix ;;
1286 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1287 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1288 program_prefix=$ac_optarg ;;
1290 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1291 | --program-suf | --program-su | --program-s)
1292 ac_prev=program_suffix ;;
1293 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1294 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1295 program_suffix=$ac_optarg ;;
1297 -program-transform-name | --program-transform-name \
1298 | --program-transform-nam | --program-transform-na \
1299 | --program-transform-n | --program-transform- \
1300 | --program-transform | --program-transfor \
1301 | --program-transfo | --program-transf \
1302 | --program-trans | --program-tran \
1303 | --progr-tra | --program-tr | --program-t)
1304 ac_prev=program_transform_name ;;
1305 -program-transform-name=* | --program-transform-name=* \
1306 | --program-transform-nam=* | --program-transform-na=* \
1307 | --program-transform-n=* | --program-transform-=* \
1308 | --program-transform=* | --program-transfor=* \
1309 | --program-transfo=* | --program-transf=* \
1310 | --program-trans=* | --program-tran=* \
1311 | --progr-tra=* | --program-tr=* | --program-t=*)
1312 program_transform_name=$ac_optarg ;;
1314 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1316 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1317 pdfdir=$ac_optarg ;;
1319 -psdir | --psdir | --psdi | --psd | --ps)
1321 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1325 | -silent | --silent | --silen | --sile | --sil)
1328 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1330 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1332 sbindir=$ac_optarg ;;
1334 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1335 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1336 | --sharedst | --shareds | --shared | --share | --shar \
1338 ac_prev=sharedstatedir ;;
1339 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1340 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1341 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1343 sharedstatedir=$ac_optarg ;;
1345 -site | --site | --sit)
1347 -site=* | --site=* | --sit=*)
1350 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1352 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1353 srcdir=$ac_optarg ;;
1355 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1356 | --syscon | --sysco | --sysc | --sys | --sy)
1357 ac_prev=sysconfdir ;;
1358 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1359 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1360 sysconfdir=$ac_optarg ;;
1362 -target | --target | --targe | --targ | --tar | --ta | --t)
1363 ac_prev=target_alias ;;
1364 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1365 target_alias=$ac_optarg ;;
1367 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1370 -version | --version | --versio | --versi | --vers | -V)
1371 ac_init_version=: ;;
1374 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1375 # Reject names that are not valid shell variable names.
1376 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1377 as_fn_error $? "invalid package name: $ac_useropt"
1378 ac_useropt_orig=$ac_useropt
1379 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1380 case $ac_user_opts in
1384 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1385 ac_unrecognized_sep=', ';;
1387 eval with_$ac_useropt=\$ac_optarg ;;
1389 -without-* | --without-*)
1390 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1391 # Reject names that are not valid shell variable names.
1392 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1393 as_fn_error $? "invalid package name: $ac_useropt"
1394 ac_useropt_orig=$ac_useropt
1395 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1396 case $ac_user_opts in
1400 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1401 ac_unrecognized_sep=', ';;
1403 eval with_$ac_useropt=no ;;
1406 # Obsolete; use --with-x.
1409 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1410 | --x-incl | --x-inc | --x-in | --x-i)
1411 ac_prev=x_includes ;;
1412 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1413 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1414 x_includes=$ac_optarg ;;
1416 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1417 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1418 ac_prev=x_libraries ;;
1419 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1420 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1421 x_libraries=$ac_optarg ;;
1423 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1424 Try \`$0 --help' for more information"
1428 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1429 # Reject names that are not valid shell variable names.
1430 case $ac_envvar in #(
1431 '' | [0-9]* | *[!_$as_cr_alnum]* )
1432 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1434 eval $ac_envvar=\$ac_optarg
1435 export $ac_envvar ;;
1438 # FIXME: should be removed in autoconf 3.0.
1439 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1440 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1441 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1442 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1448 if test -n "$ac_prev"; then
1449 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1450 as_fn_error $? "missing argument to $ac_option"
1453 if test -n "$ac_unrecognized_opts"; then
1454 case $enable_option_checking in
1456 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1457 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1461 # Check all directory arguments for consistency.
1462 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1463 datadir sysconfdir sharedstatedir localstatedir includedir \
1464 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1465 libdir localedir mandir
1467 eval ac_val=\$$ac_var
1468 # Remove trailing slashes.
1471 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1472 eval $ac_var=\$ac_val;;
1474 # Be sure to have absolute directory names.
1476 [\\/$]* | ?:[\\/]* ) continue;;
1477 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1479 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1482 # There might be people who depend on the old broken behavior: `$host'
1483 # used to hold the argument of --host etc.
1484 # FIXME: To remove some day.
1487 target=$target_alias
1489 # FIXME: To remove some day.
1490 if test "x$host_alias" != x; then
1491 if test "x$build_alias" = x; then
1492 cross_compiling=maybe
1493 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1494 If a cross compiler is detected then cross compile mode will be used" >&2
1495 elif test "x$build_alias" != "x$host_alias"; then
1501 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1503 test "$silent" = yes && exec 6>/dev/null
1506 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1507 ac_ls_di=`ls -di .` &&
1508 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1509 as_fn_error $? "working directory cannot be determined"
1510 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1511 as_fn_error $? "pwd does not report name of working directory"
1514 # Find the source files, if location was not specified.
1515 if test -z "$srcdir"; then
1516 ac_srcdir_defaulted=yes
1517 # Try the directory containing this script, then the parent directory.
1518 ac_confdir=`$as_dirname -- "$as_myself" ||
1519 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1520 X"$as_myself" : 'X\(//\)[^/]' \| \
1521 X"$as_myself" : 'X\(//\)$' \| \
1522 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1523 $as_echo X"$as_myself" |
1524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1542 if test ! -r "$srcdir/$ac_unique_file"; then
1546 ac_srcdir_defaulted=no
1548 if test ! -r "$srcdir/$ac_unique_file"; then
1549 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1550 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1552 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1554 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1556 # When building in place, set srcdir=.
1557 if test "$ac_abs_confdir" = "$ac_pwd"; then
1560 # Remove unnecessary trailing slashes from srcdir.
1561 # Double slashes in file names in object file debugging info
1562 # mess up M-x gdb in Emacs.
1564 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1566 for ac_var in $ac_precious_vars; do
1567 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1568 eval ac_env_${ac_var}_value=\$${ac_var}
1569 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1570 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1574 # Report the --help message.
1576 if test "$ac_init_help" = "long"; then
1577 # Omit some internal or obsolete options to make the list less imposing.
1578 # This message is too long to be a string in the A/UX 3.1 sh.
1580 \`configure' configures curl - to adapt to many kinds of systems.
1582 Usage: $0 [OPTION]... [VAR=VALUE]...
1584 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1585 VAR=VALUE. See below for descriptions of some of the useful variables.
1587 Defaults for the options are specified in brackets.
1590 -h, --help display this help and exit
1591 --help=short display options specific to this package
1592 --help=recursive display the short help of all the included packages
1593 -V, --version display version information and exit
1594 -q, --quiet, --silent do not print \`checking ...' messages
1595 --cache-file=FILE cache test results in FILE [disabled]
1596 -C, --config-cache alias for \`--cache-file=config.cache'
1597 -n, --no-create do not create output files
1598 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1600 Installation directories:
1601 --prefix=PREFIX install architecture-independent files in PREFIX
1602 [$ac_default_prefix]
1603 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1606 By default, \`make install' will install all the files in
1607 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1608 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1609 for instance \`--prefix=\$HOME'.
1611 For better control, use the options below.
1613 Fine tuning of the installation directories:
1614 --bindir=DIR user executables [EPREFIX/bin]
1615 --sbindir=DIR system admin executables [EPREFIX/sbin]
1616 --libexecdir=DIR program executables [EPREFIX/libexec]
1617 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1618 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1619 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1620 --libdir=DIR object code libraries [EPREFIX/lib]
1621 --includedir=DIR C header files [PREFIX/include]
1622 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1623 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1624 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1625 --infodir=DIR info documentation [DATAROOTDIR/info]
1626 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1627 --mandir=DIR man documentation [DATAROOTDIR/man]
1628 --docdir=DIR documentation root [DATAROOTDIR/doc/curl]
1629 --htmldir=DIR html documentation [DOCDIR]
1630 --dvidir=DIR dvi documentation [DOCDIR]
1631 --pdfdir=DIR pdf documentation [DOCDIR]
1632 --psdir=DIR ps documentation [DOCDIR]
1638 --program-prefix=PREFIX prepend PREFIX to installed program names
1639 --program-suffix=SUFFIX append SUFFIX to installed program names
1640 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1643 --build=BUILD configure for building on BUILD [guessed]
1644 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1648 if test -n "$ac_init_help"; then
1649 case $ac_init_help in
1650 short | recursive ) echo "Configuration of curl -:";;
1655 --disable-option-checking ignore unrecognized --enable/--with options
1656 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1657 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1658 --enable-maintainer-mode enable make rules and dependencies not useful
1659 (and sometimes confusing) to the casual installer
1660 --enable-debug Enable debug build options
1661 --disable-debug Disable debug build options
1662 --enable-optimize Enable compiler optimizations
1663 --disable-optimize Disable compiler optimizations
1664 --enable-warnings Enable strict compiler warnings
1665 --disable-warnings Disable strict compiler warnings
1666 --enable-werror Enable compiler warnings as errors
1667 --disable-werror Disable compiler warnings as errors
1668 --enable-curldebug Enable curl debug memory tracking
1669 --disable-curldebug Disable curl debug memory tracking
1670 --enable-ares[=PATH] Enable c-ares for DNS lookups
1671 --disable-ares Disable c-ares for DNS lookups
1672 --disable-dependency-tracking speeds up one-time build
1673 --enable-dependency-tracking do not reject slow dependency extractors
1674 --disable-largefile omit support for large files
1675 --enable-shared[=PKGS] build shared libraries [default=yes]
1676 --enable-static[=PKGS] build static libraries [default=yes]
1677 --enable-fast-install[=PKGS]
1678 optimize for fast installation [default=yes]
1679 --disable-libtool-lock avoid locking (might break parallel builds)
1680 --enable-http Enable HTTP support
1681 --disable-http Disable HTTP support
1682 --enable-ftp Enable FTP support
1683 --disable-ftp Disable FTP support
1684 --enable-file Enable FILE support
1685 --disable-file Disable FILE support
1686 --enable-ldap Enable LDAP support
1687 --disable-ldap Disable LDAP support
1688 --enable-ldaps Enable LDAPS support
1689 --disable-ldaps Disable LDAPS support
1690 --enable-rtsp Enable RTSP support
1691 --disable-rtsp Disable RTSP support
1692 --enable-proxy Enable proxy support
1693 --disable-proxy Disable proxy support
1694 --enable-dict Enable DICT support
1695 --disable-dict Disable DICT support
1696 --enable-telnet Enable TELNET support
1697 --disable-telnet Disable TELNET support
1698 --enable-tftp Enable TFTP support
1699 --disable-tftp Disable TFTP support
1700 --enable-pop3 Enable POP3 support
1701 --disable-pop3 Disable POP3 support
1702 --enable-imap Enable IMAP support
1703 --disable-imap Disable IMAP support
1704 --enable-smtp Enable SMTP support
1705 --disable-smtp Disable SMTP support
1706 --enable-gopher Enable Gopher support
1707 --disable-gopher Disable Gopher support
1708 --enable-manual Enable built-in manual
1709 --disable-manual Disable built-in manual
1710 --enable-libgcc use libgcc when linking
1711 --enable-ipv6 Enable ipv6 (with ipv4) support
1712 --disable-ipv6 Disable ipv6 support
1713 --enable-nonblocking Enable non-blocking communications
1714 --disable-nonblocking Disable non-blocking communications
1715 --enable-threaded-resolver
1716 Enable threaded resolver
1717 --disable-threaded-resolver
1718 Disable threaded resolver
1719 --enable-verbose Enable verbose strings
1720 --disable-verbose Disable verbose strings
1721 --enable-sspi Enable SSPI
1722 --disable-sspi Disable SSPI
1723 --enable-crypto-auth Enable cryptographic authentication
1724 --disable-crypto-auth Disable cryptographic authentication
1725 --enable-cookies Enable cookies support
1726 --disable-cookies Disable cookies support
1727 --enable-hidden-symbols Hide internal symbols in library
1728 --disable-hidden-symbols
1729 Leave all symbols with default visibility in library
1730 --enable-soname-bump Enable enforced SONAME bump
1731 --disable-soname-bump Disable enforced SONAME bump
1734 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1735 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1736 --with-pic try to use only PIC/non-PIC objects [default=use
1738 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1739 --with-ldap-lib=libname Specify name of ldap lib file
1740 --with-lber-lib=libname Specify name of lber lib file
1741 --with-krb4-includes=DIR
1742 Specify location of kerberos4 headers
1743 --with-krb4-libs=DIR Specify location of kerberos4 libs
1744 --with-krb4=DIR where to look for Kerberos4
1745 --with-spnego=DIR Specify location of SPNEGO library fbopenssl
1746 --with-gssapi-includes=DIR
1747 Specify location of GSSAPI header
1748 --with-gssapi-libs=DIR Specify location of GSSAPI libs
1749 --with-gssapi=DIR Where to look for GSSAPI
1750 --with-ssl=PATH Where to look for OpenSSL, PATH points to the SSL
1751 installation (default: /usr/local/ssl); when
1752 possible, set the PKG_CONFIG_PATH environment
1753 variable instead of using this option
1754 --without-ssl disable OpenSSL
1755 --with-zlib=PATH search for zlib in PATH
1756 --without-zlib disable use of zlib
1757 --with-egd-socket=FILE Entropy Gathering Daemon socket pathname
1758 --with-random=FILE read randomness from FILE (default=/dev/urandom)
1759 --with-gnutls=PATH where to look for GnuTLS, PATH points to the
1760 installation root (default: /usr/local/)
1761 --without-gnutls disable GnuTLS detection
1762 --with-polarssl=PATH where to look for PolarSSL, PATH points to the
1763 installation root (default: /usr/local/)
1764 --without-polarssl disable PolarSSL detection
1765 --with-nss=PATH where to look for NSS, PATH points to the
1766 installation root (default: /usr/local/)
1767 --without-nss disable NSS detection
1768 --with-ca-bundle=FILE File name to use as CA bundle
1769 --without-ca-bundle Don't use a default CA bundle
1770 --with-ca-path=DIRECTORY
1771 Directory to use as CA path
1772 --without-ca-path Don't use a default CA path
1773 --with-libssh2=PATH Where to look for libssh2, PATH points to the
1774 LIBSSH2 installation (default: /usr/local/lib); when
1775 possible, set the PKG_CONFIG_PATH environment
1776 variable instead of using this option
1777 --without-libssh2 disable LIBSSH2
1778 --with-librtmp=PATH Where to look for librtmp, PATH points to the
1779 LIBRTMP installation (default: /usr/local/lib); when
1780 possible, set the PKG_CONFIG_PATH environment
1781 variable instead of using this option
1782 --without-librtmp disable LIBRTMP
1783 --with-libidn=PATH Enable libidn usage
1784 --without-libidn Disable libidn usage
1786 Some influential environment variables:
1787 CC C compiler command
1788 CFLAGS C compiler flags
1789 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1790 nonstandard directory <lib dir>
1791 LIBS libraries to pass to the linker, e.g. -l<library>
1792 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1793 you have headers in a nonstandard directory <include dir>
1796 Use these variables to override the choices made by `configure' or to help
1797 it to find libraries and programs with nonstandard names/locations.
1799 Report bugs to <a suitable curl mailing list: http://curl.haxx.se/mail/>.
1804 if test "$ac_init_help" = "recursive"; then
1805 # If there are subdirs, report their specific --help.
1806 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1807 test -d "$ac_dir" ||
1808 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1813 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1815 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1816 # A ".." for each directory in $ac_dir_suffix.
1817 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1818 case $ac_top_builddir_sub in
1819 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1820 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1823 ac_abs_top_builddir=$ac_pwd
1824 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1825 # for backward compatibility:
1826 ac_top_builddir=$ac_top_build_prefix
1829 .) # We are building in place.
1831 ac_top_srcdir=$ac_top_builddir_sub
1832 ac_abs_top_srcdir=$ac_pwd ;;
1833 [\\/]* | ?:[\\/]* ) # Absolute name.
1834 ac_srcdir=$srcdir$ac_dir_suffix;
1835 ac_top_srcdir=$srcdir
1836 ac_abs_top_srcdir=$srcdir ;;
1838 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1839 ac_top_srcdir=$ac_top_build_prefix$srcdir
1840 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1842 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1844 cd "$ac_dir" || { ac_status=$?; continue; }
1845 # Check for guested configure.
1846 if test -f "$ac_srcdir/configure.gnu"; then
1848 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1849 elif test -f "$ac_srcdir/configure"; then
1851 $SHELL "$ac_srcdir/configure" --help=recursive
1853 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1855 cd "$ac_pwd" || { ac_status=$?; break; }
1859 test -n "$ac_init_help" && exit $ac_status
1860 if $ac_init_version; then
1863 generated by GNU Autoconf 2.67
1865 Copyright (C) 2010 Free Software Foundation, Inc.
1866 This configure script is free software; the Free Software Foundation
1867 gives unlimited permission to copy, distribute and modify it.
1869 Copyright (c) 1998 - 2010 Daniel Stenberg, <daniel@haxx.se>
1870 This configure script may be copied, distributed and modified under the
1871 terms of the curl license; see COPYING for more details
1876 ## ------------------------ ##
1877 ## Autoconf initialization. ##
1878 ## ------------------------ ##
1880 # ac_fn_c_try_compile LINENO
1881 # --------------------------
1882 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1883 ac_fn_c_try_compile ()
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 rm -f conftest.$ac_objext
1887 if { { ac_try="$ac_compile"
1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894 (eval "$ac_compile") 2>conftest.err
1896 if test -s conftest.err; then
1897 grep -v '^ *+' conftest.err >conftest.er1
1898 cat conftest.er1 >&5
1899 mv -f conftest.er1 conftest.err
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; } && {
1903 test -z "$ac_c_werror_flag" ||
1904 test ! -s conftest.err
1905 } && test -s conftest.$ac_objext; then :
1908 $as_echo "$as_me: failed program was:" >&5
1909 sed 's/^/| /' conftest.$ac_ext >&5
1913 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1914 as_fn_set_status $ac_retval
1916 } # ac_fn_c_try_compile
1918 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1919 # -------------------------------------------------------
1920 # Tests whether HEADER exists and can be compiled using the include files in
1921 # INCLUDES, setting the cache variable VAR accordingly.
1922 ac_fn_c_check_header_compile ()
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926 $as_echo_n "checking for $2... " >&6; }
1927 if eval "test \"\${$3+set}\"" = set; then :
1928 $as_echo_n "(cached) " >&6
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1935 if ac_fn_c_try_compile "$LINENO"; then :
1940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1947 } # ac_fn_c_check_header_compile
1949 # ac_fn_c_try_run LINENO
1950 # ----------------------
1951 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1952 # that executables *can* be run.
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 if { { ac_try="$ac_link"
1958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1959 *) ac_try_echo=$ac_try;;
1961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962 $as_echo "$ac_try_echo"; } >&5
1963 (eval "$ac_link") 2>&5
1965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1967 { { case "(($ac_try" in
1968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1969 *) ac_try_echo=$ac_try;;
1971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1972 $as_echo "$ac_try_echo"; } >&5
1973 (eval "$ac_try") 2>&5
1975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1976 test $ac_status = 0; }; }; then :
1979 $as_echo "$as_me: program exited with status $ac_status" >&5
1980 $as_echo "$as_me: failed program was:" >&5
1981 sed 's/^/| /' conftest.$ac_ext >&5
1983 ac_retval=$ac_status
1985 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1986 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1987 as_fn_set_status $ac_retval
1991 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1992 # --------------------------------------------
1993 # Tries to find the compile-time value of EXPR in a program that includes
1994 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1996 ac_fn_c_compute_int ()
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 if test "$cross_compiling" = yes; then
2000 # Depending upon the size, compute the lo and hi bounds.
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2006 static int test_array [1 - 2 * !(($2) >= 0)];
2013 if ac_fn_c_try_compile "$LINENO"; then :
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2021 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2028 if ac_fn_c_try_compile "$LINENO"; then :
2029 ac_hi=$ac_mid; break
2031 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2032 if test $ac_lo -le $ac_mid; then
2036 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2046 static int test_array [1 - 2 * !(($2) < 0)];
2053 if ac_fn_c_try_compile "$LINENO"; then :
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2061 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2068 if ac_fn_c_try_compile "$LINENO"; then :
2069 ac_lo=$ac_mid; break
2071 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2072 if test $ac_mid -le $ac_hi; then
2076 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086 # Binary search between lo and hi bounds.
2087 while test "x$ac_lo" != "x$ac_hi"; do
2088 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2094 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2101 if ac_fn_c_try_compile "$LINENO"; then :
2104 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2116 static long int longval () { return $2; }
2117 static unsigned long int ulongval () { return $2; }
2123 FILE *f = fopen ("conftest.val", "w");
2128 long int i = longval ();
2131 fprintf (f, "%ld", i);
2135 unsigned long int i = ulongval ();
2138 fprintf (f, "%lu", i);
2140 /* Do not output a trailing newline, as this causes \r\n confusion
2141 on some platforms. */
2142 return ferror (f) || fclose (f) != 0;
2148 if ac_fn_c_try_run "$LINENO"; then :
2149 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2154 conftest.$ac_objext conftest.beam conftest.$ac_ext
2158 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2159 as_fn_set_status $ac_retval
2161 } # ac_fn_c_compute_int
2163 # ac_fn_c_try_cpp LINENO
2164 # ----------------------
2165 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2168 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2169 if { { ac_try="$ac_cpp conftest.$ac_ext"
2171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2172 *) ac_try_echo=$ac_try;;
2174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2175 $as_echo "$ac_try_echo"; } >&5
2176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2178 if test -s conftest.err; then
2179 grep -v '^ *+' conftest.err >conftest.er1
2180 cat conftest.er1 >&5
2181 mv -f conftest.er1 conftest.err
2183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2184 test $ac_status = 0; } > conftest.i && {
2185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2186 test ! -s conftest.err
2190 $as_echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.$ac_ext >&5
2195 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2196 as_fn_set_status $ac_retval
2200 # ac_fn_c_try_link LINENO
2201 # -----------------------
2202 # Try to link conftest.$ac_ext, and return whether this succeeded.
2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206 rm -f conftest.$ac_objext conftest$ac_exeext
2207 if { { ac_try="$ac_link"
2209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2210 *) ac_try_echo=$ac_try;;
2212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2213 $as_echo "$ac_try_echo"; } >&5
2214 (eval "$ac_link") 2>conftest.err
2216 if test -s conftest.err; then
2217 grep -v '^ *+' conftest.err >conftest.er1
2218 cat conftest.er1 >&5
2219 mv -f conftest.er1 conftest.err
2221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2222 test $ac_status = 0; } && {
2223 test -z "$ac_c_werror_flag" ||
2224 test ! -s conftest.err
2225 } && test -s conftest$ac_exeext && {
2226 test "$cross_compiling" = yes ||
2227 $as_test_x conftest$ac_exeext
2231 $as_echo "$as_me: failed program was:" >&5
2232 sed 's/^/| /' conftest.$ac_ext >&5
2236 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2237 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2238 # interfere with the next link command; also delete a directory that is
2239 # left behind by Apple's compiler. We do this before executing the actions.
2240 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2241 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2242 as_fn_set_status $ac_retval
2244 } # ac_fn_c_try_link
2246 # ac_fn_c_check_func LINENO FUNC VAR
2247 # ----------------------------------
2248 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2249 ac_fn_c_check_func ()
2251 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2253 $as_echo_n "checking for $2... " >&6; }
2254 if eval "test \"\${$3+set}\"" = set; then :
2255 $as_echo_n "(cached) " >&6
2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h. */
2260 #define $2 innocuous_$2
2262 # include <limits.h>
2264 # include <assert.h>
2271 #if defined __stub_$2 || defined __stub___$2
2282 if ac_fn_c_try_link "$LINENO"; then :
2287 rm -f core conftest.err conftest.$ac_objext \
2288 conftest$ac_exeext conftest.$ac_ext
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2292 $as_echo "$ac_res" >&6; }
2293 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2295 } # ac_fn_c_check_func
2297 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2298 # -------------------------------------------------------
2299 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2300 # the include files in INCLUDES and setting the cache variable VAR
2302 ac_fn_c_check_header_mongrel ()
2304 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305 if eval "test \"\${$3+set}\"" = set; then :
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2307 $as_echo_n "checking for $2... " >&6; }
2308 if eval "test \"\${$3+set}\"" = set; then :
2309 $as_echo_n "(cached) " >&6
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2313 $as_echo "$ac_res" >&6; }
2315 # Is the header compilable?
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2317 $as_echo_n "checking $2 usability... " >&6; }
2318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2319 /* end confdefs.h. */
2323 if ac_fn_c_try_compile "$LINENO"; then :
2324 ac_header_compiler=yes
2326 ac_header_compiler=no
2328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2330 $as_echo "$ac_header_compiler" >&6; }
2332 # Is the header present?
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2334 $as_echo_n "checking $2 presence... " >&6; }
2335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2336 /* end confdefs.h. */
2339 if ac_fn_c_try_cpp "$LINENO"; then :
2340 ac_header_preproc=yes
2342 ac_header_preproc=no
2344 rm -f conftest.err conftest.i conftest.$ac_ext
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2346 $as_echo "$ac_header_preproc" >&6; }
2348 # So? What about this header?
2349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2352 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2354 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2358 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2360 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2362 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2364 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2366 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2367 ( $as_echo "## ---------------------------------------------------------------------- ##
2368 ## Report this to a suitable curl mailing list: http://curl.haxx.se/mail/ ##
2369 ## ---------------------------------------------------------------------- ##"
2370 ) | sed "s/^/$as_me: WARNING: /" >&2
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2374 $as_echo_n "checking for $2... " >&6; }
2375 if eval "test \"\${$3+set}\"" = set; then :
2376 $as_echo_n "(cached) " >&6
2378 eval "$3=\$ac_header_compiler"
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2382 $as_echo "$ac_res" >&6; }
2384 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2386 } # ac_fn_c_check_header_mongrel
2388 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2389 # -------------------------------------------
2390 # Tests whether TYPE exists after having included INCLUDES, setting cache
2391 # variable VAR accordingly.
2392 ac_fn_c_check_type ()
2394 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2396 $as_echo_n "checking for $2... " >&6; }
2397 if eval "test \"\${$3+set}\"" = set; then :
2398 $as_echo_n "(cached) " >&6
2401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2402 /* end confdefs.h. */
2412 if ac_fn_c_try_compile "$LINENO"; then :
2413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414 /* end confdefs.h. */
2424 if ac_fn_c_try_compile "$LINENO"; then :
2429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2435 $as_echo "$ac_res" >&6; }
2436 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2438 } # ac_fn_c_check_type
2439 cat >config.log <<_ACEOF
2440 This file contains any messages produced by compilers while
2441 running configure, to aid debugging if configure makes a mistake.
2443 It was created by curl $as_me -, which was
2444 generated by GNU Autoconf 2.67. Invocation command line was
2456 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2457 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2458 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2459 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2460 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2462 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2463 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2465 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2466 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2467 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2468 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2469 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2470 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2471 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 test -z "$as_dir" && as_dir=.
2480 $as_echo "PATH: $as_dir"
2496 # Keep a trace of the command line.
2497 # Strip out --no-create and --no-recursion so they do not pile up.
2498 # Strip out --silent because we don't want to record it for future runs.
2499 # Also quote any args containing shell meta-characters.
2500 # Make two passes to allow for proper duplicate-argument suppression.
2504 ac_must_keep_next=false
2510 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2511 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2512 | -silent | --silent | --silen | --sile | --sil)
2515 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2518 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2520 as_fn_append ac_configure_args1 " '$ac_arg'"
2521 if test $ac_must_keep_next = true; then
2522 ac_must_keep_next=false # Got value, back to normal.
2525 *=* | --config-cache | -C | -disable-* | --disable-* \
2526 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2527 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2528 | -with-* | --with-* | -without-* | --without-* | --x)
2529 case "$ac_configure_args0 " in
2530 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2533 -* ) ac_must_keep_next=true ;;
2536 as_fn_append ac_configure_args " '$ac_arg'"
2541 { ac_configure_args0=; unset ac_configure_args0;}
2542 { ac_configure_args1=; unset ac_configure_args1;}
2544 # When interrupted or exit'd, cleanup temporary files, and complete
2545 # config.log. We remove comments because anyway the quotes in there
2546 # would cause problems or look ugly.
2547 # WARNING: Use '\'' to represent an apostrophe within the trap.
2548 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2549 trap 'exit_status=$?
2550 # Save into config.log some information that might help in debugging.
2554 $as_echo "## ---------------- ##
2555 ## Cache variables. ##
2556 ## ---------------- ##"
2558 # The following way of writing the cache mishandles newlines in values,
2560 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2561 eval ac_val=\$$ac_var
2565 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2566 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2569 _ | IFS | as_nl) ;; #(
2570 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2571 *) { eval $ac_var=; unset $ac_var;} ;;
2576 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2577 *${as_nl}ac_space=\ *)
2579 "s/'\''/'\''\\\\'\'''\''/g;
2580 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2583 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2590 $as_echo "## ----------------- ##
2591 ## Output variables. ##
2592 ## ----------------- ##"
2594 for ac_var in $ac_subst_vars
2596 eval ac_val=\$$ac_var
2598 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2600 $as_echo "$ac_var='\''$ac_val'\''"
2604 if test -n "$ac_subst_files"; then
2605 $as_echo "## ------------------- ##
2606 ## File substitutions. ##
2607 ## ------------------- ##"
2609 for ac_var in $ac_subst_files
2611 eval ac_val=\$$ac_var
2613 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2615 $as_echo "$ac_var='\''$ac_val'\''"
2620 if test -s confdefs.h; then
2621 $as_echo "## ----------- ##
2628 test "$ac_signal" != 0 &&
2629 $as_echo "$as_me: caught signal $ac_signal"
2630 $as_echo "$as_me: exit $exit_status"
2632 rm -f core *.core core.conftest.* &&
2633 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2636 for ac_signal in 1 2 13 15; do
2637 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2641 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2642 rm -f -r conftest* confdefs.h
2644 $as_echo "/* confdefs.h */" > confdefs.h
2646 # Predefined preprocessor variables.
2648 cat >>confdefs.h <<_ACEOF
2649 #define PACKAGE_NAME "$PACKAGE_NAME"
2652 cat >>confdefs.h <<_ACEOF
2653 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2656 cat >>confdefs.h <<_ACEOF
2657 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2660 cat >>confdefs.h <<_ACEOF
2661 #define PACKAGE_STRING "$PACKAGE_STRING"
2664 cat >>confdefs.h <<_ACEOF
2665 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2668 cat >>confdefs.h <<_ACEOF
2669 #define PACKAGE_URL "$PACKAGE_URL"
2673 # Let the site file select an alternate cache file if it wants to.
2674 # Prefer an explicitly selected file to automatically selected ones.
2677 if test -n "$CONFIG_SITE"; then
2678 # We do not want a PATH search for config.site.
2679 case $CONFIG_SITE in #((
2680 -*) ac_site_file1=./$CONFIG_SITE;;
2681 */*) ac_site_file1=$CONFIG_SITE;;
2682 *) ac_site_file1=./$CONFIG_SITE;;
2684 elif test "x$prefix" != xNONE; then
2685 ac_site_file1=$prefix/share/config.site
2686 ac_site_file2=$prefix/etc/config.site
2688 ac_site_file1=$ac_default_prefix/share/config.site
2689 ac_site_file2=$ac_default_prefix/etc/config.site
2691 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2693 test "x$ac_site_file" = xNONE && continue
2694 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2696 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2697 sed 's/^/| /' "$ac_site_file" >&5
2699 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2701 as_fn_error $? "failed to load site script $ac_site_file
2702 See \`config.log' for more details" "$LINENO" 5 ; }
2706 if test -r "$cache_file"; then
2707 # Some versions of bash will fail to source /dev/null (special files
2708 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2709 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2711 $as_echo "$as_me: loading cache $cache_file" >&6;}
2713 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2714 *) . "./$cache_file";;
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2719 $as_echo "$as_me: creating cache $cache_file" >&6;}
2723 # Check that the precious variables saved in the cache have kept the same
2725 ac_cache_corrupted=false
2726 for ac_var in $ac_precious_vars; do
2727 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2728 eval ac_new_set=\$ac_env_${ac_var}_set
2729 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2730 eval ac_new_val=\$ac_env_${ac_var}_value
2731 case $ac_old_set,$ac_new_set in
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2734 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2735 ac_cache_corrupted=: ;;
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2738 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2739 ac_cache_corrupted=: ;;
2742 if test "x$ac_old_val" != "x$ac_new_val"; then
2743 # differences in whitespace do not lead to failure.
2744 ac_old_val_w=`echo x $ac_old_val`
2745 ac_new_val_w=`echo x $ac_new_val`
2746 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2748 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2749 ac_cache_corrupted=:
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2752 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2753 eval $ac_var=\$ac_old_val
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2756 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2758 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2761 # Pass precious variables to config.status.
2762 if test "$ac_new_set" = set; then
2764 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2765 *) ac_arg=$ac_var=$ac_new_val ;;
2767 case " $ac_configure_args " in
2768 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2769 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2773 if $ac_cache_corrupted; then
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2777 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2778 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2780 ## -------------------- ##
2781 ## Main body of script. ##
2782 ## -------------------- ##
2785 ac_cpp='$CPP $CPPFLAGS'
2786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2794 # using curl-override.m4
2800 ac_config_headers="$ac_config_headers lib/curl_config.h src/curl_config.h include/curl/curlbuild.h"
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2803 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2804 # Check whether --enable-maintainer-mode was given.
2805 if test "${enable_maintainer_mode+set}" = set; then :
2806 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2808 USE_MAINTAINER_MODE=no
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2812 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2815 if test $USE_MAINTAINER_MODE = yes; then
2816 MAINTAINER_MODE_TRUE=
2817 MAINTAINER_MODE_FALSE='#'
2819 MAINTAINER_MODE_TRUE='#'
2820 MAINTAINER_MODE_FALSE=
2823 MAINT=$MAINTAINER_MODE_TRUE
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
2829 $as_echo_n "checking whether to enable debug build options... " >&6; }
2830 OPT_DEBUG_BUILD="default"
2831 # Check whether --enable-debug was given.
2832 if test "${enable_debug+set}" = set; then :
2833 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
2836 case "$OPT_DEBUG_BUILD" in
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
2848 $as_echo "$want_debug" >&6; }
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
2852 $as_echo_n "checking whether to enable compiler optimizer... " >&6; }
2853 OPT_COMPILER_OPTIMIZE="default"
2854 # Check whether --enable-optimize was given.
2855 if test "${enable_optimize+set}" = set; then :
2856 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
2859 case "$OPT_COMPILER_OPTIMIZE" in
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 $as_echo "no" >&6; }
2866 if test "$want_debug" = "yes"; then
2867 want_optimize="assume_no"
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
2869 $as_echo "(assumed) no" >&6; }
2871 want_optimize="assume_yes"
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
2873 $as_echo "(assumed) yes" >&6; }
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2879 $as_echo "yes" >&6; }
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
2885 $as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
2886 OPT_COMPILER_WARNINGS="default"
2887 # Check whether --enable-warnings was given.
2888 if test "${enable_warnings+set}" = set; then :
2889 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
2892 case "$OPT_COMPILER_WARNINGS" in
2897 want_warnings="$want_debug"
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
2904 $as_echo "$want_warnings" >&6; }
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
2908 $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
2909 OPT_COMPILER_WERROR="default"
2910 # Check whether --enable-werror was given.
2911 if test "${enable_werror+set}" = set; then :
2912 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
2915 case "$OPT_COMPILER_WERROR" in
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
2927 $as_echo "$want_werror" >&6; }
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
2931 $as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
2932 OPT_CURLDEBUG_BUILD="default"
2933 # Check whether --enable-curldebug was given.
2934 if test "${enable_curldebug+set}" = set; then :
2935 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
2938 case "$OPT_CURLDEBUG_BUILD" in
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2945 if test "$want_debug" = "yes"; then
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
2947 $as_echo "(assumed) yes" >&6; }
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2950 $as_echo "no" >&6; }
2952 want_curldebug_assumed="yes"
2953 want_curldebug="$want_debug"
2956 want_curldebug="yes"
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2958 $as_echo "yes" >&6; }
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
2964 $as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
2966 # Check whether --enable-ares was given.
2967 if test "${enable_ares+set}" = set; then :
2968 enableval=$enable_ares; OPT_ARES=$enableval
2980 if test -n "$enableval" && test "$enableval" != "yes"; then
2981 want_ares_path="$enableval"
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
2986 $as_echo "$want_ares" >&6; }
2993 # save the configure arguments
2995 CONFIGURE_OPTIONS="\"$ac_configure_args\""
2998 CURL_CFLAG_EXTRAS=""
2999 if test X"$want_werror" = Xyes; then
3000 CURL_CFLAG_EXTRAS="-Werror"
3004 if test -z "$SED"; then
3005 # Extract the first word of "sed", so it can be a program name with args.
3006 set dummy sed; ac_word=$2
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008 $as_echo_n "checking for $ac_word... " >&6; }
3009 if test "${ac_cv_path_SED+set}" = set; then :
3010 $as_echo_n "(cached) " >&6
3014 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3019 for as_dir in $as_dummy
3022 test -z "$as_dir" && as_dir=.
3023 for ac_exec_ext in '' $ac_executable_extensions; do
3024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3025 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3038 if test -n "$SED"; then
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3040 $as_echo "$SED" >&6; }
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3043 $as_echo "no" >&6; }
3047 if test -z "$SED" || test "$SED" = "not_found"; then
3048 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3053 if test -z "$GREP"; then
3054 # Extract the first word of "grep", so it can be a program name with args.
3055 set dummy grep; ac_word=$2
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057 $as_echo_n "checking for $ac_word... " >&6; }
3058 if test "${ac_cv_path_GREP+set}" = set; then :
3059 $as_echo_n "(cached) " >&6
3063 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3068 for as_dir in $as_dummy
3071 test -z "$as_dir" && as_dir=.
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3074 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3086 GREP=$ac_cv_path_GREP
3087 if test -n "$GREP"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3089 $as_echo "$GREP" >&6; }
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 $as_echo "no" >&6; }
3096 if test -z "$GREP" || test "$GREP" = "not_found"; then
3097 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3102 if test -z "$EGREP"; then
3103 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3105 $as_echo_n "checking for egrep... " >&6; }
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3108 $as_echo "$EGREP" >&6; }
3110 # Extract the first word of "egrep", so it can be a program name with args.
3111 set dummy egrep; ac_word=$2
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113 $as_echo_n "checking for $ac_word... " >&6; }
3114 if test "${ac_cv_path_EGREP+set}" = set; then :
3115 $as_echo_n "(cached) " >&6
3119 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3124 for as_dir in $as_dummy
3127 test -z "$as_dir" && as_dir=.
3128 for ac_exec_ext in '' $ac_executable_extensions; do
3129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3130 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3142 EGREP=$ac_cv_path_EGREP
3143 if test -n "$EGREP"; then
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3145 $as_echo "$EGREP" >&6; }
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148 $as_echo "no" >&6; }
3154 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3155 as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3159 if test -z "$AR"; then
3160 if test -n "$ac_tool_prefix"; then
3161 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3162 set dummy ${ac_tool_prefix}ar; ac_word=$2
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164 $as_echo_n "checking for $ac_word... " >&6; }
3165 if test "${ac_cv_path_AR+set}" = set; then :
3166 $as_echo_n "(cached) " >&6
3170 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3175 for as_dir in $as_dummy
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3181 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3193 if test -n "$AR"; then
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3195 $as_echo "$AR" >&6; }
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198 $as_echo "no" >&6; }
3203 if test -z "$ac_cv_path_AR"; then
3205 # Extract the first word of "ar", so it can be a program name with args.
3206 set dummy ar; ac_word=$2
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3208 $as_echo_n "checking for $ac_word... " >&6; }
3209 if test "${ac_cv_path_ac_pt_AR+set}" = set; then :
3210 $as_echo_n "(cached) " >&6
3214 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3219 for as_dir in $as_dummy
3222 test -z "$as_dir" && as_dir=.
3223 for ac_exec_ext in '' $ac_executable_extensions; do
3224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3225 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3236 ac_pt_AR=$ac_cv_path_ac_pt_AR
3237 if test -n "$ac_pt_AR"; then
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3239 $as_echo "$ac_pt_AR" >&6; }
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3245 if test "x$ac_pt_AR" = x; then
3248 case $cross_compiling:$ac_tool_warned in
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3252 ac_tool_warned=yes ;;
3260 if test -z "$AR" || test "$AR" = "not_found"; then
3261 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3268 if test -f ${srcdir}/include/curl/curlbuild.h; then
3269 rm -f ${srcdir}/include/curl/curlbuild.h
3272 VERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curlver.h`
3273 am__api_version="1.9"
3275 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3276 if test -f "$ac_dir/install-sh"; then
3278 ac_install_sh="$ac_aux_dir/install-sh -c"
3280 elif test -f "$ac_dir/install.sh"; then
3282 ac_install_sh="$ac_aux_dir/install.sh -c"
3284 elif test -f "$ac_dir/shtool"; then
3286 ac_install_sh="$ac_aux_dir/shtool install -c"
3290 if test -z "$ac_aux_dir"; then
3291 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3294 # These three variables are undocumented and unsupported,
3295 # and are intended to be withdrawn in a future Autoconf release.
3296 # They can cause serious problems if a builder's source tree is in a directory
3297 # whose full name contains unusual characters.
3298 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3299 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3300 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3303 # Find a good install program. We prefer a C program (faster),
3304 # so one script is as good as another. But avoid the broken or
3305 # incompatible versions:
3306 # SysV /etc/install, /usr/sbin/install
3307 # SunOS /usr/etc/install
3308 # IRIX /sbin/install
3310 # AmigaOS /C/install, which installs bootblocks on floppy discs
3311 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3312 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3313 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3314 # OS/2's system install, which has a completely different semantic
3315 # ./install, which can be erroneously created by make from ./install.sh.
3316 # Reject install programs that cannot install multiple files.
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3318 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3319 if test -z "$INSTALL"; then
3320 if test "${ac_cv_path_install+set}" = set; then :
3321 $as_echo_n "(cached) " >&6
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327 test -z "$as_dir" && as_dir=.
3328 # Account for people who put trailing slashes in PATH elements.
3329 case $as_dir/ in #((
3330 ./ | .// | /[cC]/* | \
3331 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3332 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3335 # OSF1 and SCO ODT 3.0 have their own names for install.
3336 # Don't use installbsd from OSF since it installs stuff as root
3338 for ac_prog in ginstall scoinst install; do
3339 for ac_exec_ext in '' $ac_executable_extensions; do
3340 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3341 if test $ac_prog = install &&
3342 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3343 # AIX install. It has an incompatible calling convention.
3345 elif test $ac_prog = install &&
3346 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3347 # program-specific install script used by HP pwplus--don't use.
3350 rm -rf conftest.one conftest.two conftest.dir
3351 echo one > conftest.one
3352 echo two > conftest.two
3354 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3355 test -s conftest.one && test -s conftest.two &&
3356 test -s conftest.dir/conftest.one &&
3357 test -s conftest.dir/conftest.two
3359 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3372 rm -rf conftest.one conftest.two conftest.dir
3375 if test "${ac_cv_path_install+set}" = set; then
3376 INSTALL=$ac_cv_path_install
3378 # As a last resort, use the slow shell script. Don't cache a
3379 # value for INSTALL within a source directory, because that will
3380 # break other packages using the cache if that directory is
3381 # removed, or if the value is a relative name.
3382 INSTALL=$ac_install_sh
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3386 $as_echo "$INSTALL" >&6; }
3388 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3389 # It thinks the first close brace ends the variable substitution.
3390 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3392 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3394 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3397 $as_echo_n "checking whether build environment is sane... " >&6; }
3400 echo timestamp > conftest.file
3401 # Do `set' in a subshell so we don't clobber the current shell's
3402 # arguments. Must try -L first in case configure is actually a
3403 # symlink; some systems play weird games with the mod time of symlinks
3404 # (eg FreeBSD returns the mod time of the symlink's containing
3407 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3408 if test "$*" = "X"; then
3410 set X `ls -t $srcdir/configure conftest.file`
3413 if test "$*" != "X $srcdir/configure conftest.file" \
3414 && test "$*" != "X conftest.file $srcdir/configure"; then
3416 # If neither matched, then we have a broken ls. This can happen
3417 # if, for instance, CONFIG_SHELL is bash and it inherits a
3418 # broken ls alias from the environment. This has actually
3419 # happened. Such a system could not be considered "sane".
3420 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3421 alias in your environment" "$LINENO" 5
3424 test "$2" = conftest.file
3430 as_fn_error $? "newly created file is older than distributed files!
3431 Check your system clock" "$LINENO" 5
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3434 $as_echo "yes" >&6; }
3435 test "$program_prefix" != NONE &&
3436 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3437 # Use a double $ so make ignores it.
3438 test "$program_suffix" != NONE &&
3439 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3440 # Double any \ or $.
3441 # By default was `s,x,x', remove it if useless.
3442 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3443 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3445 # expand $ac_aux_dir to an absolute path
3446 am_aux_dir=`cd $ac_aux_dir && pwd`
3448 test x"${MISSING+set}" = xset || MISSING="\${SHELL} \"$am_aux_dir/missing\""
3449 # Use eval to expand $SHELL
3450 if eval "$MISSING --run true"; then
3451 am_missing_run="$MISSING --run "
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3455 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3458 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3459 # We used to keeping the `.' as first argument, in order to
3460 # allow $(mkdir_p) to be used without argument. As in
3461 # $(mkdir_p) $(somedir)
3462 # where $(somedir) is conditionally defined. However this is wrong
3464 # 1. if the package is installed by a user who cannot write `.'
3465 # make install will fail,
3466 # 2. the above comment should most certainly read
3467 # $(mkdir_p) $(DESTDIR)$(somedir)
3468 # so it does not work when $(somedir) is undefined and
3469 # $(DESTDIR) is not.
3470 # To support the latter case, we have to write
3471 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3472 # so the `.' trick is pointless.
3473 mkdir_p='mkdir -p --'
3475 # On NextStep and OpenStep, the `mkdir' command does not
3476 # recognize any option. It will interpret all options as
3477 # directories to create, and then abort because `.' already
3479 for d in ./-p ./--version;
3481 test -d $d && rmdir $d
3483 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3484 if test -f "$ac_aux_dir/mkinstalldirs"; then
3485 mkdir_p='$(mkinstalldirs)'
3487 mkdir_p='$(install_sh) -d'
3491 for ac_prog in gawk mawk nawk awk
3493 # Extract the first word of "$ac_prog", so it can be a program name with args.
3494 set dummy $ac_prog; ac_word=$2
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3496 $as_echo_n "checking for $ac_word... " >&6; }
3497 if test "${ac_cv_prog_AWK+set}" = set; then :
3498 $as_echo_n "(cached) " >&6
3500 if test -n "$AWK"; then
3501 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 test -z "$as_dir" && as_dir=.
3508 for ac_exec_ext in '' $ac_executable_extensions; do
3509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3510 ac_cv_prog_AWK="$ac_prog"
3511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3521 if test -n "$AWK"; then
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3523 $as_echo "$AWK" >&6; }
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 $as_echo "no" >&6; }
3530 test -n "$AWK" && break
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3534 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3536 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3537 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3538 $as_echo_n "(cached) " >&6
3540 cat >conftest.make <<\_ACEOF
3543 @echo '@@@%%%=$(MAKE)=@@@%%%'
3545 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3546 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3548 eval ac_cv_prog_make_${ac_make}_set=yes;;
3550 eval ac_cv_prog_make_${ac_make}_set=no;;
3554 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3556 $as_echo "yes" >&6; }
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3560 $as_echo "no" >&6; }
3561 SET_MAKE="MAKE=${MAKE-make}"
3564 rm -rf .tst 2>/dev/null
3565 mkdir .tst 2>/dev/null
3566 if test -d .tst; then
3571 rmdir .tst 2>/dev/null
3573 # test to see if srcdir already configured
3574 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3575 test -f $srcdir/config.status; then
3576 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3579 # test whether we have cygpath
3580 if test -z "$CYGPATH_W"; then
3581 if (cygpath --version) >/dev/null 2>/dev/null; then
3582 CYGPATH_W='cygpath -w'
3589 # Define the identity of the package.
3594 cat >>confdefs.h <<_ACEOF
3595 #define PACKAGE "$PACKAGE"
3599 cat >>confdefs.h <<_ACEOF
3600 #define VERSION "$VERSION"
3603 # Some tools Automake needs.
3605 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3608 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3611 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3614 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3617 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3619 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3621 # Installed binaries are usually stripped using `strip' when the user
3622 # run `make install-strip'. However `strip' might not be the right
3623 # tool to use in cross-compilation environments, therefore Automake
3624 # will honor the `STRIP' environment variable to overrule this program.
3625 if test "$cross_compiling" != no; then
3626 if test -n "$ac_tool_prefix"; then
3627 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3628 set dummy ${ac_tool_prefix}strip; ac_word=$2
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630 $as_echo_n "checking for $ac_word... " >&6; }
3631 if test "${ac_cv_prog_STRIP+set}" = set; then :
3632 $as_echo_n "(cached) " >&6
3634 if test -n "$STRIP"; then
3635 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641 test -z "$as_dir" && as_dir=.
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3644 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3654 STRIP=$ac_cv_prog_STRIP
3655 if test -n "$STRIP"; then
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3657 $as_echo "$STRIP" >&6; }
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660 $as_echo "no" >&6; }
3665 if test -z "$ac_cv_prog_STRIP"; then
3667 # Extract the first word of "strip", so it can be a program name with args.
3668 set dummy strip; ac_word=$2
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3670 $as_echo_n "checking for $ac_word... " >&6; }
3671 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3672 $as_echo_n "(cached) " >&6
3674 if test -n "$ac_ct_STRIP"; then
3675 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 test -z "$as_dir" && as_dir=.
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3684 ac_cv_prog_ac_ct_STRIP="strip"
3685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3694 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3695 if test -n "$ac_ct_STRIP"; then
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3697 $as_echo "$ac_ct_STRIP" >&6; }
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700 $as_echo "no" >&6; }
3703 if test "x$ac_ct_STRIP" = x; then
3706 case $cross_compiling:$ac_tool_warned in
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3710 ac_tool_warned=yes ;;
3715 STRIP="$ac_cv_prog_STRIP"
3719 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3721 # We need awk for the "check" target. The system "awk" is bad on
3723 # Always define AMTAR for backward compatibility.
3725 AMTAR=${AMTAR-"${am_missing_run}tar"}
3727 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
3734 $as_echo_n "checking curl version... " >&6; }
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION" >&5
3736 $as_echo "$VERSION" >&6; }
3738 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\(.*\)/\1/p' ${srcdir}/include/curl/curlver.h`
3741 PKGADD_PKG="HAXXcurl"
3742 PKGADD_NAME="cURL - a client that groks URLs"
3743 PKGADD_VENDOR="curl.haxx.se"
3748 curl_ssl_msg="no (--with-{ssl,gnutls,nss,polarssl} )"
3749 curl_ssh_msg="no (--with-libssh2)"
3750 curl_zlib_msg="no (--with-zlib)"
3751 curl_krb4_msg="no (--with-krb4*)"
3752 curl_gss_msg="no (--with-gssapi)"
3753 curl_spnego_msg="no (--with-spnego)"
3754 curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
3755 curl_ipv6_msg="no (--enable-ipv6)"
3756 curl_idn_msg="no (--with-libidn)"
3757 curl_manual_msg="no (--enable-manual)"
3758 curl_verbose_msg="enabled (--disable-verbose)"
3759 curl_sspi_msg="no (--enable-sspi)"
3760 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
3761 curl_ldaps_msg="no (--enable-ldaps)"
3762 curl_rtsp_msg="no (--enable-rtsp)"
3763 curl_rtmp_msg="no (--with-librtmp)"
3768 # Make sure we can run config.sub.
3769 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3770 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3773 $as_echo_n "checking build system type... " >&6; }
3774 if test "${ac_cv_build+set}" = set; then :
3775 $as_echo_n "(cached) " >&6
3777 ac_build_alias=$build_alias
3778 test "x$ac_build_alias" = x &&
3779 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3780 test "x$ac_build_alias" = x &&
3781 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3782 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3783 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3787 $as_echo "$ac_cv_build" >&6; }
3788 case $ac_cv_build in
3790 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3793 ac_save_IFS=$IFS; IFS='-'
3799 # Remember, the first character of IFS is used to create $*,
3800 # except with old shells:
3803 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3807 $as_echo_n "checking host system type... " >&6; }
3808 if test "${ac_cv_host+set}" = set; then :
3809 $as_echo_n "(cached) " >&6
3811 if test "x$host_alias" = x; then
3812 ac_cv_host=$ac_cv_build
3814 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3815 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3820 $as_echo "$ac_cv_host" >&6; }
3823 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3826 ac_save_IFS=$IFS; IFS='-'
3832 # Remember, the first character of IFS is used to create $*,
3833 # except with old shells:
3836 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3840 cat >>confdefs.h <<_ACEOF
3841 #define OS "${host}"
3845 DEPDIR="${am__leading_dot}deps"
3847 ac_config_commands="$ac_config_commands depfiles"
3850 am_make=${MAKE-make}
3851 cat > confinc << 'END'
3856 # If we don't find an include directive, just comment out the code.
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3858 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3862 # First try GNU make style include.
3863 echo "include confinc" > confmf
3864 # We grep out `Entering directory' and `Leaving directory'
3865 # messages which can occur if `w' ends up in MAKEFLAGS.
3866 # In particular we don't look at `^make:' because GNU make might
3867 # be invoked under some other name (usually "gmake"), in which
3868 # case it prints its new name instead of `make'.
3869 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3874 # Now try BSD make style include.
3875 if test "$am__include" = "#"; then
3876 echo '.include "confinc"' > confmf
3877 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3878 am__include=.include
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3886 $as_echo "$_am_result" >&6; }
3887 rm -f confinc confmf
3889 # Check whether --enable-dependency-tracking was given.
3890 if test "${enable_dependency_tracking+set}" = set; then :
3891 enableval=$enable_dependency_tracking;
3894 if test "x$enable_dependency_tracking" != xno; then
3895 am_depcomp="$ac_aux_dir/depcomp"
3900 if test "x$enable_dependency_tracking" != xno; then
3911 ac_save_CFLAGS="$CFLAGS"
3912 ac_save_CPPFLAGS="$CPPFLAGS"
3914 ac_cpp='$CPP $CPPFLAGS'
3915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3918 if test -n "$ac_tool_prefix"; then
3919 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3920 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3922 $as_echo_n "checking for $ac_word... " >&6; }
3923 if test "${ac_cv_prog_CC+set}" = set; then :
3924 $as_echo_n "(cached) " >&6
3926 if test -n "$CC"; then
3927 ac_cv_prog_CC="$CC" # Let the user override the test.
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3936 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3947 if test -n "$CC"; then
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3949 $as_echo "$CC" >&6; }
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3952 $as_echo "no" >&6; }
3957 if test -z "$ac_cv_prog_CC"; then
3959 # Extract the first word of "gcc", so it can be a program name with args.
3960 set dummy gcc; ac_word=$2
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3962 $as_echo_n "checking for $ac_word... " >&6; }
3963 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3964 $as_echo_n "(cached) " >&6
3966 if test -n "$ac_ct_CC"; then
3967 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 test -z "$as_dir" && as_dir=.
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3976 ac_cv_prog_ac_ct_CC="gcc"
3977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3986 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3987 if test -n "$ac_ct_CC"; then
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3989 $as_echo "$ac_ct_CC" >&6; }
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3992 $as_echo "no" >&6; }
3995 if test "x$ac_ct_CC" = x; then
3998 case $cross_compiling:$ac_tool_warned in
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4002 ac_tool_warned=yes ;;
4010 if test -z "$CC"; then
4011 if test -n "$ac_tool_prefix"; then
4012 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4013 set dummy ${ac_tool_prefix}cc; ac_word=$2
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4015 $as_echo_n "checking for $ac_word... " >&6; }
4016 if test "${ac_cv_prog_CC+set}" = set; then :
4017 $as_echo_n "(cached) " >&6
4019 if test -n "$CC"; then
4020 ac_cv_prog_CC="$CC" # Let the user override the test.
4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 test -z "$as_dir" && as_dir=.
4027 for ac_exec_ext in '' $ac_executable_extensions; do
4028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4029 ac_cv_prog_CC="${ac_tool_prefix}cc"
4030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4040 if test -n "$CC"; then
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4042 $as_echo "$CC" >&6; }
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4045 $as_echo "no" >&6; }
4051 if test -z "$CC"; then
4052 # Extract the first word of "cc", so it can be a program name with args.
4053 set dummy cc; ac_word=$2
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4055 $as_echo_n "checking for $ac_word... " >&6; }
4056 if test "${ac_cv_prog_CC+set}" = set; then :
4057 $as_echo_n "(cached) " >&6
4059 if test -n "$CC"; then
4060 ac_cv_prog_CC="$CC" # Let the user override the test.
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067 test -z "$as_dir" && as_dir=.
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4070 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4071 ac_prog_rejected=yes
4075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4082 if test $ac_prog_rejected = yes; then
4083 # We found a bogon in the path, so make sure we never use it.
4084 set dummy $ac_cv_prog_CC
4086 if test $# != 0; then
4087 # We chose a different compiler from the bogus one.
4088 # However, it has the same basename, so the bogon will be chosen
4089 # first if we set CC to just the basename; use the full file name.
4091 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4097 if test -n "$CC"; then
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4099 $as_echo "$CC" >&6; }
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102 $as_echo "no" >&6; }
4107 if test -z "$CC"; then
4108 if test -n "$ac_tool_prefix"; then
4109 for ac_prog in cl.exe
4111 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4112 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4114 $as_echo_n "checking for $ac_word... " >&6; }
4115 if test "${ac_cv_prog_CC+set}" = set; then :
4116 $as_echo_n "(cached) " >&6
4118 if test -n "$CC"; then
4119 ac_cv_prog_CC="$CC" # Let the user override the test.
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 test -z "$as_dir" && as_dir=.
4126 for ac_exec_ext in '' $ac_executable_extensions; do
4127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4128 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4139 if test -n "$CC"; then
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4141 $as_echo "$CC" >&6; }
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4144 $as_echo "no" >&6; }
4148 test -n "$CC" && break
4151 if test -z "$CC"; then
4153 for ac_prog in cl.exe
4155 # Extract the first word of "$ac_prog", so it can be a program name with args.
4156 set dummy $ac_prog; ac_word=$2
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4158 $as_echo_n "checking for $ac_word... " >&6; }
4159 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4160 $as_echo_n "(cached) " >&6
4162 if test -n "$ac_ct_CC"; then
4163 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 test -z "$as_dir" && as_dir=.
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4172 ac_cv_prog_ac_ct_CC="$ac_prog"
4173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4182 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4183 if test -n "$ac_ct_CC"; then
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4185 $as_echo "$ac_ct_CC" >&6; }
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4188 $as_echo "no" >&6; }
4192 test -n "$ac_ct_CC" && break
4195 if test "x$ac_ct_CC" = x; then
4198 case $cross_compiling:$ac_tool_warned in
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4202 ac_tool_warned=yes ;;
4211 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4213 as_fn_error $? "no acceptable C compiler found in \$PATH
4214 See \`config.log' for more details" "$LINENO" 5 ; }
4216 # Provide some information about the compiler.
4217 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4220 for ac_option in --version -v -V -qversion; do
4221 { { ac_try="$ac_compiler $ac_option >&5"
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4227 $as_echo "$ac_try_echo"; } >&5
4228 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4230 if test -s conftest.err; then
4232 ... rest of stderr output deleted ...
4233 10q' conftest.err >conftest.er1
4234 cat conftest.er1 >&5
4236 rm -f conftest.er1 conftest.err
4237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4238 test $ac_status = 0; }
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4251 ac_clean_files_save=$ac_clean_files
4252 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4253 # Try to create an executable without -o first, disregard a.out.
4254 # It will help us diagnose broken compilers, and finding out an intuition
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4257 $as_echo_n "checking whether the C compiler works... " >&6; }
4258 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4260 # The possible output files:
4261 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4264 for ac_file in $ac_files
4267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4268 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4273 if { { ac_try="$ac_link_default"
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4279 $as_echo "$ac_try_echo"; } >&5
4280 (eval "$ac_link_default") 2>&5
4282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4283 test $ac_status = 0; }; then :
4284 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4285 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4286 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4287 # so that the user can short-circuit this test for compilers unknown to
4289 for ac_file in $ac_files ''
4291 test -f "$ac_file" || continue
4293 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4296 # We found the default executable, but exeext='' is most
4300 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4302 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4304 # We set ac_cv_exeext here because the later test for it is not
4305 # safe: cross compilers may not add the suffix if given an `-o'
4306 # argument, so we may need to know it at that point already.
4307 # Even if this section looks crufty: it has the advantage of
4314 test "$ac_cv_exeext" = no && ac_cv_exeext=
4319 if test -z "$ac_file"; then :
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321 $as_echo "no" >&6; }
4322 $as_echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
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 77 "C compiler cannot create executables
4328 See \`config.log' for more details" "$LINENO" 5 ; }
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4331 $as_echo "yes" >&6; }
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4334 $as_echo_n "checking for C compiler default output file name... " >&6; }
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4336 $as_echo "$ac_file" >&6; }
4337 ac_exeext=$ac_cv_exeext
4339 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4340 ac_clean_files=$ac_clean_files_save
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4342 $as_echo_n "checking for suffix of executables... " >&6; }
4343 if { { ac_try="$ac_link"
4345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346 *) ac_try_echo=$ac_try;;
4348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4349 $as_echo "$ac_try_echo"; } >&5
4350 (eval "$ac_link") 2>&5
4352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4353 test $ac_status = 0; }; then :
4354 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4355 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4356 # work properly (i.e., refer to `conftest.exe'), while it won't with
4358 for ac_file in conftest.exe conftest conftest.*; do
4359 test -f "$ac_file" || continue
4361 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4362 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4368 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4370 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4371 See \`config.log' for more details" "$LINENO" 5 ; }
4373 rm -f conftest conftest$ac_cv_exeext
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4375 $as_echo "$ac_cv_exeext" >&6; }
4377 rm -f conftest.$ac_ext
4378 EXEEXT=$ac_cv_exeext
4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h. */
4385 FILE *f = fopen ("conftest.out", "w");
4386 return ferror (f) || fclose (f) != 0;
4392 ac_clean_files="$ac_clean_files conftest.out"
4393 # Check that the compiler produces executables we can run. If not, either
4394 # the compiler is broken, or we cross compile.
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4396 $as_echo_n "checking whether we are cross compiling... " >&6; }
4397 if test "$cross_compiling" != yes; then
4398 { { ac_try="$ac_link"
4400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401 *) ac_try_echo=$ac_try;;
4403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4404 $as_echo "$ac_try_echo"; } >&5
4405 (eval "$ac_link") 2>&5
4407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4408 test $ac_status = 0; }
4409 if { ac_try='./conftest$ac_cv_exeext'
4410 { { case "(($ac_try" in
4411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4412 *) ac_try_echo=$ac_try;;
4414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4415 $as_echo "$ac_try_echo"; } >&5
4416 (eval "$ac_try") 2>&5
4418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4419 test $ac_status = 0; }; }; then
4422 if test "$cross_compiling" = maybe; then
4425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4427 as_fn_error $? "cannot run C compiled programs.
4428 If you meant to cross compile, use \`--host'.
4429 See \`config.log' for more details" "$LINENO" 5 ; }
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4434 $as_echo "$cross_compiling" >&6; }
4436 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4437 ac_clean_files=$ac_clean_files_save
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4439 $as_echo_n "checking for suffix of object files... " >&6; }
4440 if test "${ac_cv_objext+set}" = set; then :
4441 $as_echo_n "(cached) " >&6
4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h. */
4453 rm -f conftest.o conftest.obj
4454 if { { ac_try="$ac_compile"
4456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4457 *) ac_try_echo=$ac_try;;
4459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4460 $as_echo "$ac_try_echo"; } >&5
4461 (eval "$ac_compile") 2>&5
4463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4464 test $ac_status = 0; }; then :
4465 for ac_file in conftest.o conftest.obj conftest.*; do
4466 test -f "$ac_file" || continue;
4468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4469 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4474 $as_echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4479 as_fn_error $? "cannot compute suffix of object files: cannot compile
4480 See \`config.log' for more details" "$LINENO" 5 ; }
4482 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4485 $as_echo "$ac_cv_objext" >&6; }
4486 OBJEXT=$ac_cv_objext
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4489 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4490 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4491 $as_echo_n "(cached) " >&6
4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h. */
4506 if ac_fn_c_try_compile "$LINENO"; then :
4511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4516 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4517 if test $ac_compiler_gnu = yes; then
4522 ac_test_CFLAGS=${CFLAGS+set}
4523 ac_save_CFLAGS=$CFLAGS
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4525 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4526 if test "${ac_cv_prog_cc_g+set}" = set; then :
4527 $as_echo_n "(cached) " >&6
4529 ac_save_c_werror_flag=$ac_c_werror_flag
4530 ac_c_werror_flag=yes
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4543 if ac_fn_c_try_compile "$LINENO"; then :
4547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548 /* end confdefs.h. */
4557 if ac_fn_c_try_compile "$LINENO"; then :
4560 ac_c_werror_flag=$ac_save_c_werror_flag
4562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563 /* end confdefs.h. */
4572 if ac_fn_c_try_compile "$LINENO"; then :
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4580 ac_c_werror_flag=$ac_save_c_werror_flag
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4583 $as_echo "$ac_cv_prog_cc_g" >&6; }
4584 if test "$ac_test_CFLAGS" = set; then
4585 CFLAGS=$ac_save_CFLAGS
4586 elif test $ac_cv_prog_cc_g = yes; then
4587 if test "$GCC" = yes; then
4593 if test "$GCC" = yes; then
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4600 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4601 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4602 $as_echo_n "(cached) " >&6
4604 ac_cv_prog_cc_c89=no
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h. */
4610 #include <sys/types.h>
4611 #include <sys/stat.h>
4612 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4613 struct buf { int x; };
4614 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4615 static char *e (p, i)
4621 static char *f (char * (*g) (char **, int), char **p, ...)
4626 s = g (p, va_arg (v,int));
4631 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4632 function prototypes and stuff, but not '\xHH' hex character constants.
4633 These don't provoke an error unfortunately, instead are silently treated
4634 as 'x'. The following induces an error, until -std is added to get
4635 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4636 array size at least. It's necessary to write '\x00'==0 to get something
4637 that's true only with -std. */
4638 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4640 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4641 inside strings and character constants. */
4643 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4645 int test (int i, double x);
4646 struct s1 {int (*f) (int a);};
4647 struct s2 {int (*f) (double a);};
4648 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4653 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4658 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4659 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4661 CC="$ac_save_CC $ac_arg"
4662 if ac_fn_c_try_compile "$LINENO"; then :
4663 ac_cv_prog_cc_c89=$ac_arg
4665 rm -f core conftest.err conftest.$ac_objext
4666 test "x$ac_cv_prog_cc_c89" != "xno" && break
4668 rm -f conftest.$ac_ext
4673 case "x$ac_cv_prog_cc_c89" in
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4676 $as_echo "none needed" >&6; } ;;
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4679 $as_echo "unsupported" >&6; } ;;
4681 CC="$CC $ac_cv_prog_cc_c89"
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4683 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4685 if test "x$ac_cv_prog_cc_c89" != xno; then :
4690 ac_cpp='$CPP $CPPFLAGS'
4691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4695 depcc="$CC" am_compiler_list=
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4698 $as_echo_n "checking dependency style of $depcc... " >&6; }
4699 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4700 $as_echo_n "(cached) " >&6
4702 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4703 # We make a subdir and do the tests there. Otherwise we can end up
4704 # making bogus files that we don't know about and never remove. For
4705 # instance it was reported that on HP-UX the gcc test will end up
4706 # making a dummy file named `D' -- because `-MD' means `put the output
4709 # Copy depcomp to subdir because otherwise we won't find it if we're
4710 # using a relative directory.
4711 cp "$am_depcomp" conftest.dir
4713 # We will build objects and dependencies in a subdirectory because
4714 # it helps to detect inapplicable dependency modes. For instance
4715 # both Tru64's cc and ICC support -MD to output dependencies as a
4716 # side effect of compilation, but ICC will put the dependencies in
4717 # the current directory while Tru64 will put them in the object
4721 am_cv_CC_dependencies_compiler_type=none
4722 if test "$am_compiler_list" = ""; then
4723 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4725 for depmode in $am_compiler_list; do
4726 # Setup a source with many dependencies, because some compilers
4727 # like to wrap large dependency lists on column 80 (with \), and
4728 # we should not choose a depcomp mode which is confused by this.
4730 # We need to recreate these files for each test, as the compiler may
4731 # overwrite some of them when testing with obscure command lines.
4732 # This happens at least with the AIX C compiler.
4734 for i in 1 2 3 4 5 6; do
4735 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4736 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4737 # Solaris 8's {/usr,}/bin/sh.
4738 touch sub/conftst$i.h
4740 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4744 # after this tag, mechanisms are not by side-effect, so they'll
4745 # only be used when explicitly requested
4746 if test "x$enable_dependency_tracking" = xyes; then
4754 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4755 # mode. It turns out that the SunPro C++ compiler does not properly
4756 # handle `-M -o', and we need to detect this.
4757 if depmode=$depmode \
4758 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4759 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4760 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4761 >/dev/null 2>conftest.err &&
4762 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4763 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4764 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4765 # icc doesn't choke on unknown options, it will just issue warnings
4766 # or remarks (even with -Werror). So we grep stderr for any message
4767 # that says an option was ignored or not supported.
4768 # When given -MP, icc 7.0 and 7.1 complain thusly:
4769 # icc: Command line warning: ignoring option '-M'; no argument required
4770 # The diagnosis changed in icc 8.0:
4771 # icc: Command line remark: option '-MP' not supported
4772 if (grep 'ignoring option' conftest.err ||
4773 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4774 am_cv_CC_dependencies_compiler_type=$depmode
4783 am_cv_CC_dependencies_compiler_type=none
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4788 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4789 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4794 test "x$enable_dependency_tracking" != xno \
4795 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4797 am__fastdepCC_FALSE='#'
4799 am__fastdepCC_TRUE='#'
4800 am__fastdepCC_FALSE=
4804 CFLAGS="$ac_save_CFLAGS"
4805 CPPFLAGS="$ac_save_CPPFLAGS"
4810 curl_includes_inttypes="\
4811 /* includes start */
4812 #ifdef HAVE_SYS_TYPES_H
4813 # include <sys/types.h>
4815 #ifdef HAVE_STDINT_H
4816 # include <stdint.h>
4818 #ifdef HAVE_INTTYPES_H
4819 # include <inttypes.h>
4824 ac_cv_header_stdint_h="no"
4827 for ac_header in sys/types.h stdint.h inttypes.h
4829 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4830 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_inttypes
4832 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4833 cat >>confdefs.h <<_ACEOF
4834 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4843 ac_cpp='$CPP $CPPFLAGS'
4844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4848 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4849 # On Suns, sometimes $CPP names a directory.
4850 if test -n "$CPP" && test -d "$CPP"; then
4853 if test -z "$CPP"; then
4854 if test "${ac_cv_prog_CPP+set}" = set; then :
4855 $as_echo_n "(cached) " >&6
4857 # Double quotes because CPP needs to be expanded
4858 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4861 for ac_c_preproc_warn_flag in '' yes
4863 # Use a header file that comes with gcc, so configuring glibc
4864 # with a fresh cross-compiler works.
4865 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4866 # <limits.h> exists even on freestanding compilers.
4867 # On the NeXT, cc -E runs the code through the compiler's parser,
4868 # not just through cpp. "Syntax error" is here to catch this case.
4869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4870 /* end confdefs.h. */
4872 # include <limits.h>
4874 # include <assert.h>
4878 if ac_fn_c_try_cpp "$LINENO"; then :
4881 # Broken: fails on valid input.
4884 rm -f conftest.err conftest.i conftest.$ac_ext
4886 # OK, works on sane cases. Now check whether nonexistent headers
4887 # can be detected and how.
4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4890 #include <ac_nonexistent.h>
4892 if ac_fn_c_try_cpp "$LINENO"; then :
4893 # Broken: success on invalid input.
4896 # Passes both tests.
4900 rm -f conftest.err conftest.i conftest.$ac_ext
4903 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4904 rm -f conftest.i conftest.err conftest.$ac_ext
4905 if $ac_preproc_ok; then :
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4918 $as_echo "$CPP" >&6; }
4920 for ac_c_preproc_warn_flag in '' yes
4922 # Use a header file that comes with gcc, so configuring glibc
4923 # with a fresh cross-compiler works.
4924 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4925 # <limits.h> exists even on freestanding compilers.
4926 # On the NeXT, cc -E runs the code through the compiler's parser,
4927 # not just through cpp. "Syntax error" is here to catch this case.
4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h. */
4931 # include <limits.h>
4933 # include <assert.h>
4937 if ac_fn_c_try_cpp "$LINENO"; then :
4940 # Broken: fails on valid input.
4943 rm -f conftest.err conftest.i conftest.$ac_ext
4945 # OK, works on sane cases. Now check whether nonexistent headers
4946 # can be detected and how.
4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948 /* end confdefs.h. */
4949 #include <ac_nonexistent.h>
4951 if ac_fn_c_try_cpp "$LINENO"; then :
4952 # Broken: success on invalid input.
4955 # Passes both tests.
4959 rm -f conftest.err conftest.i conftest.$ac_ext
4962 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4963 rm -f conftest.i conftest.err conftest.$ac_ext
4964 if $ac_preproc_ok; then :
4967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4969 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4970 See \`config.log' for more details" "$LINENO" 5 ; }
4974 ac_cpp='$CPP $CPPFLAGS'
4975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4981 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4982 if test "${ac_cv_path_GREP+set}" = set; then :
4983 $as_echo_n "(cached) " >&6
4985 if test -z "$GREP"; then
4986 ac_path_GREP_found=false
4987 # Loop through the user's path and test for each of PROGNAME-LIST
4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4992 test -z "$as_dir" && as_dir=.
4993 for ac_prog in grep ggrep; do
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4996 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4997 # Check for GNU ac_path_GREP and select it if it is found.
4998 # Check for GNU $ac_path_GREP
4999 case `"$ac_path_GREP" --version 2>&1` in
5001 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5004 $as_echo_n 0123456789 >"conftest.in"
5007 cat "conftest.in" "conftest.in" >"conftest.tmp"
5008 mv "conftest.tmp" "conftest.in"
5009 cp "conftest.in" "conftest.nl"
5010 $as_echo 'GREP' >> "conftest.nl"
5011 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5012 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5013 as_fn_arith $ac_count + 1 && ac_count=$as_val
5014 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5015 # Best one so far, save it but keep looking for a better one
5016 ac_cv_path_GREP="$ac_path_GREP"
5017 ac_path_GREP_max=$ac_count
5019 # 10*(2^10) chars as input seems more than enough
5020 test $ac_count -gt 10 && break
5022 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5025 $ac_path_GREP_found && break 3
5030 if test -z "$ac_cv_path_GREP"; then
5031 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5034 ac_cv_path_GREP=$GREP
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5039 $as_echo "$ac_cv_path_GREP" >&6; }
5040 GREP="$ac_cv_path_GREP"
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5044 $as_echo_n "checking for egrep... " >&6; }
5045 if test "${ac_cv_path_EGREP+set}" = set; then :
5046 $as_echo_n "(cached) " >&6
5048 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5049 then ac_cv_path_EGREP="$GREP -E"
5051 if test -z "$EGREP"; then
5052 ac_path_EGREP_found=false
5053 # Loop through the user's path and test for each of PROGNAME-LIST
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5058 test -z "$as_dir" && as_dir=.
5059 for ac_prog in egrep; do
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5062 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5063 # Check for GNU ac_path_EGREP and select it if it is found.
5064 # Check for GNU $ac_path_EGREP
5065 case `"$ac_path_EGREP" --version 2>&1` in
5067 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5070 $as_echo_n 0123456789 >"conftest.in"
5073 cat "conftest.in" "conftest.in" >"conftest.tmp"
5074 mv "conftest.tmp" "conftest.in"
5075 cp "conftest.in" "conftest.nl"
5076 $as_echo 'EGREP' >> "conftest.nl"
5077 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5078 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5079 as_fn_arith $ac_count + 1 && ac_count=$as_val
5080 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5081 # Best one so far, save it but keep looking for a better one
5082 ac_cv_path_EGREP="$ac_path_EGREP"
5083 ac_path_EGREP_max=$ac_count
5085 # 10*(2^10) chars as input seems more than enough
5086 test $ac_count -gt 10 && break
5088 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5091 $ac_path_EGREP_found && break 3
5096 if test -z "$ac_cv_path_EGREP"; then
5097 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5100 ac_cv_path_EGREP=$EGREP
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5106 $as_echo "$ac_cv_path_EGREP" >&6; }
5107 EGREP="$ac_cv_path_EGREP"
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5111 $as_echo_n "checking for ANSI C header files... " >&6; }
5112 if test "${ac_cv_header_stdc+set}" = set; then :
5113 $as_echo_n "(cached) " >&6
5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116 /* end confdefs.h. */
5129 if ac_fn_c_try_compile "$LINENO"; then :
5130 ac_cv_header_stdc=yes
5132 ac_cv_header_stdc=no
5134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5136 if test $ac_cv_header_stdc = yes; then
5137 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h. */
5143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5144 $EGREP "memchr" >/dev/null 2>&1; then :
5147 ac_cv_header_stdc=no
5153 if test $ac_cv_header_stdc = yes; then
5154 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5161 $EGREP "free" >/dev/null 2>&1; then :
5164 ac_cv_header_stdc=no
5170 if test $ac_cv_header_stdc = yes; then
5171 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5172 if test "$cross_compiling" = yes; then :
5175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5176 /* end confdefs.h. */
5179 #if ((' ' & 0x0FF) == 0x020)
5180 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5181 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5183 # define ISLOWER(c) \
5184 (('a' <= (c) && (c) <= 'i') \
5185 || ('j' <= (c) && (c) <= 'r') \
5186 || ('s' <= (c) && (c) <= 'z'))
5187 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5190 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5195 for (i = 0; i < 256; i++)
5196 if (XOR (islower (i), ISLOWER (i))
5197 || toupper (i) != TOUPPER (i))
5202 if ac_fn_c_try_run "$LINENO"; then :
5205 ac_cv_header_stdc=no
5207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5208 conftest.$ac_objext conftest.beam conftest.$ac_ext
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5214 $as_echo "$ac_cv_header_stdc" >&6; }
5215 if test $ac_cv_header_stdc = yes; then
5217 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5221 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5222 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5223 inttypes.h stdint.h unistd.h
5225 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5226 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5228 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5229 cat >>confdefs.h <<_ACEOF
5230 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5241 if test -z "$SED"; then
5242 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
5245 # The cast to long int works around a bug in the HP C Compiler
5246 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5247 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5248 # This bug is HP SR number 8606223364.
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5250 $as_echo_n "checking size of long... " >&6; }
5251 if test "${ac_cv_sizeof_long+set}" = set; then :
5252 $as_echo_n "(cached) " >&6
5254 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5257 if test "$ac_cv_type_long" = yes; then
5258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5260 as_fn_error 77 "cannot compute sizeof (long)
5261 See \`config.log' for more details" "$LINENO" 5 ; }
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5269 $as_echo "$ac_cv_sizeof_long" >&6; }
5273 cat >>confdefs.h <<_ACEOF
5274 #define SIZEOF_LONG $ac_cv_sizeof_long
5278 # The cast to long int works around a bug in the HP C Compiler
5279 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5280 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5281 # This bug is HP SR number 8606223364.
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
5283 $as_echo_n "checking size of void*... " >&6; }
5284 if test "${ac_cv_sizeof_voidp+set}" = set; then :
5285 $as_echo_n "(cached) " >&6
5287 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
5290 if test "$ac_cv_type_voidp" = yes; then
5291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5293 as_fn_error 77 "cannot compute sizeof (void*)
5294 See \`config.log' for more details" "$LINENO" 5 ; }
5296 ac_cv_sizeof_voidp=0
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
5302 $as_echo "$ac_cv_sizeof_voidp" >&6; }
5306 cat >>confdefs.h <<_ACEOF
5307 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
5312 if test -z "$ac_cv_sizeof_long" ||
5313 test "$ac_cv_sizeof_long" -eq "0"; then
5314 as_fn_error $? "cannot find out size of long." "$LINENO" 5
5316 if test -z "$ac_cv_sizeof_voidp" ||
5317 test "$ac_cv_sizeof_voidp" -eq "0"; then
5318 as_fn_error $? "cannot find out size of void*." "$LINENO" 5
5325 if test "$ac_cv_sizeof_long" -eq "8" &&
5326 test "$ac_cv_sizeof_voidp" -ge "8"; then
5328 elif test "$ac_cv_sizeof_long" -eq "4" &&
5329 test "$ac_cv_sizeof_voidp" -ge "4"; then
5331 elif test "$ac_cv_sizeof_long" -eq "2" &&
5332 test "$ac_cv_sizeof_voidp" -ge "2"; then
5337 curl_typeof_curl_off_t="unknown"
5338 curl_sizeof_curl_off_t="unknown"
5339 curl_format_curl_off_t="unknown"
5340 curl_format_curl_off_tu="unknown"
5342 if test "$curl_typeof_curl_off_t" = "unknown"; then
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit curl_off_t data type" >&5
5344 $as_echo_n "checking for 64-bit curl_off_t data type... " >&6; }
5353 if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t8"; then
5357 case `$as_echo "$t8" | $as_tr_sh` in
5359 tmp_includes="$curl_includes_inttypes"
5360 tmp_source="char f[] = PRId64;"
5364 tmp_includes="$curl_includes_inttypes"
5365 tmp_source="char f[] = PRId32;"
5369 tmp_includes="$curl_includes_inttypes"
5370 tmp_source="char f[] = PRId16;"
5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h. */
5379 typedef $t8 curl_off_t;
5380 typedef char dummy_arr[sizeof(curl_off_t) == 8 ? 1 : -1];
5393 if ac_fn_c_try_compile "$LINENO"; then :
5395 if test -z "$tmp_fmt"; then
5396 curl_typeof_curl_off_t="$t8"
5397 curl_sizeof_curl_off_t="8"
5400 as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
5401 as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
5402 if test -z "$SED"; then
5403 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
5405 if test -z "$GREP"; then
5406 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
5410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411 /* end confdefs.h. */
5413 $curl_includes_inttypes
5415 CURL_DEF_TOKEN $tmp_fmt
5420 if ac_fn_c_try_cpp "$LINENO"; then :
5422 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
5423 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
5424 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
5425 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
5426 if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
5431 rm -f conftest.err conftest.i conftest.$ac_ext
5432 if test -z "$tmp_exp"; then
5433 eval "$as_ac_HaveDef=no"
5436 eval "$as_ac_HaveDef=yes"
5437 eval "$as_ac_Def=\$tmp_exp"
5441 as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
5442 as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
5443 if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
5444 curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
5445 curl_typeof_curl_off_t="$t8"
5446 curl_sizeof_curl_off_t="8"
5451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
5456 $as_echo "$curl_typeof_curl_off_t" >&6; }
5458 if test "$curl_typeof_curl_off_t" = "unknown"; then
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit curl_off_t data type" >&5
5460 $as_echo_n "checking for 32-bit curl_off_t data type... " >&6; }
5467 if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t4"; then
5471 case `$as_echo "$t4" | $as_tr_sh` in
5473 tmp_includes="$curl_includes_inttypes"
5474 tmp_source="char f[] = PRId64;"
5478 tmp_includes="$curl_includes_inttypes"
5479 tmp_source="char f[] = PRId32;"
5483 tmp_includes="$curl_includes_inttypes"
5484 tmp_source="char f[] = PRId16;"
5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5489 /* end confdefs.h. */
5493 typedef $t4 curl_off_t;
5494 typedef char dummy_arr[sizeof(curl_off_t) == 4 ? 1 : -1];
5507 if ac_fn_c_try_compile "$LINENO"; then :
5509 if test -z "$tmp_fmt"; then
5510 curl_typeof_curl_off_t="$t4"
5511 curl_sizeof_curl_off_t="4"
5514 as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
5515 as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
5516 if test -z "$SED"; then
5517 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
5519 if test -z "$GREP"; then
5520 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h. */
5527 $curl_includes_inttypes
5529 CURL_DEF_TOKEN $tmp_fmt
5534 if ac_fn_c_try_cpp "$LINENO"; then :
5536 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
5537 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
5538 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
5539 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
5540 if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
5545 rm -f conftest.err conftest.i conftest.$ac_ext
5546 if test -z "$tmp_exp"; then
5547 eval "$as_ac_HaveDef=no"
5550 eval "$as_ac_HaveDef=yes"
5551 eval "$as_ac_Def=\$tmp_exp"
5555 as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
5556 as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
5557 if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
5558 curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
5559 curl_typeof_curl_off_t="$t4"
5560 curl_sizeof_curl_off_t="4"
5565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
5570 $as_echo "$curl_typeof_curl_off_t" >&6; }
5572 if test "$curl_typeof_curl_off_t" = "unknown"; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 16-bit curl_off_t data type" >&5
5574 $as_echo_n "checking for 16-bit curl_off_t data type... " >&6; }
5581 if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t2"; then
5585 case `$as_echo "$t2" | $as_tr_sh` in
5587 tmp_includes="$curl_includes_inttypes"
5588 tmp_source="char f[] = PRId64;"
5592 tmp_includes="$curl_includes_inttypes"
5593 tmp_source="char f[] = PRId32;"
5597 tmp_includes="$curl_includes_inttypes"
5598 tmp_source="char f[] = PRId16;"
5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h. */
5607 typedef $t2 curl_off_t;
5608 typedef char dummy_arr[sizeof(curl_off_t) == 2 ? 1 : -1];
5621 if ac_fn_c_try_compile "$LINENO"; then :
5623 if test -z "$tmp_fmt"; then
5624 curl_typeof_curl_off_t="$t2"
5625 curl_sizeof_curl_off_t="2"
5628 as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
5629 as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
5630 if test -z "$SED"; then
5631 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
5633 if test -z "$GREP"; then
5634 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
5638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h. */
5641 $curl_includes_inttypes
5643 CURL_DEF_TOKEN $tmp_fmt
5648 if ac_fn_c_try_cpp "$LINENO"; then :
5650 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
5651 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
5652 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
5653 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
5654 if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
5659 rm -f conftest.err conftest.i conftest.$ac_ext
5660 if test -z "$tmp_exp"; then
5661 eval "$as_ac_HaveDef=no"
5664 eval "$as_ac_HaveDef=yes"
5665 eval "$as_ac_Def=\$tmp_exp"
5669 as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
5670 as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
5671 if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
5672 curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
5673 curl_typeof_curl_off_t="$t2"
5674 curl_sizeof_curl_off_t="2"
5679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
5684 $as_echo "$curl_typeof_curl_off_t" >&6; }
5686 if test "$curl_typeof_curl_off_t" = "unknown"; then
5687 as_fn_error $? "cannot find data type for curl_off_t." "$LINENO" 5
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
5691 $as_echo_n "checking size of curl_off_t... " >&6; }
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_off_t" >&5
5693 $as_echo "$curl_sizeof_curl_off_t" >&6; }
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for curl_off_t" >&5
5696 $as_echo_n "checking formatting string directive for curl_off_t... " >&6; }
5697 if test "$curl_format_curl_off_t" != "unknown"; then
5698 x_pull_headers="yes"
5699 curl_format_curl_off_t=`echo "$curl_format_curl_off_t" | "$SED" 's/["]//g'`
5700 curl_format_curl_off_tu=`echo "$curl_format_curl_off_t" | "$SED" 's/i$/u/'`
5701 curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/d$/u/'`
5702 curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/D$/U/'`
5705 case `$as_echo "$curl_typeof_curl_off_t" | $as_tr_sh` in
5706 long_long | __longlong | __longlong_t)
5707 curl_format_curl_off_t="lld"
5708 curl_format_curl_off_tu="llu"
5711 curl_format_curl_off_t="ld"
5712 curl_format_curl_off_tu="lu"
5715 curl_format_curl_off_t="d"
5716 curl_format_curl_off_tu="u"
5719 curl_format_curl_off_t="I64d"
5720 curl_format_curl_off_tu="I64u"
5723 curl_format_curl_off_t="I32d"
5724 curl_format_curl_off_tu="I32u"
5727 curl_format_curl_off_t="I16d"
5728 curl_format_curl_off_tu="I16u"
5731 as_fn_error $? "cannot find print format string for curl_off_t." "$LINENO" 5
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_t\"" >&5
5736 $as_echo "\"$curl_format_curl_off_t\"" >&6; }
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for unsigned curl_off_t" >&5
5739 $as_echo_n "checking formatting string directive for unsigned curl_off_t... " >&6; }
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_tu\"" >&5
5741 $as_echo "\"$curl_format_curl_off_tu\"" >&6; }
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for curl_off_t" >&5
5745 $as_echo_n "checking constant suffix string for curl_off_t... " >&6; }
5747 curl_suffix_curl_off_t="unknown"
5748 curl_suffix_curl_off_tu="unknown"
5750 case `$as_echo "$curl_typeof_curl_off_t" | $as_tr_sh` in
5751 long_long | __longlong | __longlong_t)
5761 tst_suffixes="LL:i64::"
5764 tst_suffixes="L:i32::"
5767 tst_suffixes="L:i16::"
5770 as_fn_error $? "unexpected data type $curl_typeof_curl_off_t" "$LINENO" 5
5774 old_IFS=$IFS; IFS=':'
5775 for tmp_ssuf in $tst_suffixes ; do
5777 if test "x$curl_suffix_curl_off_t" = "xunknown"; then
5780 tmp_usuf="u$tmp_ssuf"
5783 tmp_usuf="U$tmp_ssuf"
5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h. */
5793 $curl_includes_inttypes
5794 typedef $curl_typeof_curl_off_t new_t;
5811 if ac_fn_c_try_compile "$LINENO"; then :
5813 curl_suffix_curl_off_t="$tmp_ssuf"
5814 curl_suffix_curl_off_tu="$tmp_usuf"
5817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5822 if test "x$curl_suffix_curl_off_t" = "xunknown"; then
5823 as_fn_error $? "cannot find constant suffix string for curl_off_t." "$LINENO" 5
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_t" >&5
5826 $as_echo "$curl_suffix_curl_off_t" >&6; }
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for unsigned curl_off_t" >&5
5828 $as_echo_n "checking constant suffix string for unsigned curl_off_t... " >&6; }
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_tu" >&5
5830 $as_echo "$curl_suffix_curl_off_tu" >&6; }
5835 if test "$x_pull_headers" = "yes"; then
5836 if test "x$ac_cv_header_sys_types_h" = "xyes"; then
5838 cat >>confdefs.h <<_EOF
5839 #define CURL_PULL_SYS_TYPES_H 1
5843 if test "x$ac_cv_header_stdint_h" = "xyes"; then
5845 cat >>confdefs.h <<_EOF
5846 #define CURL_PULL_STDINT_H 1
5850 if test "x$ac_cv_header_inttypes_h" = "xyes"; then
5852 cat >>confdefs.h <<_EOF
5853 #define CURL_PULL_INTTYPES_H 1
5860 cat >>confdefs.h <<_EOF
5861 #define CURL_TYPEOF_CURL_OFF_T $curl_typeof_curl_off_t
5865 cat >>confdefs.h <<_EOF
5866 #define CURL_FORMAT_CURL_OFF_T "$curl_format_curl_off_t"
5870 cat >>confdefs.h <<_EOF
5871 #define CURL_FORMAT_CURL_OFF_TU "$curl_format_curl_off_tu"
5875 cat >>confdefs.h <<_EOF
5876 #define CURL_FORMAT_OFF_T "%$curl_format_curl_off_t"
5880 cat >>confdefs.h <<_EOF
5881 #define CURL_SIZEOF_CURL_OFF_T $curl_sizeof_curl_off_t
5885 cat >>confdefs.h <<_EOF
5886 #define CURL_SUFFIX_CURL_OFF_T $curl_suffix_curl_off_t
5890 cat >>confdefs.h <<_EOF
5891 #define CURL_SUFFIX_CURL_OFF_TU $curl_suffix_curl_off_tu
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
5900 $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
5901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5902 /* end confdefs.h. */
5909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5910 $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5913 $as_echo "yes" >&6; }
5914 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5920 $as_echo "no" >&6; }
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
5930 $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
5931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5932 /* end confdefs.h. */
5942 force compilation error
5950 if ac_fn_c_try_compile "$LINENO"; then :
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5953 $as_echo "yes" >&6; }
5954 tmp_thread_safe_initially_defined="yes"
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5959 $as_echo "no" >&6; }
5960 tmp_thread_safe_initially_defined="no"
5963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5965 if test "$tmp_thread_safe_initially_defined" = "no"; then
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
5967 $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
5970 aix[123].* | aix4.[012].*)
5971 tmp_need_thread_safe="no"
5974 tmp_need_thread_safe="yes"
5977 tmp_need_thread_safe="no"
5981 if test "$tmp_need_thread_safe" = "yes"; then
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5983 $as_echo "yes" >&6; }
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5986 $as_echo "no" >&6; }
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
5991 $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
5992 if test "$tmp_thread_safe_initially_defined" = "yes" ||
5993 test "$tmp_need_thread_safe" = "yes"; then
5996 $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
5998 cat >>confdefs.h <<_EOF
5999 #ifndef _THREAD_SAFE
6000 # define _THREAD_SAFE
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6005 $as_echo "yes" >&6; }
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6008 $as_echo "no" >&6; }
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6015 $as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6017 /* end confdefs.h. */
6027 force compilation error
6035 if ac_fn_c_try_compile "$LINENO"; then :
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6038 $as_echo "yes" >&6; }
6039 tmp_reentrant_initially_defined="yes"
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044 $as_echo "no" >&6; }
6045 tmp_reentrant_initially_defined="no"
6048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050 if test "$tmp_reentrant_initially_defined" = "no"; then
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6052 $as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6056 tmp_need_reentrant="yes"
6059 tmp_need_reentrant="no"
6063 if test "$tmp_need_reentrant" = "no"; then
6065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066 /* end confdefs.h. */
6082 if ac_fn_c_try_compile "$LINENO"; then :
6091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6092 if test "$tmp_errno" = "yes"; then
6093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6094 /* end confdefs.h. */
6105 force compilation error
6113 if ac_fn_c_try_compile "$LINENO"; then :
6115 tmp_errno="errno_macro_defined"
6119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6120 /* end confdefs.h. */
6132 force compilation error
6140 if ac_fn_c_try_compile "$LINENO"; then :
6142 tmp_errno="errno_macro_needs_reentrant"
6143 tmp_need_reentrant="yes"
6146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6153 if test "$tmp_need_reentrant" = "no"; then
6155 if test "$tmp_need_reentrant" = "no"; then
6157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h. */
6161 #define gmtime_r innocuous_gmtime_r
6163 # include <limits.h>
6165 # include <assert.h>
6172 #if defined __stub_gmtime_r || defined __stub___gmtime_r
6184 if ac_fn_c_try_link "$LINENO"; then :
6193 rm -f core conftest.err conftest.$ac_objext \
6194 conftest$ac_exeext conftest.$ac_ext
6195 if test "$tmp_gmtime_r" = "yes"; then
6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h. */
6199 #include <sys/types.h>
6203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6204 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6206 tmp_gmtime_r="proto_declared"
6210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6211 /* end confdefs.h. */
6214 #include <sys/types.h>
6218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6219 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6221 tmp_gmtime_r="proto_needs_reentrant"
6222 tmp_need_reentrant="yes"
6234 if test "$tmp_need_reentrant" = "no"; then
6236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237 /* end confdefs.h. */
6240 #define localtime_r innocuous_localtime_r
6242 # include <limits.h>
6244 # include <assert.h>
6250 char localtime_r ();
6251 #if defined __stub_localtime_r || defined __stub___localtime_r
6257 return localtime_r ();
6263 if ac_fn_c_try_link "$LINENO"; then :
6265 tmp_localtime_r="yes"
6269 tmp_localtime_r="no"
6272 rm -f core conftest.err conftest.$ac_objext \
6273 conftest$ac_exeext conftest.$ac_ext
6274 if test "$tmp_localtime_r" = "yes"; then
6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h. */
6278 #include <sys/types.h>
6282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6283 $EGREP "localtime_r" >/dev/null 2>&1; then :
6285 tmp_localtime_r="proto_declared"
6289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6290 /* end confdefs.h. */
6293 #include <sys/types.h>
6297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6298 $EGREP "localtime_r" >/dev/null 2>&1; then :
6300 tmp_localtime_r="proto_needs_reentrant"
6301 tmp_need_reentrant="yes"
6313 if test "$tmp_need_reentrant" = "no"; then
6315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316 /* end confdefs.h. */
6319 #define strerror_r innocuous_strerror_r
6321 # include <limits.h>
6323 # include <assert.h>
6330 #if defined __stub_strerror_r || defined __stub___strerror_r
6336 return strerror_r ();
6342 if ac_fn_c_try_link "$LINENO"; then :
6344 tmp_strerror_r="yes"
6351 rm -f core conftest.err conftest.$ac_objext \
6352 conftest$ac_exeext conftest.$ac_ext
6353 if test "$tmp_strerror_r" = "yes"; then
6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h. */
6357 #include <sys/types.h>
6361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6362 $EGREP "strerror_r" >/dev/null 2>&1; then :
6364 tmp_strerror_r="proto_declared"
6368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6369 /* end confdefs.h. */
6372 #include <sys/types.h>
6376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6377 $EGREP "strerror_r" >/dev/null 2>&1; then :
6379 tmp_strerror_r="proto_needs_reentrant"
6380 tmp_need_reentrant="yes"
6392 if test "$tmp_need_reentrant" = "no"; then
6394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6395 /* end confdefs.h. */
6398 #define strtok_r innocuous_strtok_r
6400 # include <limits.h>
6402 # include <assert.h>
6409 #if defined __stub_strtok_r || defined __stub___strtok_r
6421 if ac_fn_c_try_link "$LINENO"; then :
6430 rm -f core conftest.err conftest.$ac_objext \
6431 conftest$ac_exeext conftest.$ac_ext
6432 if test "$tmp_strtok_r" = "yes"; then
6433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434 /* end confdefs.h. */
6436 #include <sys/types.h>
6440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6441 $EGREP "strtok_r" >/dev/null 2>&1; then :
6443 tmp_strtok_r="proto_declared"
6447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448 /* end confdefs.h. */
6451 #include <sys/types.h>
6455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6456 $EGREP "strtok_r" >/dev/null 2>&1; then :
6458 tmp_strtok_r="proto_needs_reentrant"
6459 tmp_need_reentrant="yes"
6471 if test "$tmp_need_reentrant" = "no"; then
6473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474 /* end confdefs.h. */
6477 #define inet_ntoa_r innocuous_inet_ntoa_r
6479 # include <limits.h>
6481 # include <assert.h>
6487 char inet_ntoa_r ();
6488 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
6494 return inet_ntoa_r ();
6500 if ac_fn_c_try_link "$LINENO"; then :
6502 tmp_inet_ntoa_r="yes"
6506 tmp_inet_ntoa_r="no"
6509 rm -f core conftest.err conftest.$ac_objext \
6510 conftest$ac_exeext conftest.$ac_ext
6511 if test "$tmp_inet_ntoa_r" = "yes"; then
6512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6513 /* end confdefs.h. */
6515 #include <sys/types.h>
6516 #include <sys/socket.h>
6517 #include <netinet/in.h>
6518 #include <arpa/inet.h>
6521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6522 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6524 tmp_inet_ntoa_r="proto_declared"
6528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6529 /* end confdefs.h. */
6532 #include <sys/types.h>
6533 #include <sys/socket.h>
6534 #include <netinet/in.h>
6535 #include <arpa/inet.h>
6538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6539 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6541 tmp_inet_ntoa_r="proto_needs_reentrant"
6542 tmp_need_reentrant="yes"
6554 if test "$tmp_need_reentrant" = "no"; then
6556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557 /* end confdefs.h. */
6560 #define gethostbyaddr_r innocuous_gethostbyaddr_r
6562 # include <limits.h>
6564 # include <assert.h>
6566 #undef gethostbyaddr_r
6570 char gethostbyaddr_r ();
6571 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
6577 return gethostbyaddr_r ();
6583 if ac_fn_c_try_link "$LINENO"; then :
6585 tmp_gethostbyaddr_r="yes"
6589 tmp_gethostbyaddr_r="no"
6592 rm -f core conftest.err conftest.$ac_objext \
6593 conftest$ac_exeext conftest.$ac_ext
6594 if test "$tmp_gethostbyaddr_r" = "yes"; then
6595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6596 /* end confdefs.h. */
6598 #include <sys/types.h>
6602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6603 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6605 tmp_gethostbyaddr_r="proto_declared"
6609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6610 /* end confdefs.h. */
6613 #include <sys/types.h>
6617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6618 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6620 tmp_gethostbyaddr_r="proto_needs_reentrant"
6621 tmp_need_reentrant="yes"
6633 if test "$tmp_need_reentrant" = "no"; then
6635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636 /* end confdefs.h. */
6639 #define gethostbyname_r innocuous_gethostbyname_r
6641 # include <limits.h>
6643 # include <assert.h>
6645 #undef gethostbyname_r
6649 char gethostbyname_r ();
6650 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
6656 return gethostbyname_r ();
6662 if ac_fn_c_try_link "$LINENO"; then :
6664 tmp_gethostbyname_r="yes"
6668 tmp_gethostbyname_r="no"
6671 rm -f core conftest.err conftest.$ac_objext \
6672 conftest$ac_exeext conftest.$ac_ext
6673 if test "$tmp_gethostbyname_r" = "yes"; then
6674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6675 /* end confdefs.h. */
6677 #include <sys/types.h>
6681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6682 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
6684 tmp_gethostbyname_r="proto_declared"
6688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6689 /* end confdefs.h. */
6692 #include <sys/types.h>
6696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6697 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
6699 tmp_gethostbyname_r="proto_needs_reentrant"
6700 tmp_need_reentrant="yes"
6712 if test "$tmp_need_reentrant" = "no"; then
6714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715 /* end confdefs.h. */
6718 #define getprotobyname_r innocuous_getprotobyname_r
6720 # include <limits.h>
6722 # include <assert.h>
6724 #undef getprotobyname_r
6728 char getprotobyname_r ();
6729 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
6735 return getprotobyname_r ();
6741 if ac_fn_c_try_link "$LINENO"; then :
6743 tmp_getprotobyname_r="yes"
6747 tmp_getprotobyname_r="no"
6750 rm -f core conftest.err conftest.$ac_objext \
6751 conftest$ac_exeext conftest.$ac_ext
6752 if test "$tmp_getprotobyname_r" = "yes"; then
6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h. */
6756 #include <sys/types.h>
6760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6761 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
6763 tmp_getprotobyname_r="proto_declared"
6767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6768 /* end confdefs.h. */
6771 #include <sys/types.h>
6775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6776 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
6778 tmp_getprotobyname_r="proto_needs_reentrant"
6779 tmp_need_reentrant="yes"
6791 if test "$tmp_need_reentrant" = "no"; then
6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794 /* end confdefs.h. */
6797 #define getservbyport_r innocuous_getservbyport_r
6799 # include <limits.h>
6801 # include <assert.h>
6803 #undef getservbyport_r
6807 char getservbyport_r ();
6808 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
6814 return getservbyport_r ();
6820 if ac_fn_c_try_link "$LINENO"; then :
6822 tmp_getservbyport_r="yes"
6826 tmp_getservbyport_r="no"
6829 rm -f core conftest.err conftest.$ac_objext \
6830 conftest$ac_exeext conftest.$ac_ext
6831 if test "$tmp_getservbyport_r" = "yes"; then
6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6835 #include <sys/types.h>
6839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6840 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
6842 tmp_getservbyport_r="proto_declared"
6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h. */
6850 #include <sys/types.h>
6854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6855 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
6857 tmp_getservbyport_r="proto_needs_reentrant"
6858 tmp_need_reentrant="yes"
6872 if test "$tmp_need_reentrant" = "yes"; then
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6874 $as_echo "yes" >&6; }
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6877 $as_echo "no" >&6; }
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
6882 $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
6883 if test "$tmp_reentrant_initially_defined" = "yes" ||
6884 test "$tmp_need_reentrant" = "yes"; then
6887 $as_echo "#define NEED_REENTRANT 1" >>confdefs.h
6889 cat >>confdefs.h <<_EOF
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6896 $as_echo "yes" >&6; }
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899 $as_echo "no" >&6; }
6904 # Check whether --enable-largefile was given.
6905 if test "${enable_largefile+set}" = set; then :
6906 enableval=$enable_largefile;
6909 if test "$enable_largefile" != no; then
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6912 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6913 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6914 $as_echo_n "(cached) " >&6
6916 ac_cv_sys_largefile_CC=no
6917 if test "$GCC" != yes; then
6920 # IRIX 6.2 and later do not support large files by default,
6921 # so use the C compiler's -n32 option if that helps.
6922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923 /* end confdefs.h. */
6924 #include <sys/types.h>
6925 /* Check that off_t can represent 2**63 - 1 correctly.
6926 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6927 since some C++ compilers masquerading as C compilers
6928 incorrectly reject 9223372036854775807. */
6929 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6930 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6931 && LARGE_OFF_T % 2147483647 == 1)
6940 if ac_fn_c_try_compile "$LINENO"; then :
6943 rm -f core conftest.err conftest.$ac_objext
6945 if ac_fn_c_try_compile "$LINENO"; then :
6946 ac_cv_sys_largefile_CC=' -n32'; break
6948 rm -f core conftest.err conftest.$ac_objext
6952 rm -f conftest.$ac_ext
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6956 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6957 if test "$ac_cv_sys_largefile_CC" != no; then
6958 CC=$CC$ac_cv_sys_largefile_CC
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6962 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6963 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6964 $as_echo_n "(cached) " >&6
6967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968 /* end confdefs.h. */
6969 #include <sys/types.h>
6970 /* Check that off_t can represent 2**63 - 1 correctly.
6971 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6972 since some C++ compilers masquerading as C compilers
6973 incorrectly reject 9223372036854775807. */
6974 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6975 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6976 && LARGE_OFF_T % 2147483647 == 1)
6985 if ac_fn_c_try_compile "$LINENO"; then :
6986 ac_cv_sys_file_offset_bits=no; break
6988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h. */
6991 #define _FILE_OFFSET_BITS 64
6992 #include <sys/types.h>
6993 /* Check that off_t can represent 2**63 - 1 correctly.
6994 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6995 since some C++ compilers masquerading as C compilers
6996 incorrectly reject 9223372036854775807. */
6997 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6998 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6999 && LARGE_OFF_T % 2147483647 == 1)
7008 if ac_fn_c_try_compile "$LINENO"; then :
7009 ac_cv_sys_file_offset_bits=64; break
7011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7012 ac_cv_sys_file_offset_bits=unknown
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7017 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7018 case $ac_cv_sys_file_offset_bits in #(
7021 cat >>confdefs.h <<_ACEOF
7022 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7027 if test $ac_cv_sys_file_offset_bits = unknown; then
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7029 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7030 if test "${ac_cv_sys_large_files+set}" = set; then :
7031 $as_echo_n "(cached) " >&6
7034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035 /* end confdefs.h. */
7036 #include <sys/types.h>
7037 /* Check that off_t can represent 2**63 - 1 correctly.
7038 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7039 since some C++ compilers masquerading as C compilers
7040 incorrectly reject 9223372036854775807. */
7041 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7042 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7043 && LARGE_OFF_T % 2147483647 == 1)
7052 if ac_fn_c_try_compile "$LINENO"; then :
7053 ac_cv_sys_large_files=no; break
7055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h. */
7058 #define _LARGE_FILES 1
7059 #include <sys/types.h>
7060 /* Check that off_t can represent 2**63 - 1 correctly.
7061 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7062 since some C++ compilers masquerading as C compilers
7063 incorrectly reject 9223372036854775807. */
7064 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7065 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7066 && LARGE_OFF_T % 2147483647 == 1)
7075 if ac_fn_c_try_compile "$LINENO"; then :
7076 ac_cv_sys_large_files=1; break
7078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7079 ac_cv_sys_large_files=unknown
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7084 $as_echo "$ac_cv_sys_large_files" >&6; }
7085 case $ac_cv_sys_large_files in #(
7088 cat >>confdefs.h <<_ACEOF
7089 #define _LARGE_FILES $ac_cv_sys_large_files
7098 enable_win32_dll=yes
7101 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
7102 if test -n "$ac_tool_prefix"; then
7103 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7104 set dummy ${ac_tool_prefix}as; ac_word=$2
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7106 $as_echo_n "checking for $ac_word... " >&6; }
7107 if test "${ac_cv_prog_AS+set}" = set; then :
7108 $as_echo_n "(cached) " >&6
7110 if test -n "$AS"; then
7111 ac_cv_prog_AS="$AS" # Let the user override the test.
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7120 ac_cv_prog_AS="${ac_tool_prefix}as"
7121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7131 if test -n "$AS"; then
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7133 $as_echo "$AS" >&6; }
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7136 $as_echo "no" >&6; }
7141 if test -z "$ac_cv_prog_AS"; then
7143 # Extract the first word of "as", so it can be a program name with args.
7144 set dummy as; ac_word=$2
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7146 $as_echo_n "checking for $ac_word... " >&6; }
7147 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
7148 $as_echo_n "(cached) " >&6
7150 if test -n "$ac_ct_AS"; then
7151 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 test -z "$as_dir" && as_dir=.
7158 for ac_exec_ext in '' $ac_executable_extensions; do
7159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7160 ac_cv_prog_ac_ct_AS="as"
7161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7170 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7171 if test -n "$ac_ct_AS"; then
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7173 $as_echo "$ac_ct_AS" >&6; }
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7176 $as_echo "no" >&6; }
7179 if test "x$ac_ct_AS" = x; then
7182 case $cross_compiling:$ac_tool_warned in
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7186 ac_tool_warned=yes ;;
7194 if test -n "$ac_tool_prefix"; then
7195 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7196 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7198 $as_echo_n "checking for $ac_word... " >&6; }
7199 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7200 $as_echo_n "(cached) " >&6
7202 if test -n "$DLLTOOL"; then
7203 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209 test -z "$as_dir" && as_dir=.
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7212 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7222 DLLTOOL=$ac_cv_prog_DLLTOOL
7223 if test -n "$DLLTOOL"; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7225 $as_echo "$DLLTOOL" >&6; }
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228 $as_echo "no" >&6; }
7233 if test -z "$ac_cv_prog_DLLTOOL"; then
7234 ac_ct_DLLTOOL=$DLLTOOL
7235 # Extract the first word of "dlltool", so it can be a program name with args.
7236 set dummy dlltool; ac_word=$2
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7238 $as_echo_n "checking for $ac_word... " >&6; }
7239 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7240 $as_echo_n "(cached) " >&6
7242 if test -n "$ac_ct_DLLTOOL"; then
7243 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249 test -z "$as_dir" && as_dir=.
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7252 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7262 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7263 if test -n "$ac_ct_DLLTOOL"; then
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7265 $as_echo "$ac_ct_DLLTOOL" >&6; }
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7268 $as_echo "no" >&6; }
7271 if test "x$ac_ct_DLLTOOL" = x; then
7274 case $cross_compiling:$ac_tool_warned in
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7278 ac_tool_warned=yes ;;
7280 DLLTOOL=$ac_ct_DLLTOOL
7283 DLLTOOL="$ac_cv_prog_DLLTOOL"
7286 if test -n "$ac_tool_prefix"; then
7287 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7288 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290 $as_echo_n "checking for $ac_word... " >&6; }
7291 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7292 $as_echo_n "(cached) " >&6
7294 if test -n "$OBJDUMP"; then
7295 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 test -z "$as_dir" && as_dir=.
7302 for ac_exec_ext in '' $ac_executable_extensions; do
7303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7304 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7314 OBJDUMP=$ac_cv_prog_OBJDUMP
7315 if test -n "$OBJDUMP"; then
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7317 $as_echo "$OBJDUMP" >&6; }
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7325 if test -z "$ac_cv_prog_OBJDUMP"; then
7326 ac_ct_OBJDUMP=$OBJDUMP
7327 # Extract the first word of "objdump", so it can be a program name with args.
7328 set dummy objdump; ac_word=$2
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7330 $as_echo_n "checking for $ac_word... " >&6; }
7331 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7332 $as_echo_n "(cached) " >&6
7334 if test -n "$ac_ct_OBJDUMP"; then
7335 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 test -z "$as_dir" && as_dir=.
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7344 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7354 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7355 if test -n "$ac_ct_OBJDUMP"; then
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7357 $as_echo "$ac_ct_OBJDUMP" >&6; }
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360 $as_echo "no" >&6; }
7363 if test "x$ac_ct_OBJDUMP" = x; then
7366 case $cross_compiling:$ac_tool_warned in
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7370 ac_tool_warned=yes ;;
7372 OBJDUMP=$ac_ct_OBJDUMP
7375 OBJDUMP="$ac_cv_prog_OBJDUMP"
7381 test -z "$AS" && AS=as
7387 test -z "$DLLTOOL" && DLLTOOL=dlltool
7393 test -z "$OBJDUMP" && OBJDUMP=objdump
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if arch-OS host is AMD64-Linux/FreeBSD (to build static libraries with PIC)" >&5
7403 $as_echo_n "checking if arch-OS host is AMD64-Linux/FreeBSD (to build static libraries with PIC)... " >&6; }
7405 x86_64*linux*|amd64*freebsd*|ia64*freebsd*)
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7407 $as_echo "yes" >&6; }
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7412 $as_echo "no" >&6; }
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is icc (to build with PIC)" >&5
7417 $as_echo_n "checking if compiler is icc (to build with PIC)... " >&6; }
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7421 $as_echo "yes" >&6; }
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7426 $as_echo "no" >&6; }
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7433 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7438 macro_version='2.2.6b'
7439 macro_revision='1.3017'
7453 ltmain="$ac_aux_dir/ltmain.sh"
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7456 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7457 if test "${ac_cv_path_SED+set}" = set; then :
7458 $as_echo_n "(cached) " >&6
7460 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7461 for ac_i in 1 2 3 4 5 6 7; do
7462 ac_script="$ac_script$as_nl$ac_script"
7464 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7465 { ac_script=; unset ac_script;}
7466 if test -z "$SED"; then
7467 ac_path_SED_found=false
7468 # Loop through the user's path and test for each of PROGNAME-LIST
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 test -z "$as_dir" && as_dir=.
7474 for ac_prog in sed gsed; do
7475 for ac_exec_ext in '' $ac_executable_extensions; do
7476 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7477 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7478 # Check for GNU ac_path_SED and select it if it is found.
7479 # Check for GNU $ac_path_SED
7480 case `"$ac_path_SED" --version 2>&1` in
7482 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7485 $as_echo_n 0123456789 >"conftest.in"
7488 cat "conftest.in" "conftest.in" >"conftest.tmp"
7489 mv "conftest.tmp" "conftest.in"
7490 cp "conftest.in" "conftest.nl"
7491 $as_echo '' >> "conftest.nl"
7492 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7493 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7494 as_fn_arith $ac_count + 1 && ac_count=$as_val
7495 if test $ac_count -gt ${ac_path_SED_max-0}; then
7496 # Best one so far, save it but keep looking for a better one
7497 ac_cv_path_SED="$ac_path_SED"
7498 ac_path_SED_max=$ac_count
7500 # 10*(2^10) chars as input seems more than enough
7501 test $ac_count -gt 10 && break
7503 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7506 $ac_path_SED_found && break 3
7511 if test -z "$ac_cv_path_SED"; then
7512 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7520 $as_echo "$ac_cv_path_SED" >&6; }
7521 SED="$ac_cv_path_SED"
7524 test -z "$SED" && SED=sed
7525 Xsed="$SED -e 1s/^X//"
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7538 $as_echo_n "checking for fgrep... " >&6; }
7539 if test "${ac_cv_path_FGREP+set}" = set; then :
7540 $as_echo_n "(cached) " >&6
7542 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7543 then ac_cv_path_FGREP="$GREP -F"
7545 if test -z "$FGREP"; then
7546 ac_path_FGREP_found=false
7547 # Loop through the user's path and test for each of PROGNAME-LIST
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7552 test -z "$as_dir" && as_dir=.
7553 for ac_prog in fgrep; do
7554 for ac_exec_ext in '' $ac_executable_extensions; do
7555 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7556 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7557 # Check for GNU ac_path_FGREP and select it if it is found.
7558 # Check for GNU $ac_path_FGREP
7559 case `"$ac_path_FGREP" --version 2>&1` in
7561 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7564 $as_echo_n 0123456789 >"conftest.in"
7567 cat "conftest.in" "conftest.in" >"conftest.tmp"
7568 mv "conftest.tmp" "conftest.in"
7569 cp "conftest.in" "conftest.nl"
7570 $as_echo 'FGREP' >> "conftest.nl"
7571 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7572 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7573 as_fn_arith $ac_count + 1 && ac_count=$as_val
7574 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7575 # Best one so far, save it but keep looking for a better one
7576 ac_cv_path_FGREP="$ac_path_FGREP"
7577 ac_path_FGREP_max=$ac_count
7579 # 10*(2^10) chars as input seems more than enough
7580 test $ac_count -gt 10 && break
7582 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7585 $ac_path_FGREP_found && break 3
7590 if test -z "$ac_cv_path_FGREP"; then
7591 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7594 ac_cv_path_FGREP=$FGREP
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7600 $as_echo "$ac_cv_path_FGREP" >&6; }
7601 FGREP="$ac_cv_path_FGREP"
7604 test -z "$GREP" && GREP=grep
7624 # Check whether --with-gnu-ld was given.
7625 if test "${with_gnu_ld+set}" = set; then :
7626 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7632 if test "$GCC" = yes; then
7633 # Check if gcc -print-prog-name=ld gives a path.
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7635 $as_echo_n "checking for ld used by $CC... " >&6; }
7638 # gcc leaves a trailing carriage return which upsets mingw
7639 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7641 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7644 # Accept absolute paths.
7646 re_direlt='/[^/][^/]*/\.\./'
7647 # Canonicalize the pathname of ld
7648 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7649 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7650 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7652 test -z "$LD" && LD="$ac_prog"
7655 # If it fails, then pretend we aren't using GCC.
7659 # If it is relative, then search for the first ld in PATH.
7663 elif test "$with_gnu_ld" = yes; then
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7665 $as_echo_n "checking for GNU ld... " >&6; }
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7668 $as_echo_n "checking for non-GNU ld... " >&6; }
7670 if test "${lt_cv_path_LD+set}" = set; then :
7671 $as_echo_n "(cached) " >&6
7673 if test -z "$LD"; then
7674 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7675 for ac_dir in $PATH; do
7677 test -z "$ac_dir" && ac_dir=.
7678 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7679 lt_cv_path_LD="$ac_dir/$ac_prog"
7680 # Check to see if the program is GNU ld. I'd rather use --version,
7681 # but apparently some variants of GNU ld only accept -v.
7682 # Break only if it was the GNU/non-GNU ld that we prefer.
7683 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7684 *GNU* | *'with BFD'*)
7685 test "$with_gnu_ld" != no && break
7688 test "$with_gnu_ld" != yes && break
7695 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7700 if test -n "$LD"; then
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7702 $as_echo "$LD" >&6; }
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7705 $as_echo "no" >&6; }
7707 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7709 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7710 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7711 $as_echo_n "(cached) " >&6
7713 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7714 case `$LD -v 2>&1 </dev/null` in
7715 *GNU* | *'with BFD'*)
7716 lt_cv_prog_gnu_ld=yes
7719 lt_cv_prog_gnu_ld=no
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7724 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7725 with_gnu_ld=$lt_cv_prog_gnu_ld
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7736 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7737 if test "${lt_cv_path_NM+set}" = set; then :
7738 $as_echo_n "(cached) " >&6
7740 if test -n "$NM"; then
7741 # Let the user override the test.
7744 lt_nm_to_check="${ac_tool_prefix}nm"
7745 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7746 lt_nm_to_check="$lt_nm_to_check nm"
7748 for lt_tmp_nm in $lt_nm_to_check; do
7749 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7750 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7752 test -z "$ac_dir" && ac_dir=.
7753 tmp_nm="$ac_dir/$lt_tmp_nm"
7754 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7755 # Check to see if the nm accepts a BSD-compat flag.
7756 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7757 # nm: unknown option "B" ignored
7758 # Tru64's nm complains that /dev/null is an invalid object file
7759 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7760 */dev/null* | *'Invalid file or object type'*)
7761 lt_cv_path_NM="$tmp_nm -B"
7765 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7767 lt_cv_path_NM="$tmp_nm -p"
7771 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7772 continue # so that we can try to find one that supports BSD flags
7781 : ${lt_cv_path_NM=no}
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7785 $as_echo "$lt_cv_path_NM" >&6; }
7786 if test "$lt_cv_path_NM" != "no"; then
7789 # Didn't find any BSD compatible name lister, look for dumpbin.
7790 if test -n "$ac_tool_prefix"; then
7791 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7793 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7794 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7796 $as_echo_n "checking for $ac_word... " >&6; }
7797 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7798 $as_echo_n "(cached) " >&6
7800 if test -n "$DUMPBIN"; then
7801 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 test -z "$as_dir" && as_dir=.
7808 for ac_exec_ext in '' $ac_executable_extensions; do
7809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7810 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7820 DUMPBIN=$ac_cv_prog_DUMPBIN
7821 if test -n "$DUMPBIN"; then
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7823 $as_echo "$DUMPBIN" >&6; }
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7826 $as_echo "no" >&6; }
7830 test -n "$DUMPBIN" && break
7833 if test -z "$DUMPBIN"; then
7834 ac_ct_DUMPBIN=$DUMPBIN
7835 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7837 # Extract the first word of "$ac_prog", so it can be a program name with args.
7838 set dummy $ac_prog; ac_word=$2
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840 $as_echo_n "checking for $ac_word... " >&6; }
7841 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7842 $as_echo_n "(cached) " >&6
7844 if test -n "$ac_ct_DUMPBIN"; then
7845 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851 test -z "$as_dir" && as_dir=.
7852 for ac_exec_ext in '' $ac_executable_extensions; do
7853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7854 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7864 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7865 if test -n "$ac_ct_DUMPBIN"; then
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7867 $as_echo "$ac_ct_DUMPBIN" >&6; }
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870 $as_echo "no" >&6; }
7874 test -n "$ac_ct_DUMPBIN" && break
7877 if test "x$ac_ct_DUMPBIN" = x; then
7880 case $cross_compiling:$ac_tool_warned in
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7884 ac_tool_warned=yes ;;
7886 DUMPBIN=$ac_ct_DUMPBIN
7891 if test "$DUMPBIN" != ":"; then
7895 test -z "$NM" && NM=nm
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7903 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7904 if test "${lt_cv_nm_interface+set}" = set; then :
7905 $as_echo_n "(cached) " >&6
7907 lt_cv_nm_interface="BSD nm"
7908 echo "int some_variable = 0;" > conftest.$ac_ext
7909 (eval echo "\"\$as_me:7909: $ac_compile\"" >&5)
7910 (eval "$ac_compile" 2>conftest.err)
7911 cat conftest.err >&5
7912 (eval echo "\"\$as_me:7912: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7913 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7914 cat conftest.err >&5
7915 (eval echo "\"\$as_me:7915: output\"" >&5)
7916 cat conftest.out >&5
7917 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7918 lt_cv_nm_interface="MS dumpbin"
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7923 $as_echo "$lt_cv_nm_interface" >&6; }
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7926 $as_echo_n "checking whether ln -s works... " >&6; }
7928 if test "$LN_S" = "ln -s"; then
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7930 $as_echo "yes" >&6; }
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7933 $as_echo "no, using $LN_S" >&6; }
7936 # find the maximum length of command line arguments
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7938 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7939 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7940 $as_echo_n "(cached) " >&6
7947 # On DJGPP, this test can blow up pretty badly due to problems in libc
7948 # (any single argument exceeding 2000 bytes causes a buffer overrun
7949 # during glob expansion). Even if it were fixed, the result of this
7950 # check would be larger than it should be.
7951 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7955 # Under GNU Hurd, this test is not required because there is
7956 # no limit to the length of command line arguments.
7957 # Libtool will interpret -1 as no limit whatsoever
7958 lt_cv_sys_max_cmd_len=-1;
7961 cygwin* | mingw* | cegcc*)
7962 # On Win9x/ME, this test blows up -- it succeeds, but takes
7963 # about 5 minutes as the teststring grows exponentially.
7964 # Worse, since 9x/ME are not pre-emptively multitasking,
7965 # you end up with a "frozen" computer, even though with patience
7966 # the test eventually succeeds (with a max line length of 256k).
7967 # Instead, let's just punt: use the minimum linelength reported by
7968 # all of the supported platforms: 8192 (on NT/2K/XP).
7969 lt_cv_sys_max_cmd_len=8192;
7973 # On AmigaOS with pdksh, this test takes hours, literally.
7974 # So we just punt and use a minimum line length of 8192.
7975 lt_cv_sys_max_cmd_len=8192;
7978 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7979 # This has been around since 386BSD, at least. Likely further.
7980 if test -x /sbin/sysctl; then
7981 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7982 elif test -x /usr/sbin/sysctl; then
7983 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7985 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7987 # And add a safety zone
7988 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7989 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7993 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7994 lt_cv_sys_max_cmd_len=196608
7998 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7999 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8000 # nice to cause kernel panics so lets avoid the loop below.
8001 # First set a reasonable default.
8002 lt_cv_sys_max_cmd_len=16384
8004 if test -x /sbin/sysconfig; then
8005 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8006 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8011 lt_cv_sys_max_cmd_len=102400
8013 sysv5* | sco5v6* | sysv4.2uw2*)
8014 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8015 if test -n "$kargmax"; then
8016 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8018 lt_cv_sys_max_cmd_len=32768
8022 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8023 if test -n "$lt_cv_sys_max_cmd_len"; then
8024 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8025 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8027 # Make teststring a little bigger before we do anything with it.
8028 # a 1K string should be a reasonable start.
8029 for i in 1 2 3 4 5 6 7 8 ; do
8030 teststring=$teststring$teststring
8032 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8033 # If test is not a shell built-in, we'll probably end up computing a
8034 # maximum length that is only half of the actual maximum length, but
8036 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
8037 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
8038 test $i != 17 # 1/2 MB should be enough
8041 teststring=$teststring$teststring
8043 # Only check the string length outside the loop.
8044 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8046 # Add a significant safety factor because C++ compilers can tack on
8047 # massive amounts of additional arguments before passing them to the
8048 # linker. It appears as though 1/2 is a usable value.
8049 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8056 if test -n $lt_cv_sys_max_cmd_len ; then
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8058 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8061 $as_echo "none" >&6; }
8063 max_cmd_len=$lt_cv_sys_max_cmd_len
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8075 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8076 # Try some XSI features
8079 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8081 && eval 'test $(( 1 + 1 )) -eq 2 \
8082 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8085 $as_echo "$xsi_shell" >&6; }
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8089 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8091 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8093 && lt_shell_append=yes
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8095 $as_echo "$lt_shell_append" >&6; }
8098 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8108 # test EBCDIC or ASCII
8109 case `echo X|tr X '\101'` in
8110 A) # ASCII based system
8111 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8112 lt_SP2NL='tr \040 \012'
8113 lt_NL2SP='tr \015\012 \040\040'
8115 *) # EBCDIC based system
8116 lt_SP2NL='tr \100 \n'
8117 lt_NL2SP='tr \r\n \100\100'
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8130 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8131 if test "${lt_cv_ld_reload_flag+set}" = set; then :
8132 $as_echo_n "(cached) " >&6
8134 lt_cv_ld_reload_flag='-r'
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8137 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8138 reload_flag=$lt_cv_ld_reload_flag
8139 case $reload_flag in
8141 *) reload_flag=" $reload_flag" ;;
8143 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8146 if test "$GCC" = yes; then
8147 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8149 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8162 if test -n "$ac_tool_prefix"; then
8163 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8164 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8166 $as_echo_n "checking for $ac_word... " >&6; }
8167 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8168 $as_echo_n "(cached) " >&6
8170 if test -n "$OBJDUMP"; then
8171 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8177 test -z "$as_dir" && as_dir=.
8178 for ac_exec_ext in '' $ac_executable_extensions; do
8179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8180 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8190 OBJDUMP=$ac_cv_prog_OBJDUMP
8191 if test -n "$OBJDUMP"; then
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8193 $as_echo "$OBJDUMP" >&6; }
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196 $as_echo "no" >&6; }
8201 if test -z "$ac_cv_prog_OBJDUMP"; then
8202 ac_ct_OBJDUMP=$OBJDUMP
8203 # Extract the first word of "objdump", so it can be a program name with args.
8204 set dummy objdump; ac_word=$2
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8206 $as_echo_n "checking for $ac_word... " >&6; }
8207 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
8208 $as_echo_n "(cached) " >&6
8210 if test -n "$ac_ct_OBJDUMP"; then
8211 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8217 test -z "$as_dir" && as_dir=.
8218 for ac_exec_ext in '' $ac_executable_extensions; do
8219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8220 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8230 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8231 if test -n "$ac_ct_OBJDUMP"; then
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8233 $as_echo "$ac_ct_OBJDUMP" >&6; }
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8236 $as_echo "no" >&6; }
8239 if test "x$ac_ct_OBJDUMP" = x; then
8242 case $cross_compiling:$ac_tool_warned in
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8246 ac_tool_warned=yes ;;
8248 OBJDUMP=$ac_ct_OBJDUMP
8251 OBJDUMP="$ac_cv_prog_OBJDUMP"
8254 test -z "$OBJDUMP" && OBJDUMP=objdump
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8262 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8263 if test "${lt_cv_deplibs_check_method+set}" = set; then :
8264 $as_echo_n "(cached) " >&6
8266 lt_cv_file_magic_cmd='$MAGIC_CMD'
8267 lt_cv_file_magic_test_file=
8268 lt_cv_deplibs_check_method='unknown'
8269 # Need to set the preceding variable on all platforms that support
8270 # interlibrary dependencies.
8271 # 'none' -- dependencies not supported.
8272 # `unknown' -- same as none, but documents that we really don't know.
8273 # 'pass_all' -- all dependencies passed with no checks.
8274 # 'test_compile' -- check by making test program.
8275 # 'file_magic [[regex]]' -- check by looking for files in library path
8276 # which responds to the $file_magic_cmd with a given extended regex.
8277 # If you have `file' or equivalent on your system and you're not sure
8278 # whether `pass_all' will *always* work, you probably want this one.
8282 lt_cv_deplibs_check_method=pass_all
8286 lt_cv_deplibs_check_method=pass_all
8290 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8291 lt_cv_file_magic_cmd='/usr/bin/file -L'
8292 lt_cv_file_magic_test_file=/shlib/libc.so
8296 # func_win32_libid is a shell function defined in ltmain.sh
8297 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8298 lt_cv_file_magic_cmd='func_win32_libid'
8302 # Base MSYS/MinGW do not provide the 'file' command needed by
8303 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8304 # unless we find 'file', for example because we are cross-compiling.
8305 if ( file / ) >/dev/null 2>&1; then
8306 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8307 lt_cv_file_magic_cmd='func_win32_libid'
8309 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8310 lt_cv_file_magic_cmd='$OBJDUMP -f'
8315 # use the weaker test based on 'objdump'. See mingw*.
8316 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8317 lt_cv_file_magic_cmd='$OBJDUMP -f'
8320 darwin* | rhapsody*)
8321 lt_cv_deplibs_check_method=pass_all
8324 freebsd* | dragonfly*)
8325 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8328 # Not sure whether the presence of OpenBSD here was a mistake.
8329 # Let's accept both of them until this is cleared up.
8330 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8331 lt_cv_file_magic_cmd=/usr/bin/file
8332 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8336 lt_cv_deplibs_check_method=pass_all
8341 lt_cv_deplibs_check_method=pass_all
8344 hpux10.20* | hpux11*)
8345 lt_cv_file_magic_cmd=/usr/bin/file
8348 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8349 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8352 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
8353 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8356 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8357 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8363 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8364 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8367 irix5* | irix6* | nonstopux*)
8369 *-32|*"-32 ") libmagic=32-bit;;
8370 *-n32|*"-n32 ") libmagic=N32;;
8371 *-64|*"-64 ") libmagic=64-bit;;
8372 *) libmagic=never-match;;
8374 lt_cv_deplibs_check_method=pass_all
8377 # This must be Linux ELF.
8378 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8379 lt_cv_deplibs_check_method=pass_all
8382 netbsd* | netbsdelf*-gnu)
8383 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8384 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8386 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8391 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8392 lt_cv_file_magic_cmd=/usr/bin/file
8393 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8397 lt_cv_deplibs_check_method=pass_all
8401 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8402 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8404 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8408 osf3* | osf4* | osf5*)
8409 lt_cv_deplibs_check_method=pass_all
8413 lt_cv_deplibs_check_method=pass_all
8417 lt_cv_deplibs_check_method=pass_all
8420 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8421 lt_cv_deplibs_check_method=pass_all
8425 case $host_vendor in
8427 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]'
8428 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8431 lt_cv_deplibs_check_method=pass_all
8434 lt_cv_file_magic_cmd='/bin/file'
8435 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8438 lt_cv_file_magic_cmd='/bin/file'
8439 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8440 lt_cv_file_magic_test_file=/lib/libc.so
8443 lt_cv_deplibs_check_method=pass_all
8446 lt_cv_deplibs_check_method=pass_all
8452 lt_cv_deplibs_check_method=pass_all
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8458 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8459 file_magic_cmd=$lt_cv_file_magic_cmd
8460 deplibs_check_method=$lt_cv_deplibs_check_method
8461 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8474 if test -n "$ac_tool_prefix"; then
8475 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8476 set dummy ${ac_tool_prefix}ar; ac_word=$2
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8478 $as_echo_n "checking for $ac_word... " >&6; }
8479 if test "${ac_cv_prog_AR+set}" = set; then :
8480 $as_echo_n "(cached) " >&6
8482 if test -n "$AR"; then
8483 ac_cv_prog_AR="$AR" # Let the user override the test.
8485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8489 test -z "$as_dir" && as_dir=.
8490 for ac_exec_ext in '' $ac_executable_extensions; do
8491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8492 ac_cv_prog_AR="${ac_tool_prefix}ar"
8493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8503 if test -n "$AR"; then
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8505 $as_echo "$AR" >&6; }
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8508 $as_echo "no" >&6; }
8513 if test -z "$ac_cv_prog_AR"; then
8515 # Extract the first word of "ar", so it can be a program name with args.
8516 set dummy ar; ac_word=$2
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8518 $as_echo_n "checking for $ac_word... " >&6; }
8519 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8520 $as_echo_n "(cached) " >&6
8522 if test -n "$ac_ct_AR"; then
8523 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8529 test -z "$as_dir" && as_dir=.
8530 for ac_exec_ext in '' $ac_executable_extensions; do
8531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8532 ac_cv_prog_ac_ct_AR="ar"
8533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8542 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8543 if test -n "$ac_ct_AR"; then
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8545 $as_echo "$ac_ct_AR" >&6; }
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548 $as_echo "no" >&6; }
8551 if test "x$ac_ct_AR" = x; then
8554 case $cross_compiling:$ac_tool_warned in
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8558 ac_tool_warned=yes ;;
8566 test -z "$AR" && AR=ar
8567 test -z "$AR_FLAGS" && AR_FLAGS=cru
8579 if test -n "$ac_tool_prefix"; then
8580 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8581 set dummy ${ac_tool_prefix}strip; ac_word=$2
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583 $as_echo_n "checking for $ac_word... " >&6; }
8584 if test "${ac_cv_prog_STRIP+set}" = set; then :
8585 $as_echo_n "(cached) " >&6
8587 if test -n "$STRIP"; then
8588 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8594 test -z "$as_dir" && as_dir=.
8595 for ac_exec_ext in '' $ac_executable_extensions; do
8596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8597 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8607 STRIP=$ac_cv_prog_STRIP
8608 if test -n "$STRIP"; then
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8610 $as_echo "$STRIP" >&6; }
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8613 $as_echo "no" >&6; }
8618 if test -z "$ac_cv_prog_STRIP"; then
8620 # Extract the first word of "strip", so it can be a program name with args.
8621 set dummy strip; ac_word=$2
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8623 $as_echo_n "checking for $ac_word... " >&6; }
8624 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8625 $as_echo_n "(cached) " >&6
8627 if test -n "$ac_ct_STRIP"; then
8628 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634 test -z "$as_dir" && as_dir=.
8635 for ac_exec_ext in '' $ac_executable_extensions; do
8636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8637 ac_cv_prog_ac_ct_STRIP="strip"
8638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8647 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8648 if test -n "$ac_ct_STRIP"; then
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8650 $as_echo "$ac_ct_STRIP" >&6; }
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8653 $as_echo "no" >&6; }
8656 if test "x$ac_ct_STRIP" = x; then
8659 case $cross_compiling:$ac_tool_warned in
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8663 ac_tool_warned=yes ;;
8668 STRIP="$ac_cv_prog_STRIP"
8671 test -z "$STRIP" && STRIP=:
8678 if test -n "$ac_tool_prefix"; then
8679 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8680 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8682 $as_echo_n "checking for $ac_word... " >&6; }
8683 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8684 $as_echo_n "(cached) " >&6
8686 if test -n "$RANLIB"; then
8687 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8693 test -z "$as_dir" && as_dir=.
8694 for ac_exec_ext in '' $ac_executable_extensions; do
8695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8696 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8706 RANLIB=$ac_cv_prog_RANLIB
8707 if test -n "$RANLIB"; then
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8709 $as_echo "$RANLIB" >&6; }
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8712 $as_echo "no" >&6; }
8717 if test -z "$ac_cv_prog_RANLIB"; then
8718 ac_ct_RANLIB=$RANLIB
8719 # Extract the first word of "ranlib", so it can be a program name with args.
8720 set dummy ranlib; ac_word=$2
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8722 $as_echo_n "checking for $ac_word... " >&6; }
8723 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8724 $as_echo_n "(cached) " >&6
8726 if test -n "$ac_ct_RANLIB"; then
8727 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8733 test -z "$as_dir" && as_dir=.
8734 for ac_exec_ext in '' $ac_executable_extensions; do
8735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8736 ac_cv_prog_ac_ct_RANLIB="ranlib"
8737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8746 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8747 if test -n "$ac_ct_RANLIB"; then
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8749 $as_echo "$ac_ct_RANLIB" >&6; }
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8752 $as_echo "no" >&6; }
8755 if test "x$ac_ct_RANLIB" = x; then
8758 case $cross_compiling:$ac_tool_warned in
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8762 ac_tool_warned=yes ;;
8764 RANLIB=$ac_ct_RANLIB
8767 RANLIB="$ac_cv_prog_RANLIB"
8770 test -z "$RANLIB" && RANLIB=:
8777 # Determine commands to create old-style static archives.
8778 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8779 old_postinstall_cmds='chmod 644 $oldlib'
8780 old_postuninstall_cmds=
8782 if test -n "$RANLIB"; then
8785 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8788 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8791 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8827 # If no C compiler was specified, use CC.
8830 # If no C compiler flags were specified, use CFLAGS.
8831 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8833 # Allow CC to be a program name with arguments.
8837 # Check for command to grab the raw symbol name followed by C symbol from nm.
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8839 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8840 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8841 $as_echo_n "(cached) " >&6
8844 # These are sane defaults that work on at least a few old systems.
8845 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8847 # Character class describing NM global symbol codes.
8848 symcode='[BCDEGRST]'
8850 # Regexp to match symbols that can be accessed directly from C.
8851 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8853 # Define system-specific variables.
8858 cygwin* | mingw* | pw32* | cegcc*)
8859 symcode='[ABCDGISTW]'
8862 if test "$host_cpu" = ia64; then
8863 symcode='[ABCDEGRST]'
8867 symcode='[BCDEGRST]'
8870 symcode='[BCDEGQRST]'
8881 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8889 # If we're using GNU nm, then use its standard symbol codes.
8890 case `$NM -V 2>&1` in
8891 *GNU* | *'with BFD'*)
8892 symcode='[ABCDGIRSTW]' ;;
8895 # Transform an extracted symbol line into a proper C declaration.
8896 # Some systems (esp. on ia64) link data and code symbols differently,
8897 # so use this general approach.
8898 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8900 # Transform an extracted symbol line into symbol name and symbol address
8901 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8902 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'"
8904 # Handle CRLF in mingw tool chain
8908 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8912 # Try without a prefix underscore, then with it.
8913 for ac_symprfx in "" "_"; do
8915 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8916 symxfrm="\\1 $ac_symprfx\\2 \\2"
8918 # Write the raw and C identifiers.
8919 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8920 # Fake it for dumpbin and say T for any non-static function
8921 # and D for any global variable.
8922 # Also find C++ and __fastcall symbols from MSVC++,
8923 # which start with @ or ?.
8924 lt_cv_sys_global_symbol_pipe="$AWK '"\
8925 " {last_section=section; section=\$ 3};"\
8926 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8927 " \$ 0!~/External *\|/{next};"\
8928 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8929 " {if(hide[section]) next};"\
8930 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8931 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8932 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8933 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8934 " ' prfx=^$ac_symprfx"
8936 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8939 # Check to see that the pipe works correctly.
8943 cat > conftest.$ac_ext <<_LT_EOF
8948 void nm_test_func(void);
8949 void nm_test_func(void){}
8953 int main(){nm_test_var='a';nm_test_func();return(0);}
8956 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8957 (eval $ac_compile) 2>&5
8959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8960 test $ac_status = 0; }; then
8961 # Now try to grab the symbols.
8963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
8964 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8967 test $ac_status = 0; } && test -s "$nlist"; then
8968 # Try sorting and uniquifying the output.
8969 if sort "$nlist" | uniq > "$nlist"T; then
8970 mv -f "$nlist"T "$nlist"
8975 # Make sure that we snagged all the symbols we need.
8976 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8977 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8978 cat <<_LT_EOF > conftest.$ac_ext
8984 # Now generate the symbol file.
8985 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8987 cat <<_LT_EOF >> conftest.$ac_ext
8989 /* The mapping between symbol names and symbols. */
8994 lt__PROGRAM__LTX_preloaded_symbols[] =
8996 { "@PROGRAM@", (void *) 0 },
8998 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8999 cat <<\_LT_EOF >> conftest.$ac_ext
9003 /* This works around a problem in FreeBSD linker */
9004 #ifdef FREEBSD_WORKAROUND
9005 static const void *lt_preloaded_setup() {
9006 return lt__PROGRAM__LTX_preloaded_symbols;
9014 # Now try linking the two files.
9015 mv conftest.$ac_objext conftstm.$ac_objext
9016 lt_save_LIBS="$LIBS"
9017 lt_save_CFLAGS="$CFLAGS"
9018 LIBS="conftstm.$ac_objext"
9019 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9021 (eval $ac_link) 2>&5
9023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9024 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9027 LIBS="$lt_save_LIBS"
9028 CFLAGS="$lt_save_CFLAGS"
9030 echo "cannot find nm_test_func in $nlist" >&5
9033 echo "cannot find nm_test_var in $nlist" >&5
9036 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9039 echo "$progname: failed program was:" >&5
9040 cat conftest.$ac_ext >&5
9042 rm -rf conftest* conftst*
9044 # Do not use the global_symbol_pipe unless it works.
9045 if test "$pipe_works" = yes; then
9048 lt_cv_sys_global_symbol_pipe=
9054 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9055 lt_cv_sys_global_symbol_to_cdecl=
9057 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9059 $as_echo "failed" >&6; }
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9062 $as_echo "ok" >&6; }
9086 # Check whether --enable-libtool-lock was given.
9087 if test "${enable_libtool_lock+set}" = set; then :
9088 enableval=$enable_libtool_lock;
9091 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9093 # Some flags need to be propagated to the compiler or linker for good
9097 # Find out which ABI we are using.
9098 echo 'int i;' > conftest.$ac_ext
9099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9100 (eval $ac_compile) 2>&5
9102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9103 test $ac_status = 0; }; then
9104 case `/usr/bin/file conftest.$ac_objext` in
9116 # Find out which ABI we are using.
9117 echo '#line 9117 "configure"' > conftest.$ac_ext
9118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9119 (eval $ac_compile) 2>&5
9121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9122 test $ac_status = 0; }; then
9123 if test "$lt_cv_prog_gnu_ld" = yes; then
9124 case `/usr/bin/file conftest.$ac_objext` in
9126 LD="${LD-ld} -melf32bsmip"
9129 LD="${LD-ld} -melf32bmipn32"
9132 LD="${LD-ld} -melf64bmip"
9136 case `/usr/bin/file conftest.$ac_objext` in
9152 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9153 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9154 # Find out which ABI we are using.
9155 echo 'int i;' > conftest.$ac_ext
9156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9157 (eval $ac_compile) 2>&5
9159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9160 test $ac_status = 0; }; then
9161 case `/usr/bin/file conftest.o` in
9164 x86_64-*kfreebsd*-gnu)
9165 LD="${LD-ld} -m elf_i386_fbsd"
9168 LD="${LD-ld} -m elf_i386"
9170 ppc64-*linux*|powerpc64-*linux*)
9171 LD="${LD-ld} -m elf32ppclinux"
9174 LD="${LD-ld} -m elf_s390"
9177 LD="${LD-ld} -m elf32_sparc"
9183 x86_64-*kfreebsd*-gnu)
9184 LD="${LD-ld} -m elf_x86_64_fbsd"
9187 LD="${LD-ld} -m elf_x86_64"
9189 ppc*-*linux*|powerpc*-*linux*)
9190 LD="${LD-ld} -m elf64ppc"
9192 s390*-*linux*|s390*-*tpf*)
9193 LD="${LD-ld} -m elf64_s390"
9196 LD="${LD-ld} -m elf64_sparc"
9206 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9207 SAVE_CFLAGS="$CFLAGS"
9208 CFLAGS="$CFLAGS -belf"
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9210 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9211 if test "${lt_cv_cc_needs_belf+set}" = set; then :
9212 $as_echo_n "(cached) " >&6
9215 ac_cpp='$CPP $CPPFLAGS'
9216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221 /* end confdefs.h. */
9230 if ac_fn_c_try_link "$LINENO"; then :
9231 lt_cv_cc_needs_belf=yes
9233 lt_cv_cc_needs_belf=no
9235 rm -f core conftest.err conftest.$ac_objext \
9236 conftest$ac_exeext conftest.$ac_ext
9238 ac_cpp='$CPP $CPPFLAGS'
9239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9245 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9246 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9247 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9248 CFLAGS="$SAVE_CFLAGS"
9252 # Find out which ABI we are using.
9253 echo 'int i;' > conftest.$ac_ext
9254 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9255 (eval $ac_compile) 2>&5
9257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9258 test $ac_status = 0; }; then
9259 case `/usr/bin/file conftest.o` in
9261 case $lt_cv_prog_gnu_ld in
9262 yes*) LD="${LD-ld} -m elf64_sparc" ;;
9264 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9276 need_locks="$enable_libtool_lock"
9280 rhapsody* | darwin*)
9281 if test -n "$ac_tool_prefix"; then
9282 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9283 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9285 $as_echo_n "checking for $ac_word... " >&6; }
9286 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
9287 $as_echo_n "(cached) " >&6
9289 if test -n "$DSYMUTIL"; then
9290 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9296 test -z "$as_dir" && as_dir=.
9297 for ac_exec_ext in '' $ac_executable_extensions; do
9298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9299 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9309 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9310 if test -n "$DSYMUTIL"; then
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9312 $as_echo "$DSYMUTIL" >&6; }
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9315 $as_echo "no" >&6; }
9320 if test -z "$ac_cv_prog_DSYMUTIL"; then
9321 ac_ct_DSYMUTIL=$DSYMUTIL
9322 # Extract the first word of "dsymutil", so it can be a program name with args.
9323 set dummy dsymutil; ac_word=$2
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9325 $as_echo_n "checking for $ac_word... " >&6; }
9326 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
9327 $as_echo_n "(cached) " >&6
9329 if test -n "$ac_ct_DSYMUTIL"; then
9330 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9336 test -z "$as_dir" && as_dir=.
9337 for ac_exec_ext in '' $ac_executable_extensions; do
9338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9339 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9349 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9350 if test -n "$ac_ct_DSYMUTIL"; then
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9352 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9355 $as_echo "no" >&6; }
9358 if test "x$ac_ct_DSYMUTIL" = x; then
9361 case $cross_compiling:$ac_tool_warned in
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9365 ac_tool_warned=yes ;;
9367 DSYMUTIL=$ac_ct_DSYMUTIL
9370 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9373 if test -n "$ac_tool_prefix"; then
9374 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9375 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9377 $as_echo_n "checking for $ac_word... " >&6; }
9378 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9379 $as_echo_n "(cached) " >&6
9381 if test -n "$NMEDIT"; then
9382 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9388 test -z "$as_dir" && as_dir=.
9389 for ac_exec_ext in '' $ac_executable_extensions; do
9390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9391 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9401 NMEDIT=$ac_cv_prog_NMEDIT
9402 if test -n "$NMEDIT"; then
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9404 $as_echo "$NMEDIT" >&6; }
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9407 $as_echo "no" >&6; }
9412 if test -z "$ac_cv_prog_NMEDIT"; then
9413 ac_ct_NMEDIT=$NMEDIT
9414 # Extract the first word of "nmedit", so it can be a program name with args.
9415 set dummy nmedit; ac_word=$2
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9417 $as_echo_n "checking for $ac_word... " >&6; }
9418 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9419 $as_echo_n "(cached) " >&6
9421 if test -n "$ac_ct_NMEDIT"; then
9422 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9428 test -z "$as_dir" && as_dir=.
9429 for ac_exec_ext in '' $ac_executable_extensions; do
9430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9431 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9441 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9442 if test -n "$ac_ct_NMEDIT"; then
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9444 $as_echo "$ac_ct_NMEDIT" >&6; }
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9447 $as_echo "no" >&6; }
9450 if test "x$ac_ct_NMEDIT" = x; then
9453 case $cross_compiling:$ac_tool_warned in
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9457 ac_tool_warned=yes ;;
9459 NMEDIT=$ac_ct_NMEDIT
9462 NMEDIT="$ac_cv_prog_NMEDIT"
9465 if test -n "$ac_tool_prefix"; then
9466 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9467 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9469 $as_echo_n "checking for $ac_word... " >&6; }
9470 if test "${ac_cv_prog_LIPO+set}" = set; then :
9471 $as_echo_n "(cached) " >&6
9473 if test -n "$LIPO"; then
9474 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9480 test -z "$as_dir" && as_dir=.
9481 for ac_exec_ext in '' $ac_executable_extensions; do
9482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9483 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9493 LIPO=$ac_cv_prog_LIPO
9494 if test -n "$LIPO"; then
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9496 $as_echo "$LIPO" >&6; }
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9499 $as_echo "no" >&6; }
9504 if test -z "$ac_cv_prog_LIPO"; then
9506 # Extract the first word of "lipo", so it can be a program name with args.
9507 set dummy lipo; ac_word=$2
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9509 $as_echo_n "checking for $ac_word... " >&6; }
9510 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9511 $as_echo_n "(cached) " >&6
9513 if test -n "$ac_ct_LIPO"; then
9514 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9520 test -z "$as_dir" && as_dir=.
9521 for ac_exec_ext in '' $ac_executable_extensions; do
9522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9523 ac_cv_prog_ac_ct_LIPO="lipo"
9524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9533 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9534 if test -n "$ac_ct_LIPO"; then
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9536 $as_echo "$ac_ct_LIPO" >&6; }
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9539 $as_echo "no" >&6; }
9542 if test "x$ac_ct_LIPO" = x; then
9545 case $cross_compiling:$ac_tool_warned in
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9549 ac_tool_warned=yes ;;
9554 LIPO="$ac_cv_prog_LIPO"
9557 if test -n "$ac_tool_prefix"; then
9558 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9559 set dummy ${ac_tool_prefix}otool; ac_word=$2
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9561 $as_echo_n "checking for $ac_word... " >&6; }
9562 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9563 $as_echo_n "(cached) " >&6
9565 if test -n "$OTOOL"; then
9566 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9572 test -z "$as_dir" && as_dir=.
9573 for ac_exec_ext in '' $ac_executable_extensions; do
9574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9575 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9585 OTOOL=$ac_cv_prog_OTOOL
9586 if test -n "$OTOOL"; then
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9588 $as_echo "$OTOOL" >&6; }
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9591 $as_echo "no" >&6; }
9596 if test -z "$ac_cv_prog_OTOOL"; then
9598 # Extract the first word of "otool", so it can be a program name with args.
9599 set dummy otool; ac_word=$2
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9601 $as_echo_n "checking for $ac_word... " >&6; }
9602 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9603 $as_echo_n "(cached) " >&6
9605 if test -n "$ac_ct_OTOOL"; then
9606 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9612 test -z "$as_dir" && as_dir=.
9613 for ac_exec_ext in '' $ac_executable_extensions; do
9614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9615 ac_cv_prog_ac_ct_OTOOL="otool"
9616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9625 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9626 if test -n "$ac_ct_OTOOL"; then
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9628 $as_echo "$ac_ct_OTOOL" >&6; }
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9631 $as_echo "no" >&6; }
9634 if test "x$ac_ct_OTOOL" = x; then
9637 case $cross_compiling:$ac_tool_warned in
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9641 ac_tool_warned=yes ;;
9646 OTOOL="$ac_cv_prog_OTOOL"
9649 if test -n "$ac_tool_prefix"; then
9650 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9651 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9653 $as_echo_n "checking for $ac_word... " >&6; }
9654 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9655 $as_echo_n "(cached) " >&6
9657 if test -n "$OTOOL64"; then
9658 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9664 test -z "$as_dir" && as_dir=.
9665 for ac_exec_ext in '' $ac_executable_extensions; do
9666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9667 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9677 OTOOL64=$ac_cv_prog_OTOOL64
9678 if test -n "$OTOOL64"; then
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9680 $as_echo "$OTOOL64" >&6; }
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9683 $as_echo "no" >&6; }
9688 if test -z "$ac_cv_prog_OTOOL64"; then
9689 ac_ct_OTOOL64=$OTOOL64
9690 # Extract the first word of "otool64", so it can be a program name with args.
9691 set dummy otool64; ac_word=$2
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9693 $as_echo_n "checking for $ac_word... " >&6; }
9694 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9695 $as_echo_n "(cached) " >&6
9697 if test -n "$ac_ct_OTOOL64"; then
9698 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9704 test -z "$as_dir" && as_dir=.
9705 for ac_exec_ext in '' $ac_executable_extensions; do
9706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9707 ac_cv_prog_ac_ct_OTOOL64="otool64"
9708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9717 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9718 if test -n "$ac_ct_OTOOL64"; then
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9720 $as_echo "$ac_ct_OTOOL64" >&6; }
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9723 $as_echo "no" >&6; }
9726 if test "x$ac_ct_OTOOL64" = x; then
9729 case $cross_compiling:$ac_tool_warned in
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9733 ac_tool_warned=yes ;;
9735 OTOOL64=$ac_ct_OTOOL64
9738 OTOOL64="$ac_cv_prog_OTOOL64"
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9768 $as_echo_n "checking for -single_module linker flag... " >&6; }
9769 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9770 $as_echo_n "(cached) " >&6
9772 lt_cv_apple_cc_single_mod=no
9773 if test -z "${LT_MULTI_MODULE}"; then
9774 # By default we will add the -single_module flag. You can override
9775 # by either setting the environment variable LT_MULTI_MODULE
9776 # non-empty at configure time, or by adding -multi_module to the
9778 rm -rf libconftest.dylib*
9779 echo "int foo(void){return 1;}" > conftest.c
9780 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9781 -dynamiclib -Wl,-single_module conftest.c" >&5
9782 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9783 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9785 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9786 lt_cv_apple_cc_single_mod=yes
9788 cat conftest.err >&5
9790 rm -rf libconftest.dylib*
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9795 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9797 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9798 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9799 $as_echo_n "(cached) " >&6
9801 lt_cv_ld_exported_symbols_list=no
9802 save_LDFLAGS=$LDFLAGS
9803 echo "_main" > conftest.sym
9804 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9806 /* end confdefs.h. */
9815 if ac_fn_c_try_link "$LINENO"; then :
9816 lt_cv_ld_exported_symbols_list=yes
9818 lt_cv_ld_exported_symbols_list=no
9820 rm -f core conftest.err conftest.$ac_objext \
9821 conftest$ac_exeext conftest.$ac_ext
9822 LDFLAGS="$save_LDFLAGS"
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9826 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9828 rhapsody* | darwin1.[012])
9829 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9831 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9832 darwin*) # darwin 5.x on
9833 # if running on 10.5 or later, the deployment target defaults
9834 # to the OS version, if on x86, and 10.4, the deployment
9835 # target defaults to 10.4. Don't you love it?
9836 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9837 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9838 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9840 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9842 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9846 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9847 _lt_dar_single_mod='$single_module'
9849 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9850 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9852 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9854 if test "$DSYMUTIL" != ":"; then
9855 _lt_dsymutil='~$DSYMUTIL $lib || :'
9862 for ac_header in dlfcn.h
9864 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9866 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9867 cat >>confdefs.h <<_ACEOF
9868 #define HAVE_DLFCN_H 1
9885 # Check whether --enable-shared was given.
9886 if test "${enable_shared+set}" = set; then :
9887 enableval=$enable_shared; p=${PACKAGE-default}
9889 yes) enable_shared=yes ;;
9890 no) enable_shared=no ;;
9893 # Look at the argument we got. We use all the common list separators.
9894 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9895 for pkg in $enableval; do
9897 if test "X$pkg" = "X$p"; then
9916 # Check whether --enable-static was given.
9917 if test "${enable_static+set}" = set; then :
9918 enableval=$enable_static; p=${PACKAGE-default}
9920 yes) enable_static=yes ;;
9921 no) enable_static=no ;;
9924 # Look at the argument we got. We use all the common list separators.
9925 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9926 for pkg in $enableval; do
9928 if test "X$pkg" = "X$p"; then
9948 # Check whether --with-pic was given.
9949 if test "${with_pic+set}" = set; then :
9950 withval=$with_pic; pic_mode="$withval"
9956 test -z "$pic_mode" && pic_mode=default
9964 # Check whether --enable-fast-install was given.
9965 if test "${enable_fast_install+set}" = set; then :
9966 enableval=$enable_fast_install; p=${PACKAGE-default}
9968 yes) enable_fast_install=yes ;;
9969 no) enable_fast_install=no ;;
9971 enable_fast_install=no
9972 # Look at the argument we got. We use all the common list separators.
9973 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9974 for pkg in $enableval; do
9976 if test "X$pkg" = "X$p"; then
9977 enable_fast_install=yes
9984 enable_fast_install=yes
9997 # This can be used to rebuild libtool when needed
9998 LIBTOOL_DEPS="$ltmain"
10000 # Always use our own libtool.
10001 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10027 test -z "$LN_S" && LN_S="ln -s"
10042 if test -n "${ZSH_VERSION+set}" ; then
10043 setopt NO_GLOB_SUBST
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10047 $as_echo_n "checking for objdir... " >&6; }
10048 if test "${lt_cv_objdir+set}" = set; then :
10049 $as_echo_n "(cached) " >&6
10051 rm -f .libs 2>/dev/null
10052 mkdir .libs 2>/dev/null
10053 if test -d .libs; then
10056 # MS-DOS does not allow filenames that begin with a dot.
10059 rmdir .libs 2>/dev/null
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10062 $as_echo "$lt_cv_objdir" >&6; }
10063 objdir=$lt_cv_objdir
10069 cat >>confdefs.h <<_ACEOF
10070 #define LT_OBJDIR "$lt_cv_objdir/"
10091 # AIX sometimes has problems with the GCC collect2 program. For some
10092 # reason, if we set the COLLECT_NAMES environment variable, the problems
10093 # vanish in a puff of smoke.
10094 if test "X${COLLECT_NAMES+set}" != Xset; then
10096 export COLLECT_NAMES
10101 # Sed substitution that helps us do robust quoting. It backslashifies
10102 # metacharacters that are still active within double-quoted strings.
10103 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10105 # Same as above, but do not quote variable references.
10106 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10108 # Sed substitution to delay expansion of an escaped shell variable in a
10109 # double_quote_subst'ed string.
10110 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10112 # Sed substitution to delay expansion of an escaped single quote.
10113 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10115 # Sed substitution to avoid accidental globbing in evaled expressions
10116 no_glob_subst='s/\*/\\\*/g'
10118 # Global variables:
10120 can_build_shared=yes
10122 # All known linkers require a `.a' archive for static linking (except MSVC,
10123 # which needs '.lib').
10126 with_gnu_ld="$lt_cv_prog_gnu_ld"
10129 old_CFLAGS="$CFLAGS"
10131 # Set sane defaults for various variables
10132 test -z "$CC" && CC=cc
10133 test -z "$LTCC" && LTCC=$CC
10134 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10135 test -z "$LD" && LD=ld
10136 test -z "$ac_objext" && ac_objext=o
10138 for cc_temp in $compiler""; do
10140 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10141 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10146 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10149 # Only perform the check for file, if the check method requires it
10150 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10151 case $deplibs_check_method in
10153 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10155 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10156 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10157 $as_echo_n "(cached) " >&6
10161 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10164 lt_save_MAGIC_CMD="$MAGIC_CMD"
10165 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10166 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10167 for ac_dir in $ac_dummy; do
10169 test -z "$ac_dir" && ac_dir=.
10170 if test -f $ac_dir/${ac_tool_prefix}file; then
10171 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10172 if test -n "$file_magic_test_file"; then
10173 case $deplibs_check_method in
10175 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10176 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10177 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10178 $EGREP "$file_magic_regex" > /dev/null; then
10183 *** Warning: the command libtool uses to detect shared libraries,
10184 *** $file_magic_cmd, produces output that libtool cannot recognize.
10185 *** The result is that libtool may fail to recognize shared libraries
10186 *** as such. This will affect the creation of libtool libraries that
10187 *** depend on shared libraries, but programs linked with such libtool
10188 *** libraries will work regardless of this problem. Nevertheless, you
10189 *** may want to report the problem to your system manager and/or to
10190 *** bug-libtool@gnu.org
10200 MAGIC_CMD="$lt_save_MAGIC_CMD"
10205 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10206 if test -n "$MAGIC_CMD"; then
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10208 $as_echo "$MAGIC_CMD" >&6; }
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10211 $as_echo "no" >&6; }
10218 if test -z "$lt_cv_path_MAGIC_CMD"; then
10219 if test -n "$ac_tool_prefix"; then
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10221 $as_echo_n "checking for file... " >&6; }
10222 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10223 $as_echo_n "(cached) " >&6
10227 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10230 lt_save_MAGIC_CMD="$MAGIC_CMD"
10231 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10232 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10233 for ac_dir in $ac_dummy; do
10235 test -z "$ac_dir" && ac_dir=.
10236 if test -f $ac_dir/file; then
10237 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10238 if test -n "$file_magic_test_file"; then
10239 case $deplibs_check_method in
10241 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10242 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10243 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10244 $EGREP "$file_magic_regex" > /dev/null; then
10249 *** Warning: the command libtool uses to detect shared libraries,
10250 *** $file_magic_cmd, produces output that libtool cannot recognize.
10251 *** The result is that libtool may fail to recognize shared libraries
10252 *** as such. This will affect the creation of libtool libraries that
10253 *** depend on shared libraries, but programs linked with such libtool
10254 *** libraries will work regardless of this problem. Nevertheless, you
10255 *** may want to report the problem to your system manager and/or to
10256 *** bug-libtool@gnu.org
10266 MAGIC_CMD="$lt_save_MAGIC_CMD"
10271 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10272 if test -n "$MAGIC_CMD"; then
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10274 $as_echo "$MAGIC_CMD" >&6; }
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10277 $as_echo "no" >&6; }
10290 # Use C for the default configuration in the libtool script
10294 ac_cpp='$CPP $CPPFLAGS'
10295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10300 # Source file extension for C test sources.
10303 # Object file extension for compiled C test sources.
10307 # Code to be used in simple compile tests
10308 lt_simple_compile_test_code="int some_variable = 0;"
10310 # Code to be used in simple link tests
10311 lt_simple_link_test_code='int main(){return(0);}'
10319 # If no C compiler was specified, use CC.
10322 # If no C compiler flags were specified, use CFLAGS.
10323 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10325 # Allow CC to be a program name with arguments.
10328 # Save the default compiler, since it gets overwritten when the other
10329 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10330 compiler_DEFAULT=$CC
10332 # save warnings/boilerplate of simple test code
10333 ac_outfile=conftest.$ac_objext
10334 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10335 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10336 _lt_compiler_boilerplate=`cat conftest.err`
10339 ac_outfile=conftest.$ac_objext
10340 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10341 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10342 _lt_linker_boilerplate=`cat conftest.err`
10347 ## There is no encapsulation within the following macros, do not change
10348 ## the running order or otherwise move them around unless you know exactly
10349 ## what you are doing...
10350 if test -n "$compiler"; then
10352 lt_prog_compiler_no_builtin_flag=
10354 if test "$GCC" = yes; then
10355 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10358 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10359 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10360 $as_echo_n "(cached) " >&6
10362 lt_cv_prog_compiler_rtti_exceptions=no
10363 ac_outfile=conftest.$ac_objext
10364 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10365 lt_compiler_flag="-fno-rtti -fno-exceptions"
10366 # Insert the option either (1) after the last *FLAGS variable, or
10367 # (2) before a word containing "conftest.", or (3) at the end.
10368 # Note that $ac_compile itself does not contain backslashes and begins
10369 # with a dollar sign (not a hyphen), so the echo should work correctly.
10370 # The option is referenced via a variable to avoid confusing sed.
10371 lt_compile=`echo "$ac_compile" | $SED \
10372 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10373 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10374 -e 's:$: $lt_compiler_flag:'`
10375 (eval echo "\"\$as_me:10375: $lt_compile\"" >&5)
10376 (eval "$lt_compile" 2>conftest.err)
10378 cat conftest.err >&5
10379 echo "$as_me:10379: \$? = $ac_status" >&5
10380 if (exit $ac_status) && test -s "$ac_outfile"; then
10381 # The compiler can only warn and ignore the option if not recognized
10382 # So say no if there are warnings other than the usual output.
10383 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10384 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10385 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10386 lt_cv_prog_compiler_rtti_exceptions=yes
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10393 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10395 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10396 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10408 lt_prog_compiler_wl=
10409 lt_prog_compiler_pic=
10410 lt_prog_compiler_static=
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10413 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10415 if test "$GCC" = yes; then
10416 lt_prog_compiler_wl='-Wl,'
10417 lt_prog_compiler_static='-static'
10421 # All AIX code is PIC.
10422 if test "$host_cpu" = ia64; then
10423 # AIX 5 now supports IA64 processor
10424 lt_prog_compiler_static='-Bstatic'
10431 # see comment about AmigaOS4 .so support
10432 lt_prog_compiler_pic='-fPIC'
10435 # FIXME: we need at least 68020 code to build shared libraries, but
10436 # adding the `-m68020' flag to GCC prevents building anything better,
10438 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10443 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10444 # PIC is the default for these OSes.
10447 mingw* | cygwin* | pw32* | os2* | cegcc*)
10448 # This hack is so that the source file can tell whether it is being
10449 # built for inclusion in a dll (and should export symbols for example).
10450 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10451 # (--disable-auto-import) libraries
10452 lt_prog_compiler_pic='-DDLL_EXPORT'
10455 darwin* | rhapsody*)
10456 # PIC is the default on this platform
10457 # Common symbols not allowed in MH_DYLIB files
10458 lt_prog_compiler_pic='-fno-common'
10462 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10463 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10464 # sets the default TLS model and affects inlining.
10470 lt_prog_compiler_pic='-fPIC'
10476 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10477 # Instead, we relocate shared libraries at runtime.
10481 # Just because we use GCC doesn't mean we suddenly get shared libraries
10482 # on systems that don't support them.
10483 lt_prog_compiler_can_build_shared=no
10488 # QNX uses GNU C++, but need to define -shared option too, otherwise
10489 # it will coredump.
10490 lt_prog_compiler_pic='-fPIC -shared'
10494 if test -d /usr/nec; then
10495 lt_prog_compiler_pic=-Kconform_pic
10500 lt_prog_compiler_pic='-fPIC'
10504 # PORTME Check for flag to pass linker flags through the system compiler.
10507 lt_prog_compiler_wl='-Wl,'
10508 if test "$host_cpu" = ia64; then
10509 # AIX 5 now supports IA64 processor
10510 lt_prog_compiler_static='-Bstatic'
10512 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10516 mingw* | cygwin* | pw32* | os2* | cegcc*)
10517 # This hack is so that the source file can tell whether it is being
10518 # built for inclusion in a dll (and should export symbols for example).
10519 lt_prog_compiler_pic='-DDLL_EXPORT'
10522 hpux9* | hpux10* | hpux11*)
10523 lt_prog_compiler_wl='-Wl,'
10524 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10525 # not for PA HP-UX.
10531 lt_prog_compiler_pic='+Z'
10534 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10535 lt_prog_compiler_static='${wl}-a ${wl}archive'
10538 irix5* | irix6* | nonstopux*)
10539 lt_prog_compiler_wl='-Wl,'
10540 # PIC (with -KPIC) is the default.
10541 lt_prog_compiler_static='-non_shared'
10544 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10545 case $cc_basename in
10546 # old Intel for x86_64 which still supported -KPIC.
10548 lt_prog_compiler_wl='-Wl,'
10549 lt_prog_compiler_pic='-KPIC'
10550 lt_prog_compiler_static='-static'
10552 # icc used to be incompatible with GCC.
10553 # ICC 10 doesn't accept -KPIC any more.
10555 lt_prog_compiler_wl='-Wl,'
10556 lt_prog_compiler_pic='-fPIC'
10557 lt_prog_compiler_static='-static'
10559 # Lahey Fortran 8.1.
10561 lt_prog_compiler_wl='-Wl,'
10562 lt_prog_compiler_pic='--shared'
10563 lt_prog_compiler_static='--static'
10565 pgcc* | pgf77* | pgf90* | pgf95*)
10566 # Portland Group compilers (*not* the Pentium gcc compiler,
10567 # which looks to be a dead project)
10568 lt_prog_compiler_wl='-Wl,'
10569 lt_prog_compiler_pic='-fpic'
10570 lt_prog_compiler_static='-Bstatic'
10573 lt_prog_compiler_wl='-Wl,'
10574 # All Alpha code is PIC.
10575 lt_prog_compiler_static='-non_shared'
10578 # IBM XL C 8.0/Fortran 10.1 on PPC
10579 lt_prog_compiler_wl='-Wl,'
10580 lt_prog_compiler_pic='-qpic'
10581 lt_prog_compiler_static='-qstaticlink'
10584 case `$CC -V 2>&1 | sed 5q` in
10587 lt_prog_compiler_pic='-KPIC'
10588 lt_prog_compiler_static='-Bstatic'
10589 lt_prog_compiler_wl='-Wl,'
10592 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10593 lt_prog_compiler_pic='-KPIC'
10594 lt_prog_compiler_static='-Bstatic'
10595 lt_prog_compiler_wl=''
10603 lt_prog_compiler_pic='-KPIC'
10604 lt_prog_compiler_static='-Bstatic'
10608 # QNX uses GNU C++, but need to define -shared option too, otherwise
10609 # it will coredump.
10610 lt_prog_compiler_pic='-fPIC -shared'
10613 osf3* | osf4* | osf5*)
10614 lt_prog_compiler_wl='-Wl,'
10615 # All OSF/1 code is PIC.
10616 lt_prog_compiler_static='-non_shared'
10620 lt_prog_compiler_static='-non_shared'
10624 lt_prog_compiler_pic='-KPIC'
10625 lt_prog_compiler_static='-Bstatic'
10626 case $cc_basename in
10627 f77* | f90* | f95*)
10628 lt_prog_compiler_wl='-Qoption ld ';;
10630 lt_prog_compiler_wl='-Wl,';;
10635 lt_prog_compiler_wl='-Qoption ld '
10636 lt_prog_compiler_pic='-PIC'
10637 lt_prog_compiler_static='-Bstatic'
10640 sysv4 | sysv4.2uw2* | sysv4.3*)
10641 lt_prog_compiler_wl='-Wl,'
10642 lt_prog_compiler_pic='-KPIC'
10643 lt_prog_compiler_static='-Bstatic'
10647 if test -d /usr/nec ;then
10648 lt_prog_compiler_pic='-Kconform_pic'
10649 lt_prog_compiler_static='-Bstatic'
10653 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10654 lt_prog_compiler_wl='-Wl,'
10655 lt_prog_compiler_pic='-KPIC'
10656 lt_prog_compiler_static='-Bstatic'
10660 lt_prog_compiler_wl='-Wl,'
10661 lt_prog_compiler_can_build_shared=no
10665 lt_prog_compiler_pic='-pic'
10666 lt_prog_compiler_static='-Bstatic'
10670 lt_prog_compiler_can_build_shared=no
10676 # For platforms which do not support PIC, -DPIC is meaningless:
10678 lt_prog_compiler_pic=
10681 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10685 $as_echo "$lt_prog_compiler_pic" >&6; }
10693 # Check to make sure the PIC flag actually works.
10695 if test -n "$lt_prog_compiler_pic"; then
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10697 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10698 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10699 $as_echo_n "(cached) " >&6
10701 lt_cv_prog_compiler_pic_works=no
10702 ac_outfile=conftest.$ac_objext
10703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10704 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10705 # Insert the option either (1) after the last *FLAGS variable, or
10706 # (2) before a word containing "conftest.", or (3) at the end.
10707 # Note that $ac_compile itself does not contain backslashes and begins
10708 # with a dollar sign (not a hyphen), so the echo should work correctly.
10709 # The option is referenced via a variable to avoid confusing sed.
10710 lt_compile=`echo "$ac_compile" | $SED \
10711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10713 -e 's:$: $lt_compiler_flag:'`
10714 (eval echo "\"\$as_me:10714: $lt_compile\"" >&5)
10715 (eval "$lt_compile" 2>conftest.err)
10717 cat conftest.err >&5
10718 echo "$as_me:10718: \$? = $ac_status" >&5
10719 if (exit $ac_status) && test -s "$ac_outfile"; then
10720 # The compiler can only warn and ignore the option if not recognized
10721 # So say no if there are warnings other than the usual output.
10722 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10724 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10725 lt_cv_prog_compiler_pic_works=yes
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10732 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10734 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10735 case $lt_prog_compiler_pic in
10737 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10740 lt_prog_compiler_pic=
10741 lt_prog_compiler_can_build_shared=no
10752 # Check to make sure the static flag actually works.
10754 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10756 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10757 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10758 $as_echo_n "(cached) " >&6
10760 lt_cv_prog_compiler_static_works=no
10761 save_LDFLAGS="$LDFLAGS"
10762 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10763 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10764 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10765 # The linker can only warn and ignore the option if not recognized
10766 # So say no if there are warnings
10767 if test -s conftest.err; then
10768 # Append any errors to the config.log.
10769 cat conftest.err 1>&5
10770 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10771 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10772 if diff conftest.exp conftest.er2 >/dev/null; then
10773 lt_cv_prog_compiler_static_works=yes
10776 lt_cv_prog_compiler_static_works=yes
10780 LDFLAGS="$save_LDFLAGS"
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10784 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10786 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10789 lt_prog_compiler_static=
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10799 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10800 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10801 $as_echo_n "(cached) " >&6
10803 lt_cv_prog_compiler_c_o=no
10804 $RM -r conftest 2>/dev/null
10808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10810 lt_compiler_flag="-o out/conftest2.$ac_objext"
10811 # Insert the option either (1) after the last *FLAGS variable, or
10812 # (2) before a word containing "conftest.", or (3) at the end.
10813 # Note that $ac_compile itself does not contain backslashes and begins
10814 # with a dollar sign (not a hyphen), so the echo should work correctly.
10815 lt_compile=`echo "$ac_compile" | $SED \
10816 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10818 -e 's:$: $lt_compiler_flag:'`
10819 (eval echo "\"\$as_me:10819: $lt_compile\"" >&5)
10820 (eval "$lt_compile" 2>out/conftest.err)
10822 cat out/conftest.err >&5
10823 echo "$as_me:10823: \$? = $ac_status" >&5
10824 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10826 # The compiler can only warn and ignore the option if not recognized
10827 # So say no if there are warnings
10828 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10829 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10830 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10831 lt_cv_prog_compiler_c_o=yes
10836 # SGI C++ compiler will create directory out/ii_files/ for
10837 # template instantiation
10838 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10839 $RM out/* && rmdir out
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10846 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10854 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10855 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10856 $as_echo_n "(cached) " >&6
10858 lt_cv_prog_compiler_c_o=no
10859 $RM -r conftest 2>/dev/null
10863 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10865 lt_compiler_flag="-o out/conftest2.$ac_objext"
10866 # Insert the option either (1) after the last *FLAGS variable, or
10867 # (2) before a word containing "conftest.", or (3) at the end.
10868 # Note that $ac_compile itself does not contain backslashes and begins
10869 # with a dollar sign (not a hyphen), so the echo should work correctly.
10870 lt_compile=`echo "$ac_compile" | $SED \
10871 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10872 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10873 -e 's:$: $lt_compiler_flag:'`
10874 (eval echo "\"\$as_me:10874: $lt_compile\"" >&5)
10875 (eval "$lt_compile" 2>out/conftest.err)
10877 cat out/conftest.err >&5
10878 echo "$as_me:10878: \$? = $ac_status" >&5
10879 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10881 # The compiler can only warn and ignore the option if not recognized
10882 # So say no if there are warnings
10883 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10884 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10885 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10886 lt_cv_prog_compiler_c_o=yes
10891 # SGI C++ compiler will create directory out/ii_files/ for
10892 # template instantiation
10893 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10894 $RM out/* && rmdir out
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10901 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10906 hard_links="nottested"
10907 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10908 # do not overwrite the value of need_locks provided by the user
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10910 $as_echo_n "checking if we can lock with hard links... " >&6; }
10913 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10915 ln conftest.a conftest.b 2>&5 || hard_links=no
10916 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10918 $as_echo "$hard_links" >&6; }
10919 if test "$hard_links" = no; then
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10921 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10934 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10937 allow_undefined_flag=
10938 always_export_symbols=no
10940 archive_expsym_cmds=
10941 compiler_needs_object=no
10942 enable_shared_with_static_runtimes=no
10943 export_dynamic_flag_spec=
10944 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10945 hardcode_automatic=no
10947 hardcode_direct_absolute=no
10948 hardcode_libdir_flag_spec=
10949 hardcode_libdir_flag_spec_ld=
10950 hardcode_libdir_separator=
10951 hardcode_minus_L=no
10952 hardcode_shlibpath_var=unsupported
10954 link_all_deplibs=unknown
10956 module_expsym_cmds=
10957 old_archive_from_new_cmds=
10958 old_archive_from_expsyms_cmds=
10959 thread_safe_flag_spec=
10960 whole_archive_flag_spec=
10961 # include_expsyms should be a list of space-separated symbols to be *always*
10962 # included in the symbol list
10964 # exclude_expsyms can be an extended regexp of symbols to exclude
10965 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10966 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10967 # as well as any symbol that contains `d'.
10968 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10969 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10970 # platforms (ab)use it in PIC code, but their linkers get confused if
10971 # the symbol is explicitly referenced. Since portable code cannot
10972 # rely on this symbol name, it's probably fine to never include it in
10973 # preloaded symbol tables.
10974 # Exclude shared library initialization/finalization symbols.
10975 extract_expsyms_cmds=
10978 cygwin* | mingw* | pw32* | cegcc*)
10979 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10980 # When not using gcc, we currently assume that we are using
10981 # Microsoft Visual C++.
10982 if test "$GCC" != yes; then
10987 # we just hope/assume this is gcc and not c89 (= MSVC++)
10993 linux* | k*bsd*-gnu)
10994 link_all_deplibs=no
10999 if test "$with_gnu_ld" = yes; then
11000 # If archive_cmds runs LD, not CC, wlarc should be empty
11003 # Set some defaults for GNU ld with shared library support. These
11004 # are reset later if shared libraries are not supported. Putting them
11005 # here allows them to be overridden if necessary.
11006 runpath_var=LD_RUN_PATH
11007 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11008 export_dynamic_flag_spec='${wl}--export-dynamic'
11009 # ancient GNU ld didn't support --whole-archive et. al.
11010 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11011 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11013 whole_archive_flag_spec=
11015 supports_anon_versioning=no
11016 case `$LD -v 2>&1` in
11017 *GNU\ gold*) supports_anon_versioning=yes ;;
11018 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11019 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11020 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11021 *\ 2.11.*) ;; # other 2.11 versions
11022 *) supports_anon_versioning=yes ;;
11025 # See if GNU ld supports shared libraries.
11028 # On AIX/PPC, the GNU linker is very broken
11029 if test "$host_cpu" != ia64; then
11033 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
11034 *** to be unable to reliably create shared libraries on AIX.
11035 *** Therefore, libtool is disabling shared libraries support. If you
11036 *** really care for shared libraries, you may want to modify your PATH
11037 *** so that a non-GNU linker is found, and then restart.
11046 # see comment about AmigaOS4 .so support
11047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11048 archive_expsym_cmds=''
11051 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)'
11052 hardcode_libdir_flag_spec='-L$libdir'
11053 hardcode_minus_L=yes
11059 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11060 allow_undefined_flag=unsupported
11061 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11062 # support --undefined. This deserves some investigation. FIXME
11063 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11069 cygwin* | mingw* | pw32* | cegcc*)
11070 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11071 # as there is no search path for DLLs.
11072 hardcode_libdir_flag_spec='-L$libdir'
11073 allow_undefined_flag=unsupported
11074 always_export_symbols=no
11075 enable_shared_with_static_runtimes=yes
11076 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11078 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11079 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11080 # If the export-symbols file already is a .def file (1st line
11081 # is EXPORTS), use it as is; otherwise, prepend...
11082 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11083 cp $export_symbols $output_objdir/$soname.def;
11085 echo EXPORTS > $output_objdir/$soname.def;
11086 cat $export_symbols >> $output_objdir/$soname.def;
11088 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11096 hardcode_shlibpath_var=no
11097 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11098 export_dynamic_flag_spec='${wl}-E'
11099 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11100 # Instead, shared libraries are loaded at an image base (0x10000000 by
11101 # default) and relocated if they conflict, which is a slow very memory
11102 # consuming and fragmenting process. To avoid this, we pick a random,
11103 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11104 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11105 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11106 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'
11109 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11111 if test "$host_os" = linux-dietlibc; then
11112 case $cc_basename in
11113 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11116 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11117 && test "$tmp_diet" = no
11120 tmp_sharedflag='-shared'
11121 case $cc_basename,$host_cpu in
11122 pgcc*) # Portland Group C compiler
11123 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11124 tmp_addflag=' $pic_flag'
11126 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
11127 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11128 tmp_addflag=' $pic_flag -Mnomain' ;;
11129 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11130 tmp_addflag=' -i_dynamic' ;;
11131 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11132 tmp_addflag=' -i_dynamic -nofor_main' ;;
11133 ifc* | ifort*) # Intel Fortran compiler
11134 tmp_addflag=' -nofor_main' ;;
11135 lf95*) # Lahey Fortran 8.1
11136 whole_archive_flag_spec=
11137 tmp_sharedflag='--shared' ;;
11138 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11139 tmp_sharedflag='-qmkshrobj'
11142 case `$CC -V 2>&1 | sed 5q` in
11143 *Sun\ C*) # Sun C 5.9
11144 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11145 compiler_needs_object=yes
11146 tmp_sharedflag='-G' ;;
11147 *Sun\ F*) # Sun Fortran 8.3
11148 tmp_sharedflag='-G' ;;
11150 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11152 if test "x$supports_anon_versioning" = xyes; then
11153 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11154 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11155 echo "local: *; };" >> $output_objdir/$libname.ver~
11156 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11159 case $cc_basename in
11161 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11162 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11163 hardcode_libdir_flag_spec=
11164 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11165 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11166 if test "x$supports_anon_versioning" = xyes; then
11167 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11168 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11169 echo "local: *; };" >> $output_objdir/$libname.ver~
11170 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11179 netbsd* | netbsdelf*-gnu)
11180 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11181 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11184 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11185 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11190 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11194 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11195 *** create shared libraries on Solaris systems. Therefore, libtool
11196 *** is disabling shared libraries support. We urge you to upgrade GNU
11197 *** binutils to release 2.9.1 or newer. Another option is to modify
11198 *** your PATH or compiler configuration so that the native linker is
11199 *** used, and then restart.
11202 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11204 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11210 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11211 case `$LD -v 2>&1` in
11212 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11216 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11217 *** reliably create shared libraries on SCO systems. Therefore, libtool
11218 *** is disabling shared libraries support. We urge you to upgrade GNU
11219 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11220 *** your PATH or compiler configuration so that the native linker is
11221 *** used, and then restart.
11226 # For security reasons, it is highly recommended that you always
11227 # use absolute paths for naming shared libraries, and exclude the
11228 # DT_RUNPATH tag from executables and libraries. But doing so
11229 # requires that you compile everything twice, which is a pain.
11230 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11231 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11232 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11233 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11242 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11244 hardcode_direct=yes
11245 hardcode_shlibpath_var=no
11249 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11251 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11258 if test "$ld_shlibs" = no; then
11260 hardcode_libdir_flag_spec=
11261 export_dynamic_flag_spec=
11262 whole_archive_flag_spec=
11265 # PORTME fill in a description of your system's linker (not GNU ld)
11268 allow_undefined_flag=unsupported
11269 always_export_symbols=yes
11270 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'
11271 # Note: this linker hardcodes the directories in LIBPATH if there
11272 # are no directories specified by -L.
11273 hardcode_minus_L=yes
11274 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11275 # Neither direct hardcoding nor static linking is supported with a
11277 hardcode_direct=unsupported
11282 if test "$host_cpu" = ia64; then
11283 # On IA64, the linker does run time linking by default, so we don't
11284 # have to do anything special.
11285 aix_use_runtimelinking=no
11286 exp_sym_flag='-Bexport'
11289 # If we're using GNU nm, then we don't want the "-C" option.
11290 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11291 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11292 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11294 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'
11296 aix_use_runtimelinking=no
11298 # Test if we are trying to use run time linking or normal
11299 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11300 # need to do runtime linking.
11301 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11302 for ld_flag in $LDFLAGS; do
11303 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11304 aix_use_runtimelinking=yes
11311 exp_sym_flag='-bexport'
11312 no_entry_flag='-bnoentry'
11315 # When large executables or shared objects are built, AIX ld can
11316 # have problems creating the table of contents. If linking a library
11317 # or program results in "error TOC overflow" add -mminimal-toc to
11318 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11319 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11322 hardcode_direct=yes
11323 hardcode_direct_absolute=yes
11324 hardcode_libdir_separator=':'
11325 link_all_deplibs=yes
11326 file_list_spec='${wl}-f,'
11328 if test "$GCC" = yes; then
11329 case $host_os in aix4.[012]|aix4.[012].*)
11330 # We only want to do this on AIX 4.2 and lower, the check
11331 # below for broken collect2 doesn't work under 4.3+
11332 collect2name=`${CC} -print-prog-name=collect2`
11333 if test -f "$collect2name" &&
11334 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11336 # We have reworked collect2
11339 # We have old collect2
11340 hardcode_direct=unsupported
11341 # It fails to find uninstalled libraries when the uninstalled
11342 # path is not listed in the libpath. Setting hardcode_minus_L
11343 # to unsupported forces relinking
11344 hardcode_minus_L=yes
11345 hardcode_libdir_flag_spec='-L$libdir'
11346 hardcode_libdir_separator=
11350 shared_flag='-shared'
11351 if test "$aix_use_runtimelinking" = yes; then
11352 shared_flag="$shared_flag "'${wl}-G'
11354 link_all_deplibs=no
11357 if test "$host_cpu" = ia64; then
11358 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11359 # chokes on -Wl,-G. The following line is correct:
11362 if test "$aix_use_runtimelinking" = yes; then
11363 shared_flag='${wl}-G'
11365 shared_flag='${wl}-bM:SRE'
11370 export_dynamic_flag_spec='${wl}-bexpall'
11371 # It seems that -bexpall does not export symbols beginning with
11372 # underscore (_), so it is better to generate a list of symbols to export.
11373 always_export_symbols=yes
11374 if test "$aix_use_runtimelinking" = yes; then
11375 # Warning - without using the other runtime loading flags (-brtl),
11376 # -berok will link without error, but may produce a broken library.
11377 allow_undefined_flag='-berok'
11378 # Determine the default libpath from the value encoded in an
11379 # empty executable.
11380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381 /* end confdefs.h. */
11390 if ac_fn_c_try_link "$LINENO"; then :
11392 lt_aix_libpath_sed='
11393 /Import File Strings/,/^$/ {
11399 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11400 # Check for a 64-bit object if we didn't find anything.
11401 if test -z "$aix_libpath"; then
11402 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11405 rm -f core conftest.err conftest.$ac_objext \
11406 conftest$ac_exeext conftest.$ac_ext
11407 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11409 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11410 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11412 if test "$host_cpu" = ia64; then
11413 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11414 allow_undefined_flag="-z nodefs"
11415 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"
11417 # Determine the default libpath from the value encoded in an
11418 # empty executable.
11419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11420 /* end confdefs.h. */
11429 if ac_fn_c_try_link "$LINENO"; then :
11431 lt_aix_libpath_sed='
11432 /Import File Strings/,/^$/ {
11438 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11439 # Check for a 64-bit object if we didn't find anything.
11440 if test -z "$aix_libpath"; then
11441 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11444 rm -f core conftest.err conftest.$ac_objext \
11445 conftest$ac_exeext conftest.$ac_ext
11446 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11448 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11449 # Warning - without using the other run time loading flags,
11450 # -berok will link without error, but may produce a broken library.
11451 no_undefined_flag=' ${wl}-bernotok'
11452 allow_undefined_flag=' ${wl}-berok'
11453 # Exported symbols can be pulled into shared objects from archives
11454 whole_archive_flag_spec='$convenience'
11455 archive_cmds_need_lc=yes
11456 # This is similar to how AIX traditionally builds its shared libraries.
11457 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'
11465 # see comment about AmigaOS4 .so support
11466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11467 archive_expsym_cmds=''
11470 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)'
11471 hardcode_libdir_flag_spec='-L$libdir'
11472 hardcode_minus_L=yes
11478 export_dynamic_flag_spec=-rdynamic
11481 cygwin* | mingw* | pw32* | cegcc*)
11482 # When not using gcc, we currently assume that we are using
11483 # Microsoft Visual C++.
11484 # hardcode_libdir_flag_spec is actually meaningless, as there is
11485 # no search path for DLLs.
11486 hardcode_libdir_flag_spec=' '
11487 allow_undefined_flag=unsupported
11488 # Tell ltmain to make .lib files, not .a files.
11490 # Tell ltmain to make .dll files, not .so files.
11492 # FIXME: Setting linknames here is a bad hack.
11493 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11494 # The linker will automatically build a .lib file if we build a DLL.
11495 old_archive_from_new_cmds='true'
11496 # FIXME: Should let the user specify the lib program.
11497 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11498 fix_srcfile_path='`cygpath -w "$srcfile"`'
11499 enable_shared_with_static_runtimes=yes
11502 darwin* | rhapsody*)
11505 archive_cmds_need_lc=no
11507 hardcode_automatic=yes
11508 hardcode_shlibpath_var=unsupported
11509 whole_archive_flag_spec=''
11510 link_all_deplibs=yes
11511 allow_undefined_flag="$_lt_dar_allow_undefined"
11512 case $cc_basename in
11513 ifort*) _lt_dar_can_shared=yes ;;
11514 *) _lt_dar_can_shared=$GCC ;;
11516 if test "$_lt_dar_can_shared" = "yes"; then
11517 output_verbose_link_cmd=echo
11518 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11519 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11520 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}"
11521 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}"
11530 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11531 hardcode_libdir_flag_spec='-L$libdir'
11532 hardcode_shlibpath_var=no
11539 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11540 # support. Future versions do this automatically, but an explicit c++rt0.o
11541 # does not break anything, and helps significantly (at the cost of a little
11544 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11545 hardcode_libdir_flag_spec='-R$libdir'
11546 hardcode_direct=yes
11547 hardcode_shlibpath_var=no
11550 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11552 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11553 hardcode_direct=yes
11554 hardcode_minus_L=yes
11555 hardcode_shlibpath_var=no
11558 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11559 freebsd* | dragonfly*)
11560 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11561 hardcode_libdir_flag_spec='-R$libdir'
11562 hardcode_direct=yes
11563 hardcode_shlibpath_var=no
11567 if test "$GCC" = yes; then
11568 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11570 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 $output_objdir/$soname $lib'
11572 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11573 hardcode_libdir_separator=:
11574 hardcode_direct=yes
11576 # hardcode_minus_L: Not really in the search PATH,
11577 # but as the default location of the library.
11578 hardcode_minus_L=yes
11579 export_dynamic_flag_spec='${wl}-E'
11583 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11584 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11586 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11588 if test "$with_gnu_ld" = no; then
11589 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11590 hardcode_libdir_flag_spec_ld='+b $libdir'
11591 hardcode_libdir_separator=:
11592 hardcode_direct=yes
11593 hardcode_direct_absolute=yes
11594 export_dynamic_flag_spec='${wl}-E'
11595 # hardcode_minus_L: Not really in the search PATH,
11596 # but as the default location of the library.
11597 hardcode_minus_L=yes
11602 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11605 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11608 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11611 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11617 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11620 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11623 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11627 if test "$with_gnu_ld" = no; then
11628 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11629 hardcode_libdir_separator=:
11634 hardcode_shlibpath_var=no
11637 hardcode_direct=yes
11638 hardcode_direct_absolute=yes
11639 export_dynamic_flag_spec='${wl}-E'
11641 # hardcode_minus_L: Not really in the search PATH,
11642 # but as the default location of the library.
11643 hardcode_minus_L=yes
11649 irix5* | irix6* | nonstopux*)
11650 if test "$GCC" = yes; then
11651 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11652 # Try to use the -exported_symbol ld option, if it does not
11653 # work, assume that -exports_file does not work either and
11654 # implicitly export all symbols.
11655 save_LDFLAGS="$LDFLAGS"
11656 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11658 /* end confdefs.h. */
11661 if ac_fn_c_try_link "$LINENO"; then :
11662 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11665 rm -f core conftest.err conftest.$ac_objext \
11666 conftest$ac_exeext conftest.$ac_ext
11667 LDFLAGS="$save_LDFLAGS"
11669 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11670 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11672 archive_cmds_need_lc='no'
11673 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11674 hardcode_libdir_separator=:
11676 link_all_deplibs=yes
11679 netbsd* | netbsdelf*-gnu)
11680 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11681 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11683 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11685 hardcode_libdir_flag_spec='-R$libdir'
11686 hardcode_direct=yes
11687 hardcode_shlibpath_var=no
11691 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11692 hardcode_direct=yes
11693 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11694 hardcode_libdir_separator=:
11695 hardcode_shlibpath_var=no
11702 if test -f /usr/libexec/ld.so; then
11703 hardcode_direct=yes
11704 hardcode_shlibpath_var=no
11705 hardcode_direct_absolute=yes
11706 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11707 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11708 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11709 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11710 export_dynamic_flag_spec='${wl}-E'
11713 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11714 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11715 hardcode_libdir_flag_spec='-R$libdir'
11718 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11719 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11729 hardcode_libdir_flag_spec='-L$libdir'
11730 hardcode_minus_L=yes
11731 allow_undefined_flag=unsupported
11732 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'
11733 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11737 if test "$GCC" = yes; then
11738 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11739 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11741 allow_undefined_flag=' -expect_unresolved \*'
11742 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11744 archive_cmds_need_lc='no'
11745 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11746 hardcode_libdir_separator=:
11749 osf4* | osf5*) # as osf3* with the addition of -msym flag
11750 if test "$GCC" = yes; then
11751 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11752 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11753 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11755 allow_undefined_flag=' -expect_unresolved \*'
11756 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11757 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~
11758 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11760 # Both c and cxx compiler support -rpath directly
11761 hardcode_libdir_flag_spec='-rpath $libdir'
11763 archive_cmds_need_lc='no'
11764 hardcode_libdir_separator=:
11768 no_undefined_flag=' -z defs'
11769 if test "$GCC" = yes; then
11771 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11772 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11773 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11775 case `$CC -V 2>&1` in
11778 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11779 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11780 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11784 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11785 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11786 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11790 hardcode_libdir_flag_spec='-R$libdir'
11791 hardcode_shlibpath_var=no
11793 solaris2.[0-5] | solaris2.[0-5].*) ;;
11795 # The compiler driver will combine and reorder linker options,
11796 # but understands `-z linker_flag'. GCC discards it without `$wl',
11797 # but is careful enough not to reorder.
11798 # Supported since Solaris 2.6 (maybe 2.5.1?)
11799 if test "$GCC" = yes; then
11800 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11802 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11806 link_all_deplibs=yes
11810 if test "x$host_vendor" = xsequent; then
11811 # Use $CC to link under sequent, because it throws in some extra .o
11812 # files that make .init and .fini sections work.
11813 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11815 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11817 hardcode_libdir_flag_spec='-L$libdir'
11818 hardcode_direct=yes
11819 hardcode_minus_L=yes
11820 hardcode_shlibpath_var=no
11824 case $host_vendor in
11826 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11827 hardcode_direct=yes # is this really true???
11830 ## LD is ld it makes a PLAMLIB
11831 ## CC just makes a GrossModule.
11832 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11833 reload_cmds='$CC -r -o $output$reload_objs'
11837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11838 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11841 runpath_var='LD_RUN_PATH'
11842 hardcode_shlibpath_var=no
11846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11847 hardcode_shlibpath_var=no
11848 export_dynamic_flag_spec='-Bexport'
11852 if test -d /usr/nec; then
11853 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11854 hardcode_shlibpath_var=no
11855 runpath_var=LD_RUN_PATH
11856 hardcode_runpath_var=yes
11861 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11862 no_undefined_flag='${wl}-z,text'
11863 archive_cmds_need_lc=no
11864 hardcode_shlibpath_var=no
11865 runpath_var='LD_RUN_PATH'
11867 if test "$GCC" = yes; then
11868 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11869 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11871 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11872 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11876 sysv5* | sco3.2v5* | sco5v6*)
11877 # Note: We can NOT use -z defs as we might desire, because we do not
11878 # link with -lc, and that would cause any symbols used from libc to
11879 # always be unresolved, which means just about no library would
11880 # ever link correctly. If we're not using GNU ld we use -z text
11881 # though, which does catch some bad symbols but isn't as heavy-handed
11883 no_undefined_flag='${wl}-z,text'
11884 allow_undefined_flag='${wl}-z,nodefs'
11885 archive_cmds_need_lc=no
11886 hardcode_shlibpath_var=no
11887 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11888 hardcode_libdir_separator=':'
11889 link_all_deplibs=yes
11890 export_dynamic_flag_spec='${wl}-Bexport'
11891 runpath_var='LD_RUN_PATH'
11893 if test "$GCC" = yes; then
11894 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11895 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11897 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11898 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11904 hardcode_libdir_flag_spec='-L$libdir'
11905 hardcode_shlibpath_var=no
11913 if test x$host_vendor = xsni; then
11915 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11916 export_dynamic_flag_spec='${wl}-Blargedynsym'
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11923 $as_echo "$ld_shlibs" >&6; }
11924 test "$ld_shlibs" = no && can_build_shared=no
11926 with_gnu_ld=$with_gnu_ld
11943 # Do we need to explicitly link libc?
11945 case "x$archive_cmds_need_lc" in
11947 # Assume -lc should be added
11948 archive_cmds_need_lc=yes
11950 if test "$enable_shared" = yes && test "$GCC" = yes; then
11951 case $archive_cmds in
11953 # FIXME: we may have to deal with multi-command sequences.
11956 # Test whether the compiler implicitly links with -lc since on some
11957 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11958 # to ld, don't add -lc before -lgcc.
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11960 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11962 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11965 (eval $ac_compile) 2>&5
11967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11968 test $ac_status = 0; } 2>conftest.err; then
11971 libobjs=conftest.$ac_objext
11973 wl=$lt_prog_compiler_wl
11974 pic_flag=$lt_prog_compiler_pic
11980 lt_save_allow_undefined_flag=$allow_undefined_flag
11981 allow_undefined_flag=
11982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11983 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11986 test $ac_status = 0; }
11988 archive_cmds_need_lc=no
11990 archive_cmds_need_lc=yes
11992 allow_undefined_flag=$lt_save_allow_undefined_flag
11994 cat conftest.err 1>&5
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11998 $as_echo "$archive_cmds_need_lc" >&6; }
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12162 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12164 if test "$GCC" = yes; then
12166 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12167 *) lt_awk_arg="/^libraries:/" ;;
12169 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12170 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
12171 # if the path contains ";" then we assume it to be the separator
12172 # otherwise default to the standard path separator (i.e. ":") - it is
12173 # assumed that no part of a normal pathname contains ";" but that should
12174 # okay in the real world where ";" in dirpaths is itself problematic.
12175 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
12177 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12179 # Ok, now we have the path, separated by spaces, we can step through it
12180 # and add multilib dir if necessary.
12181 lt_tmp_lt_search_path_spec=
12182 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12183 for lt_sys_path in $lt_search_path_spec; do
12184 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12185 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12187 test -d "$lt_sys_path" && \
12188 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12191 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
12192 BEGIN {RS=" "; FS="/|\n";} {
12195 for (lt_i = NF; lt_i > 0; lt_i--) {
12196 if ($lt_i != "" && $lt_i != ".") {
12197 if ($lt_i == "..") {
12200 if (lt_count == 0) {
12201 lt_foo="/" $lt_i lt_foo;
12208 if (lt_foo != "") { lt_freq[lt_foo]++; }
12209 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12211 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
12213 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12215 library_names_spec=
12216 libname_spec='lib$name'
12220 postuninstall_cmds=
12224 shlibpath_overrides_runpath=unknown
12226 dynamic_linker="$host_os ld.so"
12227 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12228 need_lib_prefix=unknown
12229 hardcode_into_libs=no
12231 # when you set need_version to no, make sure it does not cause -set_version
12232 # flags to be left without arguments
12233 need_version=unknown
12238 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12239 shlibpath_var=LIBPATH
12241 # AIX 3 has no versioning support, so we append a major version to the name.
12242 soname_spec='${libname}${release}${shared_ext}$major'
12249 hardcode_into_libs=yes
12250 if test "$host_cpu" = ia64; then
12251 # AIX 5 supports IA64
12252 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12253 shlibpath_var=LD_LIBRARY_PATH
12255 # With GCC up to 2.95.x, collect2 would create an import file
12256 # for dependence libraries. The import file would start with
12257 # the line `#! .'. This would cause the generated library to
12258 # depend on `.', always an invalid library. This was fixed in
12259 # development snapshots of GCC prior to 3.0.
12261 aix4 | aix4.[01] | aix4.[01].*)
12262 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12264 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12267 can_build_shared=no
12271 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12272 # soname into executable. Probably we can add versioning support to
12273 # collect2, so additional links can be useful in future.
12274 if test "$aix_use_runtimelinking" = yes; then
12275 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12276 # instead of lib<name>.a to let people know that these are not
12277 # typical AIX shared libraries.
12278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12280 # We preserve .a as extension for shared libraries through AIX4.2
12281 # and later when we are not doing run time linking.
12282 library_names_spec='${libname}${release}.a $libname.a'
12283 soname_spec='${libname}${release}${shared_ext}$major'
12285 shlibpath_var=LIBPATH
12292 # Since July 2007 AmigaOS4 officially supports .so libraries.
12293 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12297 library_names_spec='$libname.ixlibrary $libname.a'
12298 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12299 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
12305 library_names_spec='${libname}${shared_ext}'
12306 dynamic_linker="$host_os ld.so"
12307 shlibpath_var=LIBRARY_PATH
12313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12314 soname_spec='${libname}${release}${shared_ext}$major'
12315 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12316 shlibpath_var=LD_LIBRARY_PATH
12317 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12318 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12319 # the default ld.so.conf also contains /usr/contrib/lib and
12320 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12321 # libtool to hard-code these into programs
12324 cygwin* | mingw* | pw32* | cegcc*)
12325 version_type=windows
12330 case $GCC,$host_os in
12331 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12332 library_names_spec='$libname.dll.a'
12333 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12334 postinstall_cmds='base_file=`basename \${file}`~
12335 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12336 dldir=$destdir/`dirname \$dlpath`~
12337 test -d \$dldir || mkdir -p \$dldir~
12338 $install_prog $dir/$dlname \$dldir/$dlname~
12339 chmod a+x \$dldir/$dlname~
12340 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12341 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12343 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12344 dlpath=$dir/\$dldll~
12346 shlibpath_overrides_runpath=yes
12350 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12351 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12352 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12355 # MinGW DLLs use traditional 'lib' prefix
12356 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12357 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12358 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12359 # It is most probably a Windows format PATH printed by
12360 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12361 # path with ; separators, and with drive letters. We can handle the
12362 # drive letters (cygwin fileutils understands them), so leave them,
12363 # especially as we might pass files found there to a mingw objdump,
12364 # which wouldn't understand a cygwinified path. Ahh.
12365 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12367 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12371 # pw32 DLLs use 'pw' prefix rather than 'lib'
12372 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12378 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12381 dynamic_linker='Win32 ld.exe'
12382 # FIXME: first we should search . and the directory the executable is in
12386 darwin* | rhapsody*)
12387 dynamic_linker="$host_os dyld"
12388 version_type=darwin
12391 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12392 soname_spec='${libname}${release}${major}$shared_ext'
12393 shlibpath_overrides_runpath=yes
12394 shlibpath_var=DYLD_LIBRARY_PATH
12395 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12397 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12398 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12406 soname_spec='${libname}${release}${shared_ext}$major'
12407 shlibpath_var=LD_LIBRARY_PATH
12414 freebsd* | dragonfly*)
12415 # DragonFly does not have aout. When/if they implement a new
12416 # versioning mechanism, adjust this.
12417 if test -x /usr/bin/objformat; then
12418 objformat=`/usr/bin/objformat`
12421 freebsd[123]*) objformat=aout ;;
12422 *) objformat=elf ;;
12425 version_type=freebsd-$objformat
12426 case $version_type in
12428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12433 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12437 shlibpath_var=LD_LIBRARY_PATH
12440 shlibpath_overrides_runpath=yes
12442 freebsd3.[01]* | freebsdelf3.[01]*)
12443 shlibpath_overrides_runpath=yes
12444 hardcode_into_libs=yes
12446 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12447 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12448 shlibpath_overrides_runpath=no
12449 hardcode_into_libs=yes
12451 *) # from 4.6 on, and DragonFly
12452 shlibpath_overrides_runpath=yes
12453 hardcode_into_libs=yes
12462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12463 soname_spec='${libname}${release}${shared_ext}$major'
12464 shlibpath_var=LD_LIBRARY_PATH
12465 hardcode_into_libs=yes
12468 hpux9* | hpux10* | hpux11*)
12469 # Give a soname corresponding to the major version so that dld.sl refuses to
12470 # link against other versions.
12477 hardcode_into_libs=yes
12478 dynamic_linker="$host_os dld.so"
12479 shlibpath_var=LD_LIBRARY_PATH
12480 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12482 soname_spec='${libname}${release}${shared_ext}$major'
12483 if test "X$HPUX_IA64_MODE" = X32; then
12484 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12486 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12488 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12492 hardcode_into_libs=yes
12493 dynamic_linker="$host_os dld.sl"
12494 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12495 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12497 soname_spec='${libname}${release}${shared_ext}$major'
12498 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12499 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12503 dynamic_linker="$host_os dld.sl"
12504 shlibpath_var=SHLIB_PATH
12505 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12507 soname_spec='${libname}${release}${shared_ext}$major'
12510 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12511 postinstall_cmds='chmod 555 $lib'
12518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12519 soname_spec='${libname}${release}${shared_ext}$major'
12520 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12521 shlibpath_var=LD_LIBRARY_PATH
12522 shlibpath_overrides_runpath=no
12523 hardcode_into_libs=yes
12526 irix5* | irix6* | nonstopux*)
12528 nonstopux*) version_type=nonstopux ;;
12530 if test "$lt_cv_prog_gnu_ld" = yes; then
12538 soname_spec='${libname}${release}${shared_ext}$major'
12539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12541 irix5* | nonstopux*)
12542 libsuff= shlibsuff=
12545 case $LD in # libtool.m4 will add one of these switches to LD
12546 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12547 libsuff= shlibsuff= libmagic=32-bit;;
12548 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12549 libsuff=32 shlibsuff=N32 libmagic=N32;;
12550 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12551 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12552 *) libsuff= shlibsuff= libmagic=never-match;;
12556 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12557 shlibpath_overrides_runpath=no
12558 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12559 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12560 hardcode_into_libs=yes
12563 # No shared lib support for Linux oldld, aout, or coff.
12564 linux*oldld* | linux*aout* | linux*coff*)
12568 # This must be Linux ELF.
12569 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12574 soname_spec='${libname}${release}${shared_ext}$major'
12575 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12576 shlibpath_var=LD_LIBRARY_PATH
12577 shlibpath_overrides_runpath=no
12578 # Some binutils ld are patched to set DT_RUNPATH
12579 save_LDFLAGS=$LDFLAGS
12580 save_libdir=$libdir
12581 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12582 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12584 /* end confdefs.h. */
12593 if ac_fn_c_try_link "$LINENO"; then :
12594 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12595 shlibpath_overrides_runpath=yes
12598 rm -f core conftest.err conftest.$ac_objext \
12599 conftest$ac_exeext conftest.$ac_ext
12600 LDFLAGS=$save_LDFLAGS
12601 libdir=$save_libdir
12603 # This implies no fast_install, which is unacceptable.
12604 # Some rework will be needed to allow for fast_install
12605 # before this can be enabled.
12606 hardcode_into_libs=yes
12608 # Append ld.so.conf contents to the search path
12609 if test -f /etc/ld.so.conf; then
12610 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;/^$/d' | tr '\n' ' '`
12611 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12614 # We used to test for /lib/ld.so.1 and disable shared libraries on
12615 # powerpc, because MkLinux only supported shared libraries with the
12616 # GNU dynamic linker. Since this was broken with cross compilers,
12617 # most powerpc-linux boxes support dynamic linking these days and
12618 # people can always --disable-shared, the test was removed, and we
12619 # assume the GNU/Linux dynamic linker is in use.
12620 dynamic_linker='GNU/Linux ld.so'
12627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12628 soname_spec='${libname}${release}${shared_ext}$major'
12629 shlibpath_var=LD_LIBRARY_PATH
12630 shlibpath_overrides_runpath=no
12631 hardcode_into_libs=yes
12632 dynamic_linker='NetBSD ld.elf_so'
12639 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12641 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12642 dynamic_linker='NetBSD (a.out) ld.so'
12644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12645 soname_spec='${libname}${release}${shared_ext}$major'
12646 dynamic_linker='NetBSD ld.elf_so'
12648 shlibpath_var=LD_LIBRARY_PATH
12649 shlibpath_overrides_runpath=yes
12650 hardcode_into_libs=yes
12655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12656 shlibpath_var=LD_LIBRARY_PATH
12657 shlibpath_overrides_runpath=yes
12664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12665 soname_spec='${libname}${release}${shared_ext}$major'
12666 shlibpath_var=LD_LIBRARY_PATH
12667 shlibpath_overrides_runpath=no
12668 hardcode_into_libs=yes
12669 dynamic_linker='ldqnx.so'
12674 sys_lib_dlsearch_path_spec="/usr/lib"
12676 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12678 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12679 *) need_version=no ;;
12681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12682 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12683 shlibpath_var=LD_LIBRARY_PATH
12684 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12686 openbsd2.[89] | openbsd2.[89].*)
12687 shlibpath_overrides_runpath=no
12690 shlibpath_overrides_runpath=yes
12694 shlibpath_overrides_runpath=yes
12699 libname_spec='$name'
12702 library_names_spec='$libname${shared_ext} $libname.a'
12703 dynamic_linker='OS/2 ld.exe'
12704 shlibpath_var=LIBPATH
12707 osf3* | osf4* | osf5*)
12711 soname_spec='${libname}${release}${shared_ext}$major'
12712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12713 shlibpath_var=LD_LIBRARY_PATH
12714 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12715 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12727 soname_spec='${libname}${release}${shared_ext}$major'
12728 shlibpath_var=LD_LIBRARY_PATH
12729 shlibpath_overrides_runpath=yes
12730 hardcode_into_libs=yes
12731 # ldd complains unless libraries are executable
12732 postinstall_cmds='chmod +x $lib'
12737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12738 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12739 shlibpath_var=LD_LIBRARY_PATH
12740 shlibpath_overrides_runpath=yes
12741 if test "$with_gnu_ld" = yes; then
12749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12750 soname_spec='${libname}${release}${shared_ext}$major'
12751 shlibpath_var=LD_LIBRARY_PATH
12752 case $host_vendor in
12754 shlibpath_overrides_runpath=no
12756 runpath_var=LD_RUN_PATH
12764 shlibpath_overrides_runpath=no
12765 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12771 if test -d /usr/nec ;then
12773 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12774 soname_spec='$libname${shared_ext}.$major'
12775 shlibpath_var=LD_LIBRARY_PATH
12779 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12780 version_type=freebsd-elf
12783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12784 soname_spec='${libname}${release}${shared_ext}$major'
12785 shlibpath_var=LD_LIBRARY_PATH
12786 shlibpath_overrides_runpath=yes
12787 hardcode_into_libs=yes
12788 if test "$with_gnu_ld" = yes; then
12789 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12791 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12794 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12798 sys_lib_dlsearch_path_spec='/usr/lib'
12802 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12807 shlibpath_var=LD_LIBRARY_PATH
12808 shlibpath_overrides_runpath=no
12809 hardcode_into_libs=yes
12814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12815 soname_spec='${libname}${release}${shared_ext}$major'
12816 shlibpath_var=LD_LIBRARY_PATH
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12824 $as_echo "$dynamic_linker" >&6; }
12825 test "$dynamic_linker" = no && can_build_shared=no
12827 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12828 if test "$GCC" = yes; then
12829 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12832 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12833 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12835 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12836 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12926 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12928 if test -n "$hardcode_libdir_flag_spec" ||
12929 test -n "$runpath_var" ||
12930 test "X$hardcode_automatic" = "Xyes" ; then
12932 # We can hardcode non-existent directories.
12933 if test "$hardcode_direct" != no &&
12934 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12935 # have to relink, otherwise we might link with an installed library
12936 # when we should be linking with a yet-to-be-installed one
12937 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12938 test "$hardcode_minus_L" != no; then
12939 # Linking always hardcodes the temporary library directory.
12940 hardcode_action=relink
12942 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12943 hardcode_action=immediate
12946 # We cannot hardcode anything, or else we can only hardcode existing
12948 hardcode_action=unsupported
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12951 $as_echo "$hardcode_action" >&6; }
12953 if test "$hardcode_action" = relink ||
12954 test "$inherit_rpath" = yes; then
12955 # Fast installation is not supported
12956 enable_fast_install=no
12957 elif test "$shlibpath_overrides_runpath" = yes ||
12958 test "$enable_shared" = no; then
12959 # Fast installation is not necessary
12960 enable_fast_install=needless
12968 if test "x$enable_dlopen" != xyes; then
12969 enable_dlopen=unknown
12970 enable_dlopen_self=unknown
12971 enable_dlopen_self_static=unknown
12978 lt_cv_dlopen="load_add_on"
12980 lt_cv_dlopen_self=yes
12983 mingw* | pw32* | cegcc*)
12984 lt_cv_dlopen="LoadLibrary"
12989 lt_cv_dlopen="dlopen"
12994 # if libdl is installed we need to link against it
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12996 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12997 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12998 $as_echo_n "(cached) " >&6
13000 ac_check_lib_save_LIBS=$LIBS
13002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13003 /* end confdefs.h. */
13017 if ac_fn_c_try_link "$LINENO"; then :
13018 ac_cv_lib_dl_dlopen=yes
13020 ac_cv_lib_dl_dlopen=no
13022 rm -f core conftest.err conftest.$ac_objext \
13023 conftest$ac_exeext conftest.$ac_ext
13024 LIBS=$ac_check_lib_save_LIBS
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13027 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13028 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13029 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13032 lt_cv_dlopen="dyld"
13034 lt_cv_dlopen_self=yes
13041 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13042 if test "x$ac_cv_func_shl_load" = x""yes; then :
13043 lt_cv_dlopen="shl_load"
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13046 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13047 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13048 $as_echo_n "(cached) " >&6
13050 ac_check_lib_save_LIBS=$LIBS
13052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13053 /* end confdefs.h. */
13062 return shl_load ();
13067 if ac_fn_c_try_link "$LINENO"; then :
13068 ac_cv_lib_dld_shl_load=yes
13070 ac_cv_lib_dld_shl_load=no
13072 rm -f core conftest.err conftest.$ac_objext \
13073 conftest$ac_exeext conftest.$ac_ext
13074 LIBS=$ac_check_lib_save_LIBS
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13077 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13078 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13079 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13081 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13082 if test "x$ac_cv_func_dlopen" = x""yes; then :
13083 lt_cv_dlopen="dlopen"
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13086 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13087 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13088 $as_echo_n "(cached) " >&6
13090 ac_check_lib_save_LIBS=$LIBS
13092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13093 /* end confdefs.h. */
13107 if ac_fn_c_try_link "$LINENO"; then :
13108 ac_cv_lib_dl_dlopen=yes
13110 ac_cv_lib_dl_dlopen=no
13112 rm -f core conftest.err conftest.$ac_objext \
13113 conftest$ac_exeext conftest.$ac_ext
13114 LIBS=$ac_check_lib_save_LIBS
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13117 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13118 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13119 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13122 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13123 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13124 $as_echo_n "(cached) " >&6
13126 ac_check_lib_save_LIBS=$LIBS
13127 LIBS="-lsvld $LIBS"
13128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13129 /* end confdefs.h. */
13143 if ac_fn_c_try_link "$LINENO"; then :
13144 ac_cv_lib_svld_dlopen=yes
13146 ac_cv_lib_svld_dlopen=no
13148 rm -f core conftest.err conftest.$ac_objext \
13149 conftest$ac_exeext conftest.$ac_ext
13150 LIBS=$ac_check_lib_save_LIBS
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13153 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13154 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13155 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13158 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13159 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13160 $as_echo_n "(cached) " >&6
13162 ac_check_lib_save_LIBS=$LIBS
13164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13165 /* end confdefs.h. */
13174 return dld_link ();
13179 if ac_fn_c_try_link "$LINENO"; then :
13180 ac_cv_lib_dld_dld_link=yes
13182 ac_cv_lib_dld_dld_link=no
13184 rm -f core conftest.err conftest.$ac_objext \
13185 conftest$ac_exeext conftest.$ac_ext
13186 LIBS=$ac_check_lib_save_LIBS
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13189 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13190 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13191 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13212 if test "x$lt_cv_dlopen" != xno; then
13218 case $lt_cv_dlopen in
13220 save_CPPFLAGS="$CPPFLAGS"
13221 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13223 save_LDFLAGS="$LDFLAGS"
13224 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13227 LIBS="$lt_cv_dlopen_libs $LIBS"
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13230 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13231 if test "${lt_cv_dlopen_self+set}" = set; then :
13232 $as_echo_n "(cached) " >&6
13234 if test "$cross_compiling" = yes; then :
13235 lt_cv_dlopen_self=cross
13237 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13238 lt_status=$lt_dlunknown
13239 cat > conftest.$ac_ext <<_LT_EOF
13240 #line 13240 "configure"
13241 #include "confdefs.h"
13250 # define LT_DLGLOBAL RTLD_GLOBAL
13253 # define LT_DLGLOBAL DL_GLOBAL
13255 # define LT_DLGLOBAL 0
13259 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13260 find out it does not work in some platform. */
13261 #ifndef LT_DLLAZY_OR_NOW
13263 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13266 # define LT_DLLAZY_OR_NOW DL_LAZY
13269 # define LT_DLLAZY_OR_NOW RTLD_NOW
13272 # define LT_DLLAZY_OR_NOW DL_NOW
13274 # define LT_DLLAZY_OR_NOW 0
13281 void fnord() { int i=42;}
13284 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13285 int status = $lt_dlunknown;
13289 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13290 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13291 /* dlclose (self); */
13299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13300 (eval $ac_link) 2>&5
13302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13303 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13304 (./conftest; exit; ) >&5 2>/dev/null
13306 case x$lt_status in
13307 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13308 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13309 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13312 # compilation failed
13313 lt_cv_dlopen_self=no
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13321 $as_echo "$lt_cv_dlopen_self" >&6; }
13323 if test "x$lt_cv_dlopen_self" = xyes; then
13324 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13326 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13327 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13328 $as_echo_n "(cached) " >&6
13330 if test "$cross_compiling" = yes; then :
13331 lt_cv_dlopen_self_static=cross
13333 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13334 lt_status=$lt_dlunknown
13335 cat > conftest.$ac_ext <<_LT_EOF
13336 #line 13336 "configure"
13337 #include "confdefs.h"
13346 # define LT_DLGLOBAL RTLD_GLOBAL
13349 # define LT_DLGLOBAL DL_GLOBAL
13351 # define LT_DLGLOBAL 0
13355 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13356 find out it does not work in some platform. */
13357 #ifndef LT_DLLAZY_OR_NOW
13359 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13362 # define LT_DLLAZY_OR_NOW DL_LAZY
13365 # define LT_DLLAZY_OR_NOW RTLD_NOW
13368 # define LT_DLLAZY_OR_NOW DL_NOW
13370 # define LT_DLLAZY_OR_NOW 0
13377 void fnord() { int i=42;}
13380 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13381 int status = $lt_dlunknown;
13385 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13386 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13387 /* dlclose (self); */
13395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13396 (eval $ac_link) 2>&5
13398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13399 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13400 (./conftest; exit; ) >&5 2>/dev/null
13402 case x$lt_status in
13403 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13404 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13405 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13408 # compilation failed
13409 lt_cv_dlopen_self_static=no
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13417 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13420 CPPFLAGS="$save_CPPFLAGS"
13421 LDFLAGS="$save_LDFLAGS"
13426 case $lt_cv_dlopen_self in
13427 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13428 *) enable_dlopen_self=unknown ;;
13431 case $lt_cv_dlopen_self_static in
13432 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13433 *) enable_dlopen_self_static=unknown ;;
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13456 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13457 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13458 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13459 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13461 $as_echo "yes" >&6; }
13463 # FIXME - insert some real tests, host_os isn't really good enough
13466 if test -n "$STRIP" ; then
13467 striplib="$STRIP -x"
13468 old_striplib="$STRIP -S"
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13470 $as_echo "yes" >&6; }
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13473 $as_echo "no" >&6; }
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13478 $as_echo "no" >&6; }
13494 # Report which library types will actually be built
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13496 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13498 $as_echo "$can_build_shared" >&6; }
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13501 $as_echo_n "checking whether to build shared libraries... " >&6; }
13502 test "$can_build_shared" = "no" && enable_shared=no
13504 # On AIX, shared libraries and static libraries use the same namespace, and
13505 # are all built from PIC.
13508 test "$enable_shared" = yes && enable_static=no
13509 if test -n "$RANLIB"; then
13510 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13511 postinstall_cmds='$RANLIB $lib'
13516 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13517 test "$enable_shared" = yes && enable_static=no
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13522 $as_echo "$enable_shared" >&6; }
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13525 $as_echo_n "checking whether to build static libraries... " >&6; }
13526 # Make sure either enable_shared or enable_static is yes.
13527 test "$enable_shared" = yes || enable_static=yes
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13529 $as_echo "$enable_static" >&6; }
13536 ac_cpp='$CPP $CPPFLAGS'
13537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13555 ac_config_commands="$ac_config_commands libtool"
13560 # Only expand once:
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need -mimpure-text" >&5
13565 $as_echo_n "checking if we need -mimpure-text... " >&6; }
13569 if test "$GCC" = "yes"; then
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mimpure" >&5
13577 $as_echo "$mimpure" >&6; }
13580 if test x$mimpure = xyes; then
13593 STATICLIB_FALSE='#'
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need BUILDING_LIBCURL" >&5
13601 $as_echo_n "checking if we need BUILDING_LIBCURL... " >&6; }
13605 $as_echo "#define BUILDING_LIBCURL 1" >>confdefs.h
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13608 $as_echo "yes" >&6; }
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need CURL_STATICLIB" >&5
13610 $as_echo_n "checking if we need CURL_STATICLIB... " >&6; }
13611 if test "X$enable_shared" = "Xno"
13614 $as_echo "#define CURL_STATICLIB 1" >>confdefs.h
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13617 $as_echo "yes" >&6; }
13622 STATICLIB_FALSE='#'
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13630 $as_echo "no" >&6; }
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13635 $as_echo "no" >&6; }
13639 # Determine whether all dependent libraries must be specified when linking
13640 if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
13642 REQUIRE_LIB_DEPS=no
13644 REQUIRE_LIB_DEPS=yes
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13649 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13651 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13652 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
13653 $as_echo_n "(cached) " >&6
13655 cat >conftest.make <<\_ACEOF
13658 @echo '@@@%%%=$(MAKE)=@@@%%%'
13660 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13661 case `${MAKE-make} -f conftest.make 2>/dev/null` in
13662 *@@@%%%=?*=@@@%%%*)
13663 eval ac_cv_prog_make_${ac_make}_set=yes;;
13665 eval ac_cv_prog_make_${ac_make}_set=no;;
13667 rm -f conftest.make
13669 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13671 $as_echo "yes" >&6; }
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13675 $as_echo "no" >&6; }
13676 SET_MAKE="MAKE=${MAKE-make}"
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13681 $as_echo_n "checking for inline... " >&6; }
13682 if test "${ac_cv_c_inline+set}" = set; then :
13683 $as_echo_n "(cached) " >&6
13686 for ac_kw in inline __inline__ __inline; do
13687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13688 /* end confdefs.h. */
13689 #ifndef __cplusplus
13691 static $ac_kw foo_t static_foo () {return 0; }
13692 $ac_kw foo_t foo () {return 0; }
13696 if ac_fn_c_try_compile "$LINENO"; then :
13697 ac_cv_c_inline=$ac_kw
13699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13700 test "$ac_cv_c_inline" != no && break
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13705 $as_echo "$ac_cv_c_inline" >&6; }
13707 case $ac_cv_c_inline in
13710 case $ac_cv_c_inline in
13712 *) ac_val=$ac_cv_c_inline;;
13714 cat >>confdefs.h <<_ACEOF
13715 #ifndef __cplusplus
13716 #define inline $ac_val
13726 compiler_id="unknown"
13729 flags_dbg_all="unknown"
13730 flags_dbg_yes="unknown"
13731 flags_dbg_off="unknown"
13732 flags_opt_all="unknown"
13733 flags_opt_yes="unknown"
13734 flags_opt_off="unknown"
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
13738 $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
13740 if test -z "$SED"; then
13741 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
13743 if test -z "$GREP"; then
13744 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
13748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13749 /* end confdefs.h. */
13753 CURL_DEF_TOKEN __DECC
13758 if ac_fn_c_try_cpp "$LINENO"; then :
13760 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
13761 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
13762 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
13763 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
13764 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
13769 rm -f conftest.err conftest.i conftest.$ac_ext
13770 if test -z "$tmp_exp"; then
13771 curl_cv_have_def___DECC=no
13774 curl_cv_have_def___DECC=yes
13775 curl_cv_def___DECC=$tmp_exp
13780 if test -z "$SED"; then
13781 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
13783 if test -z "$GREP"; then
13784 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
13788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13789 /* end confdefs.h. */
13793 CURL_DEF_TOKEN __DECC_VER
13798 if ac_fn_c_try_cpp "$LINENO"; then :
13800 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
13801 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
13802 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
13803 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
13804 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
13809 rm -f conftest.err conftest.i conftest.$ac_ext
13810 if test -z "$tmp_exp"; then
13811 curl_cv_have_def___DECC_VER=no
13814 curl_cv_have_def___DECC_VER=yes
13815 curl_cv_def___DECC_VER=$tmp_exp
13819 if test "$curl_cv_have_def___DECC" = "yes" &&
13820 test "$curl_cv_have_def___DECC_VER" = "yes"; then
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13822 $as_echo "yes" >&6; }
13823 compiler_id="DEC_C"
13824 flags_dbg_all="-g -g0 -g1 -g2 -g3"
13825 flags_dbg_yes="-g2"
13826 flags_dbg_off="-g0"
13827 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
13828 flags_opt_yes="-O1"
13829 flags_opt_off="-O0"
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13832 $as_echo "no" >&6; }
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
13837 $as_echo_n "checking if compiler is HP-UX C... " >&6; }
13839 if test -z "$SED"; then
13840 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
13842 if test -z "$GREP"; then
13843 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
13847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13848 /* end confdefs.h. */
13852 CURL_DEF_TOKEN __HP_cc
13857 if ac_fn_c_try_cpp "$LINENO"; then :
13859 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
13860 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
13861 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
13862 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
13863 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
13868 rm -f conftest.err conftest.i conftest.$ac_ext
13869 if test -z "$tmp_exp"; then
13870 curl_cv_have_def___HP_cc=no
13873 curl_cv_have_def___HP_cc=yes
13874 curl_cv_def___HP_cc=$tmp_exp
13878 if test "$curl_cv_have_def___HP_cc" = "yes"; then
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13880 $as_echo "yes" >&6; }
13881 compiler_id="HP_UX_C"
13882 flags_dbg_all="-g -s"
13885 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
13886 flags_opt_yes="+O2"
13887 flags_opt_off="+O0"
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13890 $as_echo "no" >&6; }
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
13895 $as_echo_n "checking if compiler is IBM C... " >&6; }
13897 if test -z "$SED"; then
13898 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
13900 if test -z "$GREP"; then
13901 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
13905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13906 /* end confdefs.h. */
13910 CURL_DEF_TOKEN __IBMC__
13915 if ac_fn_c_try_cpp "$LINENO"; then :
13917 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
13918 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
13919 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
13920 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
13921 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
13926 rm -f conftest.err conftest.i conftest.$ac_ext
13927 if test -z "$tmp_exp"; then
13928 curl_cv_have_def___IBMC__=no
13931 curl_cv_have_def___IBMC__=yes
13932 curl_cv_def___IBMC__=$tmp_exp
13936 if test "$curl_cv_have_def___IBMC__" = "yes"; then
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13938 $as_echo "yes" >&6; }
13939 compiler_id="IBM_C"
13940 flags_dbg_all="-g -g0 -g1 -g2 -g3"
13943 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
13944 flags_opt_all="$flags_opt_all -qnooptimize"
13945 flags_opt_all="$flags_opt_all -qoptimize=0"
13946 flags_opt_all="$flags_opt_all -qoptimize=1"
13947 flags_opt_all="$flags_opt_all -qoptimize=2"
13948 flags_opt_all="$flags_opt_all -qoptimize=3"
13949 flags_opt_all="$flags_opt_all -qoptimize=4"
13950 flags_opt_all="$flags_opt_all -qoptimize=5"
13951 flags_opt_yes="-O2"
13952 flags_opt_off="-qnooptimize"
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13955 $as_echo "no" >&6; }
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
13960 $as_echo_n "checking if compiler is Intel C... " >&6; }
13962 if test -z "$SED"; then
13963 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
13965 if test -z "$GREP"; then
13966 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
13970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13971 /* end confdefs.h. */
13974 #ifdef __INTEL_COMPILER
13975 CURL_DEF_TOKEN __INTEL_COMPILER
13980 if ac_fn_c_try_cpp "$LINENO"; then :
13982 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
13983 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
13984 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
13985 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
13986 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
13991 rm -f conftest.err conftest.i conftest.$ac_ext
13992 if test -z "$tmp_exp"; then
13993 curl_cv_have_def___INTEL_COMPILER=no
13996 curl_cv_have_def___INTEL_COMPILER=yes
13997 curl_cv_def___INTEL_COMPILER=$tmp_exp
14001 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14003 $as_echo "yes" >&6; }
14004 compiler_num="$curl_cv_def___INTEL_COMPILER"
14006 if test -z "$SED"; then
14007 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14009 if test -z "$GREP"; then
14010 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14015 /* end confdefs.h. */
14019 CURL_DEF_TOKEN __unix__
14024 if ac_fn_c_try_cpp "$LINENO"; then :
14026 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14027 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14028 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14029 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14030 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
14035 rm -f conftest.err conftest.i conftest.$ac_ext
14036 if test -z "$tmp_exp"; then
14037 curl_cv_have_def___unix__=no
14040 curl_cv_have_def___unix__=yes
14041 curl_cv_def___unix__=$tmp_exp
14045 if test "$curl_cv_have_def___unix__" = "yes"; then
14046 compiler_id="INTEL_UNIX_C"
14047 flags_dbg_all="-g -g0"
14049 flags_dbg_off="-g0"
14050 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
14051 flags_opt_yes="-O2"
14052 flags_opt_off="-O0"
14054 compiler_id="INTEL_WINDOWS_C"
14055 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
14056 flags_dbg_all="$flags_dbg_all /debug"
14057 flags_dbg_all="$flags_dbg_all /debug:none"
14058 flags_dbg_all="$flags_dbg_all /debug:minimal"
14059 flags_dbg_all="$flags_dbg_all /debug:partial"
14060 flags_dbg_all="$flags_dbg_all /debug:full"
14061 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
14062 flags_dbg_all="$flags_dbg_all /debug:extended"
14063 flags_dbg_yes="/Zi /Oy-"
14064 flags_dbg_off="/debug:none /Oy-"
14065 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
14066 flags_opt_yes="/O2"
14067 flags_opt_off="/Od"
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14071 $as_echo "no" >&6; }
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
14076 $as_echo_n "checking if compiler is clang... " >&6; }
14078 if test -z "$SED"; then
14079 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14081 if test -z "$GREP"; then
14082 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14087 /* end confdefs.h. */
14091 CURL_DEF_TOKEN __clang__
14096 if ac_fn_c_try_cpp "$LINENO"; then :
14098 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14099 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14100 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14101 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14102 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
14107 rm -f conftest.err conftest.i conftest.$ac_ext
14108 if test -z "$tmp_exp"; then
14109 curl_cv_have_def___clang__=no
14112 curl_cv_have_def___clang__=yes
14113 curl_cv_def___clang__=$tmp_exp
14117 if test "$curl_cv_have_def___clang__" = "yes"; then
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14119 $as_echo "yes" >&6; }
14120 compiler_id="CLANG"
14121 clangver=`$CC -dumpversion`
14122 clangvhi=`echo $clangver | cut -d . -f1`
14123 clangvlo=`echo $clangver | cut -d . -f2`
14124 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
14125 flags_dbg_all="-g -g0 -g1 -g2 -g3"
14126 flags_dbg_all="$flags_dbg_all -ggdb"
14127 flags_dbg_all="$flags_dbg_all -gstabs"
14128 flags_dbg_all="$flags_dbg_all -gstabs+"
14129 flags_dbg_all="$flags_dbg_all -gcoff"
14130 flags_dbg_all="$flags_dbg_all -gxcoff"
14131 flags_dbg_all="$flags_dbg_all -gdwarf-2"
14132 flags_dbg_all="$flags_dbg_all -gvms"
14134 flags_dbg_off="-g0"
14135 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
14136 flags_opt_yes="-Os"
14137 flags_opt_off="-O0"
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14140 $as_echo "no" >&6; }
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
14145 $as_echo_n "checking if compiler is GNU C... " >&6; }
14147 if test -z "$SED"; then
14148 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14150 if test -z "$GREP"; then
14151 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14156 /* end confdefs.h. */
14160 CURL_DEF_TOKEN __GNUC__
14165 if ac_fn_c_try_cpp "$LINENO"; then :
14167 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14168 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14169 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14170 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14171 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
14176 rm -f conftest.err conftest.i conftest.$ac_ext
14177 if test -z "$tmp_exp"; then
14178 curl_cv_have_def___GNUC__=no
14181 curl_cv_have_def___GNUC__=yes
14182 curl_cv_def___GNUC__=$tmp_exp
14186 if test "$curl_cv_have_def___GNUC__" = "yes" &&
14187 test "$compiler_id" = "unknown"; then
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14189 $as_echo "yes" >&6; }
14190 compiler_id="GNU_C"
14191 gccver=`$CC -dumpversion`
14192 gccvhi=`echo $gccver | cut -d . -f1`
14193 gccvlo=`echo $gccver | cut -d . -f2`
14194 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
14195 flags_dbg_all="-g -g0 -g1 -g2 -g3"
14196 flags_dbg_all="$flags_dbg_all -ggdb"
14197 flags_dbg_all="$flags_dbg_all -gstabs"
14198 flags_dbg_all="$flags_dbg_all -gstabs+"
14199 flags_dbg_all="$flags_dbg_all -gcoff"
14200 flags_dbg_all="$flags_dbg_all -gxcoff"
14201 flags_dbg_all="$flags_dbg_all -gdwarf-2"
14202 flags_dbg_all="$flags_dbg_all -gvms"
14204 flags_dbg_off="-g0"
14205 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
14206 flags_opt_yes="-O2"
14207 flags_opt_off="-O0"
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14210 $as_echo "no" >&6; }
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
14215 $as_echo_n "checking if compiler is LCC... " >&6; }
14217 if test -z "$SED"; then
14218 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14220 if test -z "$GREP"; then
14221 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14226 /* end confdefs.h. */
14230 CURL_DEF_TOKEN __LCC__
14235 if ac_fn_c_try_cpp "$LINENO"; then :
14237 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14238 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14239 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14240 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14241 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
14246 rm -f conftest.err conftest.i conftest.$ac_ext
14247 if test -z "$tmp_exp"; then
14248 curl_cv_have_def___LCC__=no
14251 curl_cv_have_def___LCC__=yes
14252 curl_cv_def___LCC__=$tmp_exp
14256 if test "$curl_cv_have_def___LCC__" = "yes"; then
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14258 $as_echo "yes" >&6; }
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14268 $as_echo "no" >&6; }
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
14273 $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
14275 if test -z "$SED"; then
14276 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14278 if test -z "$GREP"; then
14279 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14284 /* end confdefs.h. */
14288 CURL_DEF_TOKEN __GNUC__
14293 if ac_fn_c_try_cpp "$LINENO"; then :
14295 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14296 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14297 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14298 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14299 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
14304 rm -f conftest.err conftest.i conftest.$ac_ext
14305 if test -z "$tmp_exp"; then
14306 curl_cv_have_def___GNUC__=no
14309 curl_cv_have_def___GNUC__=yes
14310 curl_cv_def___GNUC__=$tmp_exp
14315 if test -z "$SED"; then
14316 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14318 if test -z "$GREP"; then
14319 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324 /* end confdefs.h. */
14327 #ifdef _COMPILER_VERSION
14328 CURL_DEF_TOKEN _COMPILER_VERSION
14333 if ac_fn_c_try_cpp "$LINENO"; then :
14335 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14336 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14337 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14338 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14339 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
14344 rm -f conftest.err conftest.i conftest.$ac_ext
14345 if test -z "$tmp_exp"; then
14346 curl_cv_have_def__COMPILER_VERSION=no
14349 curl_cv_have_def__COMPILER_VERSION=yes
14350 curl_cv_def__COMPILER_VERSION=$tmp_exp
14355 if test -z "$SED"; then
14356 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14358 if test -z "$GREP"; then
14359 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14364 /* end confdefs.h. */
14367 #ifdef _SGI_COMPILER_VERSION
14368 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
14373 if ac_fn_c_try_cpp "$LINENO"; then :
14375 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14376 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14377 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14378 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14379 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
14384 rm -f conftest.err conftest.i conftest.$ac_ext
14385 if test -z "$tmp_exp"; then
14386 curl_cv_have_def__SGI_COMPILER_VERSION=no
14389 curl_cv_have_def__SGI_COMPILER_VERSION=yes
14390 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
14394 if test "$curl_cv_have_def___GNUC__" = "no" &&
14395 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
14396 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14398 $as_echo "yes" >&6; }
14399 compiler_id="SGI_MIPSPRO_C"
14400 flags_dbg_all="-g -g0 -g1 -g2 -g3"
14402 flags_dbg_off="-g0"
14403 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
14404 flags_opt_yes="-O2"
14405 flags_opt_off="-O0"
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14408 $as_echo "no" >&6; }
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
14413 $as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
14415 if test -z "$SED"; then
14416 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14418 if test -z "$GREP"; then
14419 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14424 /* end confdefs.h. */
14428 CURL_DEF_TOKEN __GNUC__
14433 if ac_fn_c_try_cpp "$LINENO"; then :
14435 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14436 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14437 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14438 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14439 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
14444 rm -f conftest.err conftest.i conftest.$ac_ext
14445 if test -z "$tmp_exp"; then
14446 curl_cv_have_def___GNUC__=no
14449 curl_cv_have_def___GNUC__=yes
14450 curl_cv_def___GNUC__=$tmp_exp
14455 if test -z "$SED"; then
14456 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14458 if test -z "$GREP"; then
14459 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14464 /* end confdefs.h. */
14468 CURL_DEF_TOKEN __sgi
14473 if ac_fn_c_try_cpp "$LINENO"; then :
14475 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14476 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14477 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14478 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14479 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
14484 rm -f conftest.err conftest.i conftest.$ac_ext
14485 if test -z "$tmp_exp"; then
14486 curl_cv_have_def___sgi=no
14489 curl_cv_have_def___sgi=yes
14490 curl_cv_def___sgi=$tmp_exp
14494 if test "$curl_cv_have_def___GNUC__" = "no" &&
14495 test "$curl_cv_have_def___sgi" = "yes" &&
14496 test "$compiler_id" = "unknown"; then
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14498 $as_echo "yes" >&6; }
14499 compiler_id="SGI_MIPS_C"
14500 flags_dbg_all="-g -g0 -g1 -g2 -g3"
14502 flags_dbg_off="-g0"
14503 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
14504 flags_opt_yes="-O2"
14505 flags_opt_off="-O0"
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14508 $as_echo "no" >&6; }
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
14513 $as_echo_n "checking if compiler is SunPro C... " >&6; }
14515 if test -z "$SED"; then
14516 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14518 if test -z "$GREP"; then
14519 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14524 /* end confdefs.h. */
14528 CURL_DEF_TOKEN __SUNPRO_C
14533 if ac_fn_c_try_cpp "$LINENO"; then :
14535 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14536 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14537 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14538 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14539 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
14544 rm -f conftest.err conftest.i conftest.$ac_ext
14545 if test -z "$tmp_exp"; then
14546 curl_cv_have_def___SUNPRO_C=no
14549 curl_cv_have_def___SUNPRO_C=yes
14550 curl_cv_def___SUNPRO_C=$tmp_exp
14554 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14556 $as_echo "yes" >&6; }
14557 compiler_id="SUNPRO_C"
14558 flags_dbg_all="-g -s"
14561 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
14562 flags_opt_yes="-xO2"
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14566 $as_echo "no" >&6; }
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
14571 $as_echo_n "checking if compiler is Tiny C... " >&6; }
14573 if test -z "$SED"; then
14574 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14576 if test -z "$GREP"; then
14577 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14582 /* end confdefs.h. */
14586 CURL_DEF_TOKEN __TINYC__
14591 if ac_fn_c_try_cpp "$LINENO"; then :
14593 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14594 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14595 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14596 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14597 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
14602 rm -f conftest.err conftest.i conftest.$ac_ext
14603 if test -z "$tmp_exp"; then
14604 curl_cv_have_def___TINYC__=no
14607 curl_cv_have_def___TINYC__=yes
14608 curl_cv_def___TINYC__=$tmp_exp
14612 if test "$curl_cv_have_def___TINYC__" = "yes"; then
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14614 $as_echo "yes" >&6; }
14615 compiler_id="TINY_C"
14616 flags_dbg_all="-g -b"
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14624 $as_echo "no" >&6; }
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
14629 $as_echo_n "checking if compiler is Watcom C... " >&6; }
14631 if test -z "$SED"; then
14632 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14634 if test -z "$GREP"; then
14635 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14640 /* end confdefs.h. */
14644 CURL_DEF_TOKEN __WATCOMC__
14649 if ac_fn_c_try_cpp "$LINENO"; then :
14651 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14652 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14653 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14654 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14655 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
14660 rm -f conftest.err conftest.i conftest.$ac_ext
14661 if test -z "$tmp_exp"; then
14662 curl_cv_have_def___WATCOMC__=no
14665 curl_cv_have_def___WATCOMC__=yes
14666 curl_cv_def___WATCOMC__=$tmp_exp
14670 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14672 $as_echo "yes" >&6; }
14674 if test -z "$SED"; then
14675 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
14677 if test -z "$GREP"; then
14678 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
14682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14683 /* end confdefs.h. */
14687 CURL_DEF_TOKEN __UNIX__
14692 if ac_fn_c_try_cpp "$LINENO"; then :
14694 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
14695 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
14696 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
14697 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
14698 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
14703 rm -f conftest.err conftest.i conftest.$ac_ext
14704 if test -z "$tmp_exp"; then
14705 curl_cv_have_def___UNIX__=no
14708 curl_cv_have_def___UNIX__=yes
14709 curl_cv_def___UNIX__=$tmp_exp
14713 if test "$curl_cv_have_def___UNIX__" = "yes"; then
14714 compiler_id="WATCOM_UNIX_C"
14715 flags_dbg_all="-g1 -g1+ -g2 -g3"
14716 flags_dbg_yes="-g2"
14718 flags_opt_all="-O0 -O1 -O2 -O3"
14719 flags_opt_yes="-O2"
14720 flags_opt_off="-O0"
14722 compiler_id="WATCOM_WINDOWS_C"
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14732 $as_echo "no" >&6; }
14736 if test "$compiler_id" = "unknown"; then
14739 *** Warning: This configure script does not have information about the
14740 *** compiler you are using, relative to the flags required to enable or
14741 *** disable generation of debug info, optimization options or warnings.
14743 *** Whatever settings are present in CFLAGS will be used for this run.
14745 *** If you wish to help the cURL project to better support your compiler
14746 *** you can report this and the required info on the libcurl development
14747 *** mailing list: http://cool.haxx.se/mailman/listinfo/curl-library/
14755 eval _sqz_input=\$$1
14756 for _sqz_token in $_sqz_input; do
14757 if test -z "$_sqz_result"; then
14758 _sqz_result="$_sqz_token"
14760 _sqz_result="$_sqz_result $_sqz_token"
14763 eval $1=\$_sqz_result
14769 if test "$compiler_id" != "unknown"; then
14771 if test "$compiler_id" = "GNU_C" ||
14772 test "$compiler_id" = "CLANG"; then
14774 tmp_has_include="no"
14775 tmp_chg_FLAGS="$CFLAGS"
14776 for word1 in $tmp_chg_FLAGS; do
14779 tmp_has_include="yes"
14783 if test "$tmp_has_include" = "yes"; then
14784 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
14785 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
14786 CFLAGS="$tmp_chg_FLAGS"
14789 tmp_has_include="no"
14790 tmp_chg_FLAGS="$CPPFLAGS"
14791 for word1 in $tmp_chg_FLAGS; do
14794 tmp_has_include="yes"
14798 if test "$tmp_has_include" = "yes"; then
14799 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
14800 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
14801 CPPFLAGS="$tmp_chg_FLAGS"
14807 tmp_save_CPPFLAGS="$CPPFLAGS"
14808 tmp_save_CFLAGS="$CFLAGS"
14812 case "$compiler_id" in
14816 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
14821 tmp_CFLAGS="$tmp_CFLAGS -std1"
14822 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
14823 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
14824 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
14829 tmp_CFLAGS="$tmp_CFLAGS"
14834 tmp_CFLAGS="$tmp_CFLAGS -z"
14835 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
14840 tmp_CFLAGS="$tmp_CFLAGS -qthreaded"
14841 tmp_CFLAGS="$tmp_CFLAGS -qnoansialias"
14842 tmp_CFLAGS="$tmp_CFLAGS -qhalt=e"
14847 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
14848 tmp_CPPFLAGS="$tmp_CPPFLAGS -we 140,147,165,266"
14849 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd 279,981,1469"
14854 tmp_CFLAGS="$tmp_CFLAGS"
14859 tmp_CFLAGS="$tmp_CFLAGS -n"
14864 tmp_CFLAGS="$tmp_CFLAGS"
14869 tmp_CFLAGS="$tmp_CFLAGS"
14874 tmp_CFLAGS="$tmp_CFLAGS"
14879 tmp_CFLAGS="$tmp_CFLAGS"
14884 tmp_CFLAGS="$tmp_CFLAGS"
14889 tmp_CFLAGS="$tmp_CFLAGS"
14894 squeeze tmp_CPPFLAGS
14897 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
14899 $as_echo_n "checking if compiler accepts some basic options... " >&6; }
14900 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
14901 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
14905 tmp_compiler_works="unknown"
14906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14907 /* end confdefs.h. */
14922 if ac_fn_c_try_compile "$LINENO"; then :
14924 tmp_compiler_works="yes"
14928 tmp_compiler_works="no"
14930 sed 's/^/cc-fail: /' conftest.err >&6
14934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14935 if test "$tmp_compiler_works" = "yes"; then
14936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14937 /* end confdefs.h. */
14952 if ac_fn_c_try_link "$LINENO"; then :
14954 tmp_compiler_works="yes"
14958 tmp_compiler_works="no"
14960 sed 's/^/link-fail: /' conftest.err >&6
14964 rm -f core conftest.err conftest.$ac_objext \
14965 conftest$ac_exeext conftest.$ac_ext
14967 if test "x$cross_compiling" != "xyes" &&
14968 test "$tmp_compiler_works" = "yes"; then
14969 if test "$cross_compiling" = yes; then :
14970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14972 as_fn_error $? "cannot run test program while cross compiling
14973 See \`config.log' for more details" "$LINENO" 5 ; }
14975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14976 /* end confdefs.h. */
14980 # include <stdlib.h>
14994 if ac_fn_c_try_run "$LINENO"; then :
14996 tmp_compiler_works="yes"
15000 tmp_compiler_works="no"
15002 echo "run-fail: test program exited with status $ac_status" >&6
15006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15007 conftest.$ac_objext conftest.beam conftest.$ac_ext
15011 if test "$tmp_compiler_works" = "yes"; then
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15014 $as_echo "yes" >&6; }
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
15016 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15021 $as_echo "no" >&6; }
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
15023 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
15024 CPPFLAGS="$tmp_save_CPPFLAGS"
15025 CFLAGS="$tmp_save_CFLAGS"
15035 if test "$compiler_id" != "unknown"; then
15037 tmp_save_CFLAGS="$CFLAGS"
15038 tmp_save_CPPFLAGS="$CPPFLAGS"
15041 tmp_CFLAGS="$CFLAGS"
15042 tmp_CPPFLAGS="$CPPFLAGS"
15045 for word1 in $tmp_CFLAGS; do
15046 ac_var_strip_word="no"
15047 for word2 in $flags_dbg_all; do
15048 if test "$word1" = "$word2"; then
15049 ac_var_strip_word="yes"
15052 if test "$ac_var_strip_word" = "no"; then
15053 ac_var_stripped="$ac_var_stripped $word1"
15056 tmp_CFLAGS="$ac_var_stripped"
15061 for word1 in $tmp_CPPFLAGS; do
15062 ac_var_strip_word="no"
15063 for word2 in $flags_dbg_all; do
15064 if test "$word1" = "$word2"; then
15065 ac_var_strip_word="yes"
15068 if test "$ac_var_strip_word" = "no"; then
15069 ac_var_stripped="$ac_var_stripped $word1"
15072 tmp_CPPFLAGS="$ac_var_stripped"
15073 squeeze tmp_CPPFLAGS
15076 if test "$want_debug" = "yes"; then
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
15078 $as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
15079 tmp_options="$flags_dbg_yes"
15081 if test "$want_debug" = "no"; then
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
15083 $as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
15084 tmp_options="$flags_dbg_off"
15087 CPPFLAGS="$tmp_CPPFLAGS"
15088 CFLAGS="$tmp_CFLAGS $tmp_options"
15092 tmp_compiler_works="unknown"
15093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15094 /* end confdefs.h. */
15109 if ac_fn_c_try_compile "$LINENO"; then :
15111 tmp_compiler_works="yes"
15115 tmp_compiler_works="no"
15117 sed 's/^/cc-fail: /' conftest.err >&6
15121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15122 if test "$tmp_compiler_works" = "yes"; then
15123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15124 /* end confdefs.h. */
15139 if ac_fn_c_try_link "$LINENO"; then :
15141 tmp_compiler_works="yes"
15145 tmp_compiler_works="no"
15147 sed 's/^/link-fail: /' conftest.err >&6
15151 rm -f core conftest.err conftest.$ac_objext \
15152 conftest$ac_exeext conftest.$ac_ext
15154 if test "x$cross_compiling" != "xyes" &&
15155 test "$tmp_compiler_works" = "yes"; then
15156 if test "$cross_compiling" = yes; then :
15157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15159 as_fn_error $? "cannot run test program while cross compiling
15160 See \`config.log' for more details" "$LINENO" 5 ; }
15162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15163 /* end confdefs.h. */
15167 # include <stdlib.h>
15181 if ac_fn_c_try_run "$LINENO"; then :
15183 tmp_compiler_works="yes"
15187 tmp_compiler_works="no"
15189 echo "run-fail: test program exited with status $ac_status" >&6
15193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15194 conftest.$ac_objext conftest.beam conftest.$ac_ext
15198 if test "$tmp_compiler_works" = "yes"; then
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15201 $as_echo "yes" >&6; }
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
15203 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15208 $as_echo "no" >&6; }
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
15210 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
15211 CPPFLAGS="$tmp_save_CPPFLAGS"
15212 CFLAGS="$tmp_save_CFLAGS"
15221 if test "$compiler_id" != "unknown"; then
15223 tmp_save_CFLAGS="$CFLAGS"
15224 tmp_save_CPPFLAGS="$CPPFLAGS"
15227 tmp_CFLAGS="$CFLAGS"
15228 tmp_CPPFLAGS="$CPPFLAGS"
15229 honor_optimize_option="yes"
15232 if test "$want_optimize" = "assume_no" ||
15233 test "$want_optimize" = "assume_yes"; then
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
15235 $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
15238 ac_var_match_word="no"
15239 for word1 in $tmp_CFLAGS; do
15240 for word2 in $flags_opt_all; do
15241 if test "$word1" = "$word2"; then
15242 ac_var_match_word="yes"
15247 if test "$ac_var_match_word" = "yes"; then
15249 honor_optimize_option="no"
15256 ac_var_match_word="no"
15257 for word1 in $tmp_CPPFLAGS; do
15258 for word2 in $flags_opt_all; do
15259 if test "$word1" = "$word2"; then
15260 ac_var_match_word="yes"
15265 if test "$ac_var_match_word" = "yes"; then
15267 honor_optimize_option="no"
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
15273 $as_echo "$honor_optimize_option" >&6; }
15274 if test "$honor_optimize_option" = "yes"; then
15275 if test "$want_optimize" = "assume_yes"; then
15276 want_optimize="yes"
15278 if test "$want_optimize" = "assume_no"; then
15284 if test "$honor_optimize_option" = "yes"; then
15287 for word1 in $tmp_CFLAGS; do
15288 ac_var_strip_word="no"
15289 for word2 in $flags_opt_all; do
15290 if test "$word1" = "$word2"; then
15291 ac_var_strip_word="yes"
15294 if test "$ac_var_strip_word" = "no"; then
15295 ac_var_stripped="$ac_var_stripped $word1"
15298 tmp_CFLAGS="$ac_var_stripped"
15303 for word1 in $tmp_CPPFLAGS; do
15304 ac_var_strip_word="no"
15305 for word2 in $flags_opt_all; do
15306 if test "$word1" = "$word2"; then
15307 ac_var_strip_word="yes"
15310 if test "$ac_var_strip_word" = "no"; then
15311 ac_var_stripped="$ac_var_stripped $word1"
15314 tmp_CPPFLAGS="$ac_var_stripped"
15315 squeeze tmp_CPPFLAGS
15317 if test "$want_optimize" = "yes"; then
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
15319 $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
15320 tmp_options="$flags_opt_yes"
15322 if test "$want_optimize" = "no"; then
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
15324 $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
15325 tmp_options="$flags_opt_off"
15327 CPPFLAGS="$tmp_CPPFLAGS"
15328 CFLAGS="$tmp_CFLAGS $tmp_options"
15332 tmp_compiler_works="unknown"
15333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15334 /* end confdefs.h. */
15349 if ac_fn_c_try_compile "$LINENO"; then :
15351 tmp_compiler_works="yes"
15355 tmp_compiler_works="no"
15357 sed 's/^/cc-fail: /' conftest.err >&6
15361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15362 if test "$tmp_compiler_works" = "yes"; then
15363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15364 /* end confdefs.h. */
15379 if ac_fn_c_try_link "$LINENO"; then :
15381 tmp_compiler_works="yes"
15385 tmp_compiler_works="no"
15387 sed 's/^/link-fail: /' conftest.err >&6
15391 rm -f core conftest.err conftest.$ac_objext \
15392 conftest$ac_exeext conftest.$ac_ext
15394 if test "x$cross_compiling" != "xyes" &&
15395 test "$tmp_compiler_works" = "yes"; then
15396 if test "$cross_compiling" = yes; then :
15397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15399 as_fn_error $? "cannot run test program while cross compiling
15400 See \`config.log' for more details" "$LINENO" 5 ; }
15402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15403 /* end confdefs.h. */
15407 # include <stdlib.h>
15421 if ac_fn_c_try_run "$LINENO"; then :
15423 tmp_compiler_works="yes"
15427 tmp_compiler_works="no"
15429 echo "run-fail: test program exited with status $ac_status" >&6
15433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15434 conftest.$ac_objext conftest.beam conftest.$ac_ext
15438 if test "$tmp_compiler_works" = "yes"; then
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15441 $as_echo "yes" >&6; }
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
15443 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15448 $as_echo "no" >&6; }
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
15450 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
15451 CPPFLAGS="$tmp_save_CPPFLAGS"
15452 CFLAGS="$tmp_save_CFLAGS"
15462 if test "$compiler_id" != "unknown"; then
15464 tmp_save_CPPFLAGS="$CPPFLAGS"
15465 tmp_save_CFLAGS="$CFLAGS"
15469 case "$compiler_id" in
15473 if test "$want_warnings" = "yes"; then
15474 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
15475 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
15476 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
15477 tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
15478 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
15479 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
15480 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
15481 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
15482 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
15483 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
15484 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
15485 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
15486 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
15487 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
15488 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
15489 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
15490 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
15492 if test "$compiler_num" -ge "101"; then
15493 tmp_CFLAGS="$tmp_CFLAGS -Wunused"
15500 if test "$want_warnings" = "yes"; then
15501 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
15507 if test "$want_warnings" = "yes"; then
15509 if test "x$cross_compiling" != "xyes" ||
15510 test "$compiler_num" -ge "300"; then
15511 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
15514 tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
15516 if test "$compiler_num" -ge "104"; then
15517 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
15518 if test "x$cross_compiling" != "xyes" ||
15519 test "$compiler_num" -ge "300"; then
15520 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
15524 if test "$compiler_num" -ge "207"; then
15525 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
15526 if test "x$cross_compiling" != "xyes" ||
15527 test "$compiler_num" -ge "300"; then
15528 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
15529 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
15533 if test "$compiler_num" -ge "295"; then
15534 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
15537 if test "$compiler_num" -ge "296"; then
15538 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
15539 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
15540 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
15543 if test "$compiler_num" -ge "297"; then
15544 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
15547 if test "$compiler_num" -ge "300"; then
15548 tmp_CFLAGS="$tmp_CFLAGS"
15551 if test "$compiler_num" -ge "303"; then
15552 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
15555 if test "$compiler_num" -ge "304"; then
15556 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
15559 if test "$compiler_num" -ge "402"; then
15560 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
15562 if test "$compiler_num" -ge "403"; then
15563 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
15564 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
15565 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
15566 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
15571 if test "$compiler_num" -ge "300"; then
15572 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
15574 if test "x$cross_compiling" = "xyes"; then
15575 if test "$compiler_num" -ge "104"; then
15576 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
15578 if test "$compiler_num" -ge "207"; then
15579 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
15580 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
15588 if test "$want_warnings" = "yes"; then
15589 tmp_CFLAGS="$tmp_CFLAGS +w1"
15595 tmp_CFLAGS="$tmp_CFLAGS"
15600 if test "$want_warnings" = "yes"; then
15601 if test "$compiler_num" -gt "600"; then
15602 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
15603 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
15604 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
15605 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
15606 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
15607 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
15608 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
15609 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
15610 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
15611 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
15612 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
15615 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
15616 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
15617 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
15618 if test "$compiler_num" -ge "1000"; then
15619 tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
15625 tmp_CFLAGS="$tmp_CFLAGS"
15630 if test "$want_warnings" = "yes"; then
15631 tmp_CFLAGS="$tmp_CFLAGS"
15637 if test "$want_warnings" = "yes"; then
15638 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
15644 if test "$want_warnings" = "yes"; then
15645 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
15646 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
15652 if test "$want_warnings" = "yes"; then
15653 tmp_CFLAGS="$tmp_CFLAGS -v"
15659 if test "$want_warnings" = "yes"; then
15660 tmp_CFLAGS="$tmp_CFLAGS -Wall"
15661 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
15662 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
15668 if test "$want_warnings" = "yes"; then
15669 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
15675 tmp_CFLAGS="$tmp_CFLAGS"
15680 squeeze tmp_CPPFLAGS
15683 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
15685 $as_echo_n "checking if compiler accepts strict warning options... " >&6; }
15686 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
15687 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
15691 tmp_compiler_works="unknown"
15692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15693 /* end confdefs.h. */
15708 if ac_fn_c_try_compile "$LINENO"; then :
15710 tmp_compiler_works="yes"
15714 tmp_compiler_works="no"
15716 sed 's/^/cc-fail: /' conftest.err >&6
15720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15721 if test "$tmp_compiler_works" = "yes"; then
15722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15723 /* end confdefs.h. */
15738 if ac_fn_c_try_link "$LINENO"; then :
15740 tmp_compiler_works="yes"
15744 tmp_compiler_works="no"
15746 sed 's/^/link-fail: /' conftest.err >&6
15750 rm -f core conftest.err conftest.$ac_objext \
15751 conftest$ac_exeext conftest.$ac_ext
15753 if test "x$cross_compiling" != "xyes" &&
15754 test "$tmp_compiler_works" = "yes"; then
15755 if test "$cross_compiling" = yes; then :
15756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15758 as_fn_error $? "cannot run test program while cross compiling
15759 See \`config.log' for more details" "$LINENO" 5 ; }
15761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15762 /* end confdefs.h. */
15766 # include <stdlib.h>
15780 if ac_fn_c_try_run "$LINENO"; then :
15782 tmp_compiler_works="yes"
15786 tmp_compiler_works="no"
15788 echo "run-fail: test program exited with status $ac_status" >&6
15792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15793 conftest.$ac_objext conftest.beam conftest.$ac_ext
15797 if test "$tmp_compiler_works" = "yes"; then
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15800 $as_echo "yes" >&6; }
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
15802 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15807 $as_echo "no" >&6; }
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
15809 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
15810 CPPFLAGS="$tmp_save_CPPFLAGS"
15811 CFLAGS="$tmp_save_CFLAGS"
15820 if test "$compiler_id" = "INTEL_UNIX_C"; then
15822 if test "$compiler_num" -ge "1000"; then
15823 CFLAGS="$CFLAGS -shared-intel"
15824 elif test "$compiler_num" -ge "900"; then
15825 CFLAGS="$CFLAGS -i-dynamic"
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
15832 $as_echo_n "checking if compiler halts on compilation errors... " >&6; }
15833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15834 /* end confdefs.h. */
15841 force compilation error
15848 if ac_fn_c_try_compile "$LINENO"; then :
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15851 $as_echo "no" >&6; }
15852 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15857 $as_echo "yes" >&6; }
15860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
15864 $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
15865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15866 /* end confdefs.h. */
15869 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
15881 if ac_fn_c_try_compile "$LINENO"; then :
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15884 $as_echo "no" >&6; }
15885 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15890 $as_echo "yes" >&6; }
15893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if shared libraries need -no-undefined" >&5
15898 $as_echo_n "checking if shared libraries need -no-undefined... " >&6; }
15899 need_no_undefined="no"
15901 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc* | *-*-aix*)
15902 need_no_undefined="yes"
15905 if test "x$allow_undefined" = "xno"; then
15906 need_no_undefined="yes"
15907 elif test "x$allow_undefined_flag" = "xunsupported"; then
15908 need_no_undefined="yes"
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_no_undefined" >&5
15911 $as_echo "$need_no_undefined" >&6; }
15915 if test x$need_no_undefined = xyes; then
15917 NO_UNDEFINED_FALSE='#'
15919 NO_UNDEFINED_TRUE='#'
15920 NO_UNDEFINED_FALSE=
15925 supports_curldebug="unknown"
15926 if test "$want_curldebug" = "yes"; then
15927 if test "x$enable_shared" != "xno" &&
15928 test "x$enable_shared" != "xyes"; then
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
15930 $as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
15931 supports_curldebug="no"
15933 if test "x$enable_static" != "xno" &&
15934 test "x$enable_static" != "xyes"; then
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
15936 $as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
15937 supports_curldebug="no"
15939 if test "$supports_curldebug" != "no"; then
15940 if test "$enable_shared" = "yes" &&
15941 test "$need_no_undefined" = "yes"; then
15942 supports_curldebug="no"
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
15944 $as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
15949 if test "$want_curldebug" = "yes"; then
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
15951 $as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
15952 test "$supports_curldebug" = "no" || supports_curldebug="yes"
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
15954 $as_echo "$supports_curldebug" >&6; }
15955 if test "$supports_curldebug" = "no"; then
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
15957 $as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
15958 want_curldebug="no"
15962 if test "$want_curldebug" = "yes"; then
15963 CPPFLAGS="$CPPFLAGS -DCURLDEBUG"
15966 if test "$want_debug" = "yes"; then
15967 CPPFLAGS="$CPPFLAGS -DDEBUGBUILD"
15973 if test x$want_curldebug = xyes; then
15975 CURLDEBUG_FALSE='#'
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
15986 $as_echo_n "checking for windows.h... " >&6; }
15987 if test "${ac_cv_header_windows_h+set}" = set; then :
15988 $as_echo_n "(cached) " >&6
15991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15992 /* end confdefs.h. */
15996 #ifndef WIN32_LEAN_AND_MEAN
15997 #define WIN32_LEAN_AND_MEAN
15999 #include <windows.h>
16004 #if defined(__CYGWIN__) || defined(__CEGCC__)
16005 HAVE_WINDOWS_H shall not be defined.
16007 int dummy=2*WINVER;
16015 if ac_fn_c_try_compile "$LINENO"; then :
16017 ac_cv_header_windows_h="yes"
16021 ac_cv_header_windows_h="no"
16024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
16028 $as_echo "$ac_cv_header_windows_h" >&6; }
16029 case "$ac_cv_header_windows_h" in
16032 cat >>confdefs.h <<_ACEOF
16033 #define HAVE_WINDOWS_H 1
16037 cat >>confdefs.h <<_ACEOF
16038 #define WIN32_LEAN_AND_MEAN 1
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
16046 $as_echo_n "checking whether build target is a native Windows one... " >&6; }
16047 if test "${ac_cv_native_windows+set}" = set; then :
16048 $as_echo_n "(cached) " >&6
16051 if test "$ac_cv_header_windows_h" = "no"; then
16052 ac_cv_native_windows="no"
16054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16055 /* end confdefs.h. */
16062 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
16063 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
16066 Not a native Windows build target.
16074 if ac_fn_c_try_compile "$LINENO"; then :
16076 ac_cv_native_windows="yes"
16080 ac_cv_native_windows="no"
16083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_native_windows" >&5
16088 $as_echo "$ac_cv_native_windows" >&6; }
16089 case "$ac_cv_native_windows" in
16092 cat >>confdefs.h <<_ACEOF
16093 #define NATIVE_WINDOWS 1
16099 case X-"$ac_cv_native_windows" in
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
16103 $as_echo_n "checking for winsock.h... " >&6; }
16104 if test "${ac_cv_header_winsock_h+set}" = set; then :
16105 $as_echo_n "(cached) " >&6
16108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16109 /* end confdefs.h. */
16113 #ifndef WIN32_LEAN_AND_MEAN
16114 #define WIN32_LEAN_AND_MEAN
16116 #include <windows.h>
16117 #include <winsock.h>
16122 #if defined(__CYGWIN__) || defined(__CEGCC__)
16123 HAVE_WINSOCK_H shall not be defined.
16125 int dummy=WSACleanup();
16133 if ac_fn_c_try_compile "$LINENO"; then :
16135 ac_cv_header_winsock_h="yes"
16139 ac_cv_header_winsock_h="no"
16142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
16146 $as_echo "$ac_cv_header_winsock_h" >&6; }
16147 case "$ac_cv_header_winsock_h" in
16150 cat >>confdefs.h <<_ACEOF
16151 #define HAVE_WINSOCK_H 1
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
16159 $as_echo_n "checking for winsock2.h... " >&6; }
16160 if test "${ac_cv_header_winsock2_h+set}" = set; then :
16161 $as_echo_n "(cached) " >&6
16164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16165 /* end confdefs.h. */
16169 #ifndef WIN32_LEAN_AND_MEAN
16170 #define WIN32_LEAN_AND_MEAN
16172 #include <windows.h>
16173 #include <winsock2.h>
16178 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
16179 HAVE_WINSOCK2_H shall not be defined.
16181 int dummy=2*IPPROTO_ESP;
16189 if ac_fn_c_try_compile "$LINENO"; then :
16191 ac_cv_header_winsock2_h="yes"
16195 ac_cv_header_winsock2_h="no"
16198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
16202 $as_echo "$ac_cv_header_winsock2_h" >&6; }
16203 case "$ac_cv_header_winsock2_h" in
16206 cat >>confdefs.h <<_ACEOF
16207 #define HAVE_WINSOCK2_H 1
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
16215 $as_echo_n "checking for ws2tcpip.h... " >&6; }
16216 if test "${ac_cv_header_ws2tcpip_h+set}" = set; then :
16217 $as_echo_n "(cached) " >&6
16220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16221 /* end confdefs.h. */
16225 #ifndef WIN32_LEAN_AND_MEAN
16226 #define WIN32_LEAN_AND_MEAN
16228 #include <windows.h>
16229 #include <winsock2.h>
16230 #include <ws2tcpip.h>
16235 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
16236 HAVE_WS2TCPIP_H shall not be defined.
16238 int dummy=2*IP_PKTINFO;
16246 if ac_fn_c_try_compile "$LINENO"; then :
16248 ac_cv_header_ws2tcpip_h="yes"
16252 ac_cv_header_ws2tcpip_h="no"
16255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
16259 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
16260 case "$ac_cv_header_ws2tcpip_h" in
16263 cat >>confdefs.h <<_ACEOF
16264 #define HAVE_WS2TCPIP_H 1
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
16272 $as_echo_n "checking for winldap.h... " >&6; }
16273 if test "${ac_cv_header_winldap_h+set}" = set; then :
16274 $as_echo_n "(cached) " >&6
16277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16278 /* end confdefs.h. */
16282 #ifdef HAVE_WINDOWS_H
16283 #ifndef WIN32_LEAN_AND_MEAN
16284 #define WIN32_LEAN_AND_MEAN
16286 #include <windows.h>
16288 #include <winldap.h>
16293 #if defined(__CYGWIN__) || defined(__CEGCC__)
16294 HAVE_WINLDAP_H shall not be defined.
16296 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
16297 ULONG res = ldap_unbind(ldp);
16305 if ac_fn_c_try_compile "$LINENO"; then :
16307 ac_cv_header_winldap_h="yes"
16311 ac_cv_header_winldap_h="no"
16314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winldap_h" >&5
16318 $as_echo "$ac_cv_header_winldap_h" >&6; }
16319 case "$ac_cv_header_winldap_h" in
16322 cat >>confdefs.h <<_ACEOF
16323 #define HAVE_WINLDAP_H 1
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
16331 $as_echo_n "checking for winber.h... " >&6; }
16332 if test "${ac_cv_header_winber_h+set}" = set; then :
16333 $as_echo_n "(cached) " >&6
16336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16337 /* end confdefs.h. */
16341 #ifdef HAVE_WINDOWS_H
16342 #ifndef WIN32_LEAN_AND_MEAN
16343 #define WIN32_LEAN_AND_MEAN
16345 #include <windows.h>
16347 #include <winldap.h>
16348 #include <winber.h>
16353 #if defined(__CYGWIN__) || defined(__CEGCC__)
16354 HAVE_WINBER_H shall not be defined.
16356 BERVAL *bvp = NULL;
16357 BerElement *bep = ber_init(bvp);
16366 if ac_fn_c_try_compile "$LINENO"; then :
16368 ac_cv_header_winber_h="yes"
16372 ac_cv_header_winber_h="no"
16375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winber_h" >&5
16379 $as_echo "$ac_cv_header_winber_h" >&6; }
16380 case "$ac_cv_header_winber_h" in
16383 cat >>confdefs.h <<_ACEOF
16384 #define HAVE_WINBER_H 1
16392 ac_cv_header_winsock_h="no"
16393 ac_cv_header_winsock2_h="no"
16394 ac_cv_header_ws2tcpip_h="no"
16395 ac_cv_header_winldap_h="no"
16396 ac_cv_header_winber_h="no"
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
16401 $as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
16402 curl_win32_file_api="no"
16403 if test "$ac_cv_header_windows_h" = "yes"; then
16404 if test x"$enable_largefile" != "xno"; then
16405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16406 /* end confdefs.h. */
16413 #if !defined(_WIN32_WCE) && \
16414 (defined(__MINGW32__) || \
16415 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
16418 WIN32 large file API not supported.
16426 if ac_fn_c_try_compile "$LINENO"; then :
16428 curl_win32_file_api="win32_large_files"
16431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16433 if test "$curl_win32_file_api" = "no"; then
16434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16435 /* end confdefs.h. */
16442 #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
16445 WIN32 small file API not supported.
16453 if ac_fn_c_try_compile "$LINENO"; then :
16455 curl_win32_file_api="win32_small_files"
16458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16461 case "$curl_win32_file_api" in
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
16464 $as_echo "yes (large file enabled)" >&6; }
16466 cat >>confdefs.h <<_ACEOF
16467 #define USE_WIN32_LARGE_FILES 1
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
16473 $as_echo "yes (large file disabled)" >&6; }
16475 cat >>confdefs.h <<_ACEOF
16476 #define USE_WIN32_LARGE_FILES 1
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16482 $as_echo "no" >&6; }
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
16488 $as_echo_n "checking whether to support http... " >&6; }
16489 # Check whether --enable-http was given.
16490 if test "${enable_http+set}" = set; then :
16491 enableval=$enable_http; case "$enableval" in
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16494 $as_echo "no" >&6; }
16496 $as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
16499 $as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
16500 CURL_DISABLE_HTTP=1
16503 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
16505 CURL_DISABLE_RTSP=1
16508 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16509 $as_echo "yes" >&6; }
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16514 $as_echo "yes" >&6; }
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
16519 $as_echo_n "checking whether to support ftp... " >&6; }
16520 # Check whether --enable-ftp was given.
16521 if test "${enable_ftp+set}" = set; then :
16522 enableval=$enable_ftp; case "$enableval" in
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16525 $as_echo "no" >&6; }
16527 $as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
16532 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16533 $as_echo "yes" >&6; }
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16538 $as_echo "yes" >&6; }
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
16543 $as_echo_n "checking whether to support file... " >&6; }
16544 # Check whether --enable-file was given.
16545 if test "${enable_file+set}" = set; then :
16546 enableval=$enable_file; case "$enableval" in
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16549 $as_echo "no" >&6; }
16551 $as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
16553 CURL_DISABLE_FILE=1
16556 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16557 $as_echo "yes" >&6; }
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16562 $as_echo "yes" >&6; }
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
16567 $as_echo_n "checking whether to support ldap... " >&6; }
16568 # Check whether --enable-ldap was given.
16569 if test "${enable_ldap+set}" = set; then :
16570 enableval=$enable_ldap; case "$enableval" in
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16573 $as_echo "no" >&6; }
16575 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
16577 CURL_DISABLE_LDAP=1
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16582 $as_echo "yes" >&6; }
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16588 $as_echo "yes" >&6; }
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
16593 $as_echo_n "checking whether to support ldaps... " >&6; }
16594 # Check whether --enable-ldaps was given.
16595 if test "${enable_ldaps+set}" = set; then :
16596 enableval=$enable_ldaps; case "$enableval" in
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16599 $as_echo "no" >&6; }
16601 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
16603 CURL_DISABLE_LDAPS=1
16606 *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
16608 $as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
16610 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
16612 CURL_DISABLE_LDAPS=1
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16616 $as_echo "yes" >&6; }
16618 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
16627 if test "x$CURL_DISABLE_LDAP" = "x1" ; then
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16629 $as_echo "no" >&6; }
16631 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
16633 CURL_DISABLE_LDAPS=1
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16637 $as_echo "yes" >&6; }
16639 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
16649 $as_echo_n "checking whether to support rtsp... " >&6; }
16650 # Check whether --enable-rtsp was given.
16651 if test "${enable_rtsp+set}" = set; then :
16652 enableval=$enable_rtsp; case "$enableval" in
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16655 $as_echo "no" >&6; }
16657 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
16659 CURL_DISABLE_RTSP=1
16662 *) if test x$CURL_DISABLE_HTTP = x1 ; then
16663 as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16666 $as_echo "yes" >&6; }
16667 curl_rtsp_msg="enabled"
16672 if test "x$CURL_DISABLE_HTTP" != "x1"; then
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16674 $as_echo "yes" >&6; }
16675 curl_rtsp_msg="enabled"
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16678 $as_echo "no" >&6; }
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
16685 $as_echo_n "checking whether to support proxies... " >&6; }
16686 # Check whether --enable-proxy was given.
16687 if test "${enable_proxy+set}" = set; then :
16688 enableval=$enable_proxy; case "$enableval" in
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16691 $as_echo "no" >&6; }
16693 $as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
16695 CURL_DISABLE_PROXY=1
16698 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16699 $as_echo "yes" >&6; }
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16704 $as_echo "yes" >&6; }
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
16710 $as_echo_n "checking whether to support dict... " >&6; }
16711 # Check whether --enable-dict was given.
16712 if test "${enable_dict+set}" = set; then :
16713 enableval=$enable_dict; case "$enableval" in
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16716 $as_echo "no" >&6; }
16718 $as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
16720 CURL_DISABLE_DICT=1
16723 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16724 $as_echo "yes" >&6; }
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16729 $as_echo "yes" >&6; }
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
16734 $as_echo_n "checking whether to support telnet... " >&6; }
16735 # Check whether --enable-telnet was given.
16736 if test "${enable_telnet+set}" = set; then :
16737 enableval=$enable_telnet; case "$enableval" in
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16740 $as_echo "no" >&6; }
16742 $as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
16744 CURL_DISABLE_TELNET=1
16747 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16748 $as_echo "yes" >&6; }
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16753 $as_echo "yes" >&6; }
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
16758 $as_echo_n "checking whether to support tftp... " >&6; }
16759 # Check whether --enable-tftp was given.
16760 if test "${enable_tftp+set}" = set; then :
16761 enableval=$enable_tftp; case "$enableval" in
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16764 $as_echo "no" >&6; }
16766 $as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
16768 CURL_DISABLE_TFTP=1
16771 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16772 $as_echo "yes" >&6; }
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16777 $as_echo "yes" >&6; }
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
16783 $as_echo_n "checking whether to support pop3... " >&6; }
16784 # Check whether --enable-pop3 was given.
16785 if test "${enable_pop3+set}" = set; then :
16786 enableval=$enable_pop3; case "$enableval" in
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16789 $as_echo "no" >&6; }
16791 $as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
16793 CURL_DISABLE_POP3=1
16796 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16797 $as_echo "yes" >&6; }
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16802 $as_echo "yes" >&6; }
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
16809 $as_echo_n "checking whether to support imap... " >&6; }
16810 # Check whether --enable-imap was given.
16811 if test "${enable_imap+set}" = set; then :
16812 enableval=$enable_imap; case "$enableval" in
16814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16815 $as_echo "no" >&6; }
16817 $as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
16819 CURL_DISABLE_IMAP=1
16822 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16823 $as_echo "yes" >&6; }
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16828 $as_echo "yes" >&6; }
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
16835 $as_echo_n "checking whether to support smtp... " >&6; }
16836 # Check whether --enable-smtp was given.
16837 if test "${enable_smtp+set}" = set; then :
16838 enableval=$enable_smtp; case "$enableval" in
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16841 $as_echo "no" >&6; }
16843 $as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
16845 CURL_DISABLE_SMTP=1
16848 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16849 $as_echo "yes" >&6; }
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16854 $as_echo "yes" >&6; }
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
16860 $as_echo_n "checking whether to support gopher... " >&6; }
16861 # Check whether --enable-gopher was given.
16862 if test "${enable_gopher+set}" = set; then :
16863 enableval=$enable_gopher; case "$enableval" in
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16866 $as_echo "no" >&6; }
16868 $as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
16870 CURL_DISABLE_GOPHER=1
16873 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16874 $as_echo "yes" >&6; }
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16879 $as_echo "yes" >&6; }
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
16887 $as_echo_n "checking whether to provide built-in manual... " >&6; }
16888 # Check whether --enable-manual was given.
16889 if test "${enable_manual+set}" = set; then :
16890 enableval=$enable_manual; case "$enableval" in
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16893 $as_echo "no" >&6; }
16895 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16896 $as_echo "yes" >&6; }
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16902 $as_echo "yes" >&6; }
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
16911 $as_echo_n "checking if X/Open network library is required... " >&6; }
16912 tst_lib_xnet_required="no"
16913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16914 /* end confdefs.h. */
16919 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
16921 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
16924 force compilation error
16930 if ac_fn_c_try_compile "$LINENO"; then :
16932 tst_lib_xnet_required="yes"
16933 LIBS="$LIBS -lxnet"
16936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
16938 $as_echo "$tst_lib_xnet_required" >&6; }
16941 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
16942 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
16943 HAVE_GETHOSTBYNAME="1"
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
16947 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
16948 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
16949 $as_echo_n "(cached) " >&6
16951 ac_check_lib_save_LIBS=$LIBS
16953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16954 /* end confdefs.h. */
16960 char gethostbyname ();
16963 return gethostbyname ();
16968 if ac_fn_c_try_link "$LINENO"; then :
16969 ac_cv_lib_nsl_gethostbyname=yes
16971 ac_cv_lib_nsl_gethostbyname=no
16973 rm -f core conftest.err conftest.$ac_objext \
16974 conftest$ac_exeext conftest.$ac_ext
16975 LIBS=$ac_check_lib_save_LIBS
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
16978 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
16979 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
16980 HAVE_GETHOSTBYNAME="1"
16989 if test "$HAVE_GETHOSTBYNAME" != "1"
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
16992 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
16993 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then :
16994 $as_echo_n "(cached) " >&6
16996 ac_check_lib_save_LIBS=$LIBS
16997 LIBS="-lsocket $LIBS"
16998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16999 /* end confdefs.h. */
17005 char gethostbyname ();
17008 return gethostbyname ();
17013 if ac_fn_c_try_link "$LINENO"; then :
17014 ac_cv_lib_socket_gethostbyname=yes
17016 ac_cv_lib_socket_gethostbyname=no
17018 rm -f core conftest.err conftest.$ac_objext \
17019 conftest$ac_exeext conftest.$ac_ext
17020 LIBS=$ac_check_lib_save_LIBS
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
17023 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
17024 if test "x$ac_cv_lib_socket_gethostbyname" = x""yes; then :
17025 HAVE_GETHOSTBYNAME="1"
17026 LIBS="$LIBS -lsocket"
17032 if test "$HAVE_GETHOSTBYNAME" != "1"
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
17035 $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
17036 my_ac_save_LIBS=$LIBS
17037 LIBS="-lnsl -lsocket $LIBS"
17038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17039 /* end confdefs.h. */
17053 if ac_fn_c_try_link "$LINENO"; then :
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17056 $as_echo "yes" >&6; }
17057 HAVE_GETHOSTBYNAME="1"
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17062 $as_echo "no" >&6; }
17063 LIBS=$my_ac_save_LIBS
17066 rm -f core conftest.err conftest.$ac_objext \
17067 conftest$ac_exeext conftest.$ac_ext
17070 if test "$HAVE_GETHOSTBYNAME" != "1"
17072 if test "$ac_cv_header_windows_h" = "yes"; then
17073 if test "$ac_cv_header_winsock_h" = "yes"; then
17076 winsock_LIB="-lwinsock"
17079 winsock_LIB="-lwsock32"
17083 if test "$ac_cv_header_winsock2_h" = "yes"; then
17084 winsock_LIB="-lws2_32"
17086 if test ! -z "$winsock_LIB"; then
17087 my_ac_save_LIBS=$LIBS
17088 LIBS="$winsock_LIB $LIBS"
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
17090 $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
17091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17092 /* end confdefs.h. */
17095 #ifdef HAVE_WINDOWS_H
17096 #ifndef WIN32_LEAN_AND_MEAN
17097 #define WIN32_LEAN_AND_MEAN
17099 #include <windows.h>
17100 #ifdef HAVE_WINSOCK2_H
17101 #include <winsock2.h>
17103 #ifdef HAVE_WINSOCK_H
17104 #include <winsock.h>
17112 gethostbyname("www.dummysite.com");
17119 if ac_fn_c_try_link "$LINENO"; then :
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17122 $as_echo "yes" >&6; }
17123 HAVE_GETHOSTBYNAME="1"
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17128 $as_echo "no" >&6; }
17130 LIBS=$my_ac_save_LIBS
17133 rm -f core conftest.err conftest.$ac_objext \
17134 conftest$ac_exeext conftest.$ac_ext
17139 if test "$HAVE_GETHOSTBYNAME" != "1"
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
17142 $as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
17143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17144 /* end confdefs.h. */
17147 /* Older Minix versions may need <net/gen/netdb.h> here instead */
17153 gethostbyname("www.dummysite.com");
17160 if ac_fn_c_try_link "$LINENO"; then :
17162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17163 $as_echo "yes" >&6; }
17164 HAVE_GETHOSTBYNAME="1"
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17169 $as_echo "no" >&6; }
17172 rm -f core conftest.err conftest.$ac_objext \
17173 conftest$ac_exeext conftest.$ac_ext
17176 if test "$HAVE_GETHOSTBYNAME" != "1"
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
17179 $as_echo_n "checking for gethostbyname for eCos... " >&6; }
17180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17181 /* end confdefs.h. */
17190 gethostbyname("www.dummysite.com");
17197 if ac_fn_c_try_link "$LINENO"; then :
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17200 $as_echo "yes" >&6; }
17201 HAVE_GETHOSTBYNAME="1"
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17206 $as_echo "no" >&6; }
17209 rm -f core conftest.err conftest.$ac_objext \
17210 conftest$ac_exeext conftest.$ac_ext
17213 if test "$HAVE_GETHOSTBYNAME" != "1"
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
17216 $as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
17217 if test "${ac_cv_lib_network_gethostbyname+set}" = set; then :
17218 $as_echo_n "(cached) " >&6
17220 ac_check_lib_save_LIBS=$LIBS
17221 LIBS="-lnetwork $LIBS"
17222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17223 /* end confdefs.h. */
17229 char gethostbyname ();
17232 return gethostbyname ();
17237 if ac_fn_c_try_link "$LINENO"; then :
17238 ac_cv_lib_network_gethostbyname=yes
17240 ac_cv_lib_network_gethostbyname=no
17242 rm -f core conftest.err conftest.$ac_objext \
17243 conftest$ac_exeext conftest.$ac_ext
17244 LIBS=$ac_check_lib_save_LIBS
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
17247 $as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
17248 if test "x$ac_cv_lib_network_gethostbyname" = x""yes; then :
17249 HAVE_GETHOSTBYNAME="1"
17250 LIBS="$LIBS -lnetwork"
17256 if test "$HAVE_GETHOSTBYNAME" != "1"
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
17259 $as_echo_n "checking for gethostbyname in -lnet... " >&6; }
17260 if test "${ac_cv_lib_net_gethostbyname+set}" = set; then :
17261 $as_echo_n "(cached) " >&6
17263 ac_check_lib_save_LIBS=$LIBS
17265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17266 /* end confdefs.h. */
17272 char gethostbyname ();
17275 return gethostbyname ();
17280 if ac_fn_c_try_link "$LINENO"; then :
17281 ac_cv_lib_net_gethostbyname=yes
17283 ac_cv_lib_net_gethostbyname=no
17285 rm -f core conftest.err conftest.$ac_objext \
17286 conftest$ac_exeext conftest.$ac_ext
17287 LIBS=$ac_check_lib_save_LIBS
17289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
17290 $as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
17291 if test "x$ac_cv_lib_net_gethostbyname" = x""yes; then :
17292 HAVE_GETHOSTBYNAME="1"
17300 if test "$HAVE_GETHOSTBYNAME" != "1"; then
17301 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
17304 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
17305 if test "x$ac_cv_func_strcasecmp" = x""yes; then :
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
17309 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
17310 if test "${ac_cv_lib_resolve_strcasecmp+set}" = set; then :
17311 $as_echo_n "(cached) " >&6
17313 ac_check_lib_save_LIBS=$LIBS
17314 LIBS="-lresolve $LIBS"
17315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17316 /* end confdefs.h. */
17322 char strcasecmp ();
17325 return strcasecmp ();
17330 if ac_fn_c_try_link "$LINENO"; then :
17331 ac_cv_lib_resolve_strcasecmp=yes
17333 ac_cv_lib_resolve_strcasecmp=no
17335 rm -f core conftest.err conftest.$ac_objext \
17336 conftest$ac_exeext conftest.$ac_ext
17337 LIBS=$ac_check_lib_save_LIBS
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
17340 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
17341 if test "x$ac_cv_lib_resolve_strcasecmp" = x""yes; then :
17342 cat >>confdefs.h <<_ACEOF
17343 #define HAVE_LIBRESOLVE 1
17346 LIBS="-lresolve $LIBS"
17353 if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
17355 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
17356 if test "${ac_cv_lib_resolve_strcasecmp+set}" = set; then :
17357 $as_echo_n "(cached) " >&6
17359 ac_check_lib_save_LIBS=$LIBS
17360 LIBS="-lresolve -lnsl $LIBS"
17361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17362 /* end confdefs.h. */
17368 char strcasecmp ();
17371 return strcasecmp ();
17376 if ac_fn_c_try_link "$LINENO"; then :
17377 ac_cv_lib_resolve_strcasecmp=yes
17379 ac_cv_lib_resolve_strcasecmp=no
17381 rm -f core conftest.err conftest.$ac_objext \
17382 conftest$ac_exeext conftest.$ac_ext
17383 LIBS=$ac_check_lib_save_LIBS
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
17386 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
17387 if test "x$ac_cv_lib_resolve_strcasecmp" = x""yes; then :
17388 LIBS="-lresolve $LIBS"
17392 ac_cv_func_strcasecmp="no"
17395 curl_includes_winsock2="\
17396 /* includes start */
17397 #ifdef HAVE_WINDOWS_H
17398 # ifndef WIN32_LEAN_AND_MEAN
17399 # define WIN32_LEAN_AND_MEAN
17401 # include <windows.h>
17402 # ifdef HAVE_WINSOCK2_H
17403 # include <winsock2.h>
17405 # ifdef HAVE_WINSOCK_H
17406 # include <winsock.h>
17410 /* includes end */"
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
17413 $as_echo_n "checking for windows.h... " >&6; }
17414 if test "${ac_cv_header_windows_h+set}" = set; then :
17415 $as_echo_n "(cached) " >&6
17418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17419 /* end confdefs.h. */
17423 #ifndef WIN32_LEAN_AND_MEAN
17424 #define WIN32_LEAN_AND_MEAN
17426 #include <windows.h>
17431 #if defined(__CYGWIN__) || defined(__CEGCC__)
17432 HAVE_WINDOWS_H shall not be defined.
17434 int dummy=2*WINVER;
17442 if ac_fn_c_try_compile "$LINENO"; then :
17444 ac_cv_header_windows_h="yes"
17448 ac_cv_header_windows_h="no"
17451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
17455 $as_echo "$ac_cv_header_windows_h" >&6; }
17456 case "$ac_cv_header_windows_h" in
17459 cat >>confdefs.h <<_ACEOF
17460 #define HAVE_WINDOWS_H 1
17464 cat >>confdefs.h <<_ACEOF
17465 #define WIN32_LEAN_AND_MEAN 1
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
17473 $as_echo_n "checking for winsock.h... " >&6; }
17474 if test "${ac_cv_header_winsock_h+set}" = set; then :
17475 $as_echo_n "(cached) " >&6
17478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17479 /* end confdefs.h. */
17483 #ifndef WIN32_LEAN_AND_MEAN
17484 #define WIN32_LEAN_AND_MEAN
17486 #include <windows.h>
17487 #include <winsock.h>
17492 #if defined(__CYGWIN__) || defined(__CEGCC__)
17493 HAVE_WINSOCK_H shall not be defined.
17495 int dummy=WSACleanup();
17503 if ac_fn_c_try_compile "$LINENO"; then :
17505 ac_cv_header_winsock_h="yes"
17509 ac_cv_header_winsock_h="no"
17512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
17516 $as_echo "$ac_cv_header_winsock_h" >&6; }
17517 case "$ac_cv_header_winsock_h" in
17520 cat >>confdefs.h <<_ACEOF
17521 #define HAVE_WINSOCK_H 1
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
17529 $as_echo_n "checking for winsock2.h... " >&6; }
17530 if test "${ac_cv_header_winsock2_h+set}" = set; then :
17531 $as_echo_n "(cached) " >&6
17534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17535 /* end confdefs.h. */
17539 #ifndef WIN32_LEAN_AND_MEAN
17540 #define WIN32_LEAN_AND_MEAN
17542 #include <windows.h>
17543 #include <winsock2.h>
17548 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
17549 HAVE_WINSOCK2_H shall not be defined.
17551 int dummy=2*IPPROTO_ESP;
17559 if ac_fn_c_try_compile "$LINENO"; then :
17561 ac_cv_header_winsock2_h="yes"
17565 ac_cv_header_winsock2_h="no"
17568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
17572 $as_echo "$ac_cv_header_winsock2_h" >&6; }
17573 case "$ac_cv_header_winsock2_h" in
17576 cat >>confdefs.h <<_ACEOF
17577 #define HAVE_WINSOCK2_H 1
17585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
17586 $as_echo_n "checking for connect in libraries... " >&6; }
17587 tst_connect_save_LIBS="$LIBS"
17588 tst_connect_need_LIBS="unknown"
17589 for tst_lib in '' '-lsocket' ; do
17590 if test "$tst_connect_need_LIBS" = "unknown"; then
17591 LIBS="$tst_lib $tst_connect_save_LIBS"
17592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17593 /* end confdefs.h. */
17596 $curl_includes_winsock2
17597 #ifndef HAVE_WINDOWS_H
17598 int connect(int, void*, int);
17604 if(0 != connect(0, 0, 0))
17612 if ac_fn_c_try_link "$LINENO"; then :
17614 tst_connect_need_LIBS="$tst_lib"
17617 rm -f core conftest.err conftest.$ac_objext \
17618 conftest$ac_exeext conftest.$ac_ext
17621 LIBS="$tst_connect_save_LIBS"
17623 case X-"$tst_connect_need_LIBS" in
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
17626 $as_echo "cannot find connect" >&6; }
17627 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17631 $as_echo "yes" >&6; }
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
17635 $as_echo "$tst_connect_need_LIBS" >&6; }
17636 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
17641 CURL_NETWORK_LIBS=$LIBS
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
17644 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17645 if test "${ac_cv_header_time+set}" = set; then :
17646 $as_echo_n "(cached) " >&6
17648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17649 /* end confdefs.h. */
17650 #include <sys/types.h>
17651 #include <sys/time.h>
17656 if ((struct tm *) 0)
17662 if ac_fn_c_try_compile "$LINENO"; then :
17663 ac_cv_header_time=yes
17665 ac_cv_header_time=no
17667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
17670 $as_echo "$ac_cv_header_time" >&6; }
17671 if test $ac_cv_header_time = yes; then
17673 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
17678 for ac_header in sys/types.h sys/time.h time.h
17680 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17681 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17682 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17683 cat >>confdefs.h <<_ACEOF
17684 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
17692 $as_echo_n "checking for monotonic clock_gettime... " >&6; }
17693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17694 /* end confdefs.h. */
17697 #ifdef HAVE_SYS_TYPES_H
17698 #include <sys/types.h>
17700 #ifdef HAVE_SYS_TIME_H
17701 #include <sys/time.h>
17702 #ifdef TIME_WITH_SYS_TIME
17714 struct timespec ts;
17715 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
17722 if ac_fn_c_try_compile "$LINENO"; then :
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17725 $as_echo "yes" >&6; }
17726 ac_cv_func_clock_gettime="yes"
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17731 $as_echo "no" >&6; }
17732 ac_cv_func_clock_gettime="no"
17735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17739 if test "$ac_cv_func_clock_gettime" = "yes"; then
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
17742 $as_echo_n "checking for clock_gettime in libraries... " >&6; }
17744 curl_cv_save_LIBS="$LIBS"
17745 curl_cv_gclk_LIBS="unknown"
17747 for x_xlibs in '' '-lrt' '-lposix4' ; do
17748 if test "$curl_cv_gclk_LIBS" = "unknown"; then
17749 if test -z "$x_xlibs"; then
17750 LIBS="$curl_cv_save_LIBS"
17752 LIBS="$x_xlibs $curl_cv_save_LIBS"
17754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17755 /* end confdefs.h. */
17758 #ifdef HAVE_SYS_TYPES_H
17759 #include <sys/types.h>
17761 #ifdef HAVE_SYS_TIME_H
17762 #include <sys/time.h>
17763 #ifdef TIME_WITH_SYS_TIME
17775 struct timespec ts;
17776 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
17783 if ac_fn_c_try_link "$LINENO"; then :
17785 curl_cv_gclk_LIBS="$x_xlibs"
17788 rm -f core conftest.err conftest.$ac_objext \
17789 conftest$ac_exeext conftest.$ac_ext
17793 LIBS="$curl_cv_save_LIBS"
17795 case X-"$curl_cv_gclk_LIBS" in
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
17798 $as_echo "cannot find clock_gettime" >&6; }
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
17800 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
17801 ac_cv_func_clock_gettime="no"
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
17805 $as_echo "no additional lib required" >&6; }
17806 ac_cv_func_clock_gettime="yes"
17809 if test -z "$curl_cv_save_LIBS"; then
17810 LIBS="$curl_cv_gclk_LIBS"
17812 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
17814 CURL_LIBS="$CURL_LIBS $curl_cv_gclk_LIBS"
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
17816 $as_echo "$curl_cv_gclk_LIBS" >&6; }
17817 ac_cv_func_clock_gettime="yes"
17821 if test "x$cross_compiling" != "xyes" &&
17822 test "$ac_cv_func_clock_gettime" = "yes"; then
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
17824 $as_echo_n "checking if monotonic clock_gettime works... " >&6; }
17825 if test "$cross_compiling" = yes; then :
17826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17828 as_fn_error $? "cannot run test program while cross compiling
17829 See \`config.log' for more details" "$LINENO" 5 ; }
17831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17832 /* end confdefs.h. */
17835 #ifdef HAVE_STDLIB_H
17836 #include <stdlib.h>
17838 #ifdef HAVE_SYS_TYPES_H
17839 #include <sys/types.h>
17841 #ifdef HAVE_SYS_TIME_H
17842 #include <sys/time.h>
17843 #ifdef TIME_WITH_SYS_TIME
17855 struct timespec ts;
17856 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
17866 if ac_fn_c_try_run "$LINENO"; then :
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17869 $as_echo "yes" >&6; }
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17874 $as_echo "no" >&6; }
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
17876 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
17877 ac_cv_func_clock_gettime="no"
17878 LIBS="$curl_cv_save_LIBS"
17881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17882 conftest.$ac_objext conftest.beam conftest.$ac_ext
17887 case "$ac_cv_func_clock_gettime" in
17890 cat >>confdefs.h <<_ACEOF
17891 #define HAVE_CLOCK_GETTIME_MONOTONIC 1
17901 TEST_SERVER_LIBS=$LIBS
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
17904 $as_echo_n "checking whether to use libgcc... " >&6; }
17905 # Check whether --enable-libgcc was given.
17906 if test "${enable_libgcc+set}" = set; then :
17907 enableval=$enable_libgcc; case "$enableval" in
17909 ALL_LIBS="$ALL_LIBS -lgcc"
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17911 $as_echo "yes" >&6; }
17913 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17914 $as_echo "no" >&6; }
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17919 $as_echo "no" >&6; }
17927 # Check whether --with-ldap-lib was given.
17928 if test "${with_ldap_lib+set}" = set; then :
17929 withval=$with_ldap_lib; LDAPLIBNAME="$withval"
17935 # Check whether --with-lber-lib was given.
17936 if test "${with_lber_lib+set}" = set; then :
17937 withval=$with_lber_lib; LBERLIBNAME="$withval"
17941 if test x$CURL_DISABLE_LDAP != x1 ; then
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
17945 $as_echo_n "checking for lber.h... " >&6; }
17946 if test "${ac_cv_header_lber_h+set}" = set; then :
17947 $as_echo_n "(cached) " >&6
17950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17951 /* end confdefs.h. */
17955 #ifdef HAVE_WINDOWS_H
17956 #ifndef WIN32_LEAN_AND_MEAN
17957 #define WIN32_LEAN_AND_MEAN
17959 #include <windows.h>
17961 #ifdef HAVE_SYS_TYPES_H
17962 #include <sys/types.h>
17966 #define NULL (void *)0
17973 BerValue *bvp = NULL;
17974 BerElement *bep = ber_init(bvp);
17982 if ac_fn_c_try_compile "$LINENO"; then :
17984 ac_cv_header_lber_h="yes"
17988 ac_cv_header_lber_h="no"
17991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_lber_h" >&5
17995 $as_echo "$ac_cv_header_lber_h" >&6; }
17996 if test "$ac_cv_header_lber_h" = "yes"; then
17998 cat >>confdefs.h <<_ACEOF
17999 #define HAVE_LBER_H 1
18003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18004 /* end confdefs.h. */
18008 #ifdef HAVE_WINDOWS_H
18009 #ifndef WIN32_LEAN_AND_MEAN
18010 #define WIN32_LEAN_AND_MEAN
18012 #include <windows.h>
18014 #ifdef HAVE_SYS_TYPES_H
18015 #include <sys/types.h>
18019 #define NULL (void *)0
18021 #ifndef LDAP_DEPRECATED
18022 #define LDAP_DEPRECATED 1
18029 BerValue *bvp = NULL;
18030 BerElement *bep = ber_init(bvp);
18038 if ac_fn_c_try_compile "$LINENO"; then :
18040 curl_cv_need_header_lber_h="no"
18044 curl_cv_need_header_lber_h="yes"
18047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18049 case "$curl_cv_need_header_lber_h" in
18052 cat >>confdefs.h <<_ACEOF
18053 #define NEED_LBER_H 1
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
18062 $as_echo_n "checking for ldap.h... " >&6; }
18063 if test "${ac_cv_header_ldap_h+set}" = set; then :
18064 $as_echo_n "(cached) " >&6
18067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18068 /* end confdefs.h. */
18072 #ifdef HAVE_WINDOWS_H
18073 #ifndef WIN32_LEAN_AND_MEAN
18074 #define WIN32_LEAN_AND_MEAN
18076 #include <windows.h>
18078 #ifdef HAVE_SYS_TYPES_H
18079 #include <sys/types.h>
18082 #ifndef LDAP_DEPRECATED
18083 #define LDAP_DEPRECATED 1
18093 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
18094 int res = ldap_unbind(ldp);
18101 if ac_fn_c_try_compile "$LINENO"; then :
18103 ac_cv_header_ldap_h="yes"
18107 ac_cv_header_ldap_h="no"
18110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldap_h" >&5
18114 $as_echo "$ac_cv_header_ldap_h" >&6; }
18115 case "$ac_cv_header_ldap_h" in
18118 cat >>confdefs.h <<_ACEOF
18119 #define HAVE_LDAP_H 1
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
18127 $as_echo_n "checking for ldapssl.h... " >&6; }
18128 if test "${ac_cv_header_ldapssl_h+set}" = set; then :
18129 $as_echo_n "(cached) " >&6
18132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18133 /* end confdefs.h. */
18137 #ifdef HAVE_WINDOWS_H
18138 #ifndef WIN32_LEAN_AND_MEAN
18139 #define WIN32_LEAN_AND_MEAN
18141 #include <windows.h>
18143 #ifdef HAVE_SYS_TYPES_H
18144 #include <sys/types.h>
18148 #define NULL (void *)0
18150 #ifndef LDAP_DEPRECATED
18151 #define LDAP_DEPRECATED 1
18159 #include <ldapssl.h>
18164 char *cert_label = NULL;
18165 LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
18172 if ac_fn_c_try_compile "$LINENO"; then :
18174 ac_cv_header_ldapssl_h="yes"
18178 ac_cv_header_ldapssl_h="no"
18181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldapssl_h" >&5
18185 $as_echo "$ac_cv_header_ldapssl_h" >&6; }
18186 case "$ac_cv_header_ldapssl_h" in
18189 cat >>confdefs.h <<_ACEOF
18190 #define HAVE_LDAPSSL_H 1
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
18198 $as_echo_n "checking for ldap_ssl.h... " >&6; }
18199 if test "${ac_cv_header_ldap_ssl_h+set}" = set; then :
18200 $as_echo_n "(cached) " >&6
18203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18204 /* end confdefs.h. */
18208 #ifdef HAVE_WINDOWS_H
18209 #ifndef WIN32_LEAN_AND_MEAN
18210 #define WIN32_LEAN_AND_MEAN
18212 #include <windows.h>
18214 #ifdef HAVE_SYS_TYPES_H
18215 #include <sys/types.h>
18218 #ifndef LDAP_DEPRECATED
18219 #define LDAP_DEPRECATED 1
18227 #include <ldap_ssl.h>
18232 LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
18239 if ac_fn_c_try_compile "$LINENO"; then :
18241 ac_cv_header_ldap_ssl_h="yes"
18245 ac_cv_header_ldap_ssl_h="no"
18248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldap_ssl_h" >&5
18252 $as_echo "$ac_cv_header_ldap_ssl_h" >&6; }
18253 case "$ac_cv_header_ldap_ssl_h" in
18256 cat >>confdefs.h <<_ACEOF
18257 #define HAVE_LDAP_SSL_H 1
18264 if test -z "$LDAPLIBNAME" ; then
18265 if test "$ac_cv_native_windows" = "yes"; then
18266 LDAPLIBNAME="wldap32"
18271 if test "$LDAPLIBNAME" ; then
18272 as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
18274 $as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
18275 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
18276 $as_echo_n "(cached) " >&6
18278 ac_check_lib_save_LIBS=$LIBS
18279 LIBS="-l"$LDAPLIBNAME" $LIBS"
18280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18281 /* end confdefs.h. */
18290 return ldap_init ();
18295 if ac_fn_c_try_link "$LINENO"; then :
18296 eval "$as_ac_Lib=yes"
18298 eval "$as_ac_Lib=no"
18300 rm -f core conftest.err conftest.$ac_objext \
18301 conftest$ac_exeext conftest.$ac_ext
18302 LIBS=$ac_check_lib_save_LIBS
18304 eval ac_res=\$$as_ac_Lib
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18306 $as_echo "$ac_res" >&6; }
18307 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18308 cat >>confdefs.h <<_ACEOF
18309 #define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
18312 LIBS="-l"$LDAPLIBNAME" $LIBS"
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
18317 $as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
18319 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
18321 CURL_DISABLE_LDAP=1
18326 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
18328 CURL_DISABLE_LDAPS=1
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
18334 $as_echo_n "checking for LDAP libraries... " >&6; }
18340 curl_cv_save_LIBS="$LIBS"
18341 curl_cv_ldap_LIBS="unknown"
18343 for x_nlibs in '' "$u_libs" \
18347 '-lldapssl -lldapx -lldapsdk' \
18348 '-lldapsdk -lldapx -lldapssl' ; do
18349 if test "$curl_cv_ldap_LIBS" = "unknown"; then
18350 if test -z "$x_nlibs"; then
18351 LIBS="$curl_cv_save_LIBS"
18353 LIBS="$x_nlibs $curl_cv_save_LIBS"
18355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18356 /* end confdefs.h. */
18360 #ifdef HAVE_WINDOWS_H
18361 #ifndef WIN32_LEAN_AND_MEAN
18362 #define WIN32_LEAN_AND_MEAN
18364 #include <windows.h>
18366 #ifdef HAVE_SYS_TYPES_H
18367 #include <sys/types.h>
18371 #define NULL (void *)0
18373 #ifndef LDAP_DEPRECATED
18374 #define LDAP_DEPRECATED 1
18386 BerValue *bvp = NULL;
18387 BerElement *bep = ber_init(bvp);
18388 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
18389 int res = ldap_unbind(ldp);
18397 if ac_fn_c_try_link "$LINENO"; then :
18399 curl_cv_ldap_LIBS="$x_nlibs"
18402 rm -f core conftest.err conftest.$ac_objext \
18403 conftest$ac_exeext conftest.$ac_ext
18407 LIBS="$curl_cv_save_LIBS"
18409 case X-"$curl_cv_ldap_LIBS" in
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
18412 $as_echo "cannot find LDAP libraries" >&6; }
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
18416 $as_echo "no additional lib required" >&6; }
18419 if test -z "$curl_cv_save_LIBS"; then
18420 LIBS="$curl_cv_ldap_LIBS"
18422 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
18425 $as_echo "$curl_cv_ldap_LIBS" >&6; }
18430 case X-"$curl_cv_ldap_LIBS" in
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
18433 $as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
18435 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
18437 CURL_DISABLE_LDAP=1
18440 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
18442 CURL_DISABLE_LDAPS=1
18449 if test x$CURL_DISABLE_LDAP != x1 ; then
18451 if test "$LBERLIBNAME" ; then
18452 if test "$LBERLIBNAME" != "no" ; then
18453 as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
18455 $as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
18456 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
18457 $as_echo_n "(cached) " >&6
18459 ac_check_lib_save_LIBS=$LIBS
18460 LIBS="-l"$LBERLIBNAME" $LIBS"
18461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18462 /* end confdefs.h. */
18471 return ber_free ();
18476 if ac_fn_c_try_link "$LINENO"; then :
18477 eval "$as_ac_Lib=yes"
18479 eval "$as_ac_Lib=no"
18481 rm -f core conftest.err conftest.$ac_objext \
18482 conftest$ac_exeext conftest.$ac_ext
18483 LIBS=$ac_check_lib_save_LIBS
18485 eval ac_res=\$$as_ac_Lib
18486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18487 $as_echo "$ac_res" >&6; }
18488 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18489 cat >>confdefs.h <<_ACEOF
18490 #define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
18493 LIBS="-l"$LBERLIBNAME" $LIBS"
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
18498 $as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
18500 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
18502 CURL_DISABLE_LDAP=1
18507 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
18509 CURL_DISABLE_LDAPS=1
18515 if test x$CURL_DISABLE_LDAP != x1 ; then
18516 for ac_func in ldap_url_parse ldap_init_fd
18518 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18519 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18520 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18521 cat >>confdefs.h <<_ACEOF
18522 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18529 if test "$LDAPLIBNAME" = "wldap32"; then
18530 curl_ldap_msg="enabled (winldap)"
18532 $as_echo "#define CURL_LDAP_WIN 1" >>confdefs.h
18535 curl_ldap_msg="enabled (OpenLDAP)"
18536 if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
18538 $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
18546 if test x$CURL_DISABLE_LDAPS != x1 ; then
18547 curl_ldaps_msg="enabled"
18551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ipv6" >&5
18552 $as_echo_n "checking whether to enable ipv6... " >&6; }
18553 # Check whether --enable-ipv6 was given.
18554 if test "${enable_ipv6+set}" = set; then :
18555 enableval=$enable_ipv6; case "$enableval" in
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18558 $as_echo "no" >&6; }
18561 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18562 $as_echo "yes" >&6; }
18567 if test "$cross_compiling" = yes; then :
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18569 $as_echo "no" >&6; }
18573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18574 /* end confdefs.h. */
18575 /* is AF_INET6 available? */
18576 #include <sys/types.h>
18577 #include <sys/socket.h>
18580 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
18587 if ac_fn_c_try_run "$LINENO"; then :
18588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18589 $as_echo "yes" >&6; }
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18593 $as_echo "no" >&6; }
18596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18597 conftest.$ac_objext conftest.beam conftest.$ac_ext
18603 if test "$ipv6" = "yes"; then
18604 curl_ipv6_msg="enabled"
18607 # Check if struct sockaddr_in6 have sin6_scope_id member
18608 if test "$ipv6" = yes; then
18609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
18610 $as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
18611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18612 /* end confdefs.h. */
18614 #include <sys/types.h>
18615 #include <netinet/in.h>
18618 struct sockaddr_in6 s; s.sin6_scope_id = 0;
18623 if ac_fn_c_try_compile "$LINENO"; then :
18624 have_sin6_scope_id=yes
18626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18627 if test "$have_sin6_scope_id" = yes; then
18628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18629 $as_echo "yes" >&6; }
18631 $as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
18634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18635 $as_echo "no" >&6; }
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
18641 $as_echo_n "checking if argv can be written to... " >&6; }
18642 if test "$cross_compiling" = yes; then :
18644 curl_cv_writable_argv=cross
18647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18648 /* end confdefs.h. */
18651 int main(int argc, char ** argv) {
18653 return (argv[0][0] == ' ')?0:1;
18658 if ac_fn_c_try_run "$LINENO"; then :
18660 curl_cv_writable_argv=yes
18664 curl_cv_writable_argv=no
18667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18668 conftest.$ac_objext conftest.beam conftest.$ac_ext
18671 case $curl_cv_writable_argv in
18674 $as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
18676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18677 $as_echo "yes" >&6; }
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18681 $as_echo "no" >&6; }
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18685 $as_echo "no" >&6; }
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
18687 $as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
18693 # Check whether --with-krb4-includes was given.
18694 if test "${with_krb4_includes+set}" = set; then :
18695 withval=$with_krb4_includes;
18696 CPPFLAGS="$CPPFLAGS -I$withval"
18704 # Check whether --with-krb4-libs was given.
18705 if test "${with_krb4_libs+set}" = set; then :
18706 withval=$with_krb4_libs;
18707 LDFLAGS="$LDFLAGS -L$withval"
18717 # Check whether --with-krb4 was given.
18718 if test "${with_krb4+set}" = set; then :
18719 withval=$with_krb4;
18720 OPT_KRB4="$withval"
18721 if test X"$OPT_KRB4" != Xno; then
18723 if test X"$OPT_KRB4" != Xyes; then
18724 LDFLAGS="$LDFLAGS -L$OPT_KRB4/lib$libsuff"
18725 KRB4LIB="$OPT_KRB4/lib$libsuff"
18726 CPPFLAGS="$CPPFLAGS -I$OPT_KRB4/include"
18727 KRB4INC="$OPT_KRB4/include"
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Kerberos4 support is requested" >&5
18735 $as_echo_n "checking if Kerberos4 support is requested... " >&6; }
18737 if test "$want_krb4" = yes
18739 if test "$ipv6" = "yes"; then
18740 echo krb4 is not compatible with IPv6
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18744 $as_echo "yes" >&6; }
18747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to look for Kerberos4" >&5
18748 $as_echo_n "checking where to look for Kerberos4... " >&6; }
18749 if test X"$OPT_KRB4" = Xyes
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaults" >&5
18752 $as_echo "defaults" >&6; }
18754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libs in $KRB4LIB, headers in $KRB4INC" >&5
18755 $as_echo "libs in $KRB4LIB, headers in $KRB4INC" >&6; }
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_pcbc_encrypt in -ldes" >&5
18759 $as_echo_n "checking for des_pcbc_encrypt in -ldes... " >&6; }
18760 if test "${ac_cv_lib_des_des_pcbc_encrypt+set}" = set; then :
18761 $as_echo_n "(cached) " >&6
18763 ac_check_lib_save_LIBS=$LIBS
18765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18766 /* end confdefs.h. */
18772 char des_pcbc_encrypt ();
18775 return des_pcbc_encrypt ();
18780 if ac_fn_c_try_link "$LINENO"; then :
18781 ac_cv_lib_des_des_pcbc_encrypt=yes
18783 ac_cv_lib_des_des_pcbc_encrypt=no
18785 rm -f core conftest.err conftest.$ac_objext \
18786 conftest$ac_exeext conftest.$ac_ext
18787 LIBS=$ac_check_lib_save_LIBS
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_pcbc_encrypt" >&5
18790 $as_echo "$ac_cv_lib_des_des_pcbc_encrypt" >&6; }
18791 if test "x$ac_cv_lib_des_des_pcbc_encrypt" = x""yes; then :
18793 for ac_header in des.h
18795 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
18796 if test "x$ac_cv_header_des_h" = x""yes; then :
18797 cat >>confdefs.h <<_ACEOF
18798 #define HAVE_DES_H 1
18806 ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search"
18807 if test "x$ac_cv_func_res_search" = x""yes; then :
18810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
18811 $as_echo_n "checking for res_search in -lresolv... " >&6; }
18812 if test "${ac_cv_lib_resolv_res_search+set}" = set; then :
18813 $as_echo_n "(cached) " >&6
18815 ac_check_lib_save_LIBS=$LIBS
18816 LIBS="-lresolv $LIBS"
18817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18818 /* end confdefs.h. */
18824 char res_search ();
18827 return res_search ();
18832 if ac_fn_c_try_link "$LINENO"; then :
18833 ac_cv_lib_resolv_res_search=yes
18835 ac_cv_lib_resolv_res_search=no
18837 rm -f core conftest.err conftest.$ac_objext \
18838 conftest$ac_exeext conftest.$ac_ext
18839 LIBS=$ac_check_lib_save_LIBS
18841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
18842 $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
18843 if test "x$ac_cv_lib_resolv_res_search" = x""yes; then :
18844 cat >>confdefs.h <<_ACEOF
18845 #define HAVE_LIBRESOLV 1
18848 LIBS="-lresolv $LIBS"
18855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_net_read in -lkrb" >&5
18856 $as_echo_n "checking for krb_net_read in -lkrb... " >&6; }
18857 if test "${ac_cv_lib_krb_krb_net_read+set}" = set; then :
18858 $as_echo_n "(cached) " >&6
18860 ac_check_lib_save_LIBS=$LIBS
18862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18863 /* end confdefs.h. */
18869 char krb_net_read ();
18872 return krb_net_read ();
18877 if ac_fn_c_try_link "$LINENO"; then :
18878 ac_cv_lib_krb_krb_net_read=yes
18880 ac_cv_lib_krb_krb_net_read=no
18882 rm -f core conftest.err conftest.$ac_objext \
18883 conftest$ac_exeext conftest.$ac_ext
18884 LIBS=$ac_check_lib_save_LIBS
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_net_read" >&5
18887 $as_echo "$ac_cv_lib_krb_krb_net_read" >&6; }
18888 if test "x$ac_cv_lib_krb_krb_net_read" = x""yes; then :
18890 for ac_header in krb.h
18892 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
18893 if test "x$ac_cv_header_krb_h" = x""yes; then :
18894 cat >>confdefs.h <<_ACEOF
18895 #define HAVE_KRB_H 1
18903 LIBS="-lkrb -lcom_err -ldes $LIBS"
18905 for ac_func in krb_get_our_ip_for_realm
18907 ac_fn_c_check_func "$LINENO" "krb_get_our_ip_for_realm" "ac_cv_func_krb_get_our_ip_for_realm"
18908 if test "x$ac_cv_func_krb_get_our_ip_for_realm" = x""yes; then :
18909 cat >>confdefs.h <<_ACEOF
18910 #define HAVE_KRB_GET_OUR_IP_FOR_REALM 1
18918 $as_echo "#define HAVE_KRB4 1" >>confdefs.h
18924 curl_krb4_msg="enabled"
18926 for ac_func in strlcpy
18928 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
18929 if test "x$ac_cv_func_strlcpy" = x""yes; then :
18930 cat >>confdefs.h <<_ACEOF
18931 #define HAVE_STRLCPY 1
18945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18946 $as_echo "no" >&6; }
18951 # Check whether --with-spnego was given.
18952 if test "${with_spnego+set}" = set; then :
18953 withval=$with_spnego;
18954 SPNEGO_ROOT="$withval"
18955 if test x"$SPNEGO_ROOT" != xno; then
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SPNEGO support is requested" >&5
18963 $as_echo_n "checking if SPNEGO support is requested... " >&6; }
18964 if test x"$want_spnego" = xyes; then
18966 if test X"$SPNEGO_ROOT" = Xyes; then
18967 as_fn_error $? "FBOpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
18968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18969 $as_echo "no" >&6; }
18971 if test -z "$SPNEGO_LIB_DIR"; then
18972 LDFLAGS="$LDFLAGS -L$SPNEGO_ROOT -lfbopenssl"
18974 LDFLAGS="$LDFLAGS $SPNEGO_LIB_DIR"
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18978 $as_echo "yes" >&6; }
18980 $as_echo "#define HAVE_SPNEGO 1" >>confdefs.h
18982 curl_spnego_msg="enabled"
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18986 $as_echo "no" >&6; }
18993 # Check whether --with-gssapi-includes was given.
18994 if test "${with_gssapi_includes+set}" = set; then :
18995 withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
19002 # Check whether --with-gssapi-libs was given.
19003 if test "${with_gssapi_libs+set}" = set; then :
19004 withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
19011 # Check whether --with-gssapi was given.
19012 if test "${with_gssapi+set}" = set; then :
19013 withval=$with_gssapi;
19014 GSSAPI_ROOT="$withval"
19015 if test x"$GSSAPI_ROOT" != xno; then
19017 if test x"$GSSAPI_ROOT" = xyes; then
19025 save_CPPFLAGS="$CPPFLAGS"
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSSAPI support is requested" >&5
19027 $as_echo_n "checking if GSSAPI support is requested... " >&6; }
19028 if test x"$want_gss" = xyes; then
19029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19030 $as_echo "yes" >&6; }
19032 if test -z "$GSSAPI_INCS"; then
19033 if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
19034 GSSAPI_INCS=`$GSSAPI_ROOT/bin/krb5-config --cflags gssapi`
19035 elif test "$GSSAPI_ROOT" != "yes"; then
19036 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
19040 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
19042 ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
19043 if test "x$ac_cv_header_gss_h" = x""yes; then :
19046 $as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
19052 for ac_header in gssapi/gssapi.h
19054 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
19055 if test "x$ac_cv_header_gssapi_gssapi_h" = x""yes; then :
19056 cat >>confdefs.h <<_ACEOF
19057 #define HAVE_GSSAPI_GSSAPI_H 1
19066 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
19068 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19069 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
19070 $ac_includes_default
19071 #ifdef HAVE_GSSAPI_GSSAPI_H
19072 #include <gssapi/gssapi.h>
19076 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19077 cat >>confdefs.h <<_ACEOF
19078 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19087 if test "x$not_mit" = "x1"; then
19088 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
19089 if test "x$ac_cv_header_gssapi_h" = x""yes; then :
19092 $as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSSAPI since no header files was found" >&5
19099 $as_echo "$as_me: WARNING: disabling GSSAPI since no header files was found" >&2;}
19107 $as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
19109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gssapi headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
19110 $as_echo_n "checking if gssapi headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
19111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19112 /* end confdefs.h. */
19115 #include <gssapi/gssapi.h>
19116 #include <gssapi/gssapi_generic.h>
19117 #include <gssapi/gssapi_krb5.h>
19125 GSS_C_NT_HOSTBASED_SERVICE,
19133 if ac_fn_c_try_compile "$LINENO"; then :
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19136 $as_echo "yes" >&6; }
19140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19141 $as_echo "no" >&6; }
19143 $as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
19147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19156 $as_echo "no" >&6; }
19158 if test x"$want_gss" = xyes; then
19160 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
19163 curl_gss_msg="enabled (MIT/Heimdal)"
19165 if test -n "$gnu_gss"; then
19166 curl_gss_msg="enabled (GNU GSS)"
19167 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
19169 elif test -z "$GSSAPI_LIB_DIR"; then
19172 LIBS="$LIBS -lgssapi_krb5 -lresolv"
19175 if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
19176 gss_libs=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi`
19177 LIBS="$LIBS $gss_libs"
19178 elif test "$GSSAPI_ROOT" != "yes"; then
19179 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
19180 LIBS="$LIBS -lgssapi"
19182 LIBS="$LIBS -lgssapi"
19187 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
19188 LIBS="$LIBS -lgssapi"
19191 CPPFLAGS="$save_CPPFLAGS"
19198 # Check whether --with-ssl was given.
19199 if test "${with_ssl+set}" = set; then :
19200 withval=$with_ssl; OPT_SSL=$withval
19204 if test X"$OPT_SSL" != Xno; then
19205 CLEANLDFLAGS="$LDFLAGS"
19206 CLEANCPPFLAGS="$CPPFLAGS"
19211 if test x$cross_compiling != xyes; then
19214 PREFIX_OPENSSL=/usr/local/ssl
19215 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
19218 if test x$cross_compiling != xyes; then
19225 PREFIX_OPENSSL=$OPT_SSL
19227 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
19228 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
19229 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
19230 if test -e "$OPENSSL_PCDIR/openssl.pc"; then
19234 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
19235 if test "$PREFIX_OPENSSL" != "/usr" ; then
19236 SSL_LDFLAGS="-L$LIB_OPENSSL"
19237 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
19239 SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
19243 if test "$PKGTEST" = "yes"; then
19249 if test x$cross_compiling = xyes; then
19250 # Extract the first word of "${host}-pkg-config", so it can be a program name with args.
19251 set dummy ${host}-pkg-config; ac_word=$2
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19253 $as_echo_n "checking for $ac_word... " >&6; }
19254 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
19255 $as_echo_n "(cached) " >&6
19259 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
19262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19263 as_dummy="$PATH:/usr/bin:/usr/local/bin"
19264 for as_dir in $as_dummy
19267 test -z "$as_dir" && as_dir=.
19268 for ac_exec_ext in '' $ac_executable_extensions; do
19269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19270 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
19271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19278 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
19282 PKGCONFIG=$ac_cv_path_PKGCONFIG
19283 if test -n "$PKGCONFIG"; then
19284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
19285 $as_echo "$PKGCONFIG" >&6; }
19287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19288 $as_echo "no" >&6; }
19294 if test x$PKGCONFIG = xno; then
19295 # Extract the first word of "pkg-config", so it can be a program name with args.
19296 set dummy pkg-config; ac_word=$2
19297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19298 $as_echo_n "checking for $ac_word... " >&6; }
19299 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
19300 $as_echo_n "(cached) " >&6
19304 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
19307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19308 as_dummy="$PATH:/usr/bin:/usr/local/bin"
19309 for as_dir in $as_dummy
19312 test -z "$as_dir" && as_dir=.
19313 for ac_exec_ext in '' $ac_executable_extensions; do
19314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19315 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
19316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19323 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
19327 PKGCONFIG=$ac_cv_path_PKGCONFIG
19328 if test -n "$PKGCONFIG"; then
19329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
19330 $as_echo "$PKGCONFIG" >&6; }
19332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19333 $as_echo "no" >&6; }
19339 if test x$PKGCONFIG != xno; then
19340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
19341 $as_echo_n "checking for openssl options with pkg-config... " >&6; }
19343 if test -n "$OPENSSL_PCDIR"; then
19344 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
19345 export PKG_CONFIG_LIBDIR
19347 $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
19349 if test -z "$itexists"; then
19351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19352 $as_echo "no" >&6; }
19354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
19355 $as_echo "found" >&6; }
19360 if test "$PKGCONFIG" != "no" ; then
19362 if test -n "$OPENSSL_PCDIR"; then
19363 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
19364 export PKG_CONFIG_LIBDIR
19366 $PKGCONFIG --libs-only-l openssl 2>/dev/null`
19369 if test -n "$OPENSSL_PCDIR"; then
19370 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
19371 export PKG_CONFIG_LIBDIR
19373 $PKGCONFIG --libs-only-L openssl 2>/dev/null`
19376 if test -n "$OPENSSL_PCDIR"; then
19377 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
19378 export PKG_CONFIG_LIBDIR
19380 $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
19382 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
19383 $as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
19385 $as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
19387 $as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
19389 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
19391 LIBS="$LIBS $SSL_LIBS"
19395 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
19396 LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
19399 *-*-msys* | *-*-mingw*)
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
19401 $as_echo_n "checking for gdi32... " >&6; }
19402 my_ac_save_LIBS=$LIBS
19403 LIBS="-lgdi32 $LIBS"
19404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19405 /* end confdefs.h. */
19406 #include <windef.h>
19407 #include <wingdi.h>
19415 if ac_fn_c_try_link "$LINENO"; then :
19416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19417 $as_echo "yes" >&6; }
19419 LIBS=$my_ac_save_LIBS
19420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19421 $as_echo "no" >&6; }
19424 rm -f core conftest.err conftest.$ac_objext \
19425 conftest$ac_exeext conftest.$ac_ext
19429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_lock in -lcrypto" >&5
19430 $as_echo_n "checking for CRYPTO_lock in -lcrypto... " >&6; }
19431 if test "${ac_cv_lib_crypto_CRYPTO_lock+set}" = set; then :
19432 $as_echo_n "(cached) " >&6
19434 ac_check_lib_save_LIBS=$LIBS
19435 LIBS="-lcrypto $LIBS"
19436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19437 /* end confdefs.h. */
19443 char CRYPTO_lock ();
19446 return CRYPTO_lock ();
19451 if ac_fn_c_try_link "$LINENO"; then :
19452 ac_cv_lib_crypto_CRYPTO_lock=yes
19454 ac_cv_lib_crypto_CRYPTO_lock=no
19456 rm -f core conftest.err conftest.$ac_objext \
19457 conftest$ac_exeext conftest.$ac_ext
19458 LIBS=$ac_check_lib_save_LIBS
19460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_lock" >&5
19461 $as_echo "$ac_cv_lib_crypto_CRYPTO_lock" >&6; }
19462 if test "x$ac_cv_lib_crypto_CRYPTO_lock" = x""yes; then :
19465 LIBS="-lcrypto $LIBS"
19469 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
19470 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
19471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_add_lock in -lcrypto" >&5
19472 $as_echo_n "checking for CRYPTO_add_lock in -lcrypto... " >&6; }
19473 if test "${ac_cv_lib_crypto_CRYPTO_add_lock+set}" = set; then :
19474 $as_echo_n "(cached) " >&6
19476 ac_check_lib_save_LIBS=$LIBS
19477 LIBS="-lcrypto $LIBS"
19478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19479 /* end confdefs.h. */
19485 char CRYPTO_add_lock ();
19488 return CRYPTO_add_lock ();
19493 if ac_fn_c_try_link "$LINENO"; then :
19494 ac_cv_lib_crypto_CRYPTO_add_lock=yes
19496 ac_cv_lib_crypto_CRYPTO_add_lock=no
19498 rm -f core conftest.err conftest.$ac_objext \
19499 conftest$ac_exeext conftest.$ac_ext
19500 LIBS=$ac_check_lib_save_LIBS
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_add_lock" >&5
19503 $as_echo "$ac_cv_lib_crypto_CRYPTO_add_lock" >&6; }
19504 if test "x$ac_cv_lib_crypto_CRYPTO_add_lock" = x""yes; then :
19507 LIBS="-lcrypto $LIBS"
19510 LDFLAGS="$CLEANLDFLAGS"
19511 CPPFLAGS="$CLEANCPPFLAGS"
19521 if test X"$HAVECRYPTO" = X"yes"; then
19523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
19524 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
19525 if test "${ac_cv_lib_ssl_SSL_connect+set}" = set; then :
19526 $as_echo_n "(cached) " >&6
19528 ac_check_lib_save_LIBS=$LIBS
19530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19531 /* end confdefs.h. */
19537 char SSL_connect ();
19540 return SSL_connect ();
19545 if ac_fn_c_try_link "$LINENO"; then :
19546 ac_cv_lib_ssl_SSL_connect=yes
19548 ac_cv_lib_ssl_SSL_connect=no
19550 rm -f core conftest.err conftest.$ac_objext \
19551 conftest$ac_exeext conftest.$ac_ext
19552 LIBS=$ac_check_lib_save_LIBS
19554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
19555 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
19556 if test "x$ac_cv_lib_ssl_SSL_connect" = x""yes; then :
19557 cat >>confdefs.h <<_ACEOF
19558 #define HAVE_LIBSSL 1
19566 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
19567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
19568 $as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
19570 LIBS="$LIBS -lRSAglue -lrsaref"
19571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
19572 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
19573 if test "${ac_cv_lib_ssl_SSL_connect+set}" = set; then :
19574 $as_echo_n "(cached) " >&6
19576 ac_check_lib_save_LIBS=$LIBS
19578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19579 /* end confdefs.h. */
19585 char SSL_connect ();
19588 return SSL_connect ();
19593 if ac_fn_c_try_link "$LINENO"; then :
19594 ac_cv_lib_ssl_SSL_connect=yes
19596 ac_cv_lib_ssl_SSL_connect=no
19598 rm -f core conftest.err conftest.$ac_objext \
19599 conftest$ac_exeext conftest.$ac_ext
19600 LIBS=$ac_check_lib_save_LIBS
19602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
19603 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
19604 if test "x$ac_cv_lib_ssl_SSL_connect" = x""yes; then :
19605 cat >>confdefs.h <<_ACEOF
19606 #define HAVE_LIBSSL 1
19613 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
19614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19615 $as_echo "no" >&6; }
19618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19619 $as_echo "yes" >&6; }
19624 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
19625 openssl/pem.h openssl/ssl.h openssl/err.h
19627 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19628 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19629 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19630 cat >>confdefs.h <<_ACEOF
19631 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19633 curl_ssl_msg="enabled (OpenSSL)"
19636 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
19643 if test $ac_cv_header_openssl_x509_h = no; then
19644 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
19646 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19647 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19648 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19649 cat >>confdefs.h <<_ACEOF
19650 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19658 if test $ac_cv_header_x509_h = yes &&
19659 test $ac_cv_header_crypto_h = yes &&
19660 test $ac_cv_header_ssl_h = yes; then
19661 curl_ssl_msg="enabled (OpenSSL)"
19667 if test X"$OPENSSL_ENABLED" = X"1"; then
19669 $as_echo "#define USE_SSLEAY 1" >>confdefs.h
19672 for ac_header in openssl/pkcs12.h
19674 ac_fn_c_check_header_mongrel "$LINENO" "openssl/pkcs12.h" "ac_cv_header_openssl_pkcs12_h" "$ac_includes_default"
19675 if test "x$ac_cv_header_openssl_pkcs12_h" = x""yes; then :
19676 cat >>confdefs.h <<_ACEOF
19677 #define HAVE_OPENSSL_PKCS12_H 1
19687 USE_SSLEAY="$OPENSSL_ENABLED"
19690 if test X"$OPT_SSL" != Xoff &&
19691 test "$OPENSSL_ENABLED" != "1"; then
19692 as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
19696 if test X"$OPENSSL_ENABLED" = X"1"; then
19697 ac_fn_c_check_func "$LINENO" "ENGINE_init" "ac_cv_func_ENGINE_init"
19698 if test "x$ac_cv_func_ENGINE_init" = x""yes; then :
19700 for ac_header in openssl/engine.h
19702 ac_fn_c_check_header_mongrel "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
19703 if test "x$ac_cv_header_openssl_engine_h" = x""yes; then :
19704 cat >>confdefs.h <<_ACEOF
19705 #define HAVE_OPENSSL_ENGINE_H 1
19712 for ac_func in ENGINE_load_builtin_engines
19714 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19715 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19716 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19717 cat >>confdefs.h <<_ACEOF
19718 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19729 for ac_func in RAND_status \
19733 CRYPTO_cleanup_all_ex_data \
19736 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19737 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19738 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19739 cat >>confdefs.h <<_ACEOF
19740 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yaSSL using OpenSSL compatibility mode" >&5
19749 $as_echo_n "checking for yaSSL using OpenSSL compatibility mode... " >&6; }
19750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19751 /* end confdefs.h. */
19754 #include <openssl/ssl.h>
19759 #if defined(YASSL_VERSION) && defined(OPENSSL_VERSION_NUMBER)
19760 int dummy = SSL_ERROR_NONE;
19762 Not the yaSSL OpenSSL compatibility header.
19770 if ac_fn_c_try_compile "$LINENO"; then :
19772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19773 $as_echo "yes" >&6; }
19775 cat >>confdefs.h <<_ACEOF
19776 #define USE_YASSLEMUL 1
19779 curl_ssl_msg="enabled (OpenSSL emulation by yaSSL)"
19783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19784 $as_echo "no" >&6; }
19787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19790 if test "$OPENSSL_ENABLED" = "1"; then
19791 if test -n "$LIB_OPENSSL"; then
19793 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL"
19794 export LD_LIBRARY_PATH
19795 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&5
19796 $as_echo "$as_me: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&6;}
19804 _cppflags=$CPPFLAGS
19807 # Check whether --with-zlib was given.
19808 if test "${with_zlib+set}" = set; then :
19809 withval=$with_zlib; OPT_ZLIB="$withval"
19813 if test "$OPT_ZLIB" = "no" ; then
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
19815 $as_echo "$as_me: WARNING: zlib disabled" >&2;}
19817 if test "$OPT_ZLIB" = "yes" ; then
19821 if test -z "$OPT_ZLIB" ; then
19823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
19824 $as_echo_n "checking for inflateEnd in -lz... " >&6; }
19825 if test "${ac_cv_lib_z_inflateEnd+set}" = set; then :
19826 $as_echo_n "(cached) " >&6
19828 ac_check_lib_save_LIBS=$LIBS
19830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19831 /* end confdefs.h. */
19837 char inflateEnd ();
19840 return inflateEnd ();
19845 if ac_fn_c_try_link "$LINENO"; then :
19846 ac_cv_lib_z_inflateEnd=yes
19848 ac_cv_lib_z_inflateEnd=no
19850 rm -f core conftest.err conftest.$ac_objext \
19851 conftest$ac_exeext conftest.$ac_ext
19852 LIBS=$ac_check_lib_save_LIBS
19854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
19855 $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
19856 if test "x$ac_cv_lib_z_inflateEnd" = x""yes; then :
19859 OPT_ZLIB="/usr/local"
19865 if test -n "$OPT_ZLIB"; then
19866 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
19867 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
19870 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
19871 if test "x$ac_cv_header_zlib_h" = x""yes; then :
19874 if test "$HAVE_LIBZ" != "1"; then
19875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
19876 $as_echo_n "checking for gzread in -lz... " >&6; }
19877 if test "${ac_cv_lib_z_gzread+set}" = set; then :
19878 $as_echo_n "(cached) " >&6
19880 ac_check_lib_save_LIBS=$LIBS
19882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19883 /* end confdefs.h. */
19897 if ac_fn_c_try_link "$LINENO"; then :
19898 ac_cv_lib_z_gzread=yes
19900 ac_cv_lib_z_gzread=no
19902 rm -f core conftest.err conftest.$ac_objext \
19903 conftest$ac_exeext conftest.$ac_ext
19904 LIBS=$ac_check_lib_save_LIBS
19906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
19907 $as_echo "$ac_cv_lib_z_gzread" >&6; }
19908 if test "x$ac_cv_lib_z_gzread" = x""yes; then :
19913 CPPFLAGS=$_cppflags
19921 CPPFLAGS=$_cppflags
19928 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
19930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
19931 $as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
19933 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
19935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
19936 $as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
19937 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
19941 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
19944 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
19947 CURL_LIBS="$CURL_LIBS -lz"
19951 { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
19952 $as_echo "$as_me: found both libz and libz.h header" >&6;}
19953 curl_zlib_msg="enabled"
19959 if test x"$AMFIXLIB" = x1; then
19961 HAVE_LIBZ_FALSE='#'
19969 if test X"$OPENSSL_ENABLED" = X"1"; then
19971 # Check whether --with-egd-socket was given.
19972 if test "${with_egd_socket+set}" = set; then :
19973 withval=$with_egd_socket; EGD_SOCKET="$withval"
19977 if test -n "$EGD_SOCKET" ; then
19979 cat >>confdefs.h <<_ACEOF
19980 #define EGD_SOCKET "$EGD_SOCKET"
19986 # Check whether --with-random was given.
19987 if test "${with_random+set}" = set; then :
19988 withval=$with_random; RANDOM_FILE="$withval"
19991 as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
19992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
19993 $as_echo_n "checking for \"/dev/urandom\"... " >&6; }
19994 if eval "test \"\${$as_ac_File+set}\"" = set; then :
19995 $as_echo_n "(cached) " >&6
19997 test "$cross_compiling" = yes &&
19998 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19999 if test -r ""/dev/urandom""; then
20000 eval "$as_ac_File=yes"
20002 eval "$as_ac_File=no"
20005 eval ac_res=\$$as_ac_File
20006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20007 $as_echo "$ac_res" >&6; }
20008 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
20009 RANDOM_FILE="/dev/urandom"
20016 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
20019 cat >>confdefs.h <<_ACEOF
20020 #define RANDOM_FILE "$RANDOM_FILE"
20030 # Check whether --with-gnutls was given.
20031 if test "${with_gnutls+set}" = set; then :
20032 withval=$with_gnutls; OPT_GNUTLS=$withval
20036 if test "$OPENSSL_ENABLED" != "1"; then
20038 if test X"$OPT_GNUTLS" != Xno; then
20041 if test "x$OPT_GNUTLS" = "xyes"; then
20046 if test x$cross_compiling = xyes; then
20047 # Extract the first word of "${host}-pkg-config", so it can be a program name with args.
20048 set dummy ${host}-pkg-config; ac_word=$2
20049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20050 $as_echo_n "checking for $ac_word... " >&6; }
20051 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
20052 $as_echo_n "(cached) " >&6
20056 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20060 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20061 for as_dir in $as_dummy
20064 test -z "$as_dir" && as_dir=.
20065 for ac_exec_ext in '' $ac_executable_extensions; do
20066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20067 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20075 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
20079 PKGCONFIG=$ac_cv_path_PKGCONFIG
20080 if test -n "$PKGCONFIG"; then
20081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20082 $as_echo "$PKGCONFIG" >&6; }
20084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20085 $as_echo "no" >&6; }
20091 if test x$PKGCONFIG = xno; then
20092 # Extract the first word of "pkg-config", so it can be a program name with args.
20093 set dummy pkg-config; ac_word=$2
20094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20095 $as_echo_n "checking for $ac_word... " >&6; }
20096 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
20097 $as_echo_n "(cached) " >&6
20101 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20105 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20106 for as_dir in $as_dummy
20109 test -z "$as_dir" && as_dir=.
20110 for ac_exec_ext in '' $ac_executable_extensions; do
20111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20112 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20120 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
20124 PKGCONFIG=$ac_cv_path_PKGCONFIG
20125 if test -n "$PKGCONFIG"; then
20126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20127 $as_echo "$PKGCONFIG" >&6; }
20129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20130 $as_echo "no" >&6; }
20136 if test x$PKGCONFIG != xno; then
20137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
20138 $as_echo_n "checking for gnutls options with pkg-config... " >&6; }
20140 if test -n ""; then
20141 PKG_CONFIG_LIBDIR=""
20142 export PKG_CONFIG_LIBDIR
20144 $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
20146 if test -z "$itexists"; then
20148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20149 $as_echo "no" >&6; }
20151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20152 $as_echo "found" >&6; }
20157 if test "$PKGCONFIG" != "no" ; then
20158 addlib=`$PKGCONFIG --libs-only-l gnutls`
20159 addld=`$PKGCONFIG --libs-only-L gnutls`
20160 addcflags=`$PKGCONFIG --cflags-only-I gnutls`
20161 version=`$PKGCONFIG --modversion gnutls`
20162 gtlslib=`echo $addld | $SED -e 's/-L//'`
20164 check=`libgnutls-config --version 2>/dev/null`
20165 if test -n "$check"; then
20166 addlib=`libgnutls-config --libs`
20167 addcflags=`libgnutls-config --cflags`
20168 version=`libgnutls-config --version`
20169 gtlslib=`libgnutls-config --prefix`/lib$libsuff
20173 cfg=$OPT_GNUTLS/bin/libgnutls-config
20174 check=`$cfg --version 2>/dev/null`
20175 if test -n "$check"; then
20176 addlib=`$cfg --libs`
20177 addcflags=`$cfg --cflags`
20178 version=`$cfg --version`
20179 gtlslib=`$cfg --prefix`/lib$libsuff
20182 addld=-L$OPT_GNUTLS/lib$libsuff
20183 addcflags=-I$OPT_GNUTLS/include
20184 version="" # we just don't know
20185 gtlslib=$OPT_GNUTLS/lib$libsuff
20189 if test -z "$version"; then
20193 if test -n "$addlib"; then
20196 CLEANCPPFLAGS="$CPPFLAGS"
20197 CLEADLDFLAGS="$LDFLAGS"
20199 LIBS="$LIBS $addlib"
20200 LDFLAGS="$LDFLAGS $addld"
20201 if test "$addcflags" != "-I/usr/include"; then
20202 CPPFLAGS="$CPPFLAGS $addcflags"
20205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
20206 $as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
20207 if test "${ac_cv_lib_gnutls_gnutls_check_version+set}" = set; then :
20208 $as_echo_n "(cached) " >&6
20210 ac_check_lib_save_LIBS=$LIBS
20211 LIBS="-lgnutls $LIBS"
20212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20213 /* end confdefs.h. */
20219 char gnutls_check_version ();
20222 return gnutls_check_version ();
20227 if ac_fn_c_try_link "$LINENO"; then :
20228 ac_cv_lib_gnutls_gnutls_check_version=yes
20230 ac_cv_lib_gnutls_gnutls_check_version=no
20232 rm -f core conftest.err conftest.$ac_objext \
20233 conftest$ac_exeext conftest.$ac_ext
20234 LIBS=$ac_check_lib_save_LIBS
20236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
20237 $as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
20238 if test "x$ac_cv_lib_gnutls_gnutls_check_version" = x""yes; then :
20241 $as_echo "#define USE_GNUTLS 1" >>confdefs.h
20247 curl_ssl_msg="enabled (GnuTLS)"
20252 CPPFLAGS="$CLEANCPPFLAGS"
20257 if test "x$USE_GNUTLS" = "xyes"; then
20258 { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
20259 $as_echo "$as_me: detected GnuTLS version $version" >&6;}
20261 if test -n "$gtlslib"; then
20263 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlslib"
20264 export LD_LIBRARY_PATH
20265 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to LD_LIBRARY_PATH" >&5
20266 $as_echo "$as_me: Added $gtlslib to LD_LIBRARY_PATH" >&6;}
20275 if test "$GNUTLS_ENABLED" = "1"; then
20276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
20277 $as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
20278 if test "${ac_cv_lib_gcrypt_gcry_control+set}" = set; then :
20279 $as_echo_n "(cached) " >&6
20281 ac_check_lib_save_LIBS=$LIBS
20282 LIBS="-lgcrypt $LIBS"
20283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20284 /* end confdefs.h. */
20290 char gcry_control ();
20293 return gcry_control ();
20298 if ac_fn_c_try_link "$LINENO"; then :
20299 ac_cv_lib_gcrypt_gcry_control=yes
20301 ac_cv_lib_gcrypt_gcry_control=no
20303 rm -f core conftest.err conftest.$ac_objext \
20304 conftest$ac_exeext conftest.$ac_ext
20305 LIBS=$ac_check_lib_save_LIBS
20307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
20308 $as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
20309 if test "x$ac_cv_lib_gcrypt_gcry_control" = x""yes; then :
20310 cat >>confdefs.h <<_ACEOF
20311 #define HAVE_LIBGCRYPT 1
20314 LIBS="-lgcrypt $LIBS"
20318 as_fn_error $? "need GnuTLS built with gcrypt to function with GnuTLS" "$LINENO" 5
20327 _cppflags=$CPPFLAGS
20330 # Check whether --with-polarssl was given.
20331 if test "${with_polarssl+set}" = set; then :
20332 withval=$with_polarssl; OPT_POLARSSL=$withval
20336 if test "$OPENSSL_ENABLED" != "1"; then
20338 if test X"$OPT_POLARSSL" != Xno; then
20340 if test "$OPT_POLARSSL" = "yes"; then
20344 if test -z "$OPT_POLARSSL" ; then
20346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
20347 $as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
20348 if test "${ac_cv_lib_polarssl_havege_init+set}" = set; then :
20349 $as_echo_n "(cached) " >&6
20351 ac_check_lib_save_LIBS=$LIBS
20352 LIBS="-lpolarssl $LIBS"
20353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20354 /* end confdefs.h. */
20360 char havege_init ();
20363 return havege_init ();
20368 if ac_fn_c_try_link "$LINENO"; then :
20369 ac_cv_lib_polarssl_havege_init=yes
20371 ac_cv_lib_polarssl_havege_init=no
20373 rm -f core conftest.err conftest.$ac_objext \
20374 conftest$ac_exeext conftest.$ac_ext
20375 LIBS=$ac_check_lib_save_LIBS
20377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
20378 $as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
20379 if test "x$ac_cv_lib_polarssl_havege_init" = x""yes; then :
20382 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
20388 curl_ssl_msg="enabled (PolarSSL)"
20394 if test "x$USE_POLARSSL" != "xyes"; then
20395 addld=-L$OPT_POLARSSL/lib$libsuff
20396 addcflags=-I$OPT_POLARSSL/include
20397 polarssllib=$OPT_POLARSSL/lib$libsuff
20399 LDFLAGS="$LDFLAGS $addld"
20400 if test "$addcflags" != "-I/usr/include"; then
20401 CPPFLAGS="$CPPFLAGS $addcflags"
20404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
20405 $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
20406 if test "${ac_cv_lib_polarssl_ssl_init+set}" = set; then :
20407 $as_echo_n "(cached) " >&6
20409 ac_check_lib_save_LIBS=$LIBS
20410 LIBS="-lpolarssl $LIBS"
20411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20412 /* end confdefs.h. */
20421 return ssl_init ();
20426 if ac_fn_c_try_link "$LINENO"; then :
20427 ac_cv_lib_polarssl_ssl_init=yes
20429 ac_cv_lib_polarssl_ssl_init=no
20431 rm -f core conftest.err conftest.$ac_objext \
20432 conftest$ac_exeext conftest.$ac_ext
20433 LIBS=$ac_check_lib_save_LIBS
20435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
20436 $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
20437 if test "x$ac_cv_lib_polarssl_ssl_init" = x""yes; then :
20440 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
20446 curl_ssl_msg="enabled (PolarSSL)"
20450 CPPFLAGS=$_cppflags
20457 if test "x$USE_POLARSSL" = "xyes"; then
20458 { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
20459 $as_echo "$as_me: detected PolarSSL" >&6;}
20461 CURL_LIBS="$CURL_LIBS -lpolarssl"
20462 LIBS="$LIBS -lpolarssl"
20464 if test -n "$polarssllib"; then
20466 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$polarssllib"
20467 export LD_LIBRARY_PATH
20468 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to LD_LIBRARY_PATH" >&5
20469 $as_echo "$as_me: Added $polarssllib to LD_LIBRARY_PATH" >&6;}
20480 # Check whether --with-nss was given.
20481 if test "${with_nss+set}" = set; then :
20482 withval=$with_nss; OPT_NSS=$withval
20486 if test "$OPENSSL_ENABLED" != "1" -a "$GNUTLS_ENABLED" != "1"; then
20488 if test X"$OPT_NSS" != Xno; then
20489 if test "x$OPT_NSS" = "xyes"; then
20495 if test x$cross_compiling = xyes; then
20496 # Extract the first word of "${host}-pkg-config", so it can be a program name with args.
20497 set dummy ${host}-pkg-config; ac_word=$2
20498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20499 $as_echo_n "checking for $ac_word... " >&6; }
20500 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
20501 $as_echo_n "(cached) " >&6
20505 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20509 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20510 for as_dir in $as_dummy
20513 test -z "$as_dir" && as_dir=.
20514 for ac_exec_ext in '' $ac_executable_extensions; do
20515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20516 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20524 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
20528 PKGCONFIG=$ac_cv_path_PKGCONFIG
20529 if test -n "$PKGCONFIG"; then
20530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20531 $as_echo "$PKGCONFIG" >&6; }
20533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20534 $as_echo "no" >&6; }
20540 if test x$PKGCONFIG = xno; then
20541 # Extract the first word of "pkg-config", so it can be a program name with args.
20542 set dummy pkg-config; ac_word=$2
20543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20544 $as_echo_n "checking for $ac_word... " >&6; }
20545 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
20546 $as_echo_n "(cached) " >&6
20550 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20554 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20555 for as_dir in $as_dummy
20558 test -z "$as_dir" && as_dir=.
20559 for ac_exec_ext in '' $ac_executable_extensions; do
20560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20561 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20569 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
20573 PKGCONFIG=$ac_cv_path_PKGCONFIG
20574 if test -n "$PKGCONFIG"; then
20575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20576 $as_echo "$PKGCONFIG" >&6; }
20578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20579 $as_echo "no" >&6; }
20585 if test x$PKGCONFIG != xno; then
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
20587 $as_echo_n "checking for nss options with pkg-config... " >&6; }
20589 if test -n ""; then
20590 PKG_CONFIG_LIBDIR=""
20591 export PKG_CONFIG_LIBDIR
20593 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
20595 if test -z "$itexists"; then
20597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20598 $as_echo "no" >&6; }
20600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20601 $as_echo "found" >&6; }
20606 if test "$PKGCONFIG" != "no" ; then
20607 addlib=`$PKGCONFIG --libs nss`
20608 addcflags=`$PKGCONFIG --cflags nss`
20609 version=`$PKGCONFIG --modversion nss`
20610 nssprefix=`$PKGCONFIG --variable=prefix nss`
20613 check=`nss-config --version 2>/dev/null`
20614 if test -n "$check"; then
20615 addlib=`nss-config --libs`
20616 addcflags=`nss-config --cflags`
20617 version=`nss-config --version`
20618 nssprefix=`nss-config --prefix`
20626 # Without pkg-config, we'll kludge in some defaults
20627 addlib="-L$OPT_NSS/lib -lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl"
20628 addcflags="-I$OPT_NSS/include"
20633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PK11_CreateGenericObject in -lnss3" >&5
20634 $as_echo_n "checking for PK11_CreateGenericObject in -lnss3... " >&6; }
20635 if test "${ac_cv_lib_nss3_PK11_CreateGenericObject+set}" = set; then :
20636 $as_echo_n "(cached) " >&6
20638 ac_check_lib_save_LIBS=$LIBS
20639 LIBS="-lnss3 $LIBS"
20640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20641 /* end confdefs.h. */
20647 char PK11_CreateGenericObject ();
20650 return PK11_CreateGenericObject ();
20655 if ac_fn_c_try_link "$LINENO"; then :
20656 ac_cv_lib_nss3_PK11_CreateGenericObject=yes
20658 ac_cv_lib_nss3_PK11_CreateGenericObject=no
20660 rm -f core conftest.err conftest.$ac_objext \
20661 conftest$ac_exeext conftest.$ac_ext
20662 LIBS=$ac_check_lib_save_LIBS
20664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_PK11_CreateGenericObject" >&5
20665 $as_echo "$ac_cv_lib_nss3_PK11_CreateGenericObject" >&6; }
20666 if test "x$ac_cv_lib_nss3_PK11_CreateGenericObject" = x""yes; then :
20669 $as_echo "#define HAVE_PK11_CREATEGENERICOBJECT 1" >>confdefs.h
20671 HAVE_PK11_CREATEGENERICOBJECT=1
20676 if test -n "$addlib"; then
20679 CLEANCPPFLAGS="$CPPFLAGS"
20681 LIBS="$LIBS $addlib"
20682 if test "$addcflags" != "-I/usr/include"; then
20683 CPPFLAGS="$CPPFLAGS $addcflags"
20686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Initialize in -lnss3" >&5
20687 $as_echo_n "checking for NSS_Initialize in -lnss3... " >&6; }
20688 if test "${ac_cv_lib_nss3_NSS_Initialize+set}" = set; then :
20689 $as_echo_n "(cached) " >&6
20691 ac_check_lib_save_LIBS=$LIBS
20692 LIBS="-lnss3 $LIBS"
20693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20694 /* end confdefs.h. */
20700 char NSS_Initialize ();
20703 return NSS_Initialize ();
20708 if ac_fn_c_try_link "$LINENO"; then :
20709 ac_cv_lib_nss3_NSS_Initialize=yes
20711 ac_cv_lib_nss3_NSS_Initialize=no
20713 rm -f core conftest.err conftest.$ac_objext \
20714 conftest$ac_exeext conftest.$ac_ext
20715 LIBS=$ac_check_lib_save_LIBS
20717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_Initialize" >&5
20718 $as_echo "$ac_cv_lib_nss3_NSS_Initialize" >&6; }
20719 if test "x$ac_cv_lib_nss3_NSS_Initialize" = x""yes; then :
20722 $as_echo "#define USE_NSS 1" >>confdefs.h
20728 curl_ssl_msg="enabled (NSS)"
20733 CPPFLAGS="$CLEANCPPFLAGS"
20738 if test "x$USE_NSS" = "xyes"; then
20739 { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
20740 $as_echo "$as_me: detected NSS version $version" >&6;}
20743 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$nssprefix/lib$libsuff"
20744 export LD_LIBRARY_PATH
20745 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&5
20746 $as_echo "$as_me: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;}
20753 if test "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED" = "x"; then
20754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
20755 $as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
20756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl or --with-nss to address this." >&5
20757 $as_echo "$as_me: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl or --with-nss to address this." >&2;}
20759 # SSL is enabled, genericly
20767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
20768 $as_echo_n "checking default CA cert bundle/path... " >&6; }
20771 # Check whether --with-ca-bundle was given.
20772 if test "${with_ca_bundle+set}" = set; then :
20773 withval=$with_ca_bundle;
20775 if test "x$want_ca" = "xyes"; then
20776 as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
20784 # Check whether --with-ca-path was given.
20785 if test "${with_ca_path+set}" = set; then :
20786 withval=$with_ca_path;
20787 want_capath="$withval"
20788 if test "x$want_capath" = "xyes"; then
20789 as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
20793 want_capath="unset"
20797 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
20798 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
20799 as_fn_error $? "Can't specify both --with-ca-bundle and --with-ca-path." "$LINENO" 5
20800 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
20803 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
20804 if test "x$OPENSSL_ENABLED" != "x1"; then
20805 as_fn_error $? "--with-ca-path only works with openSSL" "$LINENO" 5
20807 capath="$want_capath"
20812 if test "x$want_ca" = "xunset"; then
20813 if test "x$prefix" != xNONE; then
20814 cac="${prefix}/share/curl/curl-ca-bundle.crt"
20816 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
20819 for a in /etc/ssl/certs/ca-certificates.crt \
20820 /etc/pki/tls/certs/ca-bundle.crt \
20821 /usr/share/ssl/certs/ca-bundle.crt \
20822 /usr/local/share/certs/ca-root.crt \
20823 /etc/ssl/cert.pem \
20825 if test -f "$a"; then
20831 if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
20832 "x$OPENSSL_ENABLED" = "x1"; then
20833 for a in /etc/ssl/certs/; do
20834 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
20844 if test "x$ca" != "xno"; then
20845 CURL_CA_BUNDLE='"'$ca'"'
20847 cat >>confdefs.h <<_ACEOF
20848 #define CURL_CA_BUNDLE "$ca"
20852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
20853 $as_echo "$ca" >&6; }
20854 elif test "x$capath" != "xno"; then
20855 CURL_CA_PATH="\"$capath\""
20857 cat >>confdefs.h <<_ACEOF
20858 #define CURL_CA_PATH "$capath"
20861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
20862 $as_echo "$capath (capath)" >&6; }
20864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20865 $as_echo "no" >&6; }
20872 # Check whether --with-libssh2 was given.
20873 if test "${with_libssh2+set}" = set; then :
20874 withval=$with_libssh2; OPT_LIBSSH2=$withval
20878 if test X"$OPT_LIBSSH2" != Xno; then
20879 CLEANLDFLAGS="$LDFLAGS"
20880 CLEANCPPFLAGS="$CPPFLAGS"
20883 case "$OPT_LIBSSH2" in
20889 if test x$cross_compiling = xyes; then
20890 # Extract the first word of "${host}-pkg-config", so it can be a program name with args.
20891 set dummy ${host}-pkg-config; ac_word=$2
20892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20893 $as_echo_n "checking for $ac_word... " >&6; }
20894 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
20895 $as_echo_n "(cached) " >&6
20899 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20903 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20904 for as_dir in $as_dummy
20907 test -z "$as_dir" && as_dir=.
20908 for ac_exec_ext in '' $ac_executable_extensions; do
20909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20910 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20918 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
20922 PKGCONFIG=$ac_cv_path_PKGCONFIG
20923 if test -n "$PKGCONFIG"; then
20924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20925 $as_echo "$PKGCONFIG" >&6; }
20927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20928 $as_echo "no" >&6; }
20934 if test x$PKGCONFIG = xno; then
20935 # Extract the first word of "pkg-config", so it can be a program name with args.
20936 set dummy pkg-config; ac_word=$2
20937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20938 $as_echo_n "checking for $ac_word... " >&6; }
20939 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
20940 $as_echo_n "(cached) " >&6
20944 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20948 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20949 for as_dir in $as_dummy
20952 test -z "$as_dir" && as_dir=.
20953 for ac_exec_ext in '' $ac_executable_extensions; do
20954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20955 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20963 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
20967 PKGCONFIG=$ac_cv_path_PKGCONFIG
20968 if test -n "$PKGCONFIG"; then
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20970 $as_echo "$PKGCONFIG" >&6; }
20972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20973 $as_echo "no" >&6; }
20979 if test x$PKGCONFIG != xno; then
20980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
20981 $as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
20983 if test -n ""; then
20984 PKG_CONFIG_LIBDIR=""
20985 export PKG_CONFIG_LIBDIR
20987 $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
20989 if test -z "$itexists"; then
20991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20992 $as_echo "no" >&6; }
20994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20995 $as_echo "found" >&6; }
21000 if test "$PKGCONFIG" != "no" ; then
21001 LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2`
21002 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
21003 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
21004 version=`$PKGCONFIG --modversion libssh2`
21005 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
21012 PREFIX_SSH2=$OPT_LIBSSH2
21016 if test -n "$PREFIX_SSH2"; then
21017 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
21018 CPP_SSH2=-I${PREFIX_SSH2}/include
21019 DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
21022 LDFLAGS="$LDFLAGS $LD_SSH2"
21023 CPPFLAGS="$CPPFLAGS $CPP_SSH2"
21024 LIBS="$LIBS $LIB_SSH2"
21026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
21027 $as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
21028 if test "${ac_cv_lib_ssh2_libssh2_channel_open_ex+set}" = set; then :
21029 $as_echo_n "(cached) " >&6
21031 ac_check_lib_save_LIBS=$LIBS
21032 LIBS="-lssh2 $LIBS"
21033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21034 /* end confdefs.h. */
21040 char libssh2_channel_open_ex ();
21043 return libssh2_channel_open_ex ();
21048 if ac_fn_c_try_link "$LINENO"; then :
21049 ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
21051 ac_cv_lib_ssh2_libssh2_channel_open_ex=no
21053 rm -f core conftest.err conftest.$ac_objext \
21054 conftest$ac_exeext conftest.$ac_ext
21055 LIBS=$ac_check_lib_save_LIBS
21057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
21058 $as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
21059 if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = x""yes; then :
21060 cat >>confdefs.h <<_ACEOF
21061 #define HAVE_LIBSSH2 1
21064 LIBS="-lssh2 $LIBS"
21069 for ac_header in libssh2.h
21071 ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
21072 if test "x$ac_cv_header_libssh2_h" = x""yes; then :
21073 cat >>confdefs.h <<_ACEOF
21074 #define HAVE_LIBSSH2_H 1
21076 curl_ssh_msg="enabled (libSSH2)"
21079 $as_echo "#define USE_LIBSSH2 1" >>confdefs.h
21089 if test X"$OPT_LIBSSH2" != Xoff &&
21090 test "$LIBSSH2_ENABLED" != "1"; then
21091 as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
21094 if test "$LIBSSH2_ENABLED" = "1"; then
21095 if test -n "$DIR_SSH2"; then
21097 for ac_func in libssh2_version libssh2_init libssh2_exit \
21098 libssh2_scp_send64 libssh2_session_handshake
21100 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21101 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21102 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21103 cat >>confdefs.h <<_ACEOF
21104 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21111 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH2"
21112 export LD_LIBRARY_PATH
21113 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&5
21114 $as_echo "$as_me: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&6;}
21117 LDFLAGS=$CLEANLDFLAGS
21118 CPPFLAGS=$CLEANCPPFLAGS
21126 # Check whether --with-librtmp was given.
21127 if test "${with_librtmp+set}" = set; then :
21128 withval=$with_librtmp; OPT_LIBRTMP=$withval
21132 if test X"$OPT_LIBRTMP" != Xno; then
21133 CLEANLDFLAGS="$LDFLAGS"
21134 CLEANCPPFLAGS="$CPPFLAGS"
21137 case "$OPT_LIBRTMP" in
21143 if test x$cross_compiling = xyes; then
21144 # Extract the first word of "${host}-pkg-config", so it can be a program name with args.
21145 set dummy ${host}-pkg-config; ac_word=$2
21146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21147 $as_echo_n "checking for $ac_word... " >&6; }
21148 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
21149 $as_echo_n "(cached) " >&6
21153 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
21156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21157 as_dummy="$PATH:/usr/bin:/usr/local/bin"
21158 for as_dir in $as_dummy
21161 test -z "$as_dir" && as_dir=.
21162 for ac_exec_ext in '' $ac_executable_extensions; do
21163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21164 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21172 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
21176 PKGCONFIG=$ac_cv_path_PKGCONFIG
21177 if test -n "$PKGCONFIG"; then
21178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
21179 $as_echo "$PKGCONFIG" >&6; }
21181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21182 $as_echo "no" >&6; }
21188 if test x$PKGCONFIG = xno; then
21189 # Extract the first word of "pkg-config", so it can be a program name with args.
21190 set dummy pkg-config; ac_word=$2
21191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21192 $as_echo_n "checking for $ac_word... " >&6; }
21193 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
21194 $as_echo_n "(cached) " >&6
21198 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
21201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21202 as_dummy="$PATH:/usr/bin:/usr/local/bin"
21203 for as_dir in $as_dummy
21206 test -z "$as_dir" && as_dir=.
21207 for ac_exec_ext in '' $ac_executable_extensions; do
21208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21209 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21217 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
21221 PKGCONFIG=$ac_cv_path_PKGCONFIG
21222 if test -n "$PKGCONFIG"; then
21223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
21224 $as_echo "$PKGCONFIG" >&6; }
21226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21227 $as_echo "no" >&6; }
21233 if test x$PKGCONFIG != xno; then
21234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
21235 $as_echo_n "checking for librtmp options with pkg-config... " >&6; }
21237 if test -n ""; then
21238 PKG_CONFIG_LIBDIR=""
21239 export PKG_CONFIG_LIBDIR
21241 $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
21243 if test -z "$itexists"; then
21245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21246 $as_echo "no" >&6; }
21248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
21249 $as_echo "found" >&6; }
21254 if test "$PKGCONFIG" != "no" ; then
21255 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
21256 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
21257 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
21258 version=`$PKGCONFIG --modversion librtmp`
21259 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
21261 as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
21269 PREFIX_RTMP=$OPT_LIBRTMP
21273 if test -n "$PREFIX_RTMP"; then
21274 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
21275 CPP_RTMP=-I${PREFIX_RTMP}/include
21276 DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
21279 LDFLAGS="$LDFLAGS $LD_RTMP"
21280 CPPFLAGS="$CPPFLAGS $CPP_RTMP"
21281 LIBS="$LIBS $LIB_RTMP"
21283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
21284 $as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
21285 if test "${ac_cv_lib_rtmp_RTMP_Init+set}" = set; then :
21286 $as_echo_n "(cached) " >&6
21288 ac_check_lib_save_LIBS=$LIBS
21289 LIBS="-lrtmp $LIBS"
21290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21291 /* end confdefs.h. */
21300 return RTMP_Init ();
21305 if ac_fn_c_try_link "$LINENO"; then :
21306 ac_cv_lib_rtmp_RTMP_Init=yes
21308 ac_cv_lib_rtmp_RTMP_Init=no
21310 rm -f core conftest.err conftest.$ac_objext \
21311 conftest$ac_exeext conftest.$ac_ext
21312 LIBS=$ac_check_lib_save_LIBS
21314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
21315 $as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
21316 if test "x$ac_cv_lib_rtmp_RTMP_Init" = x""yes; then :
21318 for ac_header in librtmp/rtmp.h
21320 ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
21321 if test "x$ac_cv_header_librtmp_rtmp_h" = x""yes; then :
21322 cat >>confdefs.h <<_ACEOF
21323 #define HAVE_LIBRTMP_RTMP_H 1
21325 curl_rtmp_msg="enabled (librtmp)"
21328 $as_echo "#define USE_LIBRTMP 1" >>confdefs.h
21339 LDFLAGS=$CLEANLDFLAGS
21340 CPPFLAGS=$CLEANCPPFLAGS
21346 if test X"$OPT_LIBRTMP" != Xoff &&
21347 test "$LIBRTMP_ENABLED" != "1"; then
21348 as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
21354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn" >&5
21355 $as_echo_n "checking whether to build with libidn... " >&6; }
21357 # Check whether --with-libidn was given.
21358 if test "${with_libidn+set}" = set; then :
21359 withval=$with_libidn; LIBIDN="$withval"
21365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21366 $as_echo "no" >&6; }
21368 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21369 $as_echo "yes" >&6; }
21372 if test -n "$LIBIDN"; then
21373 if test "x$LIBIDN" != "xyes"; then
21374 oldLDFLAGS=$LDFLAGS
21375 oldCPPFLAGS=$CPPFLAGS
21376 LDFLAGS="$LDFLAGS -L$LIBIDN/lib"
21377 CPPFLAGS="$CPPFLAGS -I$LIBIDN/include"
21379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for idna_to_ascii_4i in -lidn" >&5
21380 $as_echo_n "checking for idna_to_ascii_4i in -lidn... " >&6; }
21381 if test "${ac_cv_lib_idn_idna_to_ascii_4i+set}" = set; then :
21382 $as_echo_n "(cached) " >&6
21384 ac_check_lib_save_LIBS=$LIBS
21386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21387 /* end confdefs.h. */
21393 char idna_to_ascii_4i ();
21396 return idna_to_ascii_4i ();
21401 if ac_fn_c_try_link "$LINENO"; then :
21402 ac_cv_lib_idn_idna_to_ascii_4i=yes
21404 ac_cv_lib_idn_idna_to_ascii_4i=no
21406 rm -f core conftest.err conftest.$ac_objext \
21407 conftest$ac_exeext conftest.$ac_ext
21408 LIBS=$ac_check_lib_save_LIBS
21410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_idn_idna_to_ascii_4i" >&5
21411 $as_echo "$ac_cv_lib_idn_idna_to_ascii_4i" >&6; }
21412 if test "x$ac_cv_lib_idn_idna_to_ascii_4i" = x""yes; then :
21413 cat >>confdefs.h <<_ACEOF
21414 #define HAVE_LIBIDN 1
21421 LDFLAGS=$oldLDFLAGS
21422 CPPFLAGS=$oldCPPFLAGS
21428 if test "x$idn" != "xyes"; then
21430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for idna_to_ascii_lz in -lidn" >&5
21431 $as_echo_n "checking for idna_to_ascii_lz in -lidn... " >&6; }
21432 if test "${ac_cv_lib_idn_idna_to_ascii_lz+set}" = set; then :
21433 $as_echo_n "(cached) " >&6
21435 ac_check_lib_save_LIBS=$LIBS
21437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21438 /* end confdefs.h. */
21444 char idna_to_ascii_lz ();
21447 return idna_to_ascii_lz ();
21452 if ac_fn_c_try_link "$LINENO"; then :
21453 ac_cv_lib_idn_idna_to_ascii_lz=yes
21455 ac_cv_lib_idn_idna_to_ascii_lz=no
21457 rm -f core conftest.err conftest.$ac_objext \
21458 conftest$ac_exeext conftest.$ac_ext
21459 LIBS=$ac_check_lib_save_LIBS
21461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_idn_idna_to_ascii_lz" >&5
21462 $as_echo "$ac_cv_lib_idn_idna_to_ascii_lz" >&6; }
21463 if test "x$ac_cv_lib_idn_idna_to_ascii_lz" = x""yes; then :
21464 cat >>confdefs.h <<_ACEOF
21465 #define HAVE_LIBIDN 1
21476 if test "x$idn" = "xyes"; then
21477 curl_idn_msg="enabled"
21480 for ac_func in idn_free idna_strerror tld_strerror
21482 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21483 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21484 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21485 cat >>confdefs.h <<_ACEOF
21486 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21492 for ac_header in idn-free.h tld.h
21494 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21495 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21496 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21497 cat >>confdefs.h <<_ACEOF
21498 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
21515 $as_echo_n "checking for ANSI C header files... " >&6; }
21516 if test "${ac_cv_header_stdc+set}" = set; then :
21517 $as_echo_n "(cached) " >&6
21519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21520 /* end confdefs.h. */
21521 #include <stdlib.h>
21522 #include <stdarg.h>
21523 #include <string.h>
21533 if ac_fn_c_try_compile "$LINENO"; then :
21534 ac_cv_header_stdc=yes
21536 ac_cv_header_stdc=no
21538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21540 if test $ac_cv_header_stdc = yes; then
21541 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21543 /* end confdefs.h. */
21544 #include <string.h>
21547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21548 $EGREP "memchr" >/dev/null 2>&1; then :
21551 ac_cv_header_stdc=no
21557 if test $ac_cv_header_stdc = yes; then
21558 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21560 /* end confdefs.h. */
21561 #include <stdlib.h>
21564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21565 $EGREP "free" >/dev/null 2>&1; then :
21568 ac_cv_header_stdc=no
21574 if test $ac_cv_header_stdc = yes; then
21575 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21576 if test "$cross_compiling" = yes; then :
21579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21580 /* end confdefs.h. */
21582 #include <stdlib.h>
21583 #if ((' ' & 0x0FF) == 0x020)
21584 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21585 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21587 # define ISLOWER(c) \
21588 (('a' <= (c) && (c) <= 'i') \
21589 || ('j' <= (c) && (c) <= 'r') \
21590 || ('s' <= (c) && (c) <= 'z'))
21591 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21594 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21599 for (i = 0; i < 256; i++)
21600 if (XOR (islower (i), ISLOWER (i))
21601 || toupper (i) != TOUPPER (i))
21606 if ac_fn_c_try_run "$LINENO"; then :
21609 ac_cv_header_stdc=no
21611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21612 conftest.$ac_objext conftest.beam conftest.$ac_ext
21617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
21618 $as_echo "$ac_cv_header_stdc" >&6; }
21619 if test $ac_cv_header_stdc = yes; then
21621 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
21627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
21628 $as_echo_n "checking for malloc.h... " >&6; }
21629 if test "${ac_cv_header_malloc_h+set}" = set; then :
21630 $as_echo_n "(cached) " >&6
21633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21634 /* end confdefs.h. */
21637 #include <malloc.h>
21642 void *p = malloc(10);
21643 void *q = calloc(10,10);
21652 if ac_fn_c_try_compile "$LINENO"; then :
21654 ac_cv_header_malloc_h="yes"
21658 ac_cv_header_malloc_h="no"
21661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_malloc_h" >&5
21665 $as_echo "$ac_cv_header_malloc_h" >&6; }
21666 if test "$ac_cv_header_malloc_h" = "yes"; then
21668 cat >>confdefs.h <<_ACEOF
21669 #define HAVE_MALLOC_H 1
21673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21674 /* end confdefs.h. */
21677 #include <stdlib.h>
21682 void *p = malloc(10);
21683 void *q = calloc(10,10);
21692 if ac_fn_c_try_compile "$LINENO"; then :
21694 curl_cv_need_header_malloc_h="no"
21698 curl_cv_need_header_malloc_h="yes"
21701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21703 case "$curl_cv_need_header_malloc_h" in
21706 cat >>confdefs.h <<_ACEOF
21707 #define NEED_MALLOC_H 1
21715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
21716 $as_echo_n "checking for memory.h... " >&6; }
21717 if test "${ac_cv_header_memory_h+set}" = set; then :
21718 $as_echo_n "(cached) " >&6
21721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21722 /* end confdefs.h. */
21725 #include <memory.h>
21730 void *p = malloc(10);
21731 void *q = calloc(10,10);
21740 if ac_fn_c_try_compile "$LINENO"; then :
21742 ac_cv_header_memory_h="yes"
21746 ac_cv_header_memory_h="no"
21749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_memory_h" >&5
21753 $as_echo "$ac_cv_header_memory_h" >&6; }
21754 if test "$ac_cv_header_memory_h" = "yes"; then
21756 cat >>confdefs.h <<_ACEOF
21757 #define HAVE_MEMORY_H 1
21761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21762 /* end confdefs.h. */
21765 #include <stdlib.h>
21770 void *p = malloc(10);
21771 void *q = calloc(10,10);
21780 if ac_fn_c_try_compile "$LINENO"; then :
21782 curl_cv_need_header_memory_h="no"
21786 curl_cv_need_header_memory_h="yes"
21789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21791 case "$curl_cv_need_header_memory_h" in
21794 cat >>confdefs.h <<_ACEOF
21795 #define NEED_MEMORY_H 1
21803 for ac_header in sys/types.h \
21844 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21845 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
21846 #ifdef HAVE_SYS_TYPES_H
21847 #include <sys/types.h>
21849 #ifdef HAVE_SYS_TIME_H
21850 #include <sys/time.h>
21852 #ifdef HAVE_SYS_SELECT_H
21853 #include <sys/select.h>
21855 #ifdef HAVE_SYS_SOCKET_H
21856 #include <sys/socket.h>
21858 #ifdef HAVE_NETINET_IN_H
21859 #include <netinet/in.h>
21861 #ifdef HAVE_SYS_UN_H
21862 #include <sys/un.h>
21867 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21868 cat >>confdefs.h <<_ACEOF
21869 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
21878 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
21879 if test "${ac_cv_c_const+set}" = set; then :
21880 $as_echo_n "(cached) " >&6
21882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21883 /* end confdefs.h. */
21887 /* FIXME: Include the comments suggested by Paul. */
21888 #ifndef __cplusplus
21889 /* Ultrix mips cc rejects this. */
21890 typedef int charset[2];
21892 /* SunOS 4.1.1 cc rejects this. */
21893 char const *const *pcpcc;
21895 /* NEC SVR4.0.2 mips cc rejects this. */
21896 struct point {int x, y;};
21897 static struct point const zero = {0,0};
21898 /* AIX XL C 1.02.0.0 rejects this.
21899 It does not let you subtract one const X* pointer from another in
21900 an arm of an if-expression whose if-part is not a constant
21902 const char *g = "string";
21903 pcpcc = &g + (g ? g-g : 0);
21904 /* HPUX 7.0 cc rejects these. */
21906 ppc = (char**) pcpcc;
21907 pcpcc = (char const *const *) ppc;
21908 { /* SCO 3.2v4 cc rejects this. */
21910 char const *s = 0 ? (char *) 0 : (char const *) 0;
21915 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21916 int x[] = {25, 17};
21917 const int *foo = &x[0];
21920 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21921 typedef const int *iptr;
21925 { /* AIX XL C 1.02.0.0 rejects this saying
21926 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21927 struct s { int j; const int *ap[3]; };
21928 struct s *b; b->j = 5;
21930 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21931 const int foo = 10;
21932 if (!foo) return 0;
21934 return !cs[0] && !zero.x;
21941 if ac_fn_c_try_compile "$LINENO"; then :
21946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
21949 $as_echo "$ac_cv_c_const" >&6; }
21950 if test $ac_cv_c_const = no; then
21952 $as_echo "#define const /**/" >>confdefs.h
21957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
21958 $as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
21959 if test "${curl_cv_variadic_macros_c99+set}" = set; then :
21960 $as_echo_n "(cached) " >&6
21963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21964 /* end confdefs.h. */
21967 #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
21968 #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
21969 int fun3(int arg1, int arg2, int arg3);
21970 int fun2(int arg1, int arg2);
21971 int fun3(int arg1, int arg2, int arg3)
21972 { return arg1 + arg2 + arg3; }
21973 int fun2(int arg1, int arg2)
21974 { return arg1 + arg2; }
21979 int res3 = c99_vmacro3(1, 2, 3);
21980 int res2 = c99_vmacro2(1, 2);
21987 if ac_fn_c_try_compile "$LINENO"; then :
21989 curl_cv_variadic_macros_c99="yes"
21993 curl_cv_variadic_macros_c99="no"
21996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
22000 $as_echo "$curl_cv_variadic_macros_c99" >&6; }
22001 case "$curl_cv_variadic_macros_c99" in
22004 cat >>confdefs.h <<_ACEOF
22005 #define HAVE_VARIADIC_MACROS_C99 1
22010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
22011 $as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
22012 if test "${curl_cv_variadic_macros_gcc+set}" = set; then :
22013 $as_echo_n "(cached) " >&6
22016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22017 /* end confdefs.h. */
22020 #define gcc_vmacro3(first, args...) fun3(first, args)
22021 #define gcc_vmacro2(first, args...) fun2(first, args)
22022 int fun3(int arg1, int arg2, int arg3);
22023 int fun2(int arg1, int arg2);
22024 int fun3(int arg1, int arg2, int arg3)
22025 { return arg1 + arg2 + arg3; }
22026 int fun2(int arg1, int arg2)
22027 { return arg1 + arg2; }
22032 int res3 = gcc_vmacro3(1, 2, 3);
22033 int res2 = gcc_vmacro2(1, 2);
22040 if ac_fn_c_try_compile "$LINENO"; then :
22042 curl_cv_variadic_macros_gcc="yes"
22046 curl_cv_variadic_macros_gcc="no"
22049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
22053 $as_echo "$curl_cv_variadic_macros_gcc" >&6; }
22054 case "$curl_cv_variadic_macros_gcc" in
22057 cat >>confdefs.h <<_ACEOF
22058 #define HAVE_VARIADIC_MACROS_GCC 1
22064 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22065 if test "x$ac_cv_type_size_t" = x""yes; then :
22069 cat >>confdefs.h <<_ACEOF
22070 #define size_t unsigned int
22075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22076 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22077 if test "${ac_cv_header_time+set}" = set; then :
22078 $as_echo_n "(cached) " >&6
22080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22081 /* end confdefs.h. */
22082 #include <sys/types.h>
22083 #include <sys/time.h>
22088 if ((struct tm *) 0)
22094 if ac_fn_c_try_compile "$LINENO"; then :
22095 ac_cv_header_time=yes
22097 ac_cv_header_time=no
22099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
22102 $as_echo "$ac_cv_header_time" >&6; }
22103 if test $ac_cv_header_time = yes; then
22105 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
22110 for ac_header in sys/types.h sys/time.h time.h sys/socket.h
22112 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22113 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22114 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22115 cat >>confdefs.h <<_ACEOF
22116 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
22124 $as_echo_n "checking for struct timeval... " >&6; }
22125 if test "${ac_cv_struct_timeval+set}" = set; then :
22126 $as_echo_n "(cached) " >&6
22129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22130 /* end confdefs.h. */
22134 #ifdef HAVE_WINDOWS_H
22135 #ifndef WIN32_LEAN_AND_MEAN
22136 #define WIN32_LEAN_AND_MEAN
22138 #include <windows.h>
22139 #ifdef HAVE_WINSOCK2_H
22140 #include <winsock2.h>
22142 #ifdef HAVE_WINSOCK_H
22143 #include <winsock.h>
22147 #ifdef HAVE_SYS_TYPES_H
22148 #include <sys/types.h>
22150 #ifdef HAVE_SYS_TIME_H
22151 #include <sys/time.h>
22152 #ifdef TIME_WITH_SYS_TIME
22160 #ifdef HAVE_SYS_SOCKET_H
22161 #include <sys/socket.h>
22176 if ac_fn_c_try_compile "$LINENO"; then :
22178 ac_cv_struct_timeval="yes"
22182 ac_cv_struct_timeval="no"
22185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timeval" >&5
22189 $as_echo "$ac_cv_struct_timeval" >&6; }
22190 case "$ac_cv_struct_timeval" in
22193 cat >>confdefs.h <<_ACEOF
22194 #define HAVE_STRUCT_TIMEVAL 1
22202 if test "x$cross_compiling" != xyes; then
22204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
22205 $as_echo_n "checking run-time libs availability... " >&6; }
22206 if test "$cross_compiling" = yes; then :
22207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22209 as_fn_error $? "cannot run test program while cross compiling
22210 See \`config.log' for more details" "$LINENO" 5 ; }
22212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22213 /* end confdefs.h. */
22221 if ac_fn_c_try_run "$LINENO"; then :
22222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
22223 $as_echo "fine" >&6; }
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
22226 $as_echo "failed" >&6; }
22227 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
22230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22231 conftest.$ac_objext conftest.beam conftest.$ac_ext
22238 # The cast to long int works around a bug in the HP C Compiler
22239 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22240 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22241 # This bug is HP SR number 8606223364.
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
22243 $as_echo_n "checking size of size_t... " >&6; }
22244 if test "${ac_cv_sizeof_size_t+set}" = set; then :
22245 $as_echo_n "(cached) " >&6
22247 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
22250 if test "$ac_cv_type_size_t" = yes; then
22251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22253 as_fn_error 77 "cannot compute sizeof (size_t)
22254 See \`config.log' for more details" "$LINENO" 5 ; }
22256 ac_cv_sizeof_size_t=0
22261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
22262 $as_echo "$ac_cv_sizeof_size_t" >&6; }
22266 cat >>confdefs.h <<_ACEOF
22267 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22271 # The cast to long int works around a bug in the HP C Compiler
22272 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22273 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22274 # This bug is HP SR number 8606223364.
22275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
22276 $as_echo_n "checking size of long... " >&6; }
22277 if test "${ac_cv_sizeof_long+set}" = set; then :
22278 $as_echo_n "(cached) " >&6
22280 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
22283 if test "$ac_cv_type_long" = yes; then
22284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22286 as_fn_error 77 "cannot compute sizeof (long)
22287 See \`config.log' for more details" "$LINENO" 5 ; }
22289 ac_cv_sizeof_long=0
22294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
22295 $as_echo "$ac_cv_sizeof_long" >&6; }
22299 cat >>confdefs.h <<_ACEOF
22300 #define SIZEOF_LONG $ac_cv_sizeof_long
22304 # The cast to long int works around a bug in the HP C Compiler
22305 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22306 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22307 # This bug is HP SR number 8606223364.
22308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
22309 $as_echo_n "checking size of int... " >&6; }
22310 if test "${ac_cv_sizeof_int+set}" = set; then :
22311 $as_echo_n "(cached) " >&6
22313 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
22316 if test "$ac_cv_type_int" = yes; then
22317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22319 as_fn_error 77 "cannot compute sizeof (int)
22320 See \`config.log' for more details" "$LINENO" 5 ; }
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
22328 $as_echo "$ac_cv_sizeof_int" >&6; }
22332 cat >>confdefs.h <<_ACEOF
22333 #define SIZEOF_INT $ac_cv_sizeof_int
22337 # The cast to long int works around a bug in the HP C Compiler
22338 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22339 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22340 # This bug is HP SR number 8606223364.
22341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
22342 $as_echo_n "checking size of short... " >&6; }
22343 if test "${ac_cv_sizeof_short+set}" = set; then :
22344 $as_echo_n "(cached) " >&6
22346 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
22349 if test "$ac_cv_type_short" = yes; then
22350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22352 as_fn_error 77 "cannot compute sizeof (short)
22353 See \`config.log' for more details" "$LINENO" 5 ; }
22355 ac_cv_sizeof_short=0
22360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
22361 $as_echo "$ac_cv_sizeof_short" >&6; }
22365 cat >>confdefs.h <<_ACEOF
22366 #define SIZEOF_SHORT $ac_cv_sizeof_short
22371 if test -z "$ac_cv_sizeof_long" ||
22372 test "$ac_cv_sizeof_long" -eq "0"; then
22373 as_fn_error $? "cannot find out size of long." "$LINENO" 5
22376 cat >>confdefs.h <<_EOF
22377 #define CURL_SIZEOF_LONG $ac_cv_sizeof_long
22381 # The cast to long int works around a bug in the HP C Compiler
22382 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22383 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22384 # This bug is HP SR number 8606223364.
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
22386 $as_echo_n "checking size of time_t... " >&6; }
22387 if test "${ac_cv_sizeof_time_t+set}" = set; then :
22388 $as_echo_n "(cached) " >&6
22390 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
22393 if test "$ac_cv_type_time_t" = yes; then
22394 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22396 as_fn_error 77 "cannot compute sizeof (time_t)
22397 See \`config.log' for more details" "$LINENO" 5 ; }
22399 ac_cv_sizeof_time_t=0
22404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
22405 $as_echo "$ac_cv_sizeof_time_t" >&6; }
22409 cat >>confdefs.h <<_ACEOF
22410 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
22414 # The cast to long int works around a bug in the HP C Compiler
22415 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22416 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22417 # This bug is HP SR number 8606223364.
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
22419 $as_echo_n "checking size of off_t... " >&6; }
22420 if test "${ac_cv_sizeof_off_t+set}" = set; then :
22421 $as_echo_n "(cached) " >&6
22423 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
22426 if test "$ac_cv_type_off_t" = yes; then
22427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22429 as_fn_error 77 "cannot compute sizeof (off_t)
22430 See \`config.log' for more details" "$LINENO" 5 ; }
22432 ac_cv_sizeof_off_t=0
22437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
22438 $as_echo "$ac_cv_sizeof_off_t" >&6; }
22442 cat >>confdefs.h <<_ACEOF
22443 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
22449 if test x"$ac_cv_native_windows" != "xyes" &&
22450 test $ac_cv_sizeof_off_t -ne $curl_sizeof_curl_off_t; then
22451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This libcurl built is probably not ABI compatible with previous" >&5
22452 $as_echo "$as_me: WARNING: This libcurl built is probably not ABI compatible with previous" >&2;}
22453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&5
22454 $as_echo "$as_me: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&2;}
22459 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
22460 if test "x$ac_cv_type_long_long" = x""yes; then :
22462 $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
22469 if test "xyes" = "x$longlong"; then
22470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
22471 $as_echo_n "checking if numberLL works... " >&6; }
22472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22473 /* end confdefs.h. */
22480 long long val = 1000LL;
22487 if ac_fn_c_try_compile "$LINENO"; then :
22489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22490 $as_echo "yes" >&6; }
22492 $as_echo "#define HAVE_LL 1" >>confdefs.h
22497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22498 $as_echo "no" >&6; }
22501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22505 # check for ssize_t
22506 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22507 if test "x$ac_cv_type_ssize_t" = x""yes; then :
22511 $as_echo "#define ssize_t int" >>confdefs.h
22516 # check for bool type
22517 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
22518 #ifdef HAVE_SYS_TYPES_H
22519 #include <sys/types.h>
22521 #ifdef HAVE_STDBOOL_H
22522 #include <stdbool.h>
22526 if test "x$ac_cv_type_bool" = x""yes; then :
22529 $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
22536 curl_includes_ws2tcpip="\
22537 /* includes start */
22538 #ifdef HAVE_WINDOWS_H
22539 # ifndef WIN32_LEAN_AND_MEAN
22540 # define WIN32_LEAN_AND_MEAN
22542 # include <windows.h>
22543 # ifdef HAVE_WINSOCK2_H
22544 # include <winsock2.h>
22545 # ifdef HAVE_WS2TCPIP_H
22546 # include <ws2tcpip.h>
22550 /* includes end */"
22552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
22553 $as_echo_n "checking for windows.h... " >&6; }
22554 if test "${ac_cv_header_windows_h+set}" = set; then :
22555 $as_echo_n "(cached) " >&6
22558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22559 /* end confdefs.h. */
22563 #ifndef WIN32_LEAN_AND_MEAN
22564 #define WIN32_LEAN_AND_MEAN
22566 #include <windows.h>
22571 #if defined(__CYGWIN__) || defined(__CEGCC__)
22572 HAVE_WINDOWS_H shall not be defined.
22574 int dummy=2*WINVER;
22582 if ac_fn_c_try_compile "$LINENO"; then :
22584 ac_cv_header_windows_h="yes"
22588 ac_cv_header_windows_h="no"
22591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
22595 $as_echo "$ac_cv_header_windows_h" >&6; }
22596 case "$ac_cv_header_windows_h" in
22599 cat >>confdefs.h <<_ACEOF
22600 #define HAVE_WINDOWS_H 1
22604 cat >>confdefs.h <<_ACEOF
22605 #define WIN32_LEAN_AND_MEAN 1
22612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
22613 $as_echo_n "checking for winsock2.h... " >&6; }
22614 if test "${ac_cv_header_winsock2_h+set}" = set; then :
22615 $as_echo_n "(cached) " >&6
22618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22619 /* end confdefs.h. */
22623 #ifndef WIN32_LEAN_AND_MEAN
22624 #define WIN32_LEAN_AND_MEAN
22626 #include <windows.h>
22627 #include <winsock2.h>
22632 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
22633 HAVE_WINSOCK2_H shall not be defined.
22635 int dummy=2*IPPROTO_ESP;
22643 if ac_fn_c_try_compile "$LINENO"; then :
22645 ac_cv_header_winsock2_h="yes"
22649 ac_cv_header_winsock2_h="no"
22652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
22656 $as_echo "$ac_cv_header_winsock2_h" >&6; }
22657 case "$ac_cv_header_winsock2_h" in
22660 cat >>confdefs.h <<_ACEOF
22661 #define HAVE_WINSOCK2_H 1
22668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
22669 $as_echo_n "checking for ws2tcpip.h... " >&6; }
22670 if test "${ac_cv_header_ws2tcpip_h+set}" = set; then :
22671 $as_echo_n "(cached) " >&6
22674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22675 /* end confdefs.h. */
22679 #ifndef WIN32_LEAN_AND_MEAN
22680 #define WIN32_LEAN_AND_MEAN
22682 #include <windows.h>
22683 #include <winsock2.h>
22684 #include <ws2tcpip.h>
22689 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
22690 HAVE_WS2TCPIP_H shall not be defined.
22692 int dummy=2*IP_PKTINFO;
22700 if ac_fn_c_try_compile "$LINENO"; then :
22702 ac_cv_header_ws2tcpip_h="yes"
22706 ac_cv_header_ws2tcpip_h="no"
22709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
22713 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
22714 case "$ac_cv_header_ws2tcpip_h" in
22717 cat >>confdefs.h <<_ACEOF
22718 #define HAVE_WS2TCPIP_H 1
22726 curl_includes_sys_socket="\
22727 /* includes start */
22728 #ifdef HAVE_SYS_TYPES_H
22729 # include <sys/types.h>
22731 #ifdef HAVE_SYS_SOCKET_H
22732 # include <sys/socket.h>
22734 /* includes end */"
22735 for ac_header in sys/types.h sys/socket.h
22737 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22738 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
22740 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22741 cat >>confdefs.h <<_ACEOF
22742 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22751 curl_preprocess_callconv="\
22752 /* preprocess start */
22753 #ifdef HAVE_WINDOWS_H
22754 # define FUNCALLCONV __stdcall
22756 # define FUNCALLCONV
22758 /* preprocess end */"
22762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_socklen_t data type" >&5
22763 $as_echo_n "checking for curl_socklen_t data type... " >&6; }
22764 curl_typeof_curl_socklen_t="unknown"
22765 for arg1 in int SOCKET; do
22766 for arg2 in 'struct sockaddr' void; do
22767 for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
22768 if test "$curl_typeof_curl_socklen_t" = "unknown"; then
22769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22770 /* end confdefs.h. */
22773 $curl_includes_ws2tcpip
22774 $curl_includes_sys_socket
22775 $curl_preprocess_callconv
22776 extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
22782 if(0 != getpeername(0, 0, lenptr))
22790 if ac_fn_c_try_compile "$LINENO"; then :
22792 curl_typeof_curl_socklen_t="$t"
22795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22800 for t in socklen_t int; do
22801 if test "$curl_typeof_curl_socklen_t" = "void"; then
22802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22803 /* end confdefs.h. */
22806 $curl_includes_sys_socket
22807 typedef $t curl_socklen_t;
22812 curl_socklen_t dummy;
22819 if ac_fn_c_try_compile "$LINENO"; then :
22821 curl_typeof_curl_socklen_t="$t"
22824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_socklen_t" >&5
22828 $as_echo "$curl_typeof_curl_socklen_t" >&6; }
22829 if test "$curl_typeof_curl_socklen_t" = "void" ||
22830 test "$curl_typeof_curl_socklen_t" = "unknown"; then
22831 as_fn_error $? "cannot find data type for curl_socklen_t." "$LINENO" 5
22834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_socklen_t" >&5
22835 $as_echo_n "checking size of curl_socklen_t... " >&6; }
22836 curl_sizeof_curl_socklen_t="unknown"
22837 curl_pull_headers_socklen_t="unknown"
22838 if test "$ac_cv_header_ws2tcpip_h" = "yes"; then
22839 tst_pull_header_checks='none ws2tcpip'
22840 tst_size_checks='4'
22842 tst_pull_header_checks='none systypes syssocket'
22843 tst_size_checks='4 8 2'
22845 for tst_size in $tst_size_checks; do
22846 for tst_pull_headers in $tst_pull_header_checks; do
22847 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
22848 case $tst_pull_headers in
22850 tmp_includes="$curl_includes_ws2tcpip"
22853 tmp_includes="$curl_includes_sys_types"
22856 tmp_includes="$curl_includes_sys_socket"
22862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22863 /* end confdefs.h. */
22867 typedef $curl_typeof_curl_socklen_t curl_socklen_t;
22868 typedef char dummy_arr[sizeof(curl_socklen_t) == $tst_size ? 1 : -1];
22873 curl_socklen_t dummy;
22880 if ac_fn_c_try_compile "$LINENO"; then :
22882 curl_sizeof_curl_socklen_t="$tst_size"
22883 curl_pull_headers_socklen_t="$tst_pull_headers"
22886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_socklen_t" >&5
22891 $as_echo "$curl_sizeof_curl_socklen_t" >&6; }
22892 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
22893 as_fn_error $? "cannot find out size of curl_socklen_t." "$LINENO" 5
22896 case $curl_pull_headers_socklen_t in
22899 cat >>confdefs.h <<_EOF
22900 #define CURL_PULL_WS2TCPIP_H 1
22906 cat >>confdefs.h <<_EOF
22907 #define CURL_PULL_SYS_TYPES_H 1
22913 cat >>confdefs.h <<_EOF
22914 #define CURL_PULL_SYS_TYPES_H 1
22918 cat >>confdefs.h <<_EOF
22919 #define CURL_PULL_SYS_SOCKET_H 1
22925 cat >>confdefs.h <<_EOF
22926 #define CURL_TYPEOF_CURL_SOCKLEN_T $curl_typeof_curl_socklen_t
22930 cat >>confdefs.h <<_EOF
22931 #define CURL_SIZEOF_CURL_SOCKLEN_T $curl_sizeof_curl_socklen_t
22937 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
22939 #ifdef HAVE_WINDOWS_H
22940 #ifndef WIN32_LEAN_AND_MEAN
22941 #define WIN32_LEAN_AND_MEAN
22943 #include <windows.h>
22944 #ifdef HAVE_WINSOCK2_H
22945 #include <winsock2.h>
22947 #ifdef HAVE_WINSOCK_H
22948 #include <winsock.h>
22952 #ifdef HAVE_SYS_TYPES_H
22953 #include <sys/types.h>
22955 #ifdef HAVE_SYS_SOCKET_H
22956 #include <sys/socket.h>
22958 #ifdef HAVE_NETINET_IN_H
22959 #include <netinet/in.h>
22961 #ifdef HAVE_ARPA_INET_H
22962 #include <arpa/inet.h>
22967 if test "x$ac_cv_type_in_addr_t" = x""yes; then :
22971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
22972 $as_echo_n "checking for in_addr_t equivalent... " >&6; }
22973 if test "${curl_cv_in_addr_t_equiv+set}" = set; then :
22974 $as_echo_n "(cached) " >&6
22977 curl_cv_in_addr_t_equiv="unknown"
22978 for t in "unsigned long" int size_t unsigned long; do
22979 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
22980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22981 /* end confdefs.h. */
22985 #ifdef HAVE_WINDOWS_H
22986 #ifndef WIN32_LEAN_AND_MEAN
22987 #define WIN32_LEAN_AND_MEAN
22989 #include <windows.h>
22990 #ifdef HAVE_WINSOCK2_H
22991 #include <winsock2.h>
22993 #ifdef HAVE_WINSOCK_H
22994 #include <winsock.h>
22998 #ifdef HAVE_SYS_TYPES_H
22999 #include <sys/types.h>
23001 #ifdef HAVE_SYS_SOCKET_H
23002 #include <sys/socket.h>
23004 #ifdef HAVE_NETINET_IN_H
23005 #include <netinet/in.h>
23007 #ifdef HAVE_ARPA_INET_H
23008 #include <arpa/inet.h>
23015 $t data = inet_addr ("1.2.3.4");
23022 if ac_fn_c_try_link "$LINENO"; then :
23024 curl_cv_in_addr_t_equiv="$t"
23027 rm -f core conftest.err conftest.$ac_objext \
23028 conftest$ac_exeext conftest.$ac_ext
23033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
23034 $as_echo "$curl_cv_in_addr_t_equiv" >&6; }
23035 case "$curl_cv_in_addr_t_equiv" in
23037 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
23041 cat >>confdefs.h <<_ACEOF
23042 #define in_addr_t $curl_cv_in_addr_t_equiv
23053 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
23055 #ifdef HAVE_WINDOWS_H
23056 #ifndef WIN32_LEAN_AND_MEAN
23057 #define WIN32_LEAN_AND_MEAN
23059 #include <windows.h>
23060 #ifdef HAVE_WINSOCK2_H
23061 #include <winsock2.h>
23064 #ifdef HAVE_SYS_TYPES_H
23065 #include <sys/types.h>
23067 #ifdef HAVE_SYS_SOCKET_H
23068 #include <sys/socket.h>
23070 #ifdef HAVE_NETINET_IN_H
23071 #include <netinet/in.h>
23073 #ifdef HAVE_ARPA_INET_H
23074 #include <arpa/inet.h>
23079 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :
23081 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
23088 for ac_header in signal.h
23090 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
23091 if test "x$ac_cv_header_signal_h" = x""yes; then :
23092 cat >>confdefs.h <<_ACEOF
23093 #define HAVE_SIGNAL_H 1
23100 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
23101 #ifdef HAVE_SIGNAL_H
23102 #include <signal.h>
23106 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then :
23109 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
23114 case "$ac_cv_type_sig_atomic_t" in
23117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
23118 $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
23119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23120 /* end confdefs.h. */
23123 #ifdef HAVE_SIGNAL_H
23124 #include <signal.h>
23130 static volatile sig_atomic_t dummy = 0;
23137 if ac_fn_c_try_link "$LINENO"; then :
23139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23140 $as_echo "no" >&6; }
23141 ac_cv_sig_atomic_t_volatile="no"
23145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23146 $as_echo "yes" >&6; }
23147 ac_cv_sig_atomic_t_volatile="yes"
23150 rm -f core conftest.err conftest.$ac_objext \
23151 conftest$ac_exeext conftest.$ac_ext
23153 if test "$ac_cv_sig_atomic_t_volatile" = "yes"; then
23155 $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
23162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
23163 $as_echo_n "checking return type of signal handlers... " >&6; }
23164 if test "${ac_cv_type_signal+set}" = set; then :
23165 $as_echo_n "(cached) " >&6
23167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23168 /* end confdefs.h. */
23169 #include <sys/types.h>
23170 #include <signal.h>
23174 return *(signal (0, 0)) (0) == 1;
23179 if ac_fn_c_try_compile "$LINENO"; then :
23180 ac_cv_type_signal=int
23182 ac_cv_type_signal=void
23184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
23187 $as_echo "$ac_cv_type_signal" >&6; }
23189 cat >>confdefs.h <<_ACEOF
23190 #define RETSIGTYPE $ac_cv_type_signal
23196 for ac_header in sys/select.h sys/socket.h
23198 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23199 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23200 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23201 cat >>confdefs.h <<_ACEOF
23202 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
23211 $as_echo_n "checking for select... " >&6; }
23212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23213 /* end confdefs.h. */
23217 #ifdef HAVE_WINDOWS_H
23218 #ifndef WIN32_LEAN_AND_MEAN
23219 #define WIN32_LEAN_AND_MEAN
23221 #include <windows.h>
23222 #ifdef HAVE_WINSOCK2_H
23223 #include <winsock2.h>
23225 #ifdef HAVE_WINSOCK_H
23226 #include <winsock.h>
23230 #ifdef HAVE_SYS_TYPES_H
23231 #include <sys/types.h>
23233 #ifdef HAVE_SYS_TIME_H
23234 #include <sys/time.h>
23235 #ifdef TIME_WITH_SYS_TIME
23243 #ifndef HAVE_WINDOWS_H
23244 #ifdef HAVE_SYS_SELECT_H
23245 #include <sys/select.h>
23247 #ifdef HAVE_SYS_SOCKET_H
23248 #include <sys/socket.h>
23255 select(0, 0, 0, 0, 0);
23262 if ac_fn_c_try_link "$LINENO"; then :
23264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23265 $as_echo "yes" >&6; }
23266 curl_cv_select="yes"
23270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23271 $as_echo "no" >&6; }
23272 curl_cv_select="no"
23275 rm -f core conftest.err conftest.$ac_objext \
23276 conftest$ac_exeext conftest.$ac_ext
23278 if test "$curl_cv_select" = "yes"; then
23279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
23280 $as_echo_n "checking types of args and return type for select... " >&6; }
23281 if test "${curl_cv_func_select_args+set}" = set; then :
23282 $as_echo_n "(cached) " >&6
23285 curl_cv_func_select_args="unknown"
23286 for sel_retv in 'int' 'ssize_t'; do
23287 for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
23288 for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
23289 for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
23290 if test "$curl_cv_func_select_args" = "unknown"; then
23291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23292 /* end confdefs.h. */
23296 #ifdef HAVE_WINDOWS_H
23297 #ifndef WIN32_LEAN_AND_MEAN
23298 #define WIN32_LEAN_AND_MEAN
23300 #include <windows.h>
23301 #ifdef HAVE_WINSOCK2_H
23302 #include <winsock2.h>
23304 #ifdef HAVE_WINSOCK_H
23305 #include <winsock.h>
23308 #define SELECTCALLCONV PASCAL
23310 #ifdef HAVE_SYS_TYPES_H
23311 #include <sys/types.h>
23313 #ifdef HAVE_SYS_TIME_H
23314 #include <sys/time.h>
23315 #ifdef TIME_WITH_SYS_TIME
23323 #ifndef HAVE_WINDOWS_H
23324 #ifdef HAVE_SYS_SELECT_H
23325 #include <sys/select.h>
23327 #ifdef HAVE_SYS_SOCKET_H
23328 #include <sys/socket.h>
23330 #define SELECTCALLCONV
23332 #ifndef HAVE_STRUCT_TIMEVAL
23338 extern $sel_retv SELECTCALLCONV select($sel_arg1,
23348 $sel_arg234 rfds=0;
23349 $sel_arg234 wfds=0;
23350 $sel_arg234 efds=0;
23351 $sel_retv res = select(nfds, rfds, wfds, efds, 0);
23358 if ac_fn_c_try_compile "$LINENO"; then :
23360 curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
23363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
23372 $as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
23373 if test "$curl_cv_func_select_args" = "unknown"; then
23374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
23375 $as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
23376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
23377 $as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
23379 select_prev_IFS=$IFS; IFS=','
23380 set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
23381 IFS=$select_prev_IFS
23384 sel_qual_type_arg5=$3
23387 cat >>confdefs.h <<_ACEOF
23388 #define SELECT_TYPE_ARG1 $1
23392 cat >>confdefs.h <<_ACEOF
23393 #define SELECT_TYPE_ARG234 $2
23397 cat >>confdefs.h <<_ACEOF
23398 #define SELECT_TYPE_RETV $4
23404 case $prev_sh_opts in
23412 case "$sel_qual_type_arg5" in
23414 sel_qual_arg5=const
23415 sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
23419 sel_type_arg5=$sel_qual_type_arg5
23424 cat >>confdefs.h <<_ACEOF
23425 #define SELECT_QUAL_ARG5 $sel_qual_arg5
23429 cat >>confdefs.h <<_ACEOF
23430 #define SELECT_TYPE_ARG5 $sel_type_arg5
23434 case $prev_sh_opts in
23443 cat >>confdefs.h <<_ACEOF
23444 #define HAVE_SELECT 1
23447 ac_cv_func_select="yes"
23453 for ac_header in sys/types.h sys/socket.h
23455 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23456 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23457 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23458 cat >>confdefs.h <<_ACEOF
23459 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
23468 $as_echo_n "checking for recv... " >&6; }
23469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23470 /* end confdefs.h. */
23474 #ifdef HAVE_WINDOWS_H
23475 #ifndef WIN32_LEAN_AND_MEAN
23476 #define WIN32_LEAN_AND_MEAN
23478 #include <windows.h>
23479 #ifdef HAVE_WINSOCK2_H
23480 #include <winsock2.h>
23482 #ifdef HAVE_WINSOCK_H
23483 #include <winsock.h>
23487 #ifdef HAVE_SYS_TYPES_H
23488 #include <sys/types.h>
23490 #ifdef HAVE_SYS_SOCKET_H
23491 #include <sys/socket.h>
23505 if ac_fn_c_try_link "$LINENO"; then :
23507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23508 $as_echo "yes" >&6; }
23513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23514 $as_echo "no" >&6; }
23518 rm -f core conftest.err conftest.$ac_objext \
23519 conftest$ac_exeext conftest.$ac_ext
23521 if test "$curl_cv_recv" = "yes"; then
23522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
23523 $as_echo_n "checking types of args and return type for recv... " >&6; }
23524 if test "${curl_cv_func_recv_args+set}" = set; then :
23525 $as_echo_n "(cached) " >&6
23528 curl_cv_func_recv_args="unknown"
23529 for recv_retv in 'int' 'ssize_t'; do
23530 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
23531 for recv_arg2 in 'char *' 'void *'; do
23532 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
23533 for recv_arg4 in 'int' 'unsigned int'; do
23534 if test "$curl_cv_func_recv_args" = "unknown"; then
23535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23536 /* end confdefs.h. */
23540 #ifdef HAVE_WINDOWS_H
23541 #ifndef WIN32_LEAN_AND_MEAN
23542 #define WIN32_LEAN_AND_MEAN
23544 #include <windows.h>
23545 #ifdef HAVE_WINSOCK2_H
23546 #include <winsock2.h>
23548 #ifdef HAVE_WINSOCK_H
23549 #include <winsock.h>
23552 #define RECVCALLCONV PASCAL
23554 #ifdef HAVE_SYS_TYPES_H
23555 #include <sys/types.h>
23557 #ifdef HAVE_SYS_SOCKET_H
23558 #include <sys/socket.h>
23560 #define RECVCALLCONV
23562 extern $recv_retv RECVCALLCONV
23563 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
23571 $recv_arg4 flags=0;
23572 $recv_retv res = recv(s, buf, len, flags);
23579 if ac_fn_c_try_compile "$LINENO"; then :
23581 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
23584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
23594 $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
23595 if test "$curl_cv_func_recv_args" = "unknown"; then
23596 as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
23598 recv_prev_IFS=$IFS; IFS=','
23599 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
23604 cat >>confdefs.h <<_ACEOF
23605 #define RECV_TYPE_ARG1 $1
23609 cat >>confdefs.h <<_ACEOF
23610 #define RECV_TYPE_ARG2 $2
23614 cat >>confdefs.h <<_ACEOF
23615 #define RECV_TYPE_ARG3 $3
23619 cat >>confdefs.h <<_ACEOF
23620 #define RECV_TYPE_ARG4 $4
23624 cat >>confdefs.h <<_ACEOF
23625 #define RECV_TYPE_RETV $5
23630 cat >>confdefs.h <<_ACEOF
23631 #define HAVE_RECV 1
23634 ac_cv_func_recv="yes"
23637 as_fn_error $? "Unable to link function recv" "$LINENO" 5
23641 for ac_header in sys/types.h sys/socket.h
23643 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23644 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23645 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23646 cat >>confdefs.h <<_ACEOF
23647 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvfrom" >&5
23656 $as_echo_n "checking for recvfrom... " >&6; }
23657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23658 /* end confdefs.h. */
23662 #ifdef HAVE_WINDOWS_H
23663 #ifndef WIN32_LEAN_AND_MEAN
23664 #define WIN32_LEAN_AND_MEAN
23666 #include <windows.h>
23667 #ifdef HAVE_WINSOCK2_H
23668 #include <winsock2.h>
23670 #ifdef HAVE_WINSOCK_H
23671 #include <winsock.h>
23675 #ifdef HAVE_SYS_TYPES_H
23676 #include <sys/types.h>
23678 #ifdef HAVE_SYS_SOCKET_H
23679 #include <sys/socket.h>
23686 recvfrom(0, 0, 0, 0, 0, 0);
23693 if ac_fn_c_try_link "$LINENO"; then :
23695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23696 $as_echo "yes" >&6; }
23697 curl_cv_recvfrom="yes"
23701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23702 $as_echo "no" >&6; }
23703 curl_cv_recvfrom="no"
23706 rm -f core conftest.err conftest.$ac_objext \
23707 conftest$ac_exeext conftest.$ac_ext
23709 if test "$curl_cv_recvfrom" = "yes"; then
23710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recvfrom" >&5
23711 $as_echo_n "checking types of args and return type for recvfrom... " >&6; }
23712 if test "${curl_cv_func_recvfrom_args+set}" = set; then :
23713 $as_echo_n "(cached) " >&6
23716 curl_cv_func_recvfrom_args="unknown"
23717 for recvfrom_retv in 'int' 'ssize_t'; do
23718 for recvfrom_arg1 in 'int' 'ssize_t' 'SOCKET'; do
23719 for recvfrom_arg2 in 'char *' 'void *'; do
23720 for recvfrom_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
23721 for recvfrom_arg4 in 'int' 'unsigned int'; do
23722 for recvfrom_arg5 in 'struct sockaddr *' 'void *'; do
23723 for recvfrom_arg6 in 'socklen_t *' 'int *' 'unsigned int *' 'size_t *' 'void *'; do
23724 if test "$curl_cv_func_recvfrom_args" = "unknown"; then
23725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23726 /* end confdefs.h. */
23730 #ifdef HAVE_WINDOWS_H
23731 #ifndef WIN32_LEAN_AND_MEAN
23732 #define WIN32_LEAN_AND_MEAN
23734 #include <windows.h>
23735 #ifdef HAVE_WINSOCK2_H
23736 #include <winsock2.h>
23738 #ifdef HAVE_WINSOCK_H
23739 #include <winsock.h>
23742 #define RECVFROMCALLCONV PASCAL
23744 #ifdef HAVE_SYS_TYPES_H
23745 #include <sys/types.h>
23747 #ifdef HAVE_SYS_SOCKET_H
23748 #include <sys/socket.h>
23750 #define RECVFROMCALLCONV
23752 extern $recvfrom_retv RECVFROMCALLCONV
23753 recvfrom($recvfrom_arg1, $recvfrom_arg2,
23754 $recvfrom_arg3, $recvfrom_arg4,
23755 $recvfrom_arg5, $recvfrom_arg6);
23760 $recvfrom_arg1 s=0;
23761 $recvfrom_arg2 buf=0;
23762 $recvfrom_arg3 len=0;
23763 $recvfrom_arg4 flags=0;
23764 $recvfrom_arg5 addr=0;
23765 $recvfrom_arg6 addrlen=0;
23766 $recvfrom_retv res=0;
23767 res = recvfrom(s, buf, len, flags, addr, addrlen);
23774 if ac_fn_c_try_compile "$LINENO"; then :
23776 curl_cv_func_recvfrom_args="$recvfrom_arg1,$recvfrom_arg2,$recvfrom_arg3,$recvfrom_arg4,$recvfrom_arg5,$recvfrom_arg6,$recvfrom_retv"
23779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recvfrom_args" >&5
23791 $as_echo "$curl_cv_func_recvfrom_args" >&6; } # AC-CACHE-CHECK
23792 # Nearly last minute change for this release starts here
23794 cat >>confdefs.h <<_ACEOF
23795 #define HAVE_RECVFROM 1
23798 ac_cv_func_recvfrom="yes"
23799 # Nearly last minute change for this release ends here
23800 if test "$curl_cv_func_recvfrom_args" = "unknown"; then
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for recvfrom args" >&5
23802 $as_echo "$as_me: WARNING: Cannot find proper types to use for recvfrom args" >&2;}
23804 recvfrom_prev_IFS=$IFS; IFS=','
23805 set dummy `echo "$curl_cv_func_recvfrom_args" | sed 's/\*/\*/g'`
23806 IFS=$recvfrom_prev_IFS
23809 recvfrom_ptrt_arg2=$2
23810 recvfrom_ptrt_arg5=$5
23811 recvfrom_ptrt_arg6=$6
23814 cat >>confdefs.h <<_ACEOF
23815 #define RECVFROM_TYPE_ARG1 $1
23819 cat >>confdefs.h <<_ACEOF
23820 #define RECVFROM_TYPE_ARG3 $3
23824 cat >>confdefs.h <<_ACEOF
23825 #define RECVFROM_TYPE_ARG4 $4
23829 cat >>confdefs.h <<_ACEOF
23830 #define RECVFROM_TYPE_RETV $7
23836 case $prev_sh_opts in
23844 recvfrom_type_arg2=`echo $recvfrom_ptrt_arg2 | sed 's/ \*//'`
23845 recvfrom_type_arg5=`echo $recvfrom_ptrt_arg5 | sed 's/ \*//'`
23846 recvfrom_type_arg6=`echo $recvfrom_ptrt_arg6 | sed 's/ \*//'`
23849 cat >>confdefs.h <<_ACEOF
23850 #define RECVFROM_TYPE_ARG2 $recvfrom_type_arg2
23854 cat >>confdefs.h <<_ACEOF
23855 #define RECVFROM_TYPE_ARG5 $recvfrom_type_arg5
23859 cat >>confdefs.h <<_ACEOF
23860 #define RECVFROM_TYPE_ARG6 $recvfrom_type_arg6
23864 if test "$recvfrom_type_arg2" = "void"; then
23866 cat >>confdefs.h <<_ACEOF
23867 #define RECVFROM_TYPE_ARG2_IS_VOID 1
23871 if test "$recvfrom_type_arg5" = "void"; then
23873 cat >>confdefs.h <<_ACEOF
23874 #define RECVFROM_TYPE_ARG5_IS_VOID 1
23878 if test "$recvfrom_type_arg6" = "void"; then
23880 cat >>confdefs.h <<_ACEOF
23881 #define RECVFROM_TYPE_ARG6_IS_VOID 1
23886 case $prev_sh_opts in
23895 cat >>confdefs.h <<_ACEOF
23896 #define HAVE_RECVFROM 1
23899 ac_cv_func_recvfrom="yes"
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to link function recvfrom" >&5
23903 $as_echo "$as_me: WARNING: Unable to link function recvfrom" >&2;}
23907 for ac_header in sys/types.h sys/socket.h
23909 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23910 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23911 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23912 cat >>confdefs.h <<_ACEOF
23913 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
23922 $as_echo_n "checking for send... " >&6; }
23923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23924 /* end confdefs.h. */
23928 #ifdef HAVE_WINDOWS_H
23929 #ifndef WIN32_LEAN_AND_MEAN
23930 #define WIN32_LEAN_AND_MEAN
23932 #include <windows.h>
23933 #ifdef HAVE_WINSOCK2_H
23934 #include <winsock2.h>
23936 #ifdef HAVE_WINSOCK_H
23937 #include <winsock.h>
23941 #ifdef HAVE_SYS_TYPES_H
23942 #include <sys/types.h>
23944 #ifdef HAVE_SYS_SOCKET_H
23945 #include <sys/socket.h>
23959 if ac_fn_c_try_link "$LINENO"; then :
23961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23962 $as_echo "yes" >&6; }
23967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23968 $as_echo "no" >&6; }
23972 rm -f core conftest.err conftest.$ac_objext \
23973 conftest$ac_exeext conftest.$ac_ext
23975 if test "$curl_cv_send" = "yes"; then
23976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
23977 $as_echo_n "checking types of args and return type for send... " >&6; }
23978 if test "${curl_cv_func_send_args+set}" = set; then :
23979 $as_echo_n "(cached) " >&6
23982 curl_cv_func_send_args="unknown"
23983 for send_retv in 'int' 'ssize_t'; do
23984 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
23985 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
23986 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
23987 for send_arg4 in 'int' 'unsigned int'; do
23988 if test "$curl_cv_func_send_args" = "unknown"; then
23989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23990 /* end confdefs.h. */
23994 #ifdef HAVE_WINDOWS_H
23995 #ifndef WIN32_LEAN_AND_MEAN
23996 #define WIN32_LEAN_AND_MEAN
23998 #include <windows.h>
23999 #ifdef HAVE_WINSOCK2_H
24000 #include <winsock2.h>
24002 #ifdef HAVE_WINSOCK_H
24003 #include <winsock.h>
24006 #define SENDCALLCONV PASCAL
24008 #ifdef HAVE_SYS_TYPES_H
24009 #include <sys/types.h>
24011 #ifdef HAVE_SYS_SOCKET_H
24012 #include <sys/socket.h>
24014 #define SENDCALLCONV
24016 extern $send_retv SENDCALLCONV
24017 send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
24024 $send_arg4 flags=0;
24025 $send_retv res = send(s, 0, len, flags);
24032 if ac_fn_c_try_compile "$LINENO"; then :
24034 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
24037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
24047 $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
24048 if test "$curl_cv_func_send_args" = "unknown"; then
24049 as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
24051 send_prev_IFS=$IFS; IFS=','
24052 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
24056 send_qual_type_arg2=$2
24059 cat >>confdefs.h <<_ACEOF
24060 #define SEND_TYPE_ARG1 $1
24064 cat >>confdefs.h <<_ACEOF
24065 #define SEND_TYPE_ARG3 $3
24069 cat >>confdefs.h <<_ACEOF
24070 #define SEND_TYPE_ARG4 $4
24074 cat >>confdefs.h <<_ACEOF
24075 #define SEND_TYPE_RETV $5
24081 case $prev_sh_opts in
24089 case "$send_qual_type_arg2" in
24091 send_qual_arg2=const
24092 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
24096 send_type_arg2=$send_qual_type_arg2
24101 cat >>confdefs.h <<_ACEOF
24102 #define SEND_QUAL_ARG2 $send_qual_arg2
24106 cat >>confdefs.h <<_ACEOF
24107 #define SEND_TYPE_ARG2 $send_type_arg2
24111 case $prev_sh_opts in
24120 cat >>confdefs.h <<_ACEOF
24121 #define HAVE_SEND 1
24124 ac_cv_func_send="yes"
24127 as_fn_error $? "Unable to link function send" "$LINENO" 5
24131 for ac_header in sys/types.h sys/socket.h
24133 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24134 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24135 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24136 cat >>confdefs.h <<_ACEOF
24137 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
24145 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
24146 if test "${ac_cv_msg_nosignal+set}" = set; then :
24147 $as_echo_n "(cached) " >&6
24150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24151 /* end confdefs.h. */
24155 #ifdef HAVE_WINDOWS_H
24156 #ifndef WIN32_LEAN_AND_MEAN
24157 #define WIN32_LEAN_AND_MEAN
24159 #include <windows.h>
24160 #ifdef HAVE_WINSOCK2_H
24161 #include <winsock2.h>
24163 #ifdef HAVE_WINSOCK_H
24164 #include <winsock.h>
24168 #ifdef HAVE_SYS_TYPES_H
24169 #include <sys/types.h>
24171 #ifdef HAVE_SYS_SOCKET_H
24172 #include <sys/socket.h>
24179 int flag=MSG_NOSIGNAL;
24186 if ac_fn_c_try_compile "$LINENO"; then :
24188 ac_cv_msg_nosignal="yes"
24192 ac_cv_msg_nosignal="no"
24195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_msg_nosignal" >&5
24199 $as_echo "$ac_cv_msg_nosignal" >&6; }
24200 case "$ac_cv_msg_nosignal" in
24203 cat >>confdefs.h <<_ACEOF
24204 #define HAVE_MSG_NOSIGNAL 1
24212 curl_includes_unistd="\
24213 /* includes start */
24214 #ifdef HAVE_SYS_TYPES_H
24215 # include <sys/types.h>
24217 #ifdef HAVE_UNISTD_H
24218 # include <unistd.h>
24220 /* includes end */"
24221 for ac_header in sys/types.h unistd.h
24223 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24224 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
24226 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24227 cat >>confdefs.h <<_ACEOF
24228 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24238 tst_links_alarm="unknown"
24239 tst_proto_alarm="unknown"
24240 tst_compi_alarm="unknown"
24241 tst_allow_alarm="unknown"
24243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
24244 $as_echo_n "checking if alarm can be linked... " >&6; }
24245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24246 /* end confdefs.h. */
24249 #define alarm innocuous_alarm
24251 # include <limits.h>
24253 # include <assert.h>
24260 #if defined __stub_alarm || defined __stub___alarm
24272 if ac_fn_c_try_link "$LINENO"; then :
24274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24275 $as_echo "yes" >&6; }
24276 tst_links_alarm="yes"
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24281 $as_echo "no" >&6; }
24282 tst_links_alarm="no"
24285 rm -f core conftest.err conftest.$ac_objext \
24286 conftest$ac_exeext conftest.$ac_ext
24288 if test "$tst_links_alarm" = "yes"; then
24289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
24290 $as_echo_n "checking if alarm is prototyped... " >&6; }
24291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24292 /* end confdefs.h. */
24294 $curl_includes_unistd
24297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24298 $EGREP "alarm" >/dev/null 2>&1; then :
24300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24301 $as_echo "yes" >&6; }
24302 tst_proto_alarm="yes"
24306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24307 $as_echo "no" >&6; }
24308 tst_proto_alarm="no"
24315 if test "$tst_proto_alarm" = "yes"; then
24316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
24317 $as_echo_n "checking if alarm is compilable... " >&6; }
24318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24319 /* end confdefs.h. */
24322 $curl_includes_unistd
24335 if ac_fn_c_try_compile "$LINENO"; then :
24337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24338 $as_echo "yes" >&6; }
24339 tst_compi_alarm="yes"
24343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24344 $as_echo "no" >&6; }
24345 tst_compi_alarm="no"
24348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24351 if test "$tst_compi_alarm" = "yes"; then
24352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
24353 $as_echo_n "checking if alarm usage allowed... " >&6; }
24354 if test "x$curl_disallow_alarm" != "xyes"; then
24355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24356 $as_echo "yes" >&6; }
24357 tst_allow_alarm="yes"
24359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24360 $as_echo "no" >&6; }
24361 tst_allow_alarm="no"
24365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
24366 $as_echo_n "checking if alarm might be used... " >&6; }
24367 if test "$tst_links_alarm" = "yes" &&
24368 test "$tst_proto_alarm" = "yes" &&
24369 test "$tst_compi_alarm" = "yes" &&
24370 test "$tst_allow_alarm" = "yes"; then
24371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24372 $as_echo "yes" >&6; }
24374 cat >>confdefs.h <<_ACEOF
24375 #define HAVE_ALARM 1
24378 ac_cv_func_alarm="yes"
24380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24381 $as_echo "no" >&6; }
24382 ac_cv_func_alarm="no"
24386 curl_includes_string="\
24387 /* includes start */
24388 #ifdef HAVE_SYS_TYPES_H
24389 # include <sys/types.h>
24391 #ifdef HAVE_STRING_H
24392 # include <string.h>
24394 #ifdef HAVE_STRINGS_H
24395 # include <strings.h>
24397 /* includes end */"
24398 for ac_header in sys/types.h string.h strings.h
24400 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24401 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
24403 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24404 cat >>confdefs.h <<_ACEOF
24405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24414 curl_includes_libgen="\
24415 /* includes start */
24416 #ifdef HAVE_SYS_TYPES_H
24417 # include <sys/types.h>
24419 #ifdef HAVE_LIBGEN_H
24420 # include <libgen.h>
24422 /* includes end */"
24423 for ac_header in sys/types.h libgen.h
24425 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24426 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
24428 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24429 cat >>confdefs.h <<_ACEOF
24430 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24440 tst_links_basename="unknown"
24441 tst_proto_basename="unknown"
24442 tst_compi_basename="unknown"
24443 tst_allow_basename="unknown"
24445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
24446 $as_echo_n "checking if basename can be linked... " >&6; }
24447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24448 /* end confdefs.h. */
24451 #define basename innocuous_basename
24453 # include <limits.h>
24455 # include <assert.h>
24462 #if defined __stub_basename || defined __stub___basename
24468 return basename ();
24474 if ac_fn_c_try_link "$LINENO"; then :
24476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24477 $as_echo "yes" >&6; }
24478 tst_links_basename="yes"
24482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24483 $as_echo "no" >&6; }
24484 tst_links_basename="no"
24487 rm -f core conftest.err conftest.$ac_objext \
24488 conftest$ac_exeext conftest.$ac_ext
24490 if test "$tst_links_basename" = "yes"; then
24491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
24492 $as_echo_n "checking if basename is prototyped... " >&6; }
24493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24494 /* end confdefs.h. */
24496 $curl_includes_string
24497 $curl_includes_libgen
24498 $curl_includes_unistd
24501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24502 $EGREP "basename" >/dev/null 2>&1; then :
24504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24505 $as_echo "yes" >&6; }
24506 tst_proto_basename="yes"
24510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24511 $as_echo "no" >&6; }
24512 tst_proto_basename="no"
24519 if test "$tst_proto_basename" = "yes"; then
24520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
24521 $as_echo_n "checking if basename is compilable... " >&6; }
24522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24523 /* end confdefs.h. */
24526 $curl_includes_string
24527 $curl_includes_libgen
24528 $curl_includes_unistd
24533 if(0 != basename(0))
24541 if ac_fn_c_try_compile "$LINENO"; then :
24543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24544 $as_echo "yes" >&6; }
24545 tst_compi_basename="yes"
24549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24550 $as_echo "no" >&6; }
24551 tst_compi_basename="no"
24554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24557 if test "$tst_compi_basename" = "yes"; then
24558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
24559 $as_echo_n "checking if basename usage allowed... " >&6; }
24560 if test "x$curl_disallow_basename" != "xyes"; then
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24562 $as_echo "yes" >&6; }
24563 tst_allow_basename="yes"
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24566 $as_echo "no" >&6; }
24567 tst_allow_basename="no"
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
24572 $as_echo_n "checking if basename might be used... " >&6; }
24573 if test "$tst_links_basename" = "yes" &&
24574 test "$tst_proto_basename" = "yes" &&
24575 test "$tst_compi_basename" = "yes" &&
24576 test "$tst_allow_basename" = "yes"; then
24577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24578 $as_echo "yes" >&6; }
24580 cat >>confdefs.h <<_ACEOF
24581 #define HAVE_BASENAME 1
24584 ac_cv_func_basename="yes"
24586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24587 $as_echo "no" >&6; }
24588 ac_cv_func_basename="no"
24592 curl_includes_socket="\
24593 /* includes start */
24594 #ifdef HAVE_SYS_TYPES_H
24595 # include <sys/types.h>
24597 #ifdef HAVE_SOCKET_H
24598 # include <socket.h>
24600 /* includes end */"
24601 for ac_header in sys/types.h socket.h
24603 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24604 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
24606 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24607 cat >>confdefs.h <<_ACEOF
24608 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24618 tst_links_closesocket="unknown"
24619 tst_proto_closesocket="unknown"
24620 tst_compi_closesocket="unknown"
24621 tst_allow_closesocket="unknown"
24623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
24624 $as_echo_n "checking if closesocket can be linked... " >&6; }
24625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24626 /* end confdefs.h. */
24629 $curl_includes_winsock2
24630 $curl_includes_socket
24635 if(0 != closesocket(0))
24643 if ac_fn_c_try_link "$LINENO"; then :
24645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24646 $as_echo "yes" >&6; }
24647 tst_links_closesocket="yes"
24651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24652 $as_echo "no" >&6; }
24653 tst_links_closesocket="no"
24656 rm -f core conftest.err conftest.$ac_objext \
24657 conftest$ac_exeext conftest.$ac_ext
24659 if test "$tst_links_closesocket" = "yes"; then
24660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
24661 $as_echo_n "checking if closesocket is prototyped... " >&6; }
24662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24663 /* end confdefs.h. */
24665 $curl_includes_winsock2
24666 $curl_includes_socket
24669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24670 $EGREP "closesocket" >/dev/null 2>&1; then :
24672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24673 $as_echo "yes" >&6; }
24674 tst_proto_closesocket="yes"
24678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24679 $as_echo "no" >&6; }
24680 tst_proto_closesocket="no"
24687 if test "$tst_proto_closesocket" = "yes"; then
24688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
24689 $as_echo_n "checking if closesocket is compilable... " >&6; }
24690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24691 /* end confdefs.h. */
24694 $curl_includes_winsock2
24695 $curl_includes_socket
24700 if(0 != closesocket(0))
24708 if ac_fn_c_try_compile "$LINENO"; then :
24710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24711 $as_echo "yes" >&6; }
24712 tst_compi_closesocket="yes"
24716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24717 $as_echo "no" >&6; }
24718 tst_compi_closesocket="no"
24721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24724 if test "$tst_compi_closesocket" = "yes"; then
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
24726 $as_echo_n "checking if closesocket usage allowed... " >&6; }
24727 if test "x$curl_disallow_closesocket" != "xyes"; then
24728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24729 $as_echo "yes" >&6; }
24730 tst_allow_closesocket="yes"
24732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24733 $as_echo "no" >&6; }
24734 tst_allow_closesocket="no"
24738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
24739 $as_echo_n "checking if closesocket might be used... " >&6; }
24740 if test "$tst_links_closesocket" = "yes" &&
24741 test "$tst_proto_closesocket" = "yes" &&
24742 test "$tst_compi_closesocket" = "yes" &&
24743 test "$tst_allow_closesocket" = "yes"; then
24744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24745 $as_echo "yes" >&6; }
24747 cat >>confdefs.h <<_ACEOF
24748 #define HAVE_CLOSESOCKET 1
24751 ac_cv_func_closesocket="yes"
24753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24754 $as_echo "no" >&6; }
24755 ac_cv_func_closesocket="no"
24760 tst_links_closesocket_camel="unknown"
24761 tst_proto_closesocket_camel="unknown"
24762 tst_compi_closesocket_camel="unknown"
24763 tst_allow_closesocket_camel="unknown"
24765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
24766 $as_echo_n "checking if CloseSocket can be linked... " >&6; }
24767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24768 /* end confdefs.h. */
24771 $curl_includes_sys_socket
24776 if(0 != CloseSocket(0))
24784 if ac_fn_c_try_link "$LINENO"; then :
24786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24787 $as_echo "yes" >&6; }
24788 tst_links_closesocket_camel="yes"
24792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24793 $as_echo "no" >&6; }
24794 tst_links_closesocket_camel="no"
24797 rm -f core conftest.err conftest.$ac_objext \
24798 conftest$ac_exeext conftest.$ac_ext
24800 if test "$tst_links_closesocket_camel" = "yes"; then
24801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
24802 $as_echo_n "checking if CloseSocket is prototyped... " >&6; }
24803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24804 /* end confdefs.h. */
24806 $curl_includes_sys_socket
24809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24810 $EGREP "CloseSocket" >/dev/null 2>&1; then :
24812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24813 $as_echo "yes" >&6; }
24814 tst_proto_closesocket_camel="yes"
24818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24819 $as_echo "no" >&6; }
24820 tst_proto_closesocket_camel="no"
24827 if test "$tst_proto_closesocket_camel" = "yes"; then
24828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
24829 $as_echo_n "checking if CloseSocket is compilable... " >&6; }
24830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24831 /* end confdefs.h. */
24834 $curl_includes_sys_socket
24839 if(0 != CloseSocket(0))
24847 if ac_fn_c_try_compile "$LINENO"; then :
24849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24850 $as_echo "yes" >&6; }
24851 tst_compi_closesocket_camel="yes"
24855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24856 $as_echo "no" >&6; }
24857 tst_compi_closesocket_camel="no"
24860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24863 if test "$tst_compi_closesocket_camel" = "yes"; then
24864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
24865 $as_echo_n "checking if CloseSocket usage allowed... " >&6; }
24866 if test "x$curl_disallow_closesocket_camel" != "xyes"; then
24867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24868 $as_echo "yes" >&6; }
24869 tst_allow_closesocket_camel="yes"
24871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24872 $as_echo "no" >&6; }
24873 tst_allow_closesocket_camel="no"
24877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
24878 $as_echo_n "checking if CloseSocket might be used... " >&6; }
24879 if test "$tst_links_closesocket_camel" = "yes" &&
24880 test "$tst_proto_closesocket_camel" = "yes" &&
24881 test "$tst_compi_closesocket_camel" = "yes" &&
24882 test "$tst_allow_closesocket_camel" = "yes"; then
24883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24884 $as_echo "yes" >&6; }
24886 cat >>confdefs.h <<_ACEOF
24887 #define HAVE_CLOSESOCKET_CAMEL 1
24890 ac_cv_func_closesocket_camel="yes"
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24893 $as_echo "no" >&6; }
24894 ac_cv_func_closesocket_camel="no"
24899 tst_links_connect="unknown"
24900 tst_proto_connect="unknown"
24901 tst_compi_connect="unknown"
24902 tst_allow_connect="unknown"
24904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
24905 $as_echo_n "checking if connect can be linked... " >&6; }
24906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24907 /* end confdefs.h. */
24910 $curl_includes_winsock2
24911 $curl_includes_sys_socket
24912 $curl_includes_socket
24917 if(0 != connect(0, 0, 0))
24925 if ac_fn_c_try_link "$LINENO"; then :
24927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24928 $as_echo "yes" >&6; }
24929 tst_links_connect="yes"
24933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24934 $as_echo "no" >&6; }
24935 tst_links_connect="no"
24938 rm -f core conftest.err conftest.$ac_objext \
24939 conftest$ac_exeext conftest.$ac_ext
24941 if test "$tst_links_connect" = "yes"; then
24942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
24943 $as_echo_n "checking if connect is prototyped... " >&6; }
24944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24945 /* end confdefs.h. */
24947 $curl_includes_winsock2
24948 $curl_includes_sys_socket
24949 $curl_includes_socket
24952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24953 $EGREP "connect" >/dev/null 2>&1; then :
24955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24956 $as_echo "yes" >&6; }
24957 tst_proto_connect="yes"
24961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24962 $as_echo "no" >&6; }
24963 tst_proto_connect="no"
24970 if test "$tst_proto_connect" = "yes"; then
24971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
24972 $as_echo_n "checking if connect is compilable... " >&6; }
24973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24974 /* end confdefs.h. */
24977 $curl_includes_winsock2
24978 $curl_includes_sys_socket
24979 $curl_includes_socket
24984 if(0 != connect(0, 0, 0))
24992 if ac_fn_c_try_compile "$LINENO"; then :
24994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24995 $as_echo "yes" >&6; }
24996 tst_compi_connect="yes"
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25001 $as_echo "no" >&6; }
25002 tst_compi_connect="no"
25005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25008 if test "$tst_compi_connect" = "yes"; then
25009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
25010 $as_echo_n "checking if connect usage allowed... " >&6; }
25011 if test "x$curl_disallow_connect" != "xyes"; then
25012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25013 $as_echo "yes" >&6; }
25014 tst_allow_connect="yes"
25016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25017 $as_echo "no" >&6; }
25018 tst_allow_connect="no"
25022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
25023 $as_echo_n "checking if connect might be used... " >&6; }
25024 if test "$tst_links_connect" = "yes" &&
25025 test "$tst_proto_connect" = "yes" &&
25026 test "$tst_compi_connect" = "yes" &&
25027 test "$tst_allow_connect" = "yes"; then
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25029 $as_echo "yes" >&6; }
25031 cat >>confdefs.h <<_ACEOF
25032 #define HAVE_CONNECT 1
25035 ac_cv_func_connect="yes"
25037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25038 $as_echo "no" >&6; }
25039 ac_cv_func_connect="no"
25043 curl_includes_fcntl="\
25044 /* includes start */
25045 #ifdef HAVE_SYS_TYPES_H
25046 # include <sys/types.h>
25048 #ifdef HAVE_UNISTD_H
25049 # include <unistd.h>
25051 #ifdef HAVE_FCNTL_H
25052 # include <fcntl.h>
25054 /* includes end */"
25055 for ac_header in sys/types.h unistd.h fcntl.h
25057 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25058 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
25060 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25061 cat >>confdefs.h <<_ACEOF
25062 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25072 tst_links_fcntl="unknown"
25073 tst_proto_fcntl="unknown"
25074 tst_compi_fcntl="unknown"
25075 tst_allow_fcntl="unknown"
25077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
25078 $as_echo_n "checking if fcntl can be linked... " >&6; }
25079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25080 /* end confdefs.h. */
25083 #define fcntl innocuous_fcntl
25085 # include <limits.h>
25087 # include <assert.h>
25094 #if defined __stub_fcntl || defined __stub___fcntl
25106 if ac_fn_c_try_link "$LINENO"; then :
25108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25109 $as_echo "yes" >&6; }
25110 tst_links_fcntl="yes"
25114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25115 $as_echo "no" >&6; }
25116 tst_links_fcntl="no"
25119 rm -f core conftest.err conftest.$ac_objext \
25120 conftest$ac_exeext conftest.$ac_ext
25122 if test "$tst_links_fcntl" = "yes"; then
25123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
25124 $as_echo_n "checking if fcntl is prototyped... " >&6; }
25125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25126 /* end confdefs.h. */
25128 $curl_includes_fcntl
25131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25132 $EGREP "fcntl" >/dev/null 2>&1; then :
25134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25135 $as_echo "yes" >&6; }
25136 tst_proto_fcntl="yes"
25140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25141 $as_echo "no" >&6; }
25142 tst_proto_fcntl="no"
25149 if test "$tst_proto_fcntl" = "yes"; then
25150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
25151 $as_echo_n "checking if fcntl is compilable... " >&6; }
25152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25153 /* end confdefs.h. */
25156 $curl_includes_fcntl
25161 if(0 != fcntl(0, 0, 0))
25169 if ac_fn_c_try_compile "$LINENO"; then :
25171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25172 $as_echo "yes" >&6; }
25173 tst_compi_fcntl="yes"
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25178 $as_echo "no" >&6; }
25179 tst_compi_fcntl="no"
25182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25185 if test "$tst_compi_fcntl" = "yes"; then
25186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
25187 $as_echo_n "checking if fcntl usage allowed... " >&6; }
25188 if test "x$curl_disallow_fcntl" != "xyes"; then
25189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25190 $as_echo "yes" >&6; }
25191 tst_allow_fcntl="yes"
25193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25194 $as_echo "no" >&6; }
25195 tst_allow_fcntl="no"
25199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
25200 $as_echo_n "checking if fcntl might be used... " >&6; }
25201 if test "$tst_links_fcntl" = "yes" &&
25202 test "$tst_proto_fcntl" = "yes" &&
25203 test "$tst_compi_fcntl" = "yes" &&
25204 test "$tst_allow_fcntl" = "yes"; then
25205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25206 $as_echo "yes" >&6; }
25208 cat >>confdefs.h <<_ACEOF
25209 #define HAVE_FCNTL 1
25212 ac_cv_func_fcntl="yes"
25215 tst_compi_fcntl_o_nonblock="unknown"
25216 tst_allow_fcntl_o_nonblock="unknown"
25219 sunos4* | aix3* | beos*)
25220 curl_disallow_fcntl_o_nonblock="yes"
25224 if test "$ac_cv_func_fcntl" = "yes"; then
25225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
25226 $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
25227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25228 /* end confdefs.h. */
25231 $curl_includes_fcntl
25237 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
25245 if ac_fn_c_try_compile "$LINENO"; then :
25247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25248 $as_echo "yes" >&6; }
25249 tst_compi_fcntl_o_nonblock="yes"
25253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25254 $as_echo "no" >&6; }
25255 tst_compi_fcntl_o_nonblock="no"
25258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25261 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
25262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
25263 $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
25264 if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
25265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25266 $as_echo "yes" >&6; }
25267 tst_allow_fcntl_o_nonblock="yes"
25269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25270 $as_echo "no" >&6; }
25271 tst_allow_fcntl_o_nonblock="no"
25275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
25276 $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
25277 if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
25278 test "$tst_allow_fcntl_o_nonblock" = "yes"; then
25279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25280 $as_echo "yes" >&6; }
25282 cat >>confdefs.h <<_ACEOF
25283 #define HAVE_FCNTL_O_NONBLOCK 1
25286 ac_cv_func_fcntl_o_nonblock="yes"
25288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25289 $as_echo "no" >&6; }
25290 ac_cv_func_fcntl_o_nonblock="no"
25294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25295 $as_echo "no" >&6; }
25296 ac_cv_func_fcntl="no"
25300 curl_includes_stdio="\
25301 /* includes start */
25302 #ifdef HAVE_SYS_TYPES_H
25303 # include <sys/types.h>
25305 #ifdef HAVE_STDIO_H
25306 # include <stdio.h>
25308 /* includes end */"
25309 for ac_header in sys/types.h stdio.h
25311 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25312 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio
25314 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25315 cat >>confdefs.h <<_ACEOF
25316 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25326 tst_links_fdopen="unknown"
25327 tst_proto_fdopen="unknown"
25328 tst_compi_fdopen="unknown"
25329 tst_allow_fdopen="unknown"
25331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5
25332 $as_echo_n "checking if fdopen can be linked... " >&6; }
25333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25334 /* end confdefs.h. */
25337 #define fdopen innocuous_fdopen
25339 # include <limits.h>
25341 # include <assert.h>
25348 #if defined __stub_fdopen || defined __stub___fdopen
25360 if ac_fn_c_try_link "$LINENO"; then :
25362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25363 $as_echo "yes" >&6; }
25364 tst_links_fdopen="yes"
25368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25369 $as_echo "no" >&6; }
25370 tst_links_fdopen="no"
25373 rm -f core conftest.err conftest.$ac_objext \
25374 conftest$ac_exeext conftest.$ac_ext
25376 if test "$tst_links_fdopen" = "yes"; then
25377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5
25378 $as_echo_n "checking if fdopen is prototyped... " >&6; }
25379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25380 /* end confdefs.h. */
25382 $curl_includes_stdio
25385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25386 $EGREP "fdopen" >/dev/null 2>&1; then :
25388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25389 $as_echo "yes" >&6; }
25390 tst_proto_fdopen="yes"
25394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25395 $as_echo "no" >&6; }
25396 tst_proto_fdopen="no"
25403 if test "$tst_proto_fdopen" = "yes"; then
25404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5
25405 $as_echo_n "checking if fdopen is compilable... " >&6; }
25406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25407 /* end confdefs.h. */
25410 $curl_includes_stdio
25415 if(0 != fdopen(0, 0))
25423 if ac_fn_c_try_compile "$LINENO"; then :
25425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25426 $as_echo "yes" >&6; }
25427 tst_compi_fdopen="yes"
25431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25432 $as_echo "no" >&6; }
25433 tst_compi_fdopen="no"
25436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25439 if test "$tst_compi_fdopen" = "yes"; then
25440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5
25441 $as_echo_n "checking if fdopen usage allowed... " >&6; }
25442 if test "x$curl_disallow_fdopen" != "xyes"; then
25443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25444 $as_echo "yes" >&6; }
25445 tst_allow_fdopen="yes"
25447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25448 $as_echo "no" >&6; }
25449 tst_allow_fdopen="no"
25453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5
25454 $as_echo_n "checking if fdopen might be used... " >&6; }
25455 if test "$tst_links_fdopen" = "yes" &&
25456 test "$tst_proto_fdopen" = "yes" &&
25457 test "$tst_compi_fdopen" = "yes" &&
25458 test "$tst_allow_fdopen" = "yes"; then
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25460 $as_echo "yes" >&6; }
25462 cat >>confdefs.h <<_ACEOF
25463 #define HAVE_FDOPEN 1
25466 ac_cv_func_fdopen="yes"
25468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25469 $as_echo "no" >&6; }
25470 ac_cv_func_fdopen="no"
25474 curl_includes_netdb="\
25475 /* includes start */
25476 #ifdef HAVE_SYS_TYPES_H
25477 # include <sys/types.h>
25479 #ifdef HAVE_NETDB_H
25480 # include <netdb.h>
25482 /* includes end */"
25483 for ac_header in sys/types.h netdb.h
25485 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25486 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
25488 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25489 cat >>confdefs.h <<_ACEOF
25490 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25500 tst_links_freeaddrinfo="unknown"
25501 tst_proto_freeaddrinfo="unknown"
25502 tst_compi_freeaddrinfo="unknown"
25503 tst_allow_freeaddrinfo="unknown"
25505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
25506 $as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
25507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25508 /* end confdefs.h. */
25511 $curl_includes_ws2tcpip
25512 $curl_includes_sys_socket
25513 $curl_includes_netdb
25525 if ac_fn_c_try_link "$LINENO"; then :
25527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25528 $as_echo "yes" >&6; }
25529 tst_links_freeaddrinfo="yes"
25533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25534 $as_echo "no" >&6; }
25535 tst_links_freeaddrinfo="no"
25538 rm -f core conftest.err conftest.$ac_objext \
25539 conftest$ac_exeext conftest.$ac_ext
25541 if test "$tst_links_freeaddrinfo" = "yes"; then
25542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
25543 $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
25544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25545 /* end confdefs.h. */
25547 $curl_includes_ws2tcpip
25548 $curl_includes_sys_socket
25549 $curl_includes_netdb
25552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25553 $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
25555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25556 $as_echo "yes" >&6; }
25557 tst_proto_freeaddrinfo="yes"
25561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25562 $as_echo "no" >&6; }
25563 tst_proto_freeaddrinfo="no"
25570 if test "$tst_proto_freeaddrinfo" = "yes"; then
25571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
25572 $as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
25573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25574 /* end confdefs.h. */
25577 $curl_includes_ws2tcpip
25578 $curl_includes_sys_socket
25579 $curl_includes_netdb
25591 if ac_fn_c_try_compile "$LINENO"; then :
25593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25594 $as_echo "yes" >&6; }
25595 tst_compi_freeaddrinfo="yes"
25599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25600 $as_echo "no" >&6; }
25601 tst_compi_freeaddrinfo="no"
25604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25607 if test "$tst_compi_freeaddrinfo" = "yes"; then
25608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
25609 $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
25610 if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
25611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25612 $as_echo "yes" >&6; }
25613 tst_allow_freeaddrinfo="yes"
25615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25616 $as_echo "no" >&6; }
25617 tst_allow_freeaddrinfo="no"
25621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
25622 $as_echo_n "checking if freeaddrinfo might be used... " >&6; }
25623 if test "$tst_links_freeaddrinfo" = "yes" &&
25624 test "$tst_proto_freeaddrinfo" = "yes" &&
25625 test "$tst_compi_freeaddrinfo" = "yes" &&
25626 test "$tst_allow_freeaddrinfo" = "yes"; then
25627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25628 $as_echo "yes" >&6; }
25630 cat >>confdefs.h <<_ACEOF
25631 #define HAVE_FREEADDRINFO 1
25634 ac_cv_func_freeaddrinfo="yes"
25636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25637 $as_echo "no" >&6; }
25638 ac_cv_func_freeaddrinfo="no"
25642 curl_includes_ifaddrs="\
25643 /* includes start */
25644 #ifdef HAVE_SYS_TYPES_H
25645 # include <sys/types.h>
25647 #ifdef HAVE_SYS_SOCKET_H
25648 # include <sys/socket.h>
25650 #ifdef HAVE_NETINET_IN_H
25651 # include <netinet/in.h>
25653 #ifdef HAVE_IFADDRS_H
25654 # include <ifaddrs.h>
25656 /* includes end */"
25657 for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
25659 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25660 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
25662 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25663 cat >>confdefs.h <<_ACEOF
25664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25674 tst_links_freeifaddrs="unknown"
25675 tst_proto_freeifaddrs="unknown"
25676 tst_compi_freeifaddrs="unknown"
25677 tst_allow_freeifaddrs="unknown"
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
25680 $as_echo_n "checking if freeifaddrs can be linked... " >&6; }
25681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25682 /* end confdefs.h. */
25685 #define freeifaddrs innocuous_freeifaddrs
25687 # include <limits.h>
25689 # include <assert.h>
25695 char freeifaddrs ();
25696 #if defined __stub_freeifaddrs || defined __stub___freeifaddrs
25702 return freeifaddrs ();
25708 if ac_fn_c_try_link "$LINENO"; then :
25710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25711 $as_echo "yes" >&6; }
25712 tst_links_freeifaddrs="yes"
25716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25717 $as_echo "no" >&6; }
25718 tst_links_freeifaddrs="no"
25721 rm -f core conftest.err conftest.$ac_objext \
25722 conftest$ac_exeext conftest.$ac_ext
25724 if test "$tst_links_freeifaddrs" = "yes"; then
25725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
25726 $as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
25727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25728 /* end confdefs.h. */
25730 $curl_includes_ifaddrs
25733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25734 $EGREP "freeifaddrs" >/dev/null 2>&1; then :
25736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25737 $as_echo "yes" >&6; }
25738 tst_proto_freeifaddrs="yes"
25742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25743 $as_echo "no" >&6; }
25744 tst_proto_freeifaddrs="no"
25751 if test "$tst_proto_freeifaddrs" = "yes"; then
25752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
25753 $as_echo_n "checking if freeifaddrs is compilable... " >&6; }
25754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25755 /* end confdefs.h. */
25758 $curl_includes_ifaddrs
25770 if ac_fn_c_try_compile "$LINENO"; then :
25772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25773 $as_echo "yes" >&6; }
25774 tst_compi_freeifaddrs="yes"
25778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25779 $as_echo "no" >&6; }
25780 tst_compi_freeifaddrs="no"
25783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25786 if test "$tst_compi_freeifaddrs" = "yes"; then
25787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
25788 $as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
25789 if test "x$curl_disallow_freeifaddrs" != "xyes"; then
25790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25791 $as_echo "yes" >&6; }
25792 tst_allow_freeifaddrs="yes"
25794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25795 $as_echo "no" >&6; }
25796 tst_allow_freeifaddrs="no"
25800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
25801 $as_echo_n "checking if freeifaddrs might be used... " >&6; }
25802 if test "$tst_links_freeifaddrs" = "yes" &&
25803 test "$tst_proto_freeifaddrs" = "yes" &&
25804 test "$tst_compi_freeifaddrs" = "yes" &&
25805 test "$tst_allow_freeifaddrs" = "yes"; then
25806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25807 $as_echo "yes" >&6; }
25809 cat >>confdefs.h <<_ACEOF
25810 #define HAVE_FREEIFADDRS 1
25813 ac_cv_func_freeifaddrs="yes"
25815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25816 $as_echo "no" >&6; }
25817 ac_cv_func_freeifaddrs="no"
25821 curl_includes_sys_xattr="\
25822 /* includes start */
25823 #ifdef HAVE_SYS_TYPES_H
25824 # include <sys/types.h>
25826 #ifdef HAVE_SYS_XATTR_H
25827 # include <sys/xattr.h>
25829 /* includes end */"
25830 for ac_header in sys/types.h sys/xattr.h
25832 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25833 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
25835 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25836 cat >>confdefs.h <<_ACEOF
25837 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25847 tst_links_fsetxattr="unknown"
25848 tst_proto_fsetxattr="unknown"
25849 tst_compi_fsetxattr="unknown"
25850 tst_allow_fsetxattr="unknown"
25851 tst_nargs_fsetxattr="unknown"
25853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
25854 $as_echo_n "checking if fsetxattr can be linked... " >&6; }
25855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25856 /* end confdefs.h. */
25859 #define fsetxattr innocuous_fsetxattr
25861 # include <limits.h>
25863 # include <assert.h>
25870 #if defined __stub_fsetxattr || defined __stub___fsetxattr
25876 return fsetxattr ();
25882 if ac_fn_c_try_link "$LINENO"; then :
25884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25885 $as_echo "yes" >&6; }
25886 tst_links_fsetxattr="yes"
25890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25891 $as_echo "no" >&6; }
25892 tst_links_fsetxattr="no"
25895 rm -f core conftest.err conftest.$ac_objext \
25896 conftest$ac_exeext conftest.$ac_ext
25898 if test "$tst_links_fsetxattr" = "yes"; then
25899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
25900 $as_echo_n "checking if fsetxattr is prototyped... " >&6; }
25901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25902 /* end confdefs.h. */
25904 $curl_includes_sys_xattr
25907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25908 $EGREP "fsetxattr" >/dev/null 2>&1; then :
25910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25911 $as_echo "yes" >&6; }
25912 tst_proto_fsetxattr="yes"
25916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25917 $as_echo "no" >&6; }
25918 tst_proto_fsetxattr="no"
25925 if test "$tst_proto_fsetxattr" = "yes"; then
25926 if test "$tst_nargs_fsetxattr" = "unknown"; then
25927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
25928 $as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
25929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25930 /* end confdefs.h. */
25933 $curl_includes_sys_xattr
25938 if(0 != fsetxattr(0, 0, 0, 0, 0))
25946 if ac_fn_c_try_compile "$LINENO"; then :
25948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25949 $as_echo "yes" >&6; }
25950 tst_compi_fsetxattr="yes"
25951 tst_nargs_fsetxattr="5"
25955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25956 $as_echo "no" >&6; }
25957 tst_compi_fsetxattr="no"
25960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25962 if test "$tst_nargs_fsetxattr" = "unknown"; then
25963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
25964 $as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
25965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25966 /* end confdefs.h. */
25969 $curl_includes_sys_xattr
25974 if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
25982 if ac_fn_c_try_compile "$LINENO"; then :
25984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25985 $as_echo "yes" >&6; }
25986 tst_compi_fsetxattr="yes"
25987 tst_nargs_fsetxattr="6"
25991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25992 $as_echo "no" >&6; }
25993 tst_compi_fsetxattr="no"
25996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
25999 $as_echo_n "checking if fsetxattr is compilable... " >&6; }
26000 if test "$tst_compi_fsetxattr" = "yes"; then
26001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26002 $as_echo "yes" >&6; }
26004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26005 $as_echo "no" >&6; }
26009 if test "$tst_compi_fsetxattr" = "yes"; then
26010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
26011 $as_echo_n "checking if fsetxattr usage allowed... " >&6; }
26012 if test "x$curl_disallow_fsetxattr" != "xyes"; then
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26014 $as_echo "yes" >&6; }
26015 tst_allow_fsetxattr="yes"
26017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26018 $as_echo "no" >&6; }
26019 tst_allow_fsetxattr="no"
26023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
26024 $as_echo_n "checking if fsetxattr might be used... " >&6; }
26025 if test "$tst_links_fsetxattr" = "yes" &&
26026 test "$tst_proto_fsetxattr" = "yes" &&
26027 test "$tst_compi_fsetxattr" = "yes" &&
26028 test "$tst_allow_fsetxattr" = "yes"; then
26029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26030 $as_echo "yes" >&6; }
26032 cat >>confdefs.h <<_ACEOF
26033 #define HAVE_FSETXATTR 1
26037 if test "$tst_nargs_fsetxattr" -eq "5"; then
26039 $as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
26041 elif test "$tst_nargs_fsetxattr" -eq "6"; then
26043 $as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
26047 ac_cv_func_fsetxattr="yes"
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26050 $as_echo "no" >&6; }
26051 ac_cv_func_fsetxattr="no"
26056 tst_links_ftruncate="unknown"
26057 tst_proto_ftruncate="unknown"
26058 tst_compi_ftruncate="unknown"
26059 tst_allow_ftruncate="unknown"
26061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
26062 $as_echo_n "checking if ftruncate can be linked... " >&6; }
26063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26064 /* end confdefs.h. */
26067 #define ftruncate innocuous_ftruncate
26069 # include <limits.h>
26071 # include <assert.h>
26078 #if defined __stub_ftruncate || defined __stub___ftruncate
26084 return ftruncate ();
26090 if ac_fn_c_try_link "$LINENO"; then :
26092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26093 $as_echo "yes" >&6; }
26094 tst_links_ftruncate="yes"
26098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26099 $as_echo "no" >&6; }
26100 tst_links_ftruncate="no"
26103 rm -f core conftest.err conftest.$ac_objext \
26104 conftest$ac_exeext conftest.$ac_ext
26106 if test "$tst_links_ftruncate" = "yes"; then
26107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
26108 $as_echo_n "checking if ftruncate is prototyped... " >&6; }
26109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26110 /* end confdefs.h. */
26112 $curl_includes_unistd
26115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26116 $EGREP "ftruncate" >/dev/null 2>&1; then :
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26119 $as_echo "yes" >&6; }
26120 tst_proto_ftruncate="yes"
26124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26125 $as_echo "no" >&6; }
26126 tst_proto_ftruncate="no"
26133 if test "$tst_proto_ftruncate" = "yes"; then
26134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
26135 $as_echo_n "checking if ftruncate is compilable... " >&6; }
26136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26137 /* end confdefs.h. */
26140 $curl_includes_unistd
26145 if(0 != ftruncate(0, 0))
26153 if ac_fn_c_try_compile "$LINENO"; then :
26155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26156 $as_echo "yes" >&6; }
26157 tst_compi_ftruncate="yes"
26161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26162 $as_echo "no" >&6; }
26163 tst_compi_ftruncate="no"
26166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26169 if test "$tst_compi_ftruncate" = "yes"; then
26170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
26171 $as_echo_n "checking if ftruncate usage allowed... " >&6; }
26172 if test "x$curl_disallow_ftruncate" != "xyes"; then
26173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26174 $as_echo "yes" >&6; }
26175 tst_allow_ftruncate="yes"
26177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26178 $as_echo "no" >&6; }
26179 tst_allow_ftruncate="no"
26183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
26184 $as_echo_n "checking if ftruncate might be used... " >&6; }
26185 if test "$tst_links_ftruncate" = "yes" &&
26186 test "$tst_proto_ftruncate" = "yes" &&
26187 test "$tst_compi_ftruncate" = "yes" &&
26188 test "$tst_allow_ftruncate" = "yes"; then
26189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26190 $as_echo "yes" >&6; }
26192 cat >>confdefs.h <<_ACEOF
26193 #define HAVE_FTRUNCATE 1
26196 ac_cv_func_ftruncate="yes"
26198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26199 $as_echo "no" >&6; }
26200 ac_cv_func_ftruncate="no"
26204 curl_includes_stdlib="\
26205 /* includes start */
26206 #ifdef HAVE_SYS_TYPES_H
26207 # include <sys/types.h>
26209 #ifdef HAVE_STDLIB_H
26210 # include <stdlib.h>
26212 /* includes end */"
26213 for ac_header in sys/types.h stdlib.h
26215 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26216 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
26218 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26219 cat >>confdefs.h <<_ACEOF
26220 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26230 tst_links_getaddrinfo="unknown"
26231 tst_proto_getaddrinfo="unknown"
26232 tst_compi_getaddrinfo="unknown"
26233 tst_works_getaddrinfo="unknown"
26234 tst_allow_getaddrinfo="unknown"
26235 tst_tsafe_getaddrinfo="unknown"
26237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
26238 $as_echo_n "checking if getaddrinfo can be linked... " >&6; }
26239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26240 /* end confdefs.h. */
26243 $curl_includes_ws2tcpip
26244 $curl_includes_sys_socket
26245 $curl_includes_netdb
26250 if(0 != getaddrinfo(0, 0, 0, 0))
26258 if ac_fn_c_try_link "$LINENO"; then :
26260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26261 $as_echo "yes" >&6; }
26262 tst_links_getaddrinfo="yes"
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26267 $as_echo "no" >&6; }
26268 tst_links_getaddrinfo="no"
26271 rm -f core conftest.err conftest.$ac_objext \
26272 conftest$ac_exeext conftest.$ac_ext
26274 if test "$tst_links_getaddrinfo" = "yes"; then
26275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
26276 $as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
26277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26278 /* end confdefs.h. */
26280 $curl_includes_ws2tcpip
26281 $curl_includes_sys_socket
26282 $curl_includes_netdb
26285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26286 $EGREP "getaddrinfo" >/dev/null 2>&1; then :
26288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26289 $as_echo "yes" >&6; }
26290 tst_proto_getaddrinfo="yes"
26294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26295 $as_echo "no" >&6; }
26296 tst_proto_getaddrinfo="no"
26303 if test "$tst_proto_getaddrinfo" = "yes"; then
26304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
26305 $as_echo_n "checking if getaddrinfo is compilable... " >&6; }
26306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26307 /* end confdefs.h. */
26310 $curl_includes_ws2tcpip
26311 $curl_includes_sys_socket
26312 $curl_includes_netdb
26317 if(0 != getaddrinfo(0, 0, 0, 0))
26325 if ac_fn_c_try_compile "$LINENO"; then :
26327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26328 $as_echo "yes" >&6; }
26329 tst_compi_getaddrinfo="yes"
26333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26334 $as_echo "no" >&6; }
26335 tst_compi_getaddrinfo="no"
26338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26341 if test "x$cross_compiling" != "xyes" &&
26342 test "$tst_compi_getaddrinfo" = "yes"; then
26343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
26344 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
26345 if test "$cross_compiling" = yes; then :
26346 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26348 as_fn_error $? "cannot run test program while cross compiling
26349 See \`config.log' for more details" "$LINENO" 5 ; }
26351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26352 /* end confdefs.h. */
26355 $curl_includes_ws2tcpip
26356 $curl_includes_stdlib
26357 $curl_includes_string
26358 $curl_includes_sys_socket
26359 $curl_includes_netdb
26364 struct addrinfo hints;
26365 struct addrinfo *ai = 0;
26368 memset(&hints, 0, sizeof(hints));
26369 hints.ai_flags = AI_NUMERICHOST;
26370 hints.ai_family = AF_UNSPEC;
26371 hints.ai_socktype = SOCK_STREAM;
26372 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
26374 exit(1); /* fail */
26383 if ac_fn_c_try_run "$LINENO"; then :
26385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26386 $as_echo "yes" >&6; }
26387 tst_works_getaddrinfo="yes"
26391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26392 $as_echo "no" >&6; }
26393 tst_works_getaddrinfo="no"
26396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26397 conftest.$ac_objext conftest.beam conftest.$ac_ext
26402 if test "$tst_compi_getaddrinfo" = "yes" &&
26403 test "$tst_works_getaddrinfo" != "no"; then
26404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
26405 $as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
26406 if test "x$curl_disallow_getaddrinfo" != "xyes"; then
26407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26408 $as_echo "yes" >&6; }
26409 tst_allow_getaddrinfo="yes"
26411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26412 $as_echo "no" >&6; }
26413 tst_allow_getaddrinfo="no"
26417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
26418 $as_echo_n "checking if getaddrinfo might be used... " >&6; }
26419 if test "$tst_links_getaddrinfo" = "yes" &&
26420 test "$tst_proto_getaddrinfo" = "yes" &&
26421 test "$tst_compi_getaddrinfo" = "yes" &&
26422 test "$tst_allow_getaddrinfo" = "yes" &&
26423 test "$tst_works_getaddrinfo" != "no"; then
26424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26425 $as_echo "yes" >&6; }
26427 cat >>confdefs.h <<_ACEOF
26428 #define HAVE_GETADDRINFO 1
26431 ac_cv_func_getaddrinfo="yes"
26433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26434 $as_echo "no" >&6; }
26435 ac_cv_func_getaddrinfo="no"
26436 ac_cv_func_getaddrinfo_threadsafe="no"
26439 if test "$ac_cv_func_getaddrinfo" = "yes"; then
26440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
26441 $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
26443 aix[1234].* | aix5.[01].*)
26444 tst_tsafe_getaddrinfo="no"
26447 tst_tsafe_getaddrinfo="yes"
26450 tst_tsafe_getaddrinfo="no"
26453 tst_tsafe_getaddrinfo="yes"
26455 freebsd[1234].* | freebsd5.[1234]*)
26456 tst_tsafe_getaddrinfo="no"
26459 tst_tsafe_getaddrinfo="yes"
26461 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
26462 tst_tsafe_getaddrinfo="no"
26465 tst_tsafe_getaddrinfo="yes"
26468 tst_tsafe_getaddrinfo="no"
26471 tst_tsafe_getaddrinfo="yes"
26474 tst_tsafe_getaddrinfo="no"
26477 tst_tsafe_getaddrinfo="yes"
26480 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
26483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26484 /* end confdefs.h. */
26487 $curl_includes_ws2tcpip
26488 $curl_includes_sys_socket
26489 $curl_includes_netdb
26496 force compilation error
26502 if ac_fn_c_try_compile "$LINENO"; then :
26504 tst_symbol_defined="yes"
26508 tst_symbol_defined="no"
26511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26512 if test "$tst_symbol_defined" = "yes"; then
26513 curl_cv_have_def_h_errno=yes
26516 curl_cv_have_def_h_errno=no
26520 if test "$curl_cv_have_def_h_errno" = "no"; then
26521 tst_tsafe_getaddrinfo="no"
26524 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
26525 tst_tsafe_getaddrinfo="yes"
26527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
26528 $as_echo "$tst_tsafe_getaddrinfo" >&6; }
26529 if test "$tst_tsafe_getaddrinfo" = "yes"; then
26531 cat >>confdefs.h <<_ACEOF
26532 #define HAVE_GETADDRINFO_THREADSAFE 1
26535 ac_cv_func_getaddrinfo_threadsafe="yes"
26537 ac_cv_func_getaddrinfo_threadsafe="no"
26543 tst_links_gethostbyaddr="unknown"
26544 tst_proto_gethostbyaddr="unknown"
26545 tst_compi_gethostbyaddr="unknown"
26546 tst_allow_gethostbyaddr="unknown"
26548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
26549 $as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
26550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26551 /* end confdefs.h. */
26554 $curl_includes_winsock2
26555 $curl_includes_netdb
26560 if(0 != gethostbyaddr(0, 0, 0))
26568 if ac_fn_c_try_link "$LINENO"; then :
26570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26571 $as_echo "yes" >&6; }
26572 tst_links_gethostbyaddr="yes"
26576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26577 $as_echo "no" >&6; }
26578 tst_links_gethostbyaddr="no"
26581 rm -f core conftest.err conftest.$ac_objext \
26582 conftest$ac_exeext conftest.$ac_ext
26584 if test "$tst_links_gethostbyaddr" = "yes"; then
26585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
26586 $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
26587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26588 /* end confdefs.h. */
26590 $curl_includes_winsock2
26591 $curl_includes_netdb
26594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26595 $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
26597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26598 $as_echo "yes" >&6; }
26599 tst_proto_gethostbyaddr="yes"
26603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26604 $as_echo "no" >&6; }
26605 tst_proto_gethostbyaddr="no"
26612 if test "$tst_proto_gethostbyaddr" = "yes"; then
26613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
26614 $as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
26615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26616 /* end confdefs.h. */
26619 $curl_includes_winsock2
26620 $curl_includes_netdb
26625 if(0 != gethostbyaddr(0, 0, 0))
26633 if ac_fn_c_try_compile "$LINENO"; then :
26635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26636 $as_echo "yes" >&6; }
26637 tst_compi_gethostbyaddr="yes"
26641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26642 $as_echo "no" >&6; }
26643 tst_compi_gethostbyaddr="no"
26646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26649 if test "$tst_compi_gethostbyaddr" = "yes"; then
26650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
26651 $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
26652 if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
26653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26654 $as_echo "yes" >&6; }
26655 tst_allow_gethostbyaddr="yes"
26657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26658 $as_echo "no" >&6; }
26659 tst_allow_gethostbyaddr="no"
26663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
26664 $as_echo_n "checking if gethostbyaddr might be used... " >&6; }
26665 if test "$tst_links_gethostbyaddr" = "yes" &&
26666 test "$tst_proto_gethostbyaddr" = "yes" &&
26667 test "$tst_compi_gethostbyaddr" = "yes" &&
26668 test "$tst_allow_gethostbyaddr" = "yes"; then
26669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26670 $as_echo "yes" >&6; }
26672 cat >>confdefs.h <<_ACEOF
26673 #define HAVE_GETHOSTBYADDR 1
26676 ac_cv_func_gethostbyaddr="yes"
26678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26679 $as_echo "no" >&6; }
26680 ac_cv_func_gethostbyaddr="no"
26685 tst_links_gethostbyaddr_r="unknown"
26686 tst_proto_gethostbyaddr_r="unknown"
26687 tst_compi_gethostbyaddr_r="unknown"
26688 tst_allow_gethostbyaddr_r="unknown"
26689 tst_nargs_gethostbyaddr_r="unknown"
26691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
26692 $as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
26693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26694 /* end confdefs.h. */
26697 #define gethostbyaddr_r innocuous_gethostbyaddr_r
26699 # include <limits.h>
26701 # include <assert.h>
26703 #undef gethostbyaddr_r
26707 char gethostbyaddr_r ();
26708 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
26714 return gethostbyaddr_r ();
26720 if ac_fn_c_try_link "$LINENO"; then :
26722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26723 $as_echo "yes" >&6; }
26724 tst_links_gethostbyaddr_r="yes"
26728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26729 $as_echo "no" >&6; }
26730 tst_links_gethostbyaddr_r="no"
26733 rm -f core conftest.err conftest.$ac_objext \
26734 conftest$ac_exeext conftest.$ac_ext
26736 if test "$tst_links_gethostbyaddr_r" = "yes"; then
26737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
26738 $as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
26739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26740 /* end confdefs.h. */
26742 $curl_includes_netdb
26745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26746 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
26748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26749 $as_echo "yes" >&6; }
26750 tst_proto_gethostbyaddr_r="yes"
26754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26755 $as_echo "no" >&6; }
26756 tst_proto_gethostbyaddr_r="no"
26763 if test "$tst_proto_gethostbyaddr_r" = "yes"; then
26764 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
26765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
26766 $as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
26767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26768 /* end confdefs.h. */
26771 $curl_includes_netdb
26776 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
26784 if ac_fn_c_try_compile "$LINENO"; then :
26786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26787 $as_echo "yes" >&6; }
26788 tst_compi_gethostbyaddr_r="yes"
26789 tst_nargs_gethostbyaddr_r="5"
26793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26794 $as_echo "no" >&6; }
26795 tst_compi_gethostbyaddr_r="no"
26798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26800 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
26801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
26802 $as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
26803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26804 /* end confdefs.h. */
26807 $curl_includes_netdb
26812 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
26820 if ac_fn_c_try_compile "$LINENO"; then :
26822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26823 $as_echo "yes" >&6; }
26824 tst_compi_gethostbyaddr_r="yes"
26825 tst_nargs_gethostbyaddr_r="7"
26829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26830 $as_echo "no" >&6; }
26831 tst_compi_gethostbyaddr_r="no"
26834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26836 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
26837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
26838 $as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
26839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26840 /* end confdefs.h. */
26843 $curl_includes_netdb
26848 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
26856 if ac_fn_c_try_compile "$LINENO"; then :
26858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26859 $as_echo "yes" >&6; }
26860 tst_compi_gethostbyaddr_r="yes"
26861 tst_nargs_gethostbyaddr_r="8"
26865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26866 $as_echo "no" >&6; }
26867 tst_compi_gethostbyaddr_r="no"
26870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
26873 $as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
26874 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
26875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26876 $as_echo "yes" >&6; }
26878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26879 $as_echo "no" >&6; }
26883 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
26884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
26885 $as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
26886 if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
26887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26888 $as_echo "yes" >&6; }
26889 tst_allow_gethostbyaddr_r="yes"
26891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26892 $as_echo "no" >&6; }
26893 tst_allow_gethostbyaddr_r="no"
26897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
26898 $as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
26899 if test "$tst_links_gethostbyaddr_r" = "yes" &&
26900 test "$tst_proto_gethostbyaddr_r" = "yes" &&
26901 test "$tst_compi_gethostbyaddr_r" = "yes" &&
26902 test "$tst_allow_gethostbyaddr_r" = "yes"; then
26903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26904 $as_echo "yes" >&6; }
26906 cat >>confdefs.h <<_ACEOF
26907 #define HAVE_GETHOSTBYADDR_R 1
26911 if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
26913 $as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
26915 elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
26917 $as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
26919 elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
26921 $as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
26925 ac_cv_func_gethostbyaddr_r="yes"
26927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26928 $as_echo "no" >&6; }
26929 ac_cv_func_gethostbyaddr_r="no"
26934 tst_links_gethostbyname="unknown"
26935 tst_proto_gethostbyname="unknown"
26936 tst_compi_gethostbyname="unknown"
26937 tst_allow_gethostbyname="unknown"
26939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
26940 $as_echo_n "checking if gethostbyname can be linked... " >&6; }
26941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26942 /* end confdefs.h. */
26945 $curl_includes_winsock2
26946 $curl_includes_netdb
26951 if(0 != gethostbyname(0))
26959 if ac_fn_c_try_link "$LINENO"; then :
26961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26962 $as_echo "yes" >&6; }
26963 tst_links_gethostbyname="yes"
26967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26968 $as_echo "no" >&6; }
26969 tst_links_gethostbyname="no"
26972 rm -f core conftest.err conftest.$ac_objext \
26973 conftest$ac_exeext conftest.$ac_ext
26975 if test "$tst_links_gethostbyname" = "yes"; then
26976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
26977 $as_echo_n "checking if gethostbyname is prototyped... " >&6; }
26978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26979 /* end confdefs.h. */
26981 $curl_includes_winsock2
26982 $curl_includes_netdb
26985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26986 $EGREP "gethostbyname" >/dev/null 2>&1; then :
26988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26989 $as_echo "yes" >&6; }
26990 tst_proto_gethostbyname="yes"
26994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26995 $as_echo "no" >&6; }
26996 tst_proto_gethostbyname="no"
27003 if test "$tst_proto_gethostbyname" = "yes"; then
27004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
27005 $as_echo_n "checking if gethostbyname is compilable... " >&6; }
27006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27007 /* end confdefs.h. */
27010 $curl_includes_winsock2
27011 $curl_includes_netdb
27016 if(0 != gethostbyname(0))
27024 if ac_fn_c_try_compile "$LINENO"; then :
27026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27027 $as_echo "yes" >&6; }
27028 tst_compi_gethostbyname="yes"
27032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27033 $as_echo "no" >&6; }
27034 tst_compi_gethostbyname="no"
27037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27040 if test "$tst_compi_gethostbyname" = "yes"; then
27041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
27042 $as_echo_n "checking if gethostbyname usage allowed... " >&6; }
27043 if test "x$curl_disallow_gethostbyname" != "xyes"; then
27044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27045 $as_echo "yes" >&6; }
27046 tst_allow_gethostbyname="yes"
27048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27049 $as_echo "no" >&6; }
27050 tst_allow_gethostbyname="no"
27054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
27055 $as_echo_n "checking if gethostbyname might be used... " >&6; }
27056 if test "$tst_links_gethostbyname" = "yes" &&
27057 test "$tst_proto_gethostbyname" = "yes" &&
27058 test "$tst_compi_gethostbyname" = "yes" &&
27059 test "$tst_allow_gethostbyname" = "yes"; then
27060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27061 $as_echo "yes" >&6; }
27063 cat >>confdefs.h <<_ACEOF
27064 #define HAVE_GETHOSTBYNAME 1
27067 ac_cv_func_gethostbyname="yes"
27069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27070 $as_echo "no" >&6; }
27071 ac_cv_func_gethostbyname="no"
27076 tst_links_gethostbyname_r="unknown"
27077 tst_proto_gethostbyname_r="unknown"
27078 tst_compi_gethostbyname_r="unknown"
27079 tst_allow_gethostbyname_r="unknown"
27080 tst_nargs_gethostbyname_r="unknown"
27082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
27083 $as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
27084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27085 /* end confdefs.h. */
27088 #define gethostbyname_r innocuous_gethostbyname_r
27090 # include <limits.h>
27092 # include <assert.h>
27094 #undef gethostbyname_r
27098 char gethostbyname_r ();
27099 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
27105 return gethostbyname_r ();
27111 if ac_fn_c_try_link "$LINENO"; then :
27113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27114 $as_echo "yes" >&6; }
27115 tst_links_gethostbyname_r="yes"
27119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27120 $as_echo "no" >&6; }
27121 tst_links_gethostbyname_r="no"
27124 rm -f core conftest.err conftest.$ac_objext \
27125 conftest$ac_exeext conftest.$ac_ext
27127 if test "$tst_links_gethostbyname_r" = "yes"; then
27128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
27129 $as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
27130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27131 /* end confdefs.h. */
27133 $curl_includes_netdb
27136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27137 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
27139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27140 $as_echo "yes" >&6; }
27141 tst_proto_gethostbyname_r="yes"
27145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27146 $as_echo "no" >&6; }
27147 tst_proto_gethostbyname_r="no"
27154 if test "$tst_proto_gethostbyname_r" = "yes"; then
27155 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
27156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
27157 $as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
27158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27159 /* end confdefs.h. */
27162 $curl_includes_netdb
27167 if(0 != gethostbyname_r(0, 0, 0))
27175 if ac_fn_c_try_compile "$LINENO"; then :
27177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27178 $as_echo "yes" >&6; }
27179 tst_compi_gethostbyname_r="yes"
27180 tst_nargs_gethostbyname_r="3"
27184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27185 $as_echo "no" >&6; }
27186 tst_compi_gethostbyname_r="no"
27189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27191 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
27192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
27193 $as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
27194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27195 /* end confdefs.h. */
27198 $curl_includes_netdb
27203 if(0 != gethostbyname_r(0, 0, 0, 0, 0))
27211 if ac_fn_c_try_compile "$LINENO"; then :
27213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27214 $as_echo "yes" >&6; }
27215 tst_compi_gethostbyname_r="yes"
27216 tst_nargs_gethostbyname_r="5"
27220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27221 $as_echo "no" >&6; }
27222 tst_compi_gethostbyname_r="no"
27225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27227 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
27228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
27229 $as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
27230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27231 /* end confdefs.h. */
27234 $curl_includes_netdb
27239 if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
27247 if ac_fn_c_try_compile "$LINENO"; then :
27249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27250 $as_echo "yes" >&6; }
27251 tst_compi_gethostbyname_r="yes"
27252 tst_nargs_gethostbyname_r="6"
27256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27257 $as_echo "no" >&6; }
27258 tst_compi_gethostbyname_r="no"
27261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
27264 $as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
27265 if test "$tst_compi_gethostbyname_r" = "yes"; then
27266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27267 $as_echo "yes" >&6; }
27269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27270 $as_echo "no" >&6; }
27274 if test "$tst_compi_gethostbyname_r" = "yes"; then
27275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
27276 $as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
27277 if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
27278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27279 $as_echo "yes" >&6; }
27280 tst_allow_gethostbyname_r="yes"
27282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27283 $as_echo "no" >&6; }
27284 tst_allow_gethostbyname_r="no"
27288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
27289 $as_echo_n "checking if gethostbyname_r might be used... " >&6; }
27290 if test "$tst_links_gethostbyname_r" = "yes" &&
27291 test "$tst_proto_gethostbyname_r" = "yes" &&
27292 test "$tst_compi_gethostbyname_r" = "yes" &&
27293 test "$tst_allow_gethostbyname_r" = "yes"; then
27294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27295 $as_echo "yes" >&6; }
27297 cat >>confdefs.h <<_ACEOF
27298 #define HAVE_GETHOSTBYNAME_R 1
27302 if test "$tst_nargs_gethostbyname_r" -eq "3"; then
27304 $as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
27306 elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
27308 $as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
27310 elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
27312 $as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
27316 ac_cv_func_gethostbyname_r="yes"
27318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27319 $as_echo "no" >&6; }
27320 ac_cv_func_gethostbyname_r="no"
27325 tst_links_gethostname="unknown"
27326 tst_proto_gethostname="unknown"
27327 tst_compi_gethostname="unknown"
27328 tst_allow_gethostname="unknown"
27330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
27331 $as_echo_n "checking if gethostname can be linked... " >&6; }
27332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27333 /* end confdefs.h. */
27336 $curl_includes_winsock2
27337 $curl_includes_unistd
27342 if(0 != gethostname(0, 0))
27350 if ac_fn_c_try_link "$LINENO"; then :
27352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27353 $as_echo "yes" >&6; }
27354 tst_links_gethostname="yes"
27358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27359 $as_echo "no" >&6; }
27360 tst_links_gethostname="no"
27363 rm -f core conftest.err conftest.$ac_objext \
27364 conftest$ac_exeext conftest.$ac_ext
27366 if test "$tst_links_gethostname" = "yes"; then
27367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
27368 $as_echo_n "checking if gethostname is prototyped... " >&6; }
27369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27370 /* end confdefs.h. */
27372 $curl_includes_winsock2
27373 $curl_includes_unistd
27376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27377 $EGREP "gethostname" >/dev/null 2>&1; then :
27379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27380 $as_echo "yes" >&6; }
27381 tst_proto_gethostname="yes"
27385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27386 $as_echo "no" >&6; }
27387 tst_proto_gethostname="no"
27394 if test "$tst_proto_gethostname" = "yes"; then
27395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
27396 $as_echo_n "checking if gethostname is compilable... " >&6; }
27397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27398 /* end confdefs.h. */
27401 $curl_includes_winsock2
27402 $curl_includes_unistd
27407 if(0 != gethostname(0, 0))
27415 if ac_fn_c_try_compile "$LINENO"; then :
27417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27418 $as_echo "yes" >&6; }
27419 tst_compi_gethostname="yes"
27423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27424 $as_echo "no" >&6; }
27425 tst_compi_gethostname="no"
27428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27431 if test "$tst_compi_gethostname" = "yes"; then
27432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
27433 $as_echo_n "checking if gethostname usage allowed... " >&6; }
27434 if test "x$curl_disallow_gethostname" != "xyes"; then
27435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27436 $as_echo "yes" >&6; }
27437 tst_allow_gethostname="yes"
27439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27440 $as_echo "no" >&6; }
27441 tst_allow_gethostname="no"
27445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
27446 $as_echo_n "checking if gethostname might be used... " >&6; }
27447 if test "$tst_links_gethostname" = "yes" &&
27448 test "$tst_proto_gethostname" = "yes" &&
27449 test "$tst_compi_gethostname" = "yes" &&
27450 test "$tst_allow_gethostname" = "yes"; then
27451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27452 $as_echo "yes" >&6; }
27454 cat >>confdefs.h <<_ACEOF
27455 #define HAVE_GETHOSTNAME 1
27458 ac_cv_func_gethostname="yes"
27460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27461 $as_echo "no" >&6; }
27462 ac_cv_func_gethostname="no"
27467 tst_links_getifaddrs="unknown"
27468 tst_proto_getifaddrs="unknown"
27469 tst_compi_getifaddrs="unknown"
27470 tst_works_getifaddrs="unknown"
27471 tst_allow_getifaddrs="unknown"
27473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
27474 $as_echo_n "checking if getifaddrs can be linked... " >&6; }
27475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27476 /* end confdefs.h. */
27479 #define getifaddrs innocuous_getifaddrs
27481 # include <limits.h>
27483 # include <assert.h>
27489 char getifaddrs ();
27490 #if defined __stub_getifaddrs || defined __stub___getifaddrs
27496 return getifaddrs ();
27502 if ac_fn_c_try_link "$LINENO"; then :
27504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27505 $as_echo "yes" >&6; }
27506 tst_links_getifaddrs="yes"
27510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27511 $as_echo "no" >&6; }
27512 tst_links_getifaddrs="no"
27515 rm -f core conftest.err conftest.$ac_objext \
27516 conftest$ac_exeext conftest.$ac_ext
27518 if test "$tst_links_getifaddrs" = "yes"; then
27519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
27520 $as_echo_n "checking if getifaddrs is prototyped... " >&6; }
27521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27522 /* end confdefs.h. */
27524 $curl_includes_ifaddrs
27527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27528 $EGREP "getifaddrs" >/dev/null 2>&1; then :
27530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27531 $as_echo "yes" >&6; }
27532 tst_proto_getifaddrs="yes"
27536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27537 $as_echo "no" >&6; }
27538 tst_proto_getifaddrs="no"
27545 if test "$tst_proto_getifaddrs" = "yes"; then
27546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
27547 $as_echo_n "checking if getifaddrs is compilable... " >&6; }
27548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27549 /* end confdefs.h. */
27552 $curl_includes_ifaddrs
27557 if(0 != getifaddrs(0))
27565 if ac_fn_c_try_compile "$LINENO"; then :
27567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27568 $as_echo "yes" >&6; }
27569 tst_compi_getifaddrs="yes"
27573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27574 $as_echo "no" >&6; }
27575 tst_compi_getifaddrs="no"
27578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27581 if test "x$cross_compiling" != "xyes" &&
27582 test "$tst_compi_getifaddrs" = "yes"; then
27583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
27584 $as_echo_n "checking if getifaddrs seems to work... " >&6; }
27585 if test "$cross_compiling" = yes; then :
27586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27588 as_fn_error $? "cannot run test program while cross compiling
27589 See \`config.log' for more details" "$LINENO" 5 ; }
27591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27592 /* end confdefs.h. */
27595 $curl_includes_stdlib
27596 $curl_includes_ifaddrs
27601 struct ifaddrs *ifa = 0;
27604 error = getifaddrs(&ifa);
27606 exit(1); /* fail */
27615 if ac_fn_c_try_run "$LINENO"; then :
27617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27618 $as_echo "yes" >&6; }
27619 tst_works_getifaddrs="yes"
27623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27624 $as_echo "no" >&6; }
27625 tst_works_getifaddrs="no"
27628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27629 conftest.$ac_objext conftest.beam conftest.$ac_ext
27634 if test "$tst_compi_getifaddrs" = "yes" &&
27635 test "$tst_works_getifaddrs" != "no"; then
27636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
27637 $as_echo_n "checking if getifaddrs usage allowed... " >&6; }
27638 if test "x$curl_disallow_getifaddrs" != "xyes"; then
27639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27640 $as_echo "yes" >&6; }
27641 tst_allow_getifaddrs="yes"
27643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27644 $as_echo "no" >&6; }
27645 tst_allow_getifaddrs="no"
27649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
27650 $as_echo_n "checking if getifaddrs might be used... " >&6; }
27651 if test "$tst_links_getifaddrs" = "yes" &&
27652 test "$tst_proto_getifaddrs" = "yes" &&
27653 test "$tst_compi_getifaddrs" = "yes" &&
27654 test "$tst_allow_getifaddrs" = "yes" &&
27655 test "$tst_works_getifaddrs" != "no"; then
27656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27657 $as_echo "yes" >&6; }
27659 cat >>confdefs.h <<_ACEOF
27660 #define HAVE_GETIFADDRS 1
27663 ac_cv_func_getifaddrs="yes"
27665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27666 $as_echo "no" >&6; }
27667 ac_cv_func_getifaddrs="no"
27672 tst_links_getservbyport_r="unknown"
27673 tst_proto_getservbyport_r="unknown"
27674 tst_compi_getservbyport_r="unknown"
27675 tst_allow_getservbyport_r="unknown"
27676 tst_nargs_getservbyport_r="unknown"
27678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
27679 $as_echo_n "checking if getservbyport_r can be linked... " >&6; }
27680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27681 /* end confdefs.h. */
27684 #define getservbyport_r innocuous_getservbyport_r
27686 # include <limits.h>
27688 # include <assert.h>
27690 #undef getservbyport_r
27694 char getservbyport_r ();
27695 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
27701 return getservbyport_r ();
27707 if ac_fn_c_try_link "$LINENO"; then :
27709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27710 $as_echo "yes" >&6; }
27711 tst_links_getservbyport_r="yes"
27715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27716 $as_echo "no" >&6; }
27717 tst_links_getservbyport_r="no"
27720 rm -f core conftest.err conftest.$ac_objext \
27721 conftest$ac_exeext conftest.$ac_ext
27723 if test "$tst_links_getservbyport_r" = "yes"; then
27724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
27725 $as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
27726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27727 /* end confdefs.h. */
27729 $curl_includes_netdb
27732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27733 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
27735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27736 $as_echo "yes" >&6; }
27737 tst_proto_getservbyport_r="yes"
27741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27742 $as_echo "no" >&6; }
27743 tst_proto_getservbyport_r="no"
27750 if test "$tst_proto_getservbyport_r" = "yes"; then
27751 if test "$tst_nargs_getservbyport_r" = "unknown"; then
27752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
27753 $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
27754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27755 /* end confdefs.h. */
27758 $curl_includes_netdb
27763 if(0 != getservbyport_r(0, 0, 0, 0))
27771 if ac_fn_c_try_compile "$LINENO"; then :
27773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27774 $as_echo "yes" >&6; }
27775 tst_compi_getservbyport_r="yes"
27776 tst_nargs_getservbyport_r="4"
27780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27781 $as_echo "no" >&6; }
27782 tst_compi_getservbyport_r="no"
27785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27787 if test "$tst_nargs_getservbyport_r" = "unknown"; then
27788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
27789 $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
27790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27791 /* end confdefs.h. */
27794 $curl_includes_netdb
27799 if(0 != getservbyport_r(0, 0, 0, 0, 0))
27807 if ac_fn_c_try_compile "$LINENO"; then :
27809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27810 $as_echo "yes" >&6; }
27811 tst_compi_getservbyport_r="yes"
27812 tst_nargs_getservbyport_r="5"
27816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27817 $as_echo "no" >&6; }
27818 tst_compi_getservbyport_r="no"
27821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27823 if test "$tst_nargs_getservbyport_r" = "unknown"; then
27824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
27825 $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
27826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27827 /* end confdefs.h. */
27830 $curl_includes_netdb
27835 if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
27843 if ac_fn_c_try_compile "$LINENO"; then :
27845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27846 $as_echo "yes" >&6; }
27847 tst_compi_getservbyport_r="yes"
27848 tst_nargs_getservbyport_r="6"
27852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27853 $as_echo "no" >&6; }
27854 tst_compi_getservbyport_r="no"
27857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
27860 $as_echo_n "checking if getservbyport_r is compilable... " >&6; }
27861 if test "$tst_compi_getservbyport_r" = "yes"; then
27862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27863 $as_echo "yes" >&6; }
27865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27866 $as_echo "no" >&6; }
27870 if test "$tst_compi_getservbyport_r" = "yes"; then
27871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
27872 $as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
27873 if test "x$curl_disallow_getservbyport_r" != "xyes"; then
27874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27875 $as_echo "yes" >&6; }
27876 tst_allow_getservbyport_r="yes"
27878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27879 $as_echo "no" >&6; }
27880 tst_allow_getservbyport_r="no"
27884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
27885 $as_echo_n "checking if getservbyport_r might be used... " >&6; }
27886 if test "$tst_links_getservbyport_r" = "yes" &&
27887 test "$tst_proto_getservbyport_r" = "yes" &&
27888 test "$tst_compi_getservbyport_r" = "yes" &&
27889 test "$tst_allow_getservbyport_r" = "yes"; then
27890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27891 $as_echo "yes" >&6; }
27893 cat >>confdefs.h <<_ACEOF
27894 #define HAVE_GETSERVBYPORT_R 1
27898 cat >>confdefs.h <<_ACEOF
27899 #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
27902 if test "$tst_nargs_getservbyport_r" -eq "4"; then
27904 $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
27908 $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
27911 ac_cv_func_getservbyport_r="yes"
27913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27914 $as_echo "no" >&6; }
27915 ac_cv_func_getservbyport_r="no"
27919 curl_includes_time="\
27920 /* includes start */
27921 #ifdef HAVE_SYS_TYPES_H
27922 # include <sys/types.h>
27924 #ifdef HAVE_SYS_TIME_H
27925 # include <sys/time.h>
27926 # ifdef TIME_WITH_SYS_TIME
27930 # ifdef HAVE_TIME_H
27934 /* includes end */"
27935 for ac_header in sys/types.h sys/time.h time.h
27937 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27938 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
27940 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27941 cat >>confdefs.h <<_ACEOF
27942 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27952 tst_links_gmtime_r="unknown"
27953 tst_proto_gmtime_r="unknown"
27954 tst_compi_gmtime_r="unknown"
27955 tst_works_gmtime_r="unknown"
27956 tst_allow_gmtime_r="unknown"
27958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
27959 $as_echo_n "checking if gmtime_r can be linked... " >&6; }
27960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27961 /* end confdefs.h. */
27964 #define gmtime_r innocuous_gmtime_r
27966 # include <limits.h>
27968 # include <assert.h>
27975 #if defined __stub_gmtime_r || defined __stub___gmtime_r
27981 return gmtime_r ();
27987 if ac_fn_c_try_link "$LINENO"; then :
27989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27990 $as_echo "yes" >&6; }
27991 tst_links_gmtime_r="yes"
27995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27996 $as_echo "no" >&6; }
27997 tst_links_gmtime_r="no"
28000 rm -f core conftest.err conftest.$ac_objext \
28001 conftest$ac_exeext conftest.$ac_ext
28003 if test "$tst_links_gmtime_r" = "yes"; then
28004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
28005 $as_echo_n "checking if gmtime_r is prototyped... " >&6; }
28006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28007 /* end confdefs.h. */
28009 $curl_includes_time
28012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28013 $EGREP "gmtime_r" >/dev/null 2>&1; then :
28015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28016 $as_echo "yes" >&6; }
28017 tst_proto_gmtime_r="yes"
28021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28022 $as_echo "no" >&6; }
28023 tst_proto_gmtime_r="no"
28030 if test "$tst_proto_gmtime_r" = "yes"; then
28031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
28032 $as_echo_n "checking if gmtime_r is compilable... " >&6; }
28033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28034 /* end confdefs.h. */
28037 $curl_includes_time
28042 if(0 != gmtime_r(0, 0))
28050 if ac_fn_c_try_compile "$LINENO"; then :
28052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28053 $as_echo "yes" >&6; }
28054 tst_compi_gmtime_r="yes"
28058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28059 $as_echo "no" >&6; }
28060 tst_compi_gmtime_r="no"
28063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28066 if test "x$cross_compiling" != "xyes" &&
28067 test "$tst_compi_gmtime_r" = "yes"; then
28068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
28069 $as_echo_n "checking if gmtime_r seems to work... " >&6; }
28070 if test "$cross_compiling" = yes; then :
28071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28073 as_fn_error $? "cannot run test program while cross compiling
28074 See \`config.log' for more details" "$LINENO" 5 ; }
28076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28077 /* end confdefs.h. */
28080 $curl_includes_stdlib
28081 $curl_includes_time
28086 time_t local = 1170352587;
28087 struct tm *gmt = 0;
28089 gmt = gmtime_r(&local, &result);
28100 if ac_fn_c_try_run "$LINENO"; then :
28102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28103 $as_echo "yes" >&6; }
28104 tst_works_gmtime_r="yes"
28108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28109 $as_echo "no" >&6; }
28110 tst_works_gmtime_r="no"
28113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28114 conftest.$ac_objext conftest.beam conftest.$ac_ext
28119 if test "$tst_compi_gmtime_r" = "yes" &&
28120 test "$tst_works_gmtime_r" != "no"; then
28121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
28122 $as_echo_n "checking if gmtime_r usage allowed... " >&6; }
28123 if test "x$curl_disallow_gmtime_r" != "xyes"; then
28124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28125 $as_echo "yes" >&6; }
28126 tst_allow_gmtime_r="yes"
28128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28129 $as_echo "no" >&6; }
28130 tst_allow_gmtime_r="no"
28134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
28135 $as_echo_n "checking if gmtime_r might be used... " >&6; }
28136 if test "$tst_links_gmtime_r" = "yes" &&
28137 test "$tst_proto_gmtime_r" = "yes" &&
28138 test "$tst_compi_gmtime_r" = "yes" &&
28139 test "$tst_allow_gmtime_r" = "yes" &&
28140 test "$tst_works_gmtime_r" != "no"; then
28141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28142 $as_echo "yes" >&6; }
28144 cat >>confdefs.h <<_ACEOF
28145 #define HAVE_GMTIME_R 1
28148 ac_cv_func_gmtime_r="yes"
28150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28151 $as_echo "no" >&6; }
28152 ac_cv_func_gmtime_r="no"
28156 curl_includes_arpa_inet="\
28157 /* includes start */
28158 #ifdef HAVE_SYS_TYPES_H
28159 # include <sys/types.h>
28161 #ifdef HAVE_SYS_SOCKET_H
28162 # include <sys/socket.h>
28164 #ifdef HAVE_NETINET_IN_H
28165 # include <netinet/in.h>
28167 #ifdef HAVE_ARPA_INET_H
28168 # include <arpa/inet.h>
28170 /* includes end */"
28171 for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
28173 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28174 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
28176 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28177 cat >>confdefs.h <<_ACEOF
28178 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28188 tst_links_inet_ntoa_r="unknown"
28189 tst_proto_inet_ntoa_r="unknown"
28190 tst_compi_inet_ntoa_r="unknown"
28191 tst_allow_inet_ntoa_r="unknown"
28192 tst_nargs_inet_ntoa_r="unknown"
28194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
28195 $as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
28196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28197 /* end confdefs.h. */
28200 #define inet_ntoa_r innocuous_inet_ntoa_r
28202 # include <limits.h>
28204 # include <assert.h>
28210 char inet_ntoa_r ();
28211 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
28217 return inet_ntoa_r ();
28223 if ac_fn_c_try_link "$LINENO"; then :
28225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28226 $as_echo "yes" >&6; }
28227 tst_links_inet_ntoa_r="yes"
28231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28232 $as_echo "no" >&6; }
28233 tst_links_inet_ntoa_r="no"
28236 rm -f core conftest.err conftest.$ac_objext \
28237 conftest$ac_exeext conftest.$ac_ext
28239 if test "$tst_links_inet_ntoa_r" = "yes"; then
28240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
28241 $as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
28242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28243 /* end confdefs.h. */
28245 $curl_includes_arpa_inet
28248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28249 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
28251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28252 $as_echo "yes" >&6; }
28253 tst_proto_inet_ntoa_r="yes"
28257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28258 $as_echo "no" >&6; }
28259 tst_proto_inet_ntoa_r="no"
28266 if test "$tst_proto_inet_ntoa_r" = "yes"; then
28267 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
28268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
28269 $as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
28270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28271 /* end confdefs.h. */
28274 $curl_includes_arpa_inet
28279 struct in_addr addr;
28280 if(0 != inet_ntoa_r(addr, 0))
28288 if ac_fn_c_try_compile "$LINENO"; then :
28290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28291 $as_echo "yes" >&6; }
28292 tst_compi_inet_ntoa_r="yes"
28293 tst_nargs_inet_ntoa_r="2"
28297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28298 $as_echo "no" >&6; }
28299 tst_compi_inet_ntoa_r="no"
28302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28304 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
28305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
28306 $as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
28307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28308 /* end confdefs.h. */
28311 $curl_includes_arpa_inet
28316 struct in_addr addr;
28317 if(0 != inet_ntoa_r(addr, 0, 0))
28325 if ac_fn_c_try_compile "$LINENO"; then :
28327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28328 $as_echo "yes" >&6; }
28329 tst_compi_inet_ntoa_r="yes"
28330 tst_nargs_inet_ntoa_r="3"
28334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28335 $as_echo "no" >&6; }
28336 tst_compi_inet_ntoa_r="no"
28339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
28342 $as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
28343 if test "$tst_compi_inet_ntoa_r" = "yes"; then
28344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28345 $as_echo "yes" >&6; }
28347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28348 $as_echo "no" >&6; }
28352 if test "$tst_compi_inet_ntoa_r" = "yes"; then
28353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
28354 $as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
28355 if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
28356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28357 $as_echo "yes" >&6; }
28358 tst_allow_inet_ntoa_r="yes"
28360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28361 $as_echo "no" >&6; }
28362 tst_allow_inet_ntoa_r="no"
28366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
28367 $as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
28368 if test "$tst_links_inet_ntoa_r" = "yes" &&
28369 test "$tst_proto_inet_ntoa_r" = "yes" &&
28370 test "$tst_compi_inet_ntoa_r" = "yes" &&
28371 test "$tst_allow_inet_ntoa_r" = "yes"; then
28372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28373 $as_echo "yes" >&6; }
28375 cat >>confdefs.h <<_ACEOF
28376 #define HAVE_INET_NTOA_R 1
28380 if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
28382 $as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
28384 elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
28386 $as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
28390 ac_cv_func_inet_ntoa_r="yes"
28392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28393 $as_echo "no" >&6; }
28394 ac_cv_func_inet_ntoa_r="no"
28399 tst_links_inet_ntop="unknown"
28400 tst_proto_inet_ntop="unknown"
28401 tst_compi_inet_ntop="unknown"
28402 tst_works_inet_ntop="unknown"
28403 tst_allow_inet_ntop="unknown"
28405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
28406 $as_echo_n "checking if inet_ntop can be linked... " >&6; }
28407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28408 /* end confdefs.h. */
28411 #define inet_ntop innocuous_inet_ntop
28413 # include <limits.h>
28415 # include <assert.h>
28422 #if defined __stub_inet_ntop || defined __stub___inet_ntop
28428 return inet_ntop ();
28434 if ac_fn_c_try_link "$LINENO"; then :
28436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28437 $as_echo "yes" >&6; }
28438 tst_links_inet_ntop="yes"
28442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28443 $as_echo "no" >&6; }
28444 tst_links_inet_ntop="no"
28447 rm -f core conftest.err conftest.$ac_objext \
28448 conftest$ac_exeext conftest.$ac_ext
28450 if test "$tst_links_inet_ntop" = "yes"; then
28451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
28452 $as_echo_n "checking if inet_ntop is prototyped... " >&6; }
28453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28454 /* end confdefs.h. */
28456 $curl_includes_arpa_inet
28459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28460 $EGREP "inet_ntop" >/dev/null 2>&1; then :
28462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28463 $as_echo "yes" >&6; }
28464 tst_proto_inet_ntop="yes"
28468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28469 $as_echo "no" >&6; }
28470 tst_proto_inet_ntop="no"
28477 if test "$tst_proto_inet_ntop" = "yes"; then
28478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
28479 $as_echo_n "checking if inet_ntop is compilable... " >&6; }
28480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28481 /* end confdefs.h. */
28484 $curl_includes_arpa_inet
28489 if(0 != inet_ntop(0, 0, 0, 0))
28497 if ac_fn_c_try_compile "$LINENO"; then :
28499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28500 $as_echo "yes" >&6; }
28501 tst_compi_inet_ntop="yes"
28505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28506 $as_echo "no" >&6; }
28507 tst_compi_inet_ntop="no"
28510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28513 if test "x$cross_compiling" != "xyes" &&
28514 test "$tst_compi_inet_ntop" = "yes"; then
28515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
28516 $as_echo_n "checking if inet_ntop seems to work... " >&6; }
28517 if test "$cross_compiling" = yes; then :
28518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28520 as_fn_error $? "cannot run test program while cross compiling
28521 See \`config.log' for more details" "$LINENO" 5 ; }
28523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28524 /* end confdefs.h. */
28527 $curl_includes_stdlib
28528 $curl_includes_arpa_inet
28529 $curl_includes_string
28534 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
28535 char ipv4res[sizeof "255.255.255.255"];
28536 unsigned char ipv6a[26];
28537 unsigned char ipv4a[5];
28548 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
28550 exit(1); /* fail */
28551 if(ipv4ptr != ipv4res)
28552 exit(1); /* fail */
28554 exit(1); /* fail */
28555 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
28556 exit(1); /* fail */
28559 memset(ipv6a, 0, sizeof(ipv6a));
28572 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
28574 exit(1); /* fail */
28575 if(ipv6ptr != ipv6res)
28576 exit(1); /* fail */
28578 exit(1); /* fail */
28579 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
28580 exit(1); /* fail */
28589 if ac_fn_c_try_run "$LINENO"; then :
28591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28592 $as_echo "yes" >&6; }
28593 tst_works_inet_ntop="yes"
28597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28598 $as_echo "no" >&6; }
28599 tst_works_inet_ntop="no"
28602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28603 conftest.$ac_objext conftest.beam conftest.$ac_ext
28608 if test "$tst_compi_inet_ntop" = "yes" &&
28609 test "$tst_works_inet_ntop" != "no"; then
28610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
28611 $as_echo_n "checking if inet_ntop usage allowed... " >&6; }
28612 if test "x$curl_disallow_inet_ntop" != "xyes"; then
28613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28614 $as_echo "yes" >&6; }
28615 tst_allow_inet_ntop="yes"
28617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28618 $as_echo "no" >&6; }
28619 tst_allow_inet_ntop="no"
28623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
28624 $as_echo_n "checking if inet_ntop might be used... " >&6; }
28625 if test "$tst_links_inet_ntop" = "yes" &&
28626 test "$tst_proto_inet_ntop" = "yes" &&
28627 test "$tst_compi_inet_ntop" = "yes" &&
28628 test "$tst_allow_inet_ntop" = "yes" &&
28629 test "$tst_works_inet_ntop" != "no"; then
28630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28631 $as_echo "yes" >&6; }
28633 cat >>confdefs.h <<_ACEOF
28634 #define HAVE_INET_NTOP 1
28637 ac_cv_func_inet_ntop="yes"
28639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28640 $as_echo "no" >&6; }
28641 ac_cv_func_inet_ntop="no"
28646 tst_links_inet_pton="unknown"
28647 tst_proto_inet_pton="unknown"
28648 tst_compi_inet_pton="unknown"
28649 tst_works_inet_pton="unknown"
28650 tst_allow_inet_pton="unknown"
28652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
28653 $as_echo_n "checking if inet_pton can be linked... " >&6; }
28654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28655 /* end confdefs.h. */
28658 #define inet_pton innocuous_inet_pton
28660 # include <limits.h>
28662 # include <assert.h>
28669 #if defined __stub_inet_pton || defined __stub___inet_pton
28675 return inet_pton ();
28681 if ac_fn_c_try_link "$LINENO"; then :
28683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28684 $as_echo "yes" >&6; }
28685 tst_links_inet_pton="yes"
28689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28690 $as_echo "no" >&6; }
28691 tst_links_inet_pton="no"
28694 rm -f core conftest.err conftest.$ac_objext \
28695 conftest$ac_exeext conftest.$ac_ext
28697 if test "$tst_links_inet_pton" = "yes"; then
28698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
28699 $as_echo_n "checking if inet_pton is prototyped... " >&6; }
28700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28701 /* end confdefs.h. */
28703 $curl_includes_arpa_inet
28706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28707 $EGREP "inet_pton" >/dev/null 2>&1; then :
28709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28710 $as_echo "yes" >&6; }
28711 tst_proto_inet_pton="yes"
28715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28716 $as_echo "no" >&6; }
28717 tst_proto_inet_pton="no"
28724 if test "$tst_proto_inet_pton" = "yes"; then
28725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
28726 $as_echo_n "checking if inet_pton is compilable... " >&6; }
28727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28728 /* end confdefs.h. */
28731 $curl_includes_arpa_inet
28736 if(0 != inet_pton(0, 0, 0))
28744 if ac_fn_c_try_compile "$LINENO"; then :
28746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28747 $as_echo "yes" >&6; }
28748 tst_compi_inet_pton="yes"
28752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28753 $as_echo "no" >&6; }
28754 tst_compi_inet_pton="no"
28757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28760 if test "x$cross_compiling" != "xyes" &&
28761 test "$tst_compi_inet_pton" = "yes"; then
28762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
28763 $as_echo_n "checking if inet_pton seems to work... " >&6; }
28764 if test "$cross_compiling" = yes; then :
28765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28767 as_fn_error $? "cannot run test program while cross compiling
28768 See \`config.log' for more details" "$LINENO" 5 ; }
28770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28771 /* end confdefs.h. */
28774 $curl_includes_stdlib
28775 $curl_includes_arpa_inet
28776 $curl_includes_string
28781 unsigned char ipv6a[16+1];
28782 unsigned char ipv4a[4+1];
28783 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
28784 const char *ipv4src = "192.168.100.1";
28786 memset(ipv4a, 1, sizeof(ipv4a));
28787 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
28788 exit(1); /* fail */
28790 if( (ipv4a[0] != 0xc0) ||
28791 (ipv4a[1] != 0xa8) ||
28792 (ipv4a[2] != 0x64) ||
28793 (ipv4a[3] != 0x01) ||
28794 (ipv4a[4] != 0x01) )
28795 exit(1); /* fail */
28797 memset(ipv6a, 1, sizeof(ipv6a));
28798 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
28799 exit(1); /* fail */
28801 if( (ipv6a[0] != 0xfe) ||
28802 (ipv6a[1] != 0x80) ||
28803 (ipv6a[8] != 0x02) ||
28804 (ipv6a[9] != 0x14) ||
28805 (ipv6a[10] != 0x4f) ||
28806 (ipv6a[11] != 0xff) ||
28807 (ipv6a[12] != 0xfe) ||
28808 (ipv6a[13] != 0x0b) ||
28809 (ipv6a[14] != 0x76) ||
28810 (ipv6a[15] != 0xc8) ||
28811 (ipv6a[16] != 0x01) )
28812 exit(1); /* fail */
28814 if( (ipv6a[2] != 0x0) ||
28815 (ipv6a[3] != 0x0) ||
28816 (ipv6a[4] != 0x0) ||
28817 (ipv6a[5] != 0x0) ||
28818 (ipv6a[6] != 0x0) ||
28819 (ipv6a[7] != 0x0) )
28820 exit(1); /* fail */
28829 if ac_fn_c_try_run "$LINENO"; then :
28831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28832 $as_echo "yes" >&6; }
28833 tst_works_inet_pton="yes"
28837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28838 $as_echo "no" >&6; }
28839 tst_works_inet_pton="no"
28842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28843 conftest.$ac_objext conftest.beam conftest.$ac_ext
28848 if test "$tst_compi_inet_pton" = "yes" &&
28849 test "$tst_works_inet_pton" != "no"; then
28850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
28851 $as_echo_n "checking if inet_pton usage allowed... " >&6; }
28852 if test "x$curl_disallow_inet_pton" != "xyes"; then
28853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28854 $as_echo "yes" >&6; }
28855 tst_allow_inet_pton="yes"
28857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28858 $as_echo "no" >&6; }
28859 tst_allow_inet_pton="no"
28863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
28864 $as_echo_n "checking if inet_pton might be used... " >&6; }
28865 if test "$tst_links_inet_pton" = "yes" &&
28866 test "$tst_proto_inet_pton" = "yes" &&
28867 test "$tst_compi_inet_pton" = "yes" &&
28868 test "$tst_allow_inet_pton" = "yes" &&
28869 test "$tst_works_inet_pton" != "no"; then
28870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28871 $as_echo "yes" >&6; }
28873 cat >>confdefs.h <<_ACEOF
28874 #define HAVE_INET_PTON 1
28877 ac_cv_func_inet_pton="yes"
28879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28880 $as_echo "no" >&6; }
28881 ac_cv_func_inet_pton="no"
28885 curl_includes_stropts="\
28886 /* includes start */
28887 #ifdef HAVE_SYS_TYPES_H
28888 # include <sys/types.h>
28890 #ifdef HAVE_UNISTD_H
28891 # include <unistd.h>
28893 #ifdef HAVE_SYS_SOCKET_H
28894 # include <sys/socket.h>
28896 #ifdef HAVE_SYS_IOCTL_H
28897 # include <sys/ioctl.h>
28899 #ifdef HAVE_STROPTS_H
28900 # include <stropts.h>
28902 /* includes end */"
28903 for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
28905 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28906 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
28908 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28909 cat >>confdefs.h <<_ACEOF
28910 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28920 tst_links_ioctl="unknown"
28921 tst_proto_ioctl="unknown"
28922 tst_compi_ioctl="unknown"
28923 tst_allow_ioctl="unknown"
28925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
28926 $as_echo_n "checking if ioctl can be linked... " >&6; }
28927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28928 /* end confdefs.h. */
28931 #define ioctl innocuous_ioctl
28933 # include <limits.h>
28935 # include <assert.h>
28942 #if defined __stub_ioctl || defined __stub___ioctl
28954 if ac_fn_c_try_link "$LINENO"; then :
28956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28957 $as_echo "yes" >&6; }
28958 tst_links_ioctl="yes"
28962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28963 $as_echo "no" >&6; }
28964 tst_links_ioctl="no"
28967 rm -f core conftest.err conftest.$ac_objext \
28968 conftest$ac_exeext conftest.$ac_ext
28970 if test "$tst_links_ioctl" = "yes"; then
28971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
28972 $as_echo_n "checking if ioctl is prototyped... " >&6; }
28973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28974 /* end confdefs.h. */
28976 $curl_includes_stropts
28979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28980 $EGREP "ioctl" >/dev/null 2>&1; then :
28982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28983 $as_echo "yes" >&6; }
28984 tst_proto_ioctl="yes"
28988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28989 $as_echo "no" >&6; }
28990 tst_proto_ioctl="no"
28997 if test "$tst_proto_ioctl" = "yes"; then
28998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
28999 $as_echo_n "checking if ioctl is compilable... " >&6; }
29000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29001 /* end confdefs.h. */
29004 $curl_includes_stropts
29009 if(0 != ioctl(0, 0, 0))
29017 if ac_fn_c_try_compile "$LINENO"; then :
29019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29020 $as_echo "yes" >&6; }
29021 tst_compi_ioctl="yes"
29025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29026 $as_echo "no" >&6; }
29027 tst_compi_ioctl="no"
29030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29033 if test "$tst_compi_ioctl" = "yes"; then
29034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
29035 $as_echo_n "checking if ioctl usage allowed... " >&6; }
29036 if test "x$curl_disallow_ioctl" != "xyes"; then
29037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29038 $as_echo "yes" >&6; }
29039 tst_allow_ioctl="yes"
29041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29042 $as_echo "no" >&6; }
29043 tst_allow_ioctl="no"
29047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
29048 $as_echo_n "checking if ioctl might be used... " >&6; }
29049 if test "$tst_links_ioctl" = "yes" &&
29050 test "$tst_proto_ioctl" = "yes" &&
29051 test "$tst_compi_ioctl" = "yes" &&
29052 test "$tst_allow_ioctl" = "yes"; then
29053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29054 $as_echo "yes" >&6; }
29056 cat >>confdefs.h <<_ACEOF
29057 #define HAVE_IOCTL 1
29060 ac_cv_func_ioctl="yes"
29063 tst_compi_ioctl_fionbio="unknown"
29064 tst_allow_ioctl_fionbio="unknown"
29066 if test "$ac_cv_func_ioctl" = "yes"; then
29067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
29068 $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
29069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29070 /* end confdefs.h. */
29073 $curl_includes_stropts
29079 if(0 != ioctl(0, FIONBIO, &flags))
29087 if ac_fn_c_try_compile "$LINENO"; then :
29089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29090 $as_echo "yes" >&6; }
29091 tst_compi_ioctl_fionbio="yes"
29095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29096 $as_echo "no" >&6; }
29097 tst_compi_ioctl_fionbio="no"
29100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29103 if test "$tst_compi_ioctl_fionbio" = "yes"; then
29104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
29105 $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
29106 if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
29107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29108 $as_echo "yes" >&6; }
29109 tst_allow_ioctl_fionbio="yes"
29111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29112 $as_echo "no" >&6; }
29113 tst_allow_ioctl_fionbio="no"
29117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
29118 $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
29119 if test "$tst_compi_ioctl_fionbio" = "yes" &&
29120 test "$tst_allow_ioctl_fionbio" = "yes"; then
29121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29122 $as_echo "yes" >&6; }
29124 cat >>confdefs.h <<_ACEOF
29125 #define HAVE_IOCTL_FIONBIO 1
29128 ac_cv_func_ioctl_fionbio="yes"
29130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29131 $as_echo "no" >&6; }
29132 ac_cv_func_ioctl_fionbio="no"
29137 tst_compi_ioctl_siocgifaddr="unknown"
29138 tst_allow_ioctl_siocgifaddr="unknown"
29140 if test "$ac_cv_func_ioctl" = "yes"; then
29141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
29142 $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
29143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29144 /* end confdefs.h. */
29147 $curl_includes_stropts
29148 #include <net/if.h>
29154 if(0 != ioctl(0, SIOCGIFADDR, &ifr))
29162 if ac_fn_c_try_compile "$LINENO"; then :
29164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29165 $as_echo "yes" >&6; }
29166 tst_compi_ioctl_siocgifaddr="yes"
29170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29171 $as_echo "no" >&6; }
29172 tst_compi_ioctl_siocgifaddr="no"
29175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29178 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
29179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
29180 $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
29181 if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
29182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29183 $as_echo "yes" >&6; }
29184 tst_allow_ioctl_siocgifaddr="yes"
29186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29187 $as_echo "no" >&6; }
29188 tst_allow_ioctl_siocgifaddr="no"
29192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
29193 $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
29194 if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
29195 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
29196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29197 $as_echo "yes" >&6; }
29199 cat >>confdefs.h <<_ACEOF
29200 #define HAVE_IOCTL_SIOCGIFADDR 1
29203 ac_cv_func_ioctl_siocgifaddr="yes"
29205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29206 $as_echo "no" >&6; }
29207 ac_cv_func_ioctl_siocgifaddr="no"
29211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29212 $as_echo "no" >&6; }
29213 ac_cv_func_ioctl="no"
29218 tst_links_ioctlsocket="unknown"
29219 tst_proto_ioctlsocket="unknown"
29220 tst_compi_ioctlsocket="unknown"
29221 tst_allow_ioctlsocket="unknown"
29223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
29224 $as_echo_n "checking if ioctlsocket can be linked... " >&6; }
29225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29226 /* end confdefs.h. */
29229 $curl_includes_winsock2
29234 if(0 != ioctlsocket(0, 0, 0))
29242 if ac_fn_c_try_link "$LINENO"; then :
29244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29245 $as_echo "yes" >&6; }
29246 tst_links_ioctlsocket="yes"
29250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29251 $as_echo "no" >&6; }
29252 tst_links_ioctlsocket="no"
29255 rm -f core conftest.err conftest.$ac_objext \
29256 conftest$ac_exeext conftest.$ac_ext
29258 if test "$tst_links_ioctlsocket" = "yes"; then
29259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
29260 $as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
29261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29262 /* end confdefs.h. */
29264 $curl_includes_winsock2
29267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29268 $EGREP "ioctlsocket" >/dev/null 2>&1; then :
29270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29271 $as_echo "yes" >&6; }
29272 tst_proto_ioctlsocket="yes"
29276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29277 $as_echo "no" >&6; }
29278 tst_proto_ioctlsocket="no"
29285 if test "$tst_proto_ioctlsocket" = "yes"; then
29286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
29287 $as_echo_n "checking if ioctlsocket is compilable... " >&6; }
29288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29289 /* end confdefs.h. */
29292 $curl_includes_winsock2
29297 if(0 != ioctlsocket(0, 0, 0))
29305 if ac_fn_c_try_compile "$LINENO"; then :
29307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29308 $as_echo "yes" >&6; }
29309 tst_compi_ioctlsocket="yes"
29313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29314 $as_echo "no" >&6; }
29315 tst_compi_ioctlsocket="no"
29318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29321 if test "$tst_compi_ioctlsocket" = "yes"; then
29322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
29323 $as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
29324 if test "x$curl_disallow_ioctlsocket" != "xyes"; then
29325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29326 $as_echo "yes" >&6; }
29327 tst_allow_ioctlsocket="yes"
29329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29330 $as_echo "no" >&6; }
29331 tst_allow_ioctlsocket="no"
29335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
29336 $as_echo_n "checking if ioctlsocket might be used... " >&6; }
29337 if test "$tst_links_ioctlsocket" = "yes" &&
29338 test "$tst_proto_ioctlsocket" = "yes" &&
29339 test "$tst_compi_ioctlsocket" = "yes" &&
29340 test "$tst_allow_ioctlsocket" = "yes"; then
29341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29342 $as_echo "yes" >&6; }
29344 cat >>confdefs.h <<_ACEOF
29345 #define HAVE_IOCTLSOCKET 1
29348 ac_cv_func_ioctlsocket="yes"
29351 tst_compi_ioctlsocket_fionbio="unknown"
29352 tst_allow_ioctlsocket_fionbio="unknown"
29354 if test "$ac_cv_func_ioctlsocket" = "yes"; then
29355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
29356 $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
29357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29358 /* end confdefs.h. */
29361 $curl_includes_winsock2
29367 if(0 != ioctlsocket(0, FIONBIO, &flags))
29375 if ac_fn_c_try_compile "$LINENO"; then :
29377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29378 $as_echo "yes" >&6; }
29379 tst_compi_ioctlsocket_fionbio="yes"
29383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29384 $as_echo "no" >&6; }
29385 tst_compi_ioctlsocket_fionbio="no"
29388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29391 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
29392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
29393 $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
29394 if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
29395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29396 $as_echo "yes" >&6; }
29397 tst_allow_ioctlsocket_fionbio="yes"
29399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29400 $as_echo "no" >&6; }
29401 tst_allow_ioctlsocket_fionbio="no"
29405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
29406 $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
29407 if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
29408 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
29409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29410 $as_echo "yes" >&6; }
29412 cat >>confdefs.h <<_ACEOF
29413 #define HAVE_IOCTLSOCKET_FIONBIO 1
29416 ac_cv_func_ioctlsocket_fionbio="yes"
29418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29419 $as_echo "no" >&6; }
29420 ac_cv_func_ioctlsocket_fionbio="no"
29424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29425 $as_echo "no" >&6; }
29426 ac_cv_func_ioctlsocket="no"
29431 tst_links_ioctlsocket_camel="unknown"
29432 tst_proto_ioctlsocket_camel="unknown"
29433 tst_compi_ioctlsocket_camel="unknown"
29434 tst_allow_ioctlsocket_camel="unknown"
29436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
29437 $as_echo_n "checking if IoctlSocket can be linked... " >&6; }
29438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29439 /* end confdefs.h. */
29442 #define IoctlSocket innocuous_IoctlSocket
29444 # include <limits.h>
29446 # include <assert.h>
29452 char IoctlSocket ();
29453 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
29459 return IoctlSocket ();
29465 if ac_fn_c_try_link "$LINENO"; then :
29467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29468 $as_echo "yes" >&6; }
29469 tst_links_ioctlsocket_camel="yes"
29473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29474 $as_echo "no" >&6; }
29475 tst_links_ioctlsocket_camel="no"
29478 rm -f core conftest.err conftest.$ac_objext \
29479 conftest$ac_exeext conftest.$ac_ext
29481 if test "$tst_links_ioctlsocket_camel" = "yes"; then
29482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
29483 $as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
29484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29485 /* end confdefs.h. */
29487 $curl_includes_stropts
29490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29491 $EGREP "IoctlSocket" >/dev/null 2>&1; then :
29493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29494 $as_echo "yes" >&6; }
29495 tst_proto_ioctlsocket_camel="yes"
29499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29500 $as_echo "no" >&6; }
29501 tst_proto_ioctlsocket_camel="no"
29508 if test "$tst_proto_ioctlsocket_camel" = "yes"; then
29509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
29510 $as_echo_n "checking if IoctlSocket is compilable... " >&6; }
29511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29512 /* end confdefs.h. */
29515 $curl_includes_stropts
29520 if(0 != IoctlSocket(0, 0, 0))
29528 if ac_fn_c_try_compile "$LINENO"; then :
29530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29531 $as_echo "yes" >&6; }
29532 tst_compi_ioctlsocket_camel="yes"
29536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29537 $as_echo "no" >&6; }
29538 tst_compi_ioctlsocket_camel="no"
29541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29544 if test "$tst_compi_ioctlsocket_camel" = "yes"; then
29545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
29546 $as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
29547 if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
29548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29549 $as_echo "yes" >&6; }
29550 tst_allow_ioctlsocket_camel="yes"
29552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29553 $as_echo "no" >&6; }
29554 tst_allow_ioctlsocket_camel="no"
29558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
29559 $as_echo_n "checking if IoctlSocket might be used... " >&6; }
29560 if test "$tst_links_ioctlsocket_camel" = "yes" &&
29561 test "$tst_proto_ioctlsocket_camel" = "yes" &&
29562 test "$tst_compi_ioctlsocket_camel" = "yes" &&
29563 test "$tst_allow_ioctlsocket_camel" = "yes"; then
29564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29565 $as_echo "yes" >&6; }
29567 cat >>confdefs.h <<_ACEOF
29568 #define HAVE_IOCTLSOCKET_CAMEL 1
29571 ac_cv_func_ioctlsocket_camel="yes"
29574 tst_compi_ioctlsocket_camel_fionbio="unknown"
29575 tst_allow_ioctlsocket_camel_fionbio="unknown"
29577 if test "$ac_cv_func_ioctlsocket_camel" = "yes"; then
29578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
29579 $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
29580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29581 /* end confdefs.h. */
29584 $curl_includes_stropts
29590 if(0 != ioctlsocket(0, FIONBIO, &flags))
29598 if ac_fn_c_try_compile "$LINENO"; then :
29600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29601 $as_echo "yes" >&6; }
29602 tst_compi_ioctlsocket_camel_fionbio="yes"
29606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29607 $as_echo "no" >&6; }
29608 tst_compi_ioctlsocket_camel_fionbio="no"
29611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29614 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
29615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
29616 $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
29617 if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
29618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29619 $as_echo "yes" >&6; }
29620 tst_allow_ioctlsocket_camel_fionbio="yes"
29622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29623 $as_echo "no" >&6; }
29624 tst_allow_ioctlsocket_camel_fionbio="no"
29628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
29629 $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
29630 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
29631 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
29632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29633 $as_echo "yes" >&6; }
29635 cat >>confdefs.h <<_ACEOF
29636 #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
29639 ac_cv_func_ioctlsocket_camel_fionbio="yes"
29641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29642 $as_echo "no" >&6; }
29643 ac_cv_func_ioctlsocket_camel_fionbio="no"
29647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29648 $as_echo "no" >&6; }
29649 ac_cv_func_ioctlsocket_camel="no"
29654 tst_links_localtime_r="unknown"
29655 tst_proto_localtime_r="unknown"
29656 tst_compi_localtime_r="unknown"
29657 tst_works_localtime_r="unknown"
29658 tst_allow_localtime_r="unknown"
29660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
29661 $as_echo_n "checking if localtime_r can be linked... " >&6; }
29662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29663 /* end confdefs.h. */
29666 #define localtime_r innocuous_localtime_r
29668 # include <limits.h>
29670 # include <assert.h>
29676 char localtime_r ();
29677 #if defined __stub_localtime_r || defined __stub___localtime_r
29683 return localtime_r ();
29689 if ac_fn_c_try_link "$LINENO"; then :
29691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29692 $as_echo "yes" >&6; }
29693 tst_links_localtime_r="yes"
29697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29698 $as_echo "no" >&6; }
29699 tst_links_localtime_r="no"
29702 rm -f core conftest.err conftest.$ac_objext \
29703 conftest$ac_exeext conftest.$ac_ext
29705 if test "$tst_links_localtime_r" = "yes"; then
29706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
29707 $as_echo_n "checking if localtime_r is prototyped... " >&6; }
29708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29709 /* end confdefs.h. */
29711 $curl_includes_time
29714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29715 $EGREP "localtime_r" >/dev/null 2>&1; then :
29717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29718 $as_echo "yes" >&6; }
29719 tst_proto_localtime_r="yes"
29723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29724 $as_echo "no" >&6; }
29725 tst_proto_localtime_r="no"
29732 if test "$tst_proto_localtime_r" = "yes"; then
29733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
29734 $as_echo_n "checking if localtime_r is compilable... " >&6; }
29735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29736 /* end confdefs.h. */
29739 $curl_includes_time
29744 if(0 != localtime_r(0, 0))
29752 if ac_fn_c_try_compile "$LINENO"; then :
29754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29755 $as_echo "yes" >&6; }
29756 tst_compi_localtime_r="yes"
29760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29761 $as_echo "no" >&6; }
29762 tst_compi_localtime_r="no"
29765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29768 if test "x$cross_compiling" != "xyes" &&
29769 test "$tst_compi_localtime_r" = "yes"; then
29770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
29771 $as_echo_n "checking if localtime_r seems to work... " >&6; }
29772 if test "$cross_compiling" = yes; then :
29773 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29775 as_fn_error $? "cannot run test program while cross compiling
29776 See \`config.log' for more details" "$LINENO" 5 ; }
29778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29779 /* end confdefs.h. */
29782 $curl_includes_stdlib
29783 $curl_includes_time
29788 time_t clock = 1170352587;
29789 struct tm *tmp = 0;
29791 tmp = localtime_r(&clock, &result);
29802 if ac_fn_c_try_run "$LINENO"; then :
29804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29805 $as_echo "yes" >&6; }
29806 tst_works_localtime_r="yes"
29810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29811 $as_echo "no" >&6; }
29812 tst_works_localtime_r="no"
29815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29816 conftest.$ac_objext conftest.beam conftest.$ac_ext
29821 if test "$tst_compi_localtime_r" = "yes" &&
29822 test "$tst_works_localtime_r" != "no"; then
29823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
29824 $as_echo_n "checking if localtime_r usage allowed... " >&6; }
29825 if test "x$curl_disallow_localtime_r" != "xyes"; then
29826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29827 $as_echo "yes" >&6; }
29828 tst_allow_localtime_r="yes"
29830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29831 $as_echo "no" >&6; }
29832 tst_allow_localtime_r="no"
29836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
29837 $as_echo_n "checking if localtime_r might be used... " >&6; }
29838 if test "$tst_links_localtime_r" = "yes" &&
29839 test "$tst_proto_localtime_r" = "yes" &&
29840 test "$tst_compi_localtime_r" = "yes" &&
29841 test "$tst_allow_localtime_r" = "yes" &&
29842 test "$tst_works_localtime_r" != "no"; then
29843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29844 $as_echo "yes" >&6; }
29846 cat >>confdefs.h <<_ACEOF
29847 #define HAVE_LOCALTIME_R 1
29850 ac_cv_func_localtime_r="yes"
29852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29853 $as_echo "no" >&6; }
29854 ac_cv_func_localtime_r="no"
29859 tst_links_memrchr="unknown"
29860 tst_macro_memrchr="unknown"
29861 tst_proto_memrchr="unknown"
29862 tst_compi_memrchr="unknown"
29863 tst_allow_memrchr="unknown"
29865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
29866 $as_echo_n "checking if memrchr can be linked... " >&6; }
29867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29868 /* end confdefs.h. */
29871 #define memrchr innocuous_memrchr
29873 # include <limits.h>
29875 # include <assert.h>
29882 #if defined __stub_memrchr || defined __stub___memrchr
29894 if ac_fn_c_try_link "$LINENO"; then :
29896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29897 $as_echo "yes" >&6; }
29898 tst_links_memrchr="yes"
29902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29903 $as_echo "no" >&6; }
29904 tst_links_memrchr="no"
29907 rm -f core conftest.err conftest.$ac_objext \
29908 conftest$ac_exeext conftest.$ac_ext
29910 if test "$tst_links_memrchr" = "no"; then
29911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
29912 $as_echo_n "checking if memrchr seems a macro... " >&6; }
29913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29914 /* end confdefs.h. */
29917 $curl_includes_string
29922 if(0 != memrchr(0, 0, 0))
29930 if ac_fn_c_try_link "$LINENO"; then :
29932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29933 $as_echo "yes" >&6; }
29934 tst_macro_memrchr="yes"
29938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29939 $as_echo "no" >&6; }
29940 tst_macro_memrchr="no"
29943 rm -f core conftest.err conftest.$ac_objext \
29944 conftest$ac_exeext conftest.$ac_ext
29947 if test "$tst_links_memrchr" = "yes"; then
29948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
29949 $as_echo_n "checking if memrchr is prototyped... " >&6; }
29950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29951 /* end confdefs.h. */
29953 $curl_includes_string
29956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29957 $EGREP "memrchr" >/dev/null 2>&1; then :
29959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29960 $as_echo "yes" >&6; }
29961 tst_proto_memrchr="yes"
29965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29966 $as_echo "no" >&6; }
29967 tst_proto_memrchr="no"
29974 if test "$tst_proto_memrchr" = "yes" ||
29975 test "$tst_macro_memrchr" = "yes"; then
29976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
29977 $as_echo_n "checking if memrchr is compilable... " >&6; }
29978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29979 /* end confdefs.h. */
29982 $curl_includes_string
29987 if(0 != memrchr(0, 0, 0))
29995 if ac_fn_c_try_compile "$LINENO"; then :
29997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29998 $as_echo "yes" >&6; }
29999 tst_compi_memrchr="yes"
30003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30004 $as_echo "no" >&6; }
30005 tst_compi_memrchr="no"
30008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30011 if test "$tst_compi_memrchr" = "yes"; then
30012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
30013 $as_echo_n "checking if memrchr usage allowed... " >&6; }
30014 if test "x$curl_disallow_memrchr" != "xyes"; then
30015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30016 $as_echo "yes" >&6; }
30017 tst_allow_memrchr="yes"
30019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30020 $as_echo "no" >&6; }
30021 tst_allow_memrchr="no"
30025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
30026 $as_echo_n "checking if memrchr might be used... " >&6; }
30027 if (test "$tst_proto_memrchr" = "yes" ||
30028 test "$tst_macro_memrchr" = "yes") &&
30029 test "$tst_compi_memrchr" = "yes" &&
30030 test "$tst_allow_memrchr" = "yes"; then
30031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30032 $as_echo "yes" >&6; }
30034 cat >>confdefs.h <<_ACEOF
30035 #define HAVE_MEMRCHR 1
30038 ac_cv_func_memrchr="yes"
30040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30041 $as_echo "no" >&6; }
30042 ac_cv_func_memrchr="no"
30046 curl_includes_poll="\
30047 /* includes start */
30048 #ifdef HAVE_SYS_TYPES_H
30049 # include <sys/types.h>
30054 #ifdef HAVE_SYS_POLL_H
30055 # include <sys/poll.h>
30057 /* includes end */"
30058 for ac_header in sys/types.h poll.h sys/poll.h
30060 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30061 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
30063 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30064 cat >>confdefs.h <<_ACEOF
30065 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30075 tst_links_poll="unknown"
30076 tst_proto_poll="unknown"
30077 tst_compi_poll="unknown"
30078 tst_works_poll="unknown"
30079 tst_allow_poll="unknown"
30083 curl_disallow_poll="yes"
30087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
30088 $as_echo_n "checking if poll can be linked... " >&6; }
30089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30090 /* end confdefs.h. */
30093 $curl_includes_poll
30098 if(0 != poll(0, 0, 0))
30106 if ac_fn_c_try_link "$LINENO"; then :
30108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30109 $as_echo "yes" >&6; }
30110 tst_links_poll="yes"
30114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30115 $as_echo "no" >&6; }
30116 tst_links_poll="no"
30119 rm -f core conftest.err conftest.$ac_objext \
30120 conftest$ac_exeext conftest.$ac_ext
30122 if test "$tst_links_poll" = "yes"; then
30123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
30124 $as_echo_n "checking if poll is prototyped... " >&6; }
30125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30126 /* end confdefs.h. */
30128 $curl_includes_poll
30131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30132 $EGREP "poll" >/dev/null 2>&1; then :
30134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30135 $as_echo "yes" >&6; }
30136 tst_proto_poll="yes"
30140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30141 $as_echo "no" >&6; }
30142 tst_proto_poll="no"
30149 if test "$tst_proto_poll" = "yes"; then
30150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
30151 $as_echo_n "checking if poll is compilable... " >&6; }
30152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30153 /* end confdefs.h. */
30156 $curl_includes_poll
30161 if(0 != poll(0, 0, 0))
30169 if ac_fn_c_try_compile "$LINENO"; then :
30171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30172 $as_echo "yes" >&6; }
30173 tst_compi_poll="yes"
30177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30178 $as_echo "no" >&6; }
30179 tst_compi_poll="no"
30182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30185 if test "x$cross_compiling" != "xyes" &&
30186 test "$tst_compi_poll" = "yes"; then
30187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
30188 $as_echo_n "checking if poll seems to work... " >&6; }
30189 if test "$cross_compiling" = yes; then :
30190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30192 as_fn_error $? "cannot run test program while cross compiling
30193 See \`config.log' for more details" "$LINENO" 5 ; }
30195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30196 /* end confdefs.h. */
30199 $curl_includes_stdlib
30200 $curl_includes_poll
30205 if(0 != poll(0, 0, 10))
30206 exit(1); /* fail */
30215 if ac_fn_c_try_run "$LINENO"; then :
30217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30218 $as_echo "yes" >&6; }
30219 tst_works_poll="yes"
30223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30224 $as_echo "no" >&6; }
30225 tst_works_poll="no"
30228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30229 conftest.$ac_objext conftest.beam conftest.$ac_ext
30234 if test "$tst_compi_poll" = "yes" &&
30235 test "$tst_works_poll" != "no"; then
30236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
30237 $as_echo_n "checking if poll usage allowed... " >&6; }
30238 if test "x$curl_disallow_poll" != "xyes"; then
30239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30240 $as_echo "yes" >&6; }
30241 tst_allow_poll="yes"
30243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30244 $as_echo "no" >&6; }
30245 tst_allow_poll="no"
30249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
30250 $as_echo_n "checking if poll might be used... " >&6; }
30251 if test "$tst_links_poll" = "yes" &&
30252 test "$tst_proto_poll" = "yes" &&
30253 test "$tst_compi_poll" = "yes" &&
30254 test "$tst_allow_poll" = "yes" &&
30255 test "$tst_works_poll" != "no"; then
30256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30257 $as_echo "yes" >&6; }
30259 cat >>confdefs.h <<_ACEOF
30260 #define HAVE_POLL 1
30264 cat >>confdefs.h <<_ACEOF
30265 #define HAVE_POLL_FINE 1
30268 ac_cv_func_poll="yes"
30270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30271 $as_echo "no" >&6; }
30272 ac_cv_func_poll="no"
30277 tst_links_setsockopt="unknown"
30278 tst_proto_setsockopt="unknown"
30279 tst_compi_setsockopt="unknown"
30280 tst_allow_setsockopt="unknown"
30282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
30283 $as_echo_n "checking if setsockopt can be linked... " >&6; }
30284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30285 /* end confdefs.h. */
30288 $curl_includes_winsock2
30289 $curl_includes_sys_socket
30294 if(0 != setsockopt(0, 0, 0, 0, 0))
30302 if ac_fn_c_try_link "$LINENO"; then :
30304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30305 $as_echo "yes" >&6; }
30306 tst_links_setsockopt="yes"
30310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30311 $as_echo "no" >&6; }
30312 tst_links_setsockopt="no"
30315 rm -f core conftest.err conftest.$ac_objext \
30316 conftest$ac_exeext conftest.$ac_ext
30318 if test "$tst_links_setsockopt" = "yes"; then
30319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
30320 $as_echo_n "checking if setsockopt is prototyped... " >&6; }
30321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30322 /* end confdefs.h. */
30324 $curl_includes_winsock2
30325 $curl_includes_sys_socket
30328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30329 $EGREP "setsockopt" >/dev/null 2>&1; then :
30331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30332 $as_echo "yes" >&6; }
30333 tst_proto_setsockopt="yes"
30337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30338 $as_echo "no" >&6; }
30339 tst_proto_setsockopt="no"
30346 if test "$tst_proto_setsockopt" = "yes"; then
30347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
30348 $as_echo_n "checking if setsockopt is compilable... " >&6; }
30349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30350 /* end confdefs.h. */
30353 $curl_includes_winsock2
30354 $curl_includes_sys_socket
30359 if(0 != setsockopt(0, 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_setsockopt="yes"
30375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30376 $as_echo "no" >&6; }
30377 tst_compi_setsockopt="no"
30380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30383 if test "$tst_compi_setsockopt" = "yes"; then
30384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
30385 $as_echo_n "checking if setsockopt usage allowed... " >&6; }
30386 if test "x$curl_disallow_setsockopt" != "xyes"; then
30387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30388 $as_echo "yes" >&6; }
30389 tst_allow_setsockopt="yes"
30391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30392 $as_echo "no" >&6; }
30393 tst_allow_setsockopt="no"
30397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
30398 $as_echo_n "checking if setsockopt might be used... " >&6; }
30399 if test "$tst_links_setsockopt" = "yes" &&
30400 test "$tst_proto_setsockopt" = "yes" &&
30401 test "$tst_compi_setsockopt" = "yes" &&
30402 test "$tst_allow_setsockopt" = "yes"; then
30403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30404 $as_echo "yes" >&6; }
30406 cat >>confdefs.h <<_ACEOF
30407 #define HAVE_SETSOCKOPT 1
30410 ac_cv_func_setsockopt="yes"
30413 tst_compi_setsockopt_so_nonblock="unknown"
30414 tst_allow_setsockopt_so_nonblock="unknown"
30416 if test "$ac_cv_func_setsockopt" = "yes"; then
30417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
30418 $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
30419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30420 /* end confdefs.h. */
30423 $curl_includes_winsock2
30424 $curl_includes_sys_socket
30429 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
30437 if ac_fn_c_try_compile "$LINENO"; then :
30439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30440 $as_echo "yes" >&6; }
30441 tst_compi_setsockopt_so_nonblock="yes"
30445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30446 $as_echo "no" >&6; }
30447 tst_compi_setsockopt_so_nonblock="no"
30450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30453 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
30454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
30455 $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
30456 if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
30457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30458 $as_echo "yes" >&6; }
30459 tst_allow_setsockopt_so_nonblock="yes"
30461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30462 $as_echo "no" >&6; }
30463 tst_allow_setsockopt_so_nonblock="no"
30467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
30468 $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
30469 if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
30470 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
30471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30472 $as_echo "yes" >&6; }
30474 cat >>confdefs.h <<_ACEOF
30475 #define HAVE_SETSOCKOPT_SO_NONBLOCK 1
30478 ac_cv_func_setsockopt_so_nonblock="yes"
30480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30481 $as_echo "no" >&6; }
30482 ac_cv_func_setsockopt_so_nonblock="no"
30486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30487 $as_echo "no" >&6; }
30488 ac_cv_func_setsockopt="no"
30492 curl_includes_signal="\
30493 /* includes start */
30494 #ifdef HAVE_SYS_TYPES_H
30495 # include <sys/types.h>
30497 #ifdef HAVE_SIGNAL_H
30498 # include <signal.h>
30500 /* includes end */"
30501 for ac_header in sys/types.h signal.h
30503 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30504 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
30506 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30507 cat >>confdefs.h <<_ACEOF
30508 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30518 tst_links_sigaction="unknown"
30519 tst_proto_sigaction="unknown"
30520 tst_compi_sigaction="unknown"
30521 tst_allow_sigaction="unknown"
30523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
30524 $as_echo_n "checking if sigaction can be linked... " >&6; }
30525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30526 /* end confdefs.h. */
30529 #define sigaction innocuous_sigaction
30531 # include <limits.h>
30533 # include <assert.h>
30540 #if defined __stub_sigaction || defined __stub___sigaction
30546 return sigaction ();
30552 if ac_fn_c_try_link "$LINENO"; then :
30554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30555 $as_echo "yes" >&6; }
30556 tst_links_sigaction="yes"
30560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30561 $as_echo "no" >&6; }
30562 tst_links_sigaction="no"
30565 rm -f core conftest.err conftest.$ac_objext \
30566 conftest$ac_exeext conftest.$ac_ext
30568 if test "$tst_links_sigaction" = "yes"; then
30569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
30570 $as_echo_n "checking if sigaction is prototyped... " >&6; }
30571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30572 /* end confdefs.h. */
30574 $curl_includes_signal
30577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30578 $EGREP "sigaction" >/dev/null 2>&1; then :
30580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30581 $as_echo "yes" >&6; }
30582 tst_proto_sigaction="yes"
30586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30587 $as_echo "no" >&6; }
30588 tst_proto_sigaction="no"
30595 if test "$tst_proto_sigaction" = "yes"; then
30596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
30597 $as_echo_n "checking if sigaction is compilable... " >&6; }
30598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30599 /* end confdefs.h. */
30602 $curl_includes_signal
30607 if(0 != sigaction(0, 0, 0))
30615 if ac_fn_c_try_compile "$LINENO"; then :
30617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30618 $as_echo "yes" >&6; }
30619 tst_compi_sigaction="yes"
30623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30624 $as_echo "no" >&6; }
30625 tst_compi_sigaction="no"
30628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30631 if test "$tst_compi_sigaction" = "yes"; then
30632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
30633 $as_echo_n "checking if sigaction usage allowed... " >&6; }
30634 if test "x$curl_disallow_sigaction" != "xyes"; then
30635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30636 $as_echo "yes" >&6; }
30637 tst_allow_sigaction="yes"
30639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30640 $as_echo "no" >&6; }
30641 tst_allow_sigaction="no"
30645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
30646 $as_echo_n "checking if sigaction might be used... " >&6; }
30647 if test "$tst_links_sigaction" = "yes" &&
30648 test "$tst_proto_sigaction" = "yes" &&
30649 test "$tst_compi_sigaction" = "yes" &&
30650 test "$tst_allow_sigaction" = "yes"; then
30651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30652 $as_echo "yes" >&6; }
30654 cat >>confdefs.h <<_ACEOF
30655 #define HAVE_SIGACTION 1
30658 ac_cv_func_sigaction="yes"
30660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30661 $as_echo "no" >&6; }
30662 ac_cv_func_sigaction="no"
30667 tst_links_siginterrupt="unknown"
30668 tst_proto_siginterrupt="unknown"
30669 tst_compi_siginterrupt="unknown"
30670 tst_allow_siginterrupt="unknown"
30672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
30673 $as_echo_n "checking if siginterrupt can be linked... " >&6; }
30674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30675 /* end confdefs.h. */
30678 #define siginterrupt innocuous_siginterrupt
30680 # include <limits.h>
30682 # include <assert.h>
30684 #undef siginterrupt
30688 char siginterrupt ();
30689 #if defined __stub_siginterrupt || defined __stub___siginterrupt
30695 return siginterrupt ();
30701 if ac_fn_c_try_link "$LINENO"; then :
30703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30704 $as_echo "yes" >&6; }
30705 tst_links_siginterrupt="yes"
30709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30710 $as_echo "no" >&6; }
30711 tst_links_siginterrupt="no"
30714 rm -f core conftest.err conftest.$ac_objext \
30715 conftest$ac_exeext conftest.$ac_ext
30717 if test "$tst_links_siginterrupt" = "yes"; then
30718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
30719 $as_echo_n "checking if siginterrupt is prototyped... " >&6; }
30720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30721 /* end confdefs.h. */
30723 $curl_includes_signal
30726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30727 $EGREP "siginterrupt" >/dev/null 2>&1; then :
30729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30730 $as_echo "yes" >&6; }
30731 tst_proto_siginterrupt="yes"
30735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30736 $as_echo "no" >&6; }
30737 tst_proto_siginterrupt="no"
30744 if test "$tst_proto_siginterrupt" = "yes"; then
30745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
30746 $as_echo_n "checking if siginterrupt is compilable... " >&6; }
30747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30748 /* end confdefs.h. */
30751 $curl_includes_signal
30756 if(0 != siginterrupt(0, 0))
30764 if ac_fn_c_try_compile "$LINENO"; then :
30766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30767 $as_echo "yes" >&6; }
30768 tst_compi_siginterrupt="yes"
30772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30773 $as_echo "no" >&6; }
30774 tst_compi_siginterrupt="no"
30777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30780 if test "$tst_compi_siginterrupt" = "yes"; then
30781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
30782 $as_echo_n "checking if siginterrupt usage allowed... " >&6; }
30783 if test "x$curl_disallow_siginterrupt" != "xyes"; then
30784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30785 $as_echo "yes" >&6; }
30786 tst_allow_siginterrupt="yes"
30788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30789 $as_echo "no" >&6; }
30790 tst_allow_siginterrupt="no"
30794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
30795 $as_echo_n "checking if siginterrupt might be used... " >&6; }
30796 if test "$tst_links_siginterrupt" = "yes" &&
30797 test "$tst_proto_siginterrupt" = "yes" &&
30798 test "$tst_compi_siginterrupt" = "yes" &&
30799 test "$tst_allow_siginterrupt" = "yes"; then
30800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30801 $as_echo "yes" >&6; }
30803 cat >>confdefs.h <<_ACEOF
30804 #define HAVE_SIGINTERRUPT 1
30807 ac_cv_func_siginterrupt="yes"
30809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30810 $as_echo "no" >&6; }
30811 ac_cv_func_siginterrupt="no"
30816 tst_links_signal="unknown"
30817 tst_proto_signal="unknown"
30818 tst_compi_signal="unknown"
30819 tst_allow_signal="unknown"
30821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
30822 $as_echo_n "checking if signal can be linked... " >&6; }
30823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30824 /* end confdefs.h. */
30827 #define signal innocuous_signal
30829 # include <limits.h>
30831 # include <assert.h>
30838 #if defined __stub_signal || defined __stub___signal
30850 if ac_fn_c_try_link "$LINENO"; then :
30852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30853 $as_echo "yes" >&6; }
30854 tst_links_signal="yes"
30858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30859 $as_echo "no" >&6; }
30860 tst_links_signal="no"
30863 rm -f core conftest.err conftest.$ac_objext \
30864 conftest$ac_exeext conftest.$ac_ext
30866 if test "$tst_links_signal" = "yes"; then
30867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
30868 $as_echo_n "checking if signal is prototyped... " >&6; }
30869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30870 /* end confdefs.h. */
30872 $curl_includes_signal
30875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30876 $EGREP "signal" >/dev/null 2>&1; then :
30878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30879 $as_echo "yes" >&6; }
30880 tst_proto_signal="yes"
30884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30885 $as_echo "no" >&6; }
30886 tst_proto_signal="no"
30893 if test "$tst_proto_signal" = "yes"; then
30894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
30895 $as_echo_n "checking if signal is compilable... " >&6; }
30896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30897 /* end confdefs.h. */
30900 $curl_includes_signal
30905 if(0 != signal(0, 0))
30913 if ac_fn_c_try_compile "$LINENO"; then :
30915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30916 $as_echo "yes" >&6; }
30917 tst_compi_signal="yes"
30921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30922 $as_echo "no" >&6; }
30923 tst_compi_signal="no"
30926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30929 if test "$tst_compi_signal" = "yes"; then
30930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
30931 $as_echo_n "checking if signal usage allowed... " >&6; }
30932 if test "x$curl_disallow_signal" != "xyes"; then
30933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30934 $as_echo "yes" >&6; }
30935 tst_allow_signal="yes"
30937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30938 $as_echo "no" >&6; }
30939 tst_allow_signal="no"
30943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
30944 $as_echo_n "checking if signal might be used... " >&6; }
30945 if test "$tst_links_signal" = "yes" &&
30946 test "$tst_proto_signal" = "yes" &&
30947 test "$tst_compi_signal" = "yes" &&
30948 test "$tst_allow_signal" = "yes"; then
30949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30950 $as_echo "yes" >&6; }
30952 cat >>confdefs.h <<_ACEOF
30953 #define HAVE_SIGNAL 1
30956 ac_cv_func_signal="yes"
30958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30959 $as_echo "no" >&6; }
30960 ac_cv_func_signal="no"
30964 curl_includes_setjmp="\
30965 /* includes start */
30966 #ifdef HAVE_SYS_TYPES_H
30967 # include <sys/types.h>
30969 #ifdef HAVE_SETJMP_H
30970 # include <setjmp.h>
30972 /* includes end */"
30973 for ac_header in sys/types.h setjmp.h
30975 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30976 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
30978 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30979 cat >>confdefs.h <<_ACEOF
30980 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30990 tst_links_sigsetjmp="unknown"
30991 tst_macro_sigsetjmp="unknown"
30992 tst_proto_sigsetjmp="unknown"
30993 tst_compi_sigsetjmp="unknown"
30994 tst_allow_sigsetjmp="unknown"
30996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
30997 $as_echo_n "checking if sigsetjmp can be linked... " >&6; }
30998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30999 /* end confdefs.h. */
31002 #define sigsetjmp innocuous_sigsetjmp
31004 # include <limits.h>
31006 # include <assert.h>
31013 #if defined __stub_sigsetjmp || defined __stub___sigsetjmp
31019 return sigsetjmp ();
31025 if ac_fn_c_try_link "$LINENO"; then :
31027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31028 $as_echo "yes" >&6; }
31029 tst_links_sigsetjmp="yes"
31033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31034 $as_echo "no" >&6; }
31035 tst_links_sigsetjmp="no"
31038 rm -f core conftest.err conftest.$ac_objext \
31039 conftest$ac_exeext conftest.$ac_ext
31041 if test "$tst_links_sigsetjmp" = "no"; then
31042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
31043 $as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
31044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31045 /* end confdefs.h. */
31048 $curl_includes_setjmp
31054 if(0 != sigsetjmp(env, 0))
31062 if ac_fn_c_try_link "$LINENO"; then :
31064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31065 $as_echo "yes" >&6; }
31066 tst_macro_sigsetjmp="yes"
31070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31071 $as_echo "no" >&6; }
31072 tst_macro_sigsetjmp="no"
31075 rm -f core conftest.err conftest.$ac_objext \
31076 conftest$ac_exeext conftest.$ac_ext
31079 if test "$tst_links_sigsetjmp" = "yes"; then
31080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
31081 $as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
31082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31083 /* end confdefs.h. */
31085 $curl_includes_setjmp
31088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31089 $EGREP "sigsetjmp" >/dev/null 2>&1; then :
31091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31092 $as_echo "yes" >&6; }
31093 tst_proto_sigsetjmp="yes"
31097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31098 $as_echo "no" >&6; }
31099 tst_proto_sigsetjmp="no"
31106 if test "$tst_proto_sigsetjmp" = "yes" ||
31107 test "$tst_macro_sigsetjmp" = "yes"; then
31108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
31109 $as_echo_n "checking if sigsetjmp is compilable... " >&6; }
31110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31111 /* end confdefs.h. */
31114 $curl_includes_setjmp
31120 if(0 != sigsetjmp(env, 0))
31128 if ac_fn_c_try_compile "$LINENO"; then :
31130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31131 $as_echo "yes" >&6; }
31132 tst_compi_sigsetjmp="yes"
31136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31137 $as_echo "no" >&6; }
31138 tst_compi_sigsetjmp="no"
31141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31144 if test "$tst_compi_sigsetjmp" = "yes"; then
31145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
31146 $as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
31147 if test "x$curl_disallow_sigsetjmp" != "xyes"; then
31148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31149 $as_echo "yes" >&6; }
31150 tst_allow_sigsetjmp="yes"
31152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31153 $as_echo "no" >&6; }
31154 tst_allow_sigsetjmp="no"
31158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
31159 $as_echo_n "checking if sigsetjmp might be used... " >&6; }
31160 if (test "$tst_proto_sigsetjmp" = "yes" ||
31161 test "$tst_macro_sigsetjmp" = "yes") &&
31162 test "$tst_compi_sigsetjmp" = "yes" &&
31163 test "$tst_allow_sigsetjmp" = "yes"; then
31164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31165 $as_echo "yes" >&6; }
31167 cat >>confdefs.h <<_ACEOF
31168 #define HAVE_SIGSETJMP 1
31171 ac_cv_func_sigsetjmp="yes"
31173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31174 $as_echo "no" >&6; }
31175 ac_cv_func_sigsetjmp="no"
31180 tst_links_socket="unknown"
31181 tst_proto_socket="unknown"
31182 tst_compi_socket="unknown"
31183 tst_allow_socket="unknown"
31185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
31186 $as_echo_n "checking if socket can be linked... " >&6; }
31187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31188 /* end confdefs.h. */
31191 $curl_includes_winsock2
31192 $curl_includes_sys_socket
31193 $curl_includes_socket
31198 if(0 != socket(0, 0, 0))
31206 if ac_fn_c_try_link "$LINENO"; then :
31208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31209 $as_echo "yes" >&6; }
31210 tst_links_socket="yes"
31214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31215 $as_echo "no" >&6; }
31216 tst_links_socket="no"
31219 rm -f core conftest.err conftest.$ac_objext \
31220 conftest$ac_exeext conftest.$ac_ext
31222 if test "$tst_links_socket" = "yes"; then
31223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
31224 $as_echo_n "checking if socket is prototyped... " >&6; }
31225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31226 /* end confdefs.h. */
31228 $curl_includes_winsock2
31229 $curl_includes_sys_socket
31230 $curl_includes_socket
31233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31234 $EGREP "socket" >/dev/null 2>&1; then :
31236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31237 $as_echo "yes" >&6; }
31238 tst_proto_socket="yes"
31242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31243 $as_echo "no" >&6; }
31244 tst_proto_socket="no"
31251 if test "$tst_proto_socket" = "yes"; then
31252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
31253 $as_echo_n "checking if socket is compilable... " >&6; }
31254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31255 /* end confdefs.h. */
31258 $curl_includes_winsock2
31259 $curl_includes_sys_socket
31260 $curl_includes_socket
31265 if(0 != socket(0, 0, 0))
31273 if ac_fn_c_try_compile "$LINENO"; then :
31275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31276 $as_echo "yes" >&6; }
31277 tst_compi_socket="yes"
31281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31282 $as_echo "no" >&6; }
31283 tst_compi_socket="no"
31286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31289 if test "$tst_compi_socket" = "yes"; then
31290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
31291 $as_echo_n "checking if socket usage allowed... " >&6; }
31292 if test "x$curl_disallow_socket" != "xyes"; then
31293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31294 $as_echo "yes" >&6; }
31295 tst_allow_socket="yes"
31297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31298 $as_echo "no" >&6; }
31299 tst_allow_socket="no"
31303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
31304 $as_echo_n "checking if socket might be used... " >&6; }
31305 if test "$tst_links_socket" = "yes" &&
31306 test "$tst_proto_socket" = "yes" &&
31307 test "$tst_compi_socket" = "yes" &&
31308 test "$tst_allow_socket" = "yes"; then
31309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31310 $as_echo "yes" >&6; }
31312 cat >>confdefs.h <<_ACEOF
31313 #define HAVE_SOCKET 1
31316 ac_cv_func_socket="yes"
31318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31319 $as_echo "no" >&6; }
31320 ac_cv_func_socket="no"
31325 tst_links_strcasecmp="unknown"
31326 tst_proto_strcasecmp="unknown"
31327 tst_compi_strcasecmp="unknown"
31328 tst_allow_strcasecmp="unknown"
31330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
31331 $as_echo_n "checking if strcasecmp can be linked... " >&6; }
31332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31333 /* end confdefs.h. */
31336 #define strcasecmp innocuous_strcasecmp
31338 # include <limits.h>
31340 # include <assert.h>
31346 char strcasecmp ();
31347 #if defined __stub_strcasecmp || defined __stub___strcasecmp
31353 return strcasecmp ();
31359 if ac_fn_c_try_link "$LINENO"; then :
31361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31362 $as_echo "yes" >&6; }
31363 tst_links_strcasecmp="yes"
31367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31368 $as_echo "no" >&6; }
31369 tst_links_strcasecmp="no"
31372 rm -f core conftest.err conftest.$ac_objext \
31373 conftest$ac_exeext conftest.$ac_ext
31375 if test "$tst_links_strcasecmp" = "yes"; then
31376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
31377 $as_echo_n "checking if strcasecmp is prototyped... " >&6; }
31378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31379 /* end confdefs.h. */
31381 $curl_includes_string
31384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31385 $EGREP "strcasecmp" >/dev/null 2>&1; then :
31387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31388 $as_echo "yes" >&6; }
31389 tst_proto_strcasecmp="yes"
31393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31394 $as_echo "no" >&6; }
31395 tst_proto_strcasecmp="no"
31402 if test "$tst_proto_strcasecmp" = "yes"; then
31403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
31404 $as_echo_n "checking if strcasecmp is compilable... " >&6; }
31405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31406 /* end confdefs.h. */
31409 $curl_includes_string
31414 if(0 != strcasecmp(0, 0))
31422 if ac_fn_c_try_compile "$LINENO"; then :
31424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31425 $as_echo "yes" >&6; }
31426 tst_compi_strcasecmp="yes"
31430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31431 $as_echo "no" >&6; }
31432 tst_compi_strcasecmp="no"
31435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31438 if test "$tst_compi_strcasecmp" = "yes"; then
31439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
31440 $as_echo_n "checking if strcasecmp usage allowed... " >&6; }
31441 if test "x$curl_disallow_strcasecmp" != "xyes"; then
31442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31443 $as_echo "yes" >&6; }
31444 tst_allow_strcasecmp="yes"
31446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31447 $as_echo "no" >&6; }
31448 tst_allow_strcasecmp="no"
31452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
31453 $as_echo_n "checking if strcasecmp might be used... " >&6; }
31454 if test "$tst_links_strcasecmp" = "yes" &&
31455 test "$tst_proto_strcasecmp" = "yes" &&
31456 test "$tst_compi_strcasecmp" = "yes" &&
31457 test "$tst_allow_strcasecmp" = "yes"; then
31458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31459 $as_echo "yes" >&6; }
31461 cat >>confdefs.h <<_ACEOF
31462 #define HAVE_STRCASECMP 1
31465 ac_cv_func_strcasecmp="yes"
31467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31468 $as_echo "no" >&6; }
31469 ac_cv_func_strcasecmp="no"
31474 tst_links_strcasestr="unknown"
31475 tst_proto_strcasestr="unknown"
31476 tst_compi_strcasestr="unknown"
31477 tst_allow_strcasestr="unknown"
31479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasestr can be linked" >&5
31480 $as_echo_n "checking if strcasestr can be linked... " >&6; }
31481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31482 /* end confdefs.h. */
31485 #define strcasestr innocuous_strcasestr
31487 # include <limits.h>
31489 # include <assert.h>
31495 char strcasestr ();
31496 #if defined __stub_strcasestr || defined __stub___strcasestr
31502 return strcasestr ();
31508 if ac_fn_c_try_link "$LINENO"; then :
31510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31511 $as_echo "yes" >&6; }
31512 tst_links_strcasestr="yes"
31516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31517 $as_echo "no" >&6; }
31518 tst_links_strcasestr="no"
31521 rm -f core conftest.err conftest.$ac_objext \
31522 conftest$ac_exeext conftest.$ac_ext
31524 if test "$tst_links_strcasestr" = "yes"; then
31525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasestr is prototyped" >&5
31526 $as_echo_n "checking if strcasestr is prototyped... " >&6; }
31527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31528 /* end confdefs.h. */
31530 $curl_includes_string
31533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31534 $EGREP "strcasestr" >/dev/null 2>&1; then :
31536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31537 $as_echo "yes" >&6; }
31538 tst_proto_strcasestr="yes"
31542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31543 $as_echo "no" >&6; }
31544 tst_proto_strcasestr="no"
31551 if test "$tst_proto_strcasestr" = "yes"; then
31552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasestr is compilable" >&5
31553 $as_echo_n "checking if strcasestr is compilable... " >&6; }
31554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31555 /* end confdefs.h. */
31558 $curl_includes_string
31563 if(0 != strcasestr(0, 0))
31571 if ac_fn_c_try_compile "$LINENO"; then :
31573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31574 $as_echo "yes" >&6; }
31575 tst_compi_strcasestr="yes"
31579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31580 $as_echo "no" >&6; }
31581 tst_compi_strcasestr="no"
31584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31587 if test "$tst_compi_strcasestr" = "yes"; then
31588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasestr usage allowed" >&5
31589 $as_echo_n "checking if strcasestr usage allowed... " >&6; }
31590 if test "x$curl_disallow_strcasestr" != "xyes"; then
31591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31592 $as_echo "yes" >&6; }
31593 tst_allow_strcasestr="yes"
31595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31596 $as_echo "no" >&6; }
31597 tst_allow_strcasestr="no"
31601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasestr might be used" >&5
31602 $as_echo_n "checking if strcasestr might be used... " >&6; }
31603 if test "$tst_links_strcasestr" = "yes" &&
31604 test "$tst_proto_strcasestr" = "yes" &&
31605 test "$tst_compi_strcasestr" = "yes" &&
31606 test "$tst_allow_strcasestr" = "yes"; then
31607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31608 $as_echo "yes" >&6; }
31610 cat >>confdefs.h <<_ACEOF
31611 #define HAVE_STRCASESTR 1
31614 ac_cv_func_strcasestr="yes"
31616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31617 $as_echo "no" >&6; }
31618 ac_cv_func_strcasestr="no"
31623 tst_links_strcmpi="unknown"
31624 tst_proto_strcmpi="unknown"
31625 tst_compi_strcmpi="unknown"
31626 tst_allow_strcmpi="unknown"
31628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
31629 $as_echo_n "checking if strcmpi can be linked... " >&6; }
31630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31631 /* end confdefs.h. */
31634 #define strcmpi innocuous_strcmpi
31636 # include <limits.h>
31638 # include <assert.h>
31645 #if defined __stub_strcmpi || defined __stub___strcmpi
31657 if ac_fn_c_try_link "$LINENO"; then :
31659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31660 $as_echo "yes" >&6; }
31661 tst_links_strcmpi="yes"
31665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31666 $as_echo "no" >&6; }
31667 tst_links_strcmpi="no"
31670 rm -f core conftest.err conftest.$ac_objext \
31671 conftest$ac_exeext conftest.$ac_ext
31673 if test "$tst_links_strcmpi" = "yes"; then
31674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
31675 $as_echo_n "checking if strcmpi is prototyped... " >&6; }
31676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31677 /* end confdefs.h. */
31679 $curl_includes_string
31682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31683 $EGREP "strcmpi" >/dev/null 2>&1; then :
31685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31686 $as_echo "yes" >&6; }
31687 tst_proto_strcmpi="yes"
31691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31692 $as_echo "no" >&6; }
31693 tst_proto_strcmpi="no"
31700 if test "$tst_proto_strcmpi" = "yes"; then
31701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
31702 $as_echo_n "checking if strcmpi is compilable... " >&6; }
31703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31704 /* end confdefs.h. */
31707 $curl_includes_string
31712 if(0 != strcmpi(0, 0))
31720 if ac_fn_c_try_compile "$LINENO"; then :
31722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31723 $as_echo "yes" >&6; }
31724 tst_compi_strcmpi="yes"
31728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31729 $as_echo "no" >&6; }
31730 tst_compi_strcmpi="no"
31733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31736 if test "$tst_compi_strcmpi" = "yes"; then
31737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
31738 $as_echo_n "checking if strcmpi usage allowed... " >&6; }
31739 if test "x$curl_disallow_strcmpi" != "xyes"; then
31740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31741 $as_echo "yes" >&6; }
31742 tst_allow_strcmpi="yes"
31744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31745 $as_echo "no" >&6; }
31746 tst_allow_strcmpi="no"
31750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
31751 $as_echo_n "checking if strcmpi might be used... " >&6; }
31752 if test "$tst_links_strcmpi" = "yes" &&
31753 test "$tst_proto_strcmpi" = "yes" &&
31754 test "$tst_compi_strcmpi" = "yes" &&
31755 test "$tst_allow_strcmpi" = "yes"; then
31756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31757 $as_echo "yes" >&6; }
31759 cat >>confdefs.h <<_ACEOF
31760 #define HAVE_STRCMPI 1
31763 ac_cv_func_strcmpi="yes"
31765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31766 $as_echo "no" >&6; }
31767 ac_cv_func_strcmpi="no"
31772 tst_links_strdup="unknown"
31773 tst_proto_strdup="unknown"
31774 tst_compi_strdup="unknown"
31775 tst_allow_strdup="unknown"
31777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
31778 $as_echo_n "checking if strdup can be linked... " >&6; }
31779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31780 /* end confdefs.h. */
31783 #define strdup innocuous_strdup
31785 # include <limits.h>
31787 # include <assert.h>
31794 #if defined __stub_strdup || defined __stub___strdup
31806 if ac_fn_c_try_link "$LINENO"; then :
31808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31809 $as_echo "yes" >&6; }
31810 tst_links_strdup="yes"
31814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31815 $as_echo "no" >&6; }
31816 tst_links_strdup="no"
31819 rm -f core conftest.err conftest.$ac_objext \
31820 conftest$ac_exeext conftest.$ac_ext
31822 if test "$tst_links_strdup" = "yes"; then
31823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
31824 $as_echo_n "checking if strdup is prototyped... " >&6; }
31825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31826 /* end confdefs.h. */
31828 $curl_includes_string
31831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31832 $EGREP "strdup" >/dev/null 2>&1; then :
31834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31835 $as_echo "yes" >&6; }
31836 tst_proto_strdup="yes"
31840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31841 $as_echo "no" >&6; }
31842 tst_proto_strdup="no"
31849 if test "$tst_proto_strdup" = "yes"; then
31850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
31851 $as_echo_n "checking if strdup is compilable... " >&6; }
31852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31853 /* end confdefs.h. */
31856 $curl_includes_string
31869 if ac_fn_c_try_compile "$LINENO"; then :
31871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31872 $as_echo "yes" >&6; }
31873 tst_compi_strdup="yes"
31877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31878 $as_echo "no" >&6; }
31879 tst_compi_strdup="no"
31882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31885 if test "$tst_compi_strdup" = "yes"; then
31886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
31887 $as_echo_n "checking if strdup usage allowed... " >&6; }
31888 if test "x$curl_disallow_strdup" != "xyes"; then
31889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31890 $as_echo "yes" >&6; }
31891 tst_allow_strdup="yes"
31893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31894 $as_echo "no" >&6; }
31895 tst_allow_strdup="no"
31899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
31900 $as_echo_n "checking if strdup might be used... " >&6; }
31901 if test "$tst_links_strdup" = "yes" &&
31902 test "$tst_proto_strdup" = "yes" &&
31903 test "$tst_compi_strdup" = "yes" &&
31904 test "$tst_allow_strdup" = "yes"; then
31905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31906 $as_echo "yes" >&6; }
31908 cat >>confdefs.h <<_ACEOF
31909 #define HAVE_STRDUP 1
31912 ac_cv_func_strdup="yes"
31914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31915 $as_echo "no" >&6; }
31916 ac_cv_func_strdup="no"
31921 tst_links_strerror_r="unknown"
31922 tst_proto_strerror_r="unknown"
31923 tst_compi_strerror_r="unknown"
31924 tst_glibc_strerror_r="unknown"
31925 tst_posix_strerror_r="unknown"
31926 tst_allow_strerror_r="unknown"
31927 tst_works_glibc_strerror_r="unknown"
31928 tst_works_posix_strerror_r="unknown"
31929 tst_glibc_strerror_r_type_arg3="unknown"
31930 tst_posix_strerror_r_type_arg3="unknown"
31932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
31933 $as_echo_n "checking if strerror_r can be linked... " >&6; }
31934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31935 /* end confdefs.h. */
31938 #define strerror_r innocuous_strerror_r
31940 # include <limits.h>
31942 # include <assert.h>
31948 char strerror_r ();
31949 #if defined __stub_strerror_r || defined __stub___strerror_r
31955 return strerror_r ();
31961 if ac_fn_c_try_link "$LINENO"; then :
31963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31964 $as_echo "yes" >&6; }
31965 tst_links_strerror_r="yes"
31969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31970 $as_echo "no" >&6; }
31971 tst_links_strerror_r="no"
31974 rm -f core conftest.err conftest.$ac_objext \
31975 conftest$ac_exeext conftest.$ac_ext
31977 if test "$tst_links_strerror_r" = "yes"; then
31978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
31979 $as_echo_n "checking if strerror_r is prototyped... " >&6; }
31980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31981 /* end confdefs.h. */
31983 $curl_includes_string
31986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31987 $EGREP "strerror_r" >/dev/null 2>&1; then :
31989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31990 $as_echo "yes" >&6; }
31991 tst_proto_strerror_r="yes"
31995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31996 $as_echo "no" >&6; }
31997 tst_proto_strerror_r="no"
32004 if test "$tst_proto_strerror_r" = "yes"; then
32005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
32006 $as_echo_n "checking if strerror_r is compilable... " >&6; }
32007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32008 /* end confdefs.h. */
32011 $curl_includes_string
32016 if(0 != strerror_r(0, 0, 0))
32024 if ac_fn_c_try_compile "$LINENO"; then :
32026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32027 $as_echo "yes" >&6; }
32028 tst_compi_strerror_r="yes"
32032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32033 $as_echo "no" >&6; }
32034 tst_compi_strerror_r="no"
32037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32040 if test "$tst_compi_strerror_r" = "yes"; then
32041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
32042 $as_echo_n "checking if strerror_r is glibc like... " >&6; }
32043 tst_glibc_strerror_r_type_arg3="unknown"
32044 for arg3 in 'size_t' 'int' 'unsigned int'; do
32045 if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
32046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32047 /* end confdefs.h. */
32050 $curl_includes_string
32055 char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
32056 if(0 != strerror_r(0, 0, 0))
32064 if ac_fn_c_try_compile "$LINENO"; then :
32066 tst_glibc_strerror_r_type_arg3="$arg3"
32069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32072 case "$tst_glibc_strerror_r_type_arg3" in
32074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32075 $as_echo "no" >&6; }
32076 tst_glibc_strerror_r="no"
32079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32080 $as_echo "yes" >&6; }
32081 tst_glibc_strerror_r="yes"
32086 if test "x$cross_compiling" != "xyes" &&
32087 test "$tst_glibc_strerror_r" = "yes"; then
32088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
32089 $as_echo_n "checking if strerror_r seems to work... " >&6; }
32090 if test "$cross_compiling" = yes; then :
32091 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32093 as_fn_error $? "cannot run test program while cross compiling
32094 See \`config.log' for more details" "$LINENO" 5 ; }
32096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32097 /* end confdefs.h. */
32100 $curl_includes_stdlib
32101 $curl_includes_string
32102 # include <errno.h>
32110 string = strerror_r(EACCES, buffer, sizeof(buffer));
32112 exit(1); /* fail */
32114 exit(1); /* fail */
32123 if ac_fn_c_try_run "$LINENO"; then :
32125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32126 $as_echo "yes" >&6; }
32127 tst_works_glibc_strerror_r="yes"
32131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32132 $as_echo "no" >&6; }
32133 tst_works_glibc_strerror_r="no"
32136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32137 conftest.$ac_objext conftest.beam conftest.$ac_ext
32142 if test "$tst_compi_strerror_r" = "yes" &&
32143 test "$tst_works_glibc_strerror_r" != "yes"; then
32144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
32145 $as_echo_n "checking if strerror_r is POSIX like... " >&6; }
32146 tst_posix_strerror_r_type_arg3="unknown"
32147 for arg3 in 'size_t' 'int' 'unsigned int'; do
32148 if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
32149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32150 /* end confdefs.h. */
32153 $curl_includes_string
32158 int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
32159 if(0 != strerror_r(0, 0, 0))
32167 if ac_fn_c_try_compile "$LINENO"; then :
32169 tst_posix_strerror_r_type_arg3="$arg3"
32172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32175 case "$tst_posix_strerror_r_type_arg3" in
32177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32178 $as_echo "no" >&6; }
32179 tst_posix_strerror_r="no"
32182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32183 $as_echo "yes" >&6; }
32184 tst_posix_strerror_r="yes"
32189 if test "x$cross_compiling" != "xyes" &&
32190 test "$tst_posix_strerror_r" = "yes"; then
32191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
32192 $as_echo_n "checking if strerror_r seems to work... " >&6; }
32193 if test "$cross_compiling" = yes; then :
32194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32196 as_fn_error $? "cannot run test program while cross compiling
32197 See \`config.log' for more details" "$LINENO" 5 ; }
32199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32200 /* end confdefs.h. */
32203 $curl_includes_stdlib
32204 $curl_includes_string
32205 # include <errno.h>
32213 error = strerror_r(EACCES, buffer, sizeof(buffer));
32215 exit(1); /* fail */
32216 if(buffer[0] == '\0')
32217 exit(1); /* fail */
32226 if ac_fn_c_try_run "$LINENO"; then :
32228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32229 $as_echo "yes" >&6; }
32230 tst_works_posix_strerror_r="yes"
32234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32235 $as_echo "no" >&6; }
32236 tst_works_posix_strerror_r="no"
32239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32240 conftest.$ac_objext conftest.beam conftest.$ac_ext
32245 if test "$tst_works_glibc_strerror_r" = "yes"; then
32246 tst_posix_strerror_r="no"
32248 if test "$tst_works_posix_strerror_r" = "yes"; then
32249 tst_glibc_strerror_r="no"
32251 if test "$tst_glibc_strerror_r" = "yes" &&
32252 test "$tst_works_glibc_strerror_r" != "no" &&
32253 test "$tst_posix_strerror_r" != "yes"; then
32254 tst_allow_strerror_r="check"
32256 if test "$tst_posix_strerror_r" = "yes" &&
32257 test "$tst_works_posix_strerror_r" != "no" &&
32258 test "$tst_glibc_strerror_r" != "yes"; then
32259 tst_allow_strerror_r="check"
32261 if test "$tst_allow_strerror_r" = "check"; then
32262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
32263 $as_echo_n "checking if strerror_r usage allowed... " >&6; }
32264 if test "x$curl_disallow_strerror_r" != "xyes"; then
32265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32266 $as_echo "yes" >&6; }
32267 tst_allow_strerror_r="yes"
32269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32270 $as_echo "no" >&6; }
32271 tst_allow_strerror_r="no"
32275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
32276 $as_echo_n "checking if strerror_r might be used... " >&6; }
32277 if test "$tst_links_strerror_r" = "yes" &&
32278 test "$tst_proto_strerror_r" = "yes" &&
32279 test "$tst_compi_strerror_r" = "yes" &&
32280 test "$tst_allow_strerror_r" = "yes"; then
32281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32282 $as_echo "yes" >&6; }
32283 if test "$tst_glibc_strerror_r" = "yes"; then
32285 cat >>confdefs.h <<_ACEOF
32286 #define HAVE_STRERROR_R 1
32290 cat >>confdefs.h <<_ACEOF
32291 #define HAVE_GLIBC_STRERROR_R 1
32295 cat >>confdefs.h <<_ACEOF
32296 #define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
32300 if test "$tst_posix_strerror_r" = "yes"; then
32302 cat >>confdefs.h <<_ACEOF
32303 #define HAVE_STRERROR_R 1
32307 cat >>confdefs.h <<_ACEOF
32308 #define HAVE_POSIX_STRERROR_R 1
32312 cat >>confdefs.h <<_ACEOF
32313 #define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
32317 ac_cv_func_strerror_r="yes"
32319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32320 $as_echo "no" >&6; }
32321 ac_cv_func_strerror_r="no"
32324 if test "$tst_compi_strerror_r" = "yes" &&
32325 test "$tst_allow_strerror_r" = "unknown"; then
32326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
32327 $as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
32333 tst_links_stricmp="unknown"
32334 tst_proto_stricmp="unknown"
32335 tst_compi_stricmp="unknown"
32336 tst_allow_stricmp="unknown"
32338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
32339 $as_echo_n "checking if stricmp can be linked... " >&6; }
32340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32341 /* end confdefs.h. */
32344 #define stricmp innocuous_stricmp
32346 # include <limits.h>
32348 # include <assert.h>
32355 #if defined __stub_stricmp || defined __stub___stricmp
32367 if ac_fn_c_try_link "$LINENO"; then :
32369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32370 $as_echo "yes" >&6; }
32371 tst_links_stricmp="yes"
32375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32376 $as_echo "no" >&6; }
32377 tst_links_stricmp="no"
32380 rm -f core conftest.err conftest.$ac_objext \
32381 conftest$ac_exeext conftest.$ac_ext
32383 if test "$tst_links_stricmp" = "yes"; then
32384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
32385 $as_echo_n "checking if stricmp is prototyped... " >&6; }
32386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32387 /* end confdefs.h. */
32389 $curl_includes_string
32392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32393 $EGREP "stricmp" >/dev/null 2>&1; then :
32395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32396 $as_echo "yes" >&6; }
32397 tst_proto_stricmp="yes"
32401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32402 $as_echo "no" >&6; }
32403 tst_proto_stricmp="no"
32410 if test "$tst_proto_stricmp" = "yes"; then
32411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
32412 $as_echo_n "checking if stricmp is compilable... " >&6; }
32413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32414 /* end confdefs.h. */
32417 $curl_includes_string
32422 if(0 != stricmp(0, 0))
32430 if ac_fn_c_try_compile "$LINENO"; then :
32432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32433 $as_echo "yes" >&6; }
32434 tst_compi_stricmp="yes"
32438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32439 $as_echo "no" >&6; }
32440 tst_compi_stricmp="no"
32443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32446 if test "$tst_compi_stricmp" = "yes"; then
32447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
32448 $as_echo_n "checking if stricmp usage allowed... " >&6; }
32449 if test "x$curl_disallow_stricmp" != "xyes"; then
32450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32451 $as_echo "yes" >&6; }
32452 tst_allow_stricmp="yes"
32454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32455 $as_echo "no" >&6; }
32456 tst_allow_stricmp="no"
32460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
32461 $as_echo_n "checking if stricmp might be used... " >&6; }
32462 if test "$tst_links_stricmp" = "yes" &&
32463 test "$tst_proto_stricmp" = "yes" &&
32464 test "$tst_compi_stricmp" = "yes" &&
32465 test "$tst_allow_stricmp" = "yes"; then
32466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32467 $as_echo "yes" >&6; }
32469 cat >>confdefs.h <<_ACEOF
32470 #define HAVE_STRICMP 1
32473 ac_cv_func_stricmp="yes"
32475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32476 $as_echo "no" >&6; }
32477 ac_cv_func_stricmp="no"
32482 tst_links_strlcat="unknown"
32483 tst_proto_strlcat="unknown"
32484 tst_compi_strlcat="unknown"
32485 tst_allow_strlcat="unknown"
32487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strlcat can be linked" >&5
32488 $as_echo_n "checking if strlcat can be linked... " >&6; }
32489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32490 /* end confdefs.h. */
32493 #define strlcat innocuous_strlcat
32495 # include <limits.h>
32497 # include <assert.h>
32504 #if defined __stub_strlcat || defined __stub___strlcat
32516 if ac_fn_c_try_link "$LINENO"; then :
32518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32519 $as_echo "yes" >&6; }
32520 tst_links_strlcat="yes"
32524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32525 $as_echo "no" >&6; }
32526 tst_links_strlcat="no"
32529 rm -f core conftest.err conftest.$ac_objext \
32530 conftest$ac_exeext conftest.$ac_ext
32532 if test "$tst_links_strlcat" = "yes"; then
32533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strlcat is prototyped" >&5
32534 $as_echo_n "checking if strlcat is prototyped... " >&6; }
32535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32536 /* end confdefs.h. */
32538 $curl_includes_string
32541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32542 $EGREP "strlcat" >/dev/null 2>&1; then :
32544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32545 $as_echo "yes" >&6; }
32546 tst_proto_strlcat="yes"
32550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32551 $as_echo "no" >&6; }
32552 tst_proto_strlcat="no"
32559 if test "$tst_proto_strlcat" = "yes"; then
32560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strlcat is compilable" >&5
32561 $as_echo_n "checking if strlcat is compilable... " >&6; }
32562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32563 /* end confdefs.h. */
32566 $curl_includes_string
32571 if(0 != strlcat(0, 0, 0))
32579 if ac_fn_c_try_compile "$LINENO"; then :
32581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32582 $as_echo "yes" >&6; }
32583 tst_compi_strlcat="yes"
32587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32588 $as_echo "no" >&6; }
32589 tst_compi_strlcat="no"
32592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32595 if test "$tst_compi_strlcat" = "yes"; then
32596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strlcat usage allowed" >&5
32597 $as_echo_n "checking if strlcat usage allowed... " >&6; }
32598 if test "x$curl_disallow_strlcat" != "xyes"; then
32599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32600 $as_echo "yes" >&6; }
32601 tst_allow_strlcat="yes"
32603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32604 $as_echo "no" >&6; }
32605 tst_allow_strlcat="no"
32609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strlcat might be used" >&5
32610 $as_echo_n "checking if strlcat might be used... " >&6; }
32611 if test "$tst_links_strlcat" = "yes" &&
32612 test "$tst_proto_strlcat" = "yes" &&
32613 test "$tst_compi_strlcat" = "yes" &&
32614 test "$tst_allow_strlcat" = "yes"; then
32615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32616 $as_echo "yes" >&6; }
32618 cat >>confdefs.h <<_ACEOF
32619 #define HAVE_STRLCAT 1
32622 ac_cv_func_strlcat="yes"
32624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32625 $as_echo "no" >&6; }
32626 ac_cv_func_strlcat="no"
32631 tst_links_strncasecmp="unknown"
32632 tst_proto_strncasecmp="unknown"
32633 tst_compi_strncasecmp="unknown"
32634 tst_allow_strncasecmp="unknown"
32636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
32637 $as_echo_n "checking if strncasecmp can be linked... " >&6; }
32638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32639 /* end confdefs.h. */
32642 #define strncasecmp innocuous_strncasecmp
32644 # include <limits.h>
32646 # include <assert.h>
32652 char strncasecmp ();
32653 #if defined __stub_strncasecmp || defined __stub___strncasecmp
32659 return strncasecmp ();
32665 if ac_fn_c_try_link "$LINENO"; then :
32667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32668 $as_echo "yes" >&6; }
32669 tst_links_strncasecmp="yes"
32673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32674 $as_echo "no" >&6; }
32675 tst_links_strncasecmp="no"
32678 rm -f core conftest.err conftest.$ac_objext \
32679 conftest$ac_exeext conftest.$ac_ext
32681 if test "$tst_links_strncasecmp" = "yes"; then
32682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
32683 $as_echo_n "checking if strncasecmp is prototyped... " >&6; }
32684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32685 /* end confdefs.h. */
32687 $curl_includes_string
32690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32691 $EGREP "strncasecmp" >/dev/null 2>&1; then :
32693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32694 $as_echo "yes" >&6; }
32695 tst_proto_strncasecmp="yes"
32699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32700 $as_echo "no" >&6; }
32701 tst_proto_strncasecmp="no"
32708 if test "$tst_proto_strncasecmp" = "yes"; then
32709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
32710 $as_echo_n "checking if strncasecmp is compilable... " >&6; }
32711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32712 /* end confdefs.h. */
32715 $curl_includes_string
32720 if(0 != strncasecmp(0, 0, 0))
32728 if ac_fn_c_try_compile "$LINENO"; then :
32730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32731 $as_echo "yes" >&6; }
32732 tst_compi_strncasecmp="yes"
32736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32737 $as_echo "no" >&6; }
32738 tst_compi_strncasecmp="no"
32741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32744 if test "$tst_compi_strncasecmp" = "yes"; then
32745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
32746 $as_echo_n "checking if strncasecmp usage allowed... " >&6; }
32747 if test "x$curl_disallow_strncasecmp" != "xyes"; then
32748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32749 $as_echo "yes" >&6; }
32750 tst_allow_strncasecmp="yes"
32752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32753 $as_echo "no" >&6; }
32754 tst_allow_strncasecmp="no"
32758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
32759 $as_echo_n "checking if strncasecmp might be used... " >&6; }
32760 if test "$tst_links_strncasecmp" = "yes" &&
32761 test "$tst_proto_strncasecmp" = "yes" &&
32762 test "$tst_compi_strncasecmp" = "yes" &&
32763 test "$tst_allow_strncasecmp" = "yes"; then
32764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32765 $as_echo "yes" >&6; }
32767 cat >>confdefs.h <<_ACEOF
32768 #define HAVE_STRNCASECMP 1
32771 ac_cv_func_strncasecmp="yes"
32773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32774 $as_echo "no" >&6; }
32775 ac_cv_func_strncasecmp="no"
32780 tst_links_strncmpi="unknown"
32781 tst_proto_strncmpi="unknown"
32782 tst_compi_strncmpi="unknown"
32783 tst_allow_strncmpi="unknown"
32785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
32786 $as_echo_n "checking if strncmpi can be linked... " >&6; }
32787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32788 /* end confdefs.h. */
32791 #define strncmpi innocuous_strncmpi
32793 # include <limits.h>
32795 # include <assert.h>
32802 #if defined __stub_strncmpi || defined __stub___strncmpi
32808 return strncmpi ();
32814 if ac_fn_c_try_link "$LINENO"; then :
32816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32817 $as_echo "yes" >&6; }
32818 tst_links_strncmpi="yes"
32822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32823 $as_echo "no" >&6; }
32824 tst_links_strncmpi="no"
32827 rm -f core conftest.err conftest.$ac_objext \
32828 conftest$ac_exeext conftest.$ac_ext
32830 if test "$tst_links_strncmpi" = "yes"; then
32831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
32832 $as_echo_n "checking if strncmpi is prototyped... " >&6; }
32833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32834 /* end confdefs.h. */
32836 $curl_includes_string
32839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32840 $EGREP "strncmpi" >/dev/null 2>&1; then :
32842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32843 $as_echo "yes" >&6; }
32844 tst_proto_strncmpi="yes"
32848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32849 $as_echo "no" >&6; }
32850 tst_proto_strncmpi="no"
32857 if test "$tst_proto_strncmpi" = "yes"; then
32858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
32859 $as_echo_n "checking if strncmpi is compilable... " >&6; }
32860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32861 /* end confdefs.h. */
32864 $curl_includes_string
32869 if(0 != strncmpi(0, 0))
32877 if ac_fn_c_try_compile "$LINENO"; then :
32879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32880 $as_echo "yes" >&6; }
32881 tst_compi_strncmpi="yes"
32885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32886 $as_echo "no" >&6; }
32887 tst_compi_strncmpi="no"
32890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32893 if test "$tst_compi_strncmpi" = "yes"; then
32894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
32895 $as_echo_n "checking if strncmpi usage allowed... " >&6; }
32896 if test "x$curl_disallow_strncmpi" != "xyes"; then
32897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32898 $as_echo "yes" >&6; }
32899 tst_allow_strncmpi="yes"
32901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32902 $as_echo "no" >&6; }
32903 tst_allow_strncmpi="no"
32907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
32908 $as_echo_n "checking if strncmpi might be used... " >&6; }
32909 if test "$tst_links_strncmpi" = "yes" &&
32910 test "$tst_proto_strncmpi" = "yes" &&
32911 test "$tst_compi_strncmpi" = "yes" &&
32912 test "$tst_allow_strncmpi" = "yes"; then
32913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32914 $as_echo "yes" >&6; }
32916 cat >>confdefs.h <<_ACEOF
32917 #define HAVE_STRNCMPI 1
32920 ac_cv_func_strncmpi="yes"
32922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32923 $as_echo "no" >&6; }
32924 ac_cv_func_strncmpi="no"
32929 tst_links_strnicmp="unknown"
32930 tst_proto_strnicmp="unknown"
32931 tst_compi_strnicmp="unknown"
32932 tst_allow_strnicmp="unknown"
32934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
32935 $as_echo_n "checking if strnicmp can be linked... " >&6; }
32936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32937 /* end confdefs.h. */
32940 #define strnicmp innocuous_strnicmp
32942 # include <limits.h>
32944 # include <assert.h>
32951 #if defined __stub_strnicmp || defined __stub___strnicmp
32957 return strnicmp ();
32963 if ac_fn_c_try_link "$LINENO"; then :
32965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32966 $as_echo "yes" >&6; }
32967 tst_links_strnicmp="yes"
32971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32972 $as_echo "no" >&6; }
32973 tst_links_strnicmp="no"
32976 rm -f core conftest.err conftest.$ac_objext \
32977 conftest$ac_exeext conftest.$ac_ext
32979 if test "$tst_links_strnicmp" = "yes"; then
32980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
32981 $as_echo_n "checking if strnicmp is prototyped... " >&6; }
32982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32983 /* end confdefs.h. */
32985 $curl_includes_string
32988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32989 $EGREP "strnicmp" >/dev/null 2>&1; then :
32991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32992 $as_echo "yes" >&6; }
32993 tst_proto_strnicmp="yes"
32997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32998 $as_echo "no" >&6; }
32999 tst_proto_strnicmp="no"
33006 if test "$tst_proto_strnicmp" = "yes"; then
33007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
33008 $as_echo_n "checking if strnicmp is compilable... " >&6; }
33009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33010 /* end confdefs.h. */
33013 $curl_includes_string
33018 if(0 != strnicmp(0, 0))
33026 if ac_fn_c_try_compile "$LINENO"; then :
33028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33029 $as_echo "yes" >&6; }
33030 tst_compi_strnicmp="yes"
33034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33035 $as_echo "no" >&6; }
33036 tst_compi_strnicmp="no"
33039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33042 if test "$tst_compi_strnicmp" = "yes"; then
33043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
33044 $as_echo_n "checking if strnicmp usage allowed... " >&6; }
33045 if test "x$curl_disallow_strnicmp" != "xyes"; then
33046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33047 $as_echo "yes" >&6; }
33048 tst_allow_strnicmp="yes"
33050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33051 $as_echo "no" >&6; }
33052 tst_allow_strnicmp="no"
33056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
33057 $as_echo_n "checking if strnicmp might be used... " >&6; }
33058 if test "$tst_links_strnicmp" = "yes" &&
33059 test "$tst_proto_strnicmp" = "yes" &&
33060 test "$tst_compi_strnicmp" = "yes" &&
33061 test "$tst_allow_strnicmp" = "yes"; then
33062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33063 $as_echo "yes" >&6; }
33065 cat >>confdefs.h <<_ACEOF
33066 #define HAVE_STRNICMP 1
33069 ac_cv_func_strnicmp="yes"
33071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33072 $as_echo "no" >&6; }
33073 ac_cv_func_strnicmp="no"
33078 tst_links_strstr="unknown"
33079 tst_proto_strstr="unknown"
33080 tst_compi_strstr="unknown"
33081 tst_allow_strstr="unknown"
33083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
33084 $as_echo_n "checking if strstr can be linked... " >&6; }
33085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33086 /* end confdefs.h. */
33089 #define strstr innocuous_strstr
33091 # include <limits.h>
33093 # include <assert.h>
33100 #if defined __stub_strstr || defined __stub___strstr
33112 if ac_fn_c_try_link "$LINENO"; then :
33114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33115 $as_echo "yes" >&6; }
33116 tst_links_strstr="yes"
33120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33121 $as_echo "no" >&6; }
33122 tst_links_strstr="no"
33125 rm -f core conftest.err conftest.$ac_objext \
33126 conftest$ac_exeext conftest.$ac_ext
33128 if test "$tst_links_strstr" = "yes"; then
33129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
33130 $as_echo_n "checking if strstr is prototyped... " >&6; }
33131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33132 /* end confdefs.h. */
33134 $curl_includes_string
33137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33138 $EGREP "strstr" >/dev/null 2>&1; then :
33140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33141 $as_echo "yes" >&6; }
33142 tst_proto_strstr="yes"
33146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33147 $as_echo "no" >&6; }
33148 tst_proto_strstr="no"
33155 if test "$tst_proto_strstr" = "yes"; then
33156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
33157 $as_echo_n "checking if strstr is compilable... " >&6; }
33158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33159 /* end confdefs.h. */
33162 $curl_includes_string
33167 if(0 != strstr(0, 0))
33175 if ac_fn_c_try_compile "$LINENO"; then :
33177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33178 $as_echo "yes" >&6; }
33179 tst_compi_strstr="yes"
33183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33184 $as_echo "no" >&6; }
33185 tst_compi_strstr="no"
33188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33191 if test "$tst_compi_strstr" = "yes"; then
33192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
33193 $as_echo_n "checking if strstr usage allowed... " >&6; }
33194 if test "x$curl_disallow_strstr" != "xyes"; then
33195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33196 $as_echo "yes" >&6; }
33197 tst_allow_strstr="yes"
33199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33200 $as_echo "no" >&6; }
33201 tst_allow_strstr="no"
33205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
33206 $as_echo_n "checking if strstr might be used... " >&6; }
33207 if test "$tst_links_strstr" = "yes" &&
33208 test "$tst_proto_strstr" = "yes" &&
33209 test "$tst_compi_strstr" = "yes" &&
33210 test "$tst_allow_strstr" = "yes"; then
33211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33212 $as_echo "yes" >&6; }
33214 cat >>confdefs.h <<_ACEOF
33215 #define HAVE_STRSTR 1
33218 ac_cv_func_strstr="yes"
33220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33221 $as_echo "no" >&6; }
33222 ac_cv_func_strstr="no"
33227 tst_links_strtok_r="unknown"
33228 tst_proto_strtok_r="unknown"
33229 tst_compi_strtok_r="unknown"
33230 tst_allow_strtok_r="unknown"
33232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
33233 $as_echo_n "checking if strtok_r can be linked... " >&6; }
33234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33235 /* end confdefs.h. */
33238 #define strtok_r innocuous_strtok_r
33240 # include <limits.h>
33242 # include <assert.h>
33249 #if defined __stub_strtok_r || defined __stub___strtok_r
33255 return strtok_r ();
33261 if ac_fn_c_try_link "$LINENO"; then :
33263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33264 $as_echo "yes" >&6; }
33265 tst_links_strtok_r="yes"
33269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33270 $as_echo "no" >&6; }
33271 tst_links_strtok_r="no"
33274 rm -f core conftest.err conftest.$ac_objext \
33275 conftest$ac_exeext conftest.$ac_ext
33277 if test "$tst_links_strtok_r" = "yes"; then
33278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
33279 $as_echo_n "checking if strtok_r is prototyped... " >&6; }
33280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33281 /* end confdefs.h. */
33283 $curl_includes_string
33286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33287 $EGREP "strtok_r" >/dev/null 2>&1; then :
33289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33290 $as_echo "yes" >&6; }
33291 tst_proto_strtok_r="yes"
33295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33296 $as_echo "no" >&6; }
33297 tst_proto_strtok_r="no"
33304 if test "$tst_proto_strtok_r" = "yes"; then
33305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
33306 $as_echo_n "checking if strtok_r is compilable... " >&6; }
33307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33308 /* end confdefs.h. */
33311 $curl_includes_string
33316 if(0 != strtok_r(0, 0, 0))
33324 if ac_fn_c_try_compile "$LINENO"; then :
33326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33327 $as_echo "yes" >&6; }
33328 tst_compi_strtok_r="yes"
33332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33333 $as_echo "no" >&6; }
33334 tst_compi_strtok_r="no"
33337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33340 if test "$tst_compi_strtok_r" = "yes"; then
33341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
33342 $as_echo_n "checking if strtok_r usage allowed... " >&6; }
33343 if test "x$curl_disallow_strtok_r" != "xyes"; then
33344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33345 $as_echo "yes" >&6; }
33346 tst_allow_strtok_r="yes"
33348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33349 $as_echo "no" >&6; }
33350 tst_allow_strtok_r="no"
33354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
33355 $as_echo_n "checking if strtok_r might be used... " >&6; }
33356 if test "$tst_links_strtok_r" = "yes" &&
33357 test "$tst_proto_strtok_r" = "yes" &&
33358 test "$tst_compi_strtok_r" = "yes" &&
33359 test "$tst_allow_strtok_r" = "yes"; then
33360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33361 $as_echo "yes" >&6; }
33363 cat >>confdefs.h <<_ACEOF
33364 #define HAVE_STRTOK_R 1
33367 ac_cv_func_strtok_r="yes"
33369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33370 $as_echo "no" >&6; }
33371 ac_cv_func_strtok_r="no"
33376 tst_links_strtoll="unknown"
33377 tst_proto_strtoll="unknown"
33378 tst_compi_strtoll="unknown"
33379 tst_allow_strtoll="unknown"
33381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
33382 $as_echo_n "checking if strtoll can be linked... " >&6; }
33383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33384 /* end confdefs.h. */
33387 #define strtoll innocuous_strtoll
33389 # include <limits.h>
33391 # include <assert.h>
33398 #if defined __stub_strtoll || defined __stub___strtoll
33410 if ac_fn_c_try_link "$LINENO"; then :
33412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33413 $as_echo "yes" >&6; }
33414 tst_links_strtoll="yes"
33418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33419 $as_echo "no" >&6; }
33420 tst_links_strtoll="no"
33423 rm -f core conftest.err conftest.$ac_objext \
33424 conftest$ac_exeext conftest.$ac_ext
33426 if test "$tst_links_strtoll" = "yes"; then
33427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
33428 $as_echo_n "checking if strtoll is prototyped... " >&6; }
33429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33430 /* end confdefs.h. */
33432 $curl_includes_stdlib
33435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33436 $EGREP "strtoll" >/dev/null 2>&1; then :
33438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33439 $as_echo "yes" >&6; }
33440 tst_proto_strtoll="yes"
33444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33445 $as_echo "no" >&6; }
33446 tst_proto_strtoll="no"
33453 if test "$tst_proto_strtoll" = "yes"; then
33454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
33455 $as_echo_n "checking if strtoll is compilable... " >&6; }
33456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33457 /* end confdefs.h. */
33460 $curl_includes_stdlib
33465 if(0 != strtoll(0, 0, 0))
33473 if ac_fn_c_try_compile "$LINENO"; then :
33475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33476 $as_echo "yes" >&6; }
33477 tst_compi_strtoll="yes"
33481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33482 $as_echo "no" >&6; }
33483 tst_compi_strtoll="no"
33486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33489 if test "$tst_compi_strtoll" = "yes"; then
33490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
33491 $as_echo_n "checking if strtoll usage allowed... " >&6; }
33492 if test "x$curl_disallow_strtoll" != "xyes"; then
33493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33494 $as_echo "yes" >&6; }
33495 tst_allow_strtoll="yes"
33497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33498 $as_echo "no" >&6; }
33499 tst_allow_strtoll="no"
33503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
33504 $as_echo_n "checking if strtoll might be used... " >&6; }
33505 if test "$tst_links_strtoll" = "yes" &&
33506 test "$tst_proto_strtoll" = "yes" &&
33507 test "$tst_compi_strtoll" = "yes" &&
33508 test "$tst_allow_strtoll" = "yes"; then
33509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33510 $as_echo "yes" >&6; }
33512 cat >>confdefs.h <<_ACEOF
33513 #define HAVE_STRTOLL 1
33516 ac_cv_func_strtoll="yes"
33518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33519 $as_echo "no" >&6; }
33520 ac_cv_func_strtoll="no"
33524 curl_includes_sys_uio="\
33525 /* includes start */
33526 #ifdef HAVE_SYS_TYPES_H
33527 # include <sys/types.h>
33529 #ifdef HAVE_SYS_UIO_H
33530 # include <sys/uio.h>
33532 /* includes end */"
33533 for ac_header in sys/types.h sys/uio.h
33535 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33536 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
33538 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33539 cat >>confdefs.h <<_ACEOF
33540 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33550 tst_links_writev="unknown"
33551 tst_proto_writev="unknown"
33552 tst_compi_writev="unknown"
33553 tst_allow_writev="unknown"
33555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
33556 $as_echo_n "checking if writev can be linked... " >&6; }
33557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33558 /* end confdefs.h. */
33561 #define writev innocuous_writev
33563 # include <limits.h>
33565 # include <assert.h>
33572 #if defined __stub_writev || defined __stub___writev
33584 if ac_fn_c_try_link "$LINENO"; then :
33586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33587 $as_echo "yes" >&6; }
33588 tst_links_writev="yes"
33592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33593 $as_echo "no" >&6; }
33594 tst_links_writev="no"
33597 rm -f core conftest.err conftest.$ac_objext \
33598 conftest$ac_exeext conftest.$ac_ext
33600 if test "$tst_links_writev" = "yes"; then
33601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
33602 $as_echo_n "checking if writev is prototyped... " >&6; }
33603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33604 /* end confdefs.h. */
33606 $curl_includes_sys_uio
33609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33610 $EGREP "writev" >/dev/null 2>&1; then :
33612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33613 $as_echo "yes" >&6; }
33614 tst_proto_writev="yes"
33618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33619 $as_echo "no" >&6; }
33620 tst_proto_writev="no"
33627 if test "$tst_proto_writev" = "yes"; then
33628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
33629 $as_echo_n "checking if writev is compilable... " >&6; }
33630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33631 /* end confdefs.h. */
33634 $curl_includes_sys_uio
33639 if(0 != writev(0, 0, 0))
33647 if ac_fn_c_try_compile "$LINENO"; then :
33649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33650 $as_echo "yes" >&6; }
33651 tst_compi_writev="yes"
33655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33656 $as_echo "no" >&6; }
33657 tst_compi_writev="no"
33660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33663 if test "$tst_compi_writev" = "yes"; then
33664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
33665 $as_echo_n "checking if writev usage allowed... " >&6; }
33666 if test "x$curl_disallow_writev" != "xyes"; then
33667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33668 $as_echo "yes" >&6; }
33669 tst_allow_writev="yes"
33671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33672 $as_echo "no" >&6; }
33673 tst_allow_writev="no"
33677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
33678 $as_echo_n "checking if writev might be used... " >&6; }
33679 if test "$tst_links_writev" = "yes" &&
33680 test "$tst_proto_writev" = "yes" &&
33681 test "$tst_compi_writev" = "yes" &&
33682 test "$tst_allow_writev" = "yes"; then
33683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33684 $as_echo "yes" >&6; }
33686 cat >>confdefs.h <<_ACEOF
33687 #define HAVE_WRITEV 1
33690 ac_cv_func_writev="yes"
33692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33693 $as_echo "no" >&6; }
33694 ac_cv_func_writev="no"
33702 { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
33703 $as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
33707 for ac_func in fork \
33725 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33726 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
33727 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
33728 cat >>confdefs.h <<_ACEOF
33729 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33736 eval skipcheck=\$skipcheck_$func
33737 if test "x$skipcheck" != "xyes"; then
33738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
33739 $as_echo_n "checking deeper for $func... " >&6; }
33740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33741 /* end confdefs.h. */
33755 if ac_fn_c_try_link "$LINENO"; then :
33757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33758 $as_echo "yes" >&6; }
33759 eval "ac_cv_func_$func=yes"
33761 cat >>confdefs.h <<_ACEOF
33762 #define `$as_echo "HAVE_$func" | $as_tr_cpp` 1
33768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
33769 $as_echo "but still no" >&6; }
33772 rm -f core conftest.err conftest.$ac_objext \
33773 conftest$ac_exeext conftest.$ac_ext
33781 for ac_header in sys/types.h sys/socket.h netdb.h
33783 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33784 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
33785 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33786 cat >>confdefs.h <<_ACEOF
33787 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
33796 $as_echo_n "checking for getnameinfo... " >&6; }
33797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33798 /* end confdefs.h. */
33801 #define getnameinfo innocuous_getnameinfo
33803 # include <limits.h>
33805 # include <assert.h>
33811 char getnameinfo ();
33812 #if defined __stub_getnameinfo || defined __stub___getnameinfo
33818 return getnameinfo ();
33824 if ac_fn_c_try_link "$LINENO"; then :
33826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33827 $as_echo "yes" >&6; }
33828 curl_cv_getnameinfo="yes"
33832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33833 $as_echo "no" >&6; }
33834 curl_cv_getnameinfo="no"
33837 rm -f core conftest.err conftest.$ac_objext \
33838 conftest$ac_exeext conftest.$ac_ext
33840 if test "$curl_cv_getnameinfo" != "yes"; then
33841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
33842 $as_echo_n "checking deeper for getnameinfo... " >&6; }
33843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33844 /* end confdefs.h. */
33858 if ac_fn_c_try_link "$LINENO"; then :
33860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33861 $as_echo "yes" >&6; }
33862 curl_cv_getnameinfo="yes"
33866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
33867 $as_echo "but still no" >&6; }
33868 curl_cv_getnameinfo="no"
33871 rm -f core conftest.err conftest.$ac_objext \
33872 conftest$ac_exeext conftest.$ac_ext
33875 if test "$curl_cv_getnameinfo" != "yes"; then
33876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
33877 $as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
33878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33879 /* end confdefs.h. */
33883 #ifdef HAVE_WINDOWS_H
33884 #ifndef WIN32_LEAN_AND_MEAN
33885 #define WIN32_LEAN_AND_MEAN
33887 #include <windows.h>
33888 #ifdef HAVE_WINSOCK2_H
33889 #include <winsock2.h>
33890 #ifdef HAVE_WS2TCPIP_H
33891 #include <ws2tcpip.h>
33895 #ifdef HAVE_SYS_TYPES_H
33896 #include <sys/types.h>
33898 #ifdef HAVE_SYS_SOCKET_H
33899 #include <sys/socket.h>
33901 #ifdef HAVE_NETDB_H
33909 getnameinfo(0, 0, 0, 0, 0, 0, 0);
33916 if ac_fn_c_try_link "$LINENO"; then :
33918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33919 $as_echo "yes" >&6; }
33920 curl_cv_getnameinfo="yes"
33924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
33925 $as_echo "but still no" >&6; }
33926 curl_cv_getnameinfo="no"
33929 rm -f core conftest.err conftest.$ac_objext \
33930 conftest$ac_exeext conftest.$ac_ext
33933 if test "$curl_cv_getnameinfo" = "yes"; then
33934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
33935 $as_echo_n "checking types of arguments for getnameinfo... " >&6; }
33936 if test "${curl_cv_func_getnameinfo_args+set}" = set; then :
33937 $as_echo_n "(cached) " >&6
33940 curl_cv_func_getnameinfo_args="unknown"
33941 for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
33942 for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
33943 for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
33944 for gni_arg7 in 'int' 'unsigned int'; do
33945 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
33946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33947 /* end confdefs.h. */
33951 #ifdef HAVE_WINDOWS_H
33952 #ifndef WIN32_LEAN_AND_MEAN
33953 #define WIN32_LEAN_AND_MEAN
33955 #if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
33956 #undef _WIN32_WINNT
33957 #define _WIN32_WINNT 0x0501
33959 #include <windows.h>
33960 #ifdef HAVE_WINSOCK2_H
33961 #include <winsock2.h>
33962 #ifdef HAVE_WS2TCPIP_H
33963 #include <ws2tcpip.h>
33966 #define GNICALLCONV WSAAPI
33968 #ifdef HAVE_SYS_TYPES_H
33969 #include <sys/types.h>
33971 #ifdef HAVE_SYS_SOCKET_H
33972 #include <sys/socket.h>
33974 #ifdef HAVE_NETDB_H
33977 #define GNICALLCONV
33979 extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
33980 char *, $gni_arg46,
33981 char *, $gni_arg46,
33988 $gni_arg46 hostlen=0;
33989 $gni_arg46 servlen=0;
33991 int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
33998 if ac_fn_c_try_compile "$LINENO"; then :
34000 curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
34003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
34012 $as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
34013 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
34014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
34015 $as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
34016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
34017 $as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
34019 gni_prev_IFS=$IFS; IFS=','
34020 set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
34024 gni_qual_type_arg1=$1
34027 cat >>confdefs.h <<_ACEOF
34028 #define GETNAMEINFO_TYPE_ARG2 $2
34032 cat >>confdefs.h <<_ACEOF
34033 #define GETNAMEINFO_TYPE_ARG46 $3
34037 cat >>confdefs.h <<_ACEOF
34038 #define GETNAMEINFO_TYPE_ARG7 $4
34044 case $prev_sh_opts in
34052 case "$gni_qual_type_arg1" in
34054 gni_qual_arg1=const
34055 gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
34059 gni_type_arg1=$gni_qual_type_arg1
34064 cat >>confdefs.h <<_ACEOF
34065 #define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
34069 cat >>confdefs.h <<_ACEOF
34070 #define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
34074 case $prev_sh_opts in
34083 cat >>confdefs.h <<_ACEOF
34084 #define HAVE_GETNAMEINFO 1
34087 ac_cv_func_getnameinfo="yes"
34092 if test "$ipv6" = "yes"; then
34093 if test "$ac_cv_func_getaddrinfo" = "yes"; then
34095 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
34101 for ac_header in stdio.h sys/types.h sys/socket.h \
34102 netdb.h netinet/in.h arpa/inet.h
34104 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34105 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
34106 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34107 cat >>confdefs.h <<_ACEOF
34108 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working NI_WITHSCOPEID" >&5
34117 $as_echo_n "checking for working NI_WITHSCOPEID... " >&6; }
34118 if test "${ac_cv_working_ni_withscopeid+set}" = set; then :
34119 $as_echo_n "(cached) " >&6
34122 if test "$cross_compiling" = yes; then :
34124 # Program is not run when cross-compiling. So we assume
34125 # NI_WITHSCOPEID will work if we are able to compile it.
34126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34127 /* end confdefs.h. */
34130 #include <sys/types.h>
34131 #include <sys/socket.h>
34137 unsigned int dummy= NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
34144 if ac_fn_c_try_compile "$LINENO"; then :
34146 ac_cv_working_ni_withscopeid="yes"
34150 ac_cv_working_ni_withscopeid="no"
34153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # AC-COMPILE-IFELSE
34156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34157 /* end confdefs.h. */
34160 #ifdef HAVE_STDLIB_H
34161 #include <stdlib.h>
34163 #ifdef HAVE_STDIO_H
34166 #ifdef HAVE_SYS_TYPES_H
34167 #include <sys/types.h>
34169 #ifdef HAVE_SYS_SOCKET_H
34170 #include <sys/socket.h>
34172 #ifdef HAVE_NETDB_H
34175 #ifdef HAVE_NETINET_IN_H
34176 #include <netinet/in.h>
34178 #ifdef HAVE_ARPA_INET_H
34179 #include <arpa/inet.h>
34185 #if defined(NI_WITHSCOPEID) && defined(HAVE_GETNAMEINFO)
34186 #ifdef HAVE_STRUCT_SOCKADDR_STORAGE
34187 struct sockaddr_storage sa;
34189 unsigned char sa[256];
34191 char hostbuf[NI_MAXHOST];
34193 GETNAMEINFO_TYPE_ARG2 salen = (GETNAMEINFO_TYPE_ARG2)sizeof(sa);
34194 GETNAMEINFO_TYPE_ARG46 hostlen = (GETNAMEINFO_TYPE_ARG46)sizeof(hostbuf);
34195 GETNAMEINFO_TYPE_ARG7 flags = NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
34196 int fd = socket(AF_INET6, SOCK_STREAM, 0);
34198 perror("socket()");
34199 return 1; /* Error creating socket */
34201 rc = getsockname(fd, (GETNAMEINFO_TYPE_ARG1)&sa, &salen);
34203 perror("getsockname()");
34204 return 2; /* Error retrieving socket name */
34206 rc = getnameinfo((GETNAMEINFO_TYPE_ARG1)&sa, salen, hostbuf, hostlen, NULL, 0, flags);
34208 printf("rc = %s\n", gai_strerror(rc));
34209 return 3; /* Error translating socket address */
34211 return 0; /* Ok, NI_WITHSCOPEID works */
34213 return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */
34218 } # AC-LANG-PROGRAM
34221 if ac_fn_c_try_run "$LINENO"; then :
34223 # Exit code == 0. Program worked.
34224 ac_cv_working_ni_withscopeid="yes"
34228 # Exit code != 0. Program failed.
34229 ac_cv_working_ni_withscopeid="no"
34232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34233 conftest.$ac_objext conftest.beam conftest.$ac_ext
34238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_ni_withscopeid" >&5
34239 $as_echo "$ac_cv_working_ni_withscopeid" >&6; } # AC-CACHE-CHECK
34240 case "$ac_cv_working_ni_withscopeid" in
34243 $as_echo "#define HAVE_NI_WITHSCOPEID 1" >>confdefs.h
34251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable non-blocking communications" >&5
34252 $as_echo_n "checking whether to enable non-blocking communications... " >&6; }
34253 OPT_NONBLOCKING="default"
34254 # Check whether --enable-nonblocking was given.
34255 if test "${enable_nonblocking+set}" = set; then :
34256 enableval=$enable_nonblocking; OPT_NONBLOCKING=$enableval
34259 case "$OPT_NONBLOCKING" in
34261 want_nonblocking="no"
34264 want_nonblocking="yes"
34267 want_nonblocking="yes"
34270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_nonblocking" >&5
34271 $as_echo "$want_nonblocking" >&6; }
34275 tst_method="unknown"
34276 if test "$want_nonblocking" = "yes"; then
34277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
34278 $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
34279 if test "x$ac_cv_func_fcntl_o_nonblock" = "xyes"; then
34280 tst_method="fcntl O_NONBLOCK"
34281 elif test "x$ac_cv_func_ioctl_fionbio" = "xyes"; then
34282 tst_method="ioctl FIONBIO"
34283 elif test "x$ac_cv_func_ioctlsocket_fionbio" = "xyes"; then
34284 tst_method="ioctlsocket FIONBIO"
34285 elif test "x$ac_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
34286 tst_method="IoctlSocket FIONBIO"
34287 elif test "x$ac_cv_func_setsockopt_so_nonblock" = "xyes"; then
34288 tst_method="setsockopt SO_NONBLOCK"
34290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
34291 $as_echo "$tst_method" >&6; }
34292 if test "$tst_method" = "unknown"; then
34293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
34294 $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
34297 if test "$tst_method" = "unknown"; then
34299 cat >>confdefs.h <<_ACEOF
34300 #define USE_BLOCKING_SOCKETS 1
34303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-blocking sockets disabled." >&5
34304 $as_echo "$as_me: WARNING: non-blocking sockets disabled." >&2;}
34309 # Extract the first word of "perl", so it can be a program name with args.
34310 set dummy perl; ac_word=$2
34311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34312 $as_echo_n "checking for $ac_word... " >&6; }
34313 if test "${ac_cv_path_PERL+set}" = set; then :
34314 $as_echo_n "(cached) " >&6
34318 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
34321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34322 as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
34323 for as_dir in $as_dummy
34326 test -z "$as_dir" && as_dir=.
34327 for ac_exec_ext in '' $ac_executable_extensions; do
34328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34329 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
34330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34340 PERL=$ac_cv_path_PERL
34341 if test -n "$PERL"; then
34342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
34343 $as_echo "$PERL" >&6; }
34345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34346 $as_echo "no" >&6; }
34352 for ac_prog in gnroff nroff
34354 # Extract the first word of "$ac_prog", so it can be a program name with args.
34355 set dummy $ac_prog; ac_word=$2
34356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34357 $as_echo_n "checking for $ac_word... " >&6; }
34358 if test "${ac_cv_path_NROFF+set}" = set; then :
34359 $as_echo_n "(cached) " >&6
34363 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
34366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34367 as_dummy="$PATH:/usr/bin/:/usr/local/bin "
34368 for as_dir in $as_dummy
34371 test -z "$as_dir" && as_dir=.
34372 for ac_exec_ext in '' $ac_executable_extensions; do
34373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34374 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
34375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34385 NROFF=$ac_cv_path_NROFF
34386 if test -n "$NROFF"; then
34387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
34388 $as_echo "$NROFF" >&6; }
34390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34391 $as_echo "no" >&6; }
34395 test -n "$NROFF" && break
34400 if test -n "$NROFF"; then
34402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
34403 $as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
34405 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
34406 if test -z "$mancheck"; then
34408 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
34409 if test -z "$mancheck"; then
34411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
34412 $as_echo "failed" >&6; }
34413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
34414 $as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
34416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
34417 $as_echo "$MANOPT" >&6; }
34420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
34421 $as_echo "$MANOPT" >&6; }
34426 if test -z "$MANOPT"
34428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
34429 $as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
34434 if test "$USE_MANUAL" = "1"; then
34436 $as_echo "#define USE_MANUAL 1" >>confdefs.h
34438 curl_manual_msg="enabled"
34443 if test x"$USE_MANUAL" = x1; then
34445 USE_MANUAL_FALSE='#'
34447 USE_MANUAL_TRUE='#'
34456 if test "$want_ares" = "yes"; then
34457 clean_CPPFLAGS="$CPPFLAGS"
34458 clean_LDFLAGS="$LDFLAGS"
34460 embedded_ares="unknown"
34461 configure_runpath=`pwd`
34462 embedded_ares_builddir="$configure_runpath/ares"
34463 if test -n "$want_ares_path"; then
34464 ares_CPPFLAGS="-I$want_ares_path/include"
34465 ares_LDFLAGS="-L$want_ares_path/lib"
34466 ares_LIBS="-lcares"
34468 if test -d "$srcdir/ares"; then
34469 embedded_ares="yes"
34470 subdirs="$subdirs ares"
34473 ares_LDFLAGS="-L$embedded_ares_builddir"
34474 ares_LIBS="-lcares"
34478 ares_LIBS="-lcares"
34482 CPPFLAGS="$ares_CPPFLAGS $clean_CPPFLAGS"
34483 LDFLAGS="$ares_LDFLAGS $clean_LDFLAGS"
34484 LIBS="$ares_LIBS $clean_LIBS"
34486 if test "$embedded_ares" != "yes"; then
34487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
34488 $as_echo_n "checking that c-ares is good and recent enough... " >&6; }
34489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34490 /* end confdefs.h. */
34494 /* set of dummy functions in case c-ares was built with debug */
34495 void curl_dofree() { }
34496 void curl_sclose() { }
34497 void curl_domalloc() { }
34498 void curl_docalloc() { }
34499 void curl_socket() { }
34504 ares_channel channel;
34505 ares_cancel(channel); /* added in 1.2.0 */
34506 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
34507 ares_dup(&channel, channel); /* added in 1.6.0 */
34514 if ac_fn_c_try_link "$LINENO"; then :
34516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34517 $as_echo "yes" >&6; }
34521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34522 $as_echo "no" >&6; }
34523 as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
34524 CPPFLAGS="$clean_CPPFLAGS"
34525 LDFLAGS="$clean_LDFLAGS"
34531 rm -f core conftest.err conftest.$ac_objext \
34532 conftest$ac_exeext conftest.$ac_ext
34534 if test "$want_ares" = "yes"; then
34536 $as_echo "#define USE_ARES 1" >>confdefs.h
34540 curl_res_msg="c-ares"
34546 if test x$embedded_ares = xyes; then
34547 USE_EMBEDDED_ARES_TRUE=
34548 USE_EMBEDDED_ARES_FALSE='#'
34550 USE_EMBEDDED_ARES_TRUE='#'
34551 USE_EMBEDDED_ARES_FALSE=
34555 if test "x$enable_shared" = "xyes"; then
34556 build_libhostname=yes
34558 build_libhostname=no
34562 if test x$build_libhostname = xyes; then
34563 BUILD_LIBHOSTNAME_TRUE=
34564 BUILD_LIBHOSTNAME_FALSE='#'
34566 BUILD_LIBHOSTNAME_TRUE='#'
34567 BUILD_LIBHOSTNAME_FALSE=
34572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
34573 $as_echo_n "checking whether to enable the threaded resolver... " >&6; }
34574 OPT_THRES="default"
34575 # Check whether --enable-threaded_resolver was given.
34576 if test "${enable_threaded_resolver+set}" = set; then :
34577 enableval=$enable_threaded_resolver; OPT_THRES=$enableval
34580 case "$OPT_THRES" in
34588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
34589 $as_echo "$want_thres" >&6; }
34592 if test "x$want_thres" = xyes && test "x$want_ares" = xyes; then
34593 as_fn_error $? "Options --enable-threaded-resolver and --enable-ares are mutually exclusive" "$LINENO" 5
34596 if test "$want_thres" = "yes"; then
34597 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
34598 if test "x$ac_cv_header_pthread_h" = x""yes; then :
34600 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
34602 save_CFLAGS="$CFLAGS"
34603 CFLAGS="$CFLAGS -pthread"
34604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
34605 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
34606 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
34607 $as_echo_n "(cached) " >&6
34609 ac_check_lib_save_LIBS=$LIBS
34610 LIBS="-lpthread $LIBS"
34611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34612 /* end confdefs.h. */
34618 char pthread_create ();
34621 return pthread_create ();
34626 if ac_fn_c_try_link "$LINENO"; then :
34627 ac_cv_lib_pthread_pthread_create=yes
34629 ac_cv_lib_pthread_pthread_create=no
34631 rm -f core conftest.err conftest.$ac_objext \
34632 conftest$ac_exeext conftest.$ac_ext
34633 LIBS=$ac_check_lib_save_LIBS
34635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
34636 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
34637 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
34638 { $as_echo "$as_me:${as_lineno-$LINENO}: using POSIX threaded DNS lookup" >&5
34639 $as_echo "$as_me: using POSIX threaded DNS lookup" >&6;}
34641 $as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
34643 USE_THREADS_POSIX=1
34644 curl_res_msg="threaded"
34647 CFLAGS="$save_CFLAGS"
34656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
34657 $as_echo_n "checking whether to enable verbose strings... " >&6; }
34658 # Check whether --enable-verbose was given.
34659 if test "${enable_verbose+set}" = set; then :
34660 enableval=$enable_verbose; case "$enableval" in
34662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34663 $as_echo "no" >&6; }
34665 $as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
34667 curl_verbose_msg="no"
34669 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34670 $as_echo "yes" >&6; }
34674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34675 $as_echo "yes" >&6; }
34680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
34681 $as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
34682 # Check whether --enable-sspi was given.
34683 if test "${enable_sspi+set}" = set; then :
34684 enableval=$enable_sspi; case "$enableval" in
34686 if test "$ac_cv_native_windows" = "yes"; then
34687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34688 $as_echo "yes" >&6; }
34690 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
34694 curl_sspi_msg="enabled"
34696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34697 $as_echo "no" >&6; }
34698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
34699 $as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
34703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34704 $as_echo "no" >&6; }
34708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34709 $as_echo "no" >&6; }
34714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
34715 $as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
34716 # Check whether --enable-crypto-auth was given.
34717 if test "${enable_crypto_auth+set}" = set; then :
34718 enableval=$enable_crypto_auth; case "$enableval" in
34720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34721 $as_echo "no" >&6; }
34723 $as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
34726 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34727 $as_echo "yes" >&6; }
34731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34732 $as_echo "yes" >&6; }
34737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
34738 $as_echo_n "checking whether to enable support for cookies... " >&6; }
34739 # Check whether --enable-cookies was given.
34740 if test "${enable_cookies+set}" = set; then :
34741 enableval=$enable_cookies; case "$enableval" in
34743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34744 $as_echo "no" >&6; }
34746 $as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
34749 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34750 $as_echo "yes" >&6; }
34754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34755 $as_echo "yes" >&6; }
34760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hidden symbols in the library" >&5
34761 $as_echo_n "checking whether to enable hidden symbols in the library... " >&6; }
34762 # Check whether --enable-hidden-symbols was given.
34763 if test "${enable_hidden_symbols+set}" = set; then :
34764 enableval=$enable_hidden_symbols; case "$enableval" in
34766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34767 $as_echo "no" >&6; }
34770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports it" >&5
34771 $as_echo_n "checking whether $CC supports it... " >&6; }
34772 if test "$GCC" = yes ; then
34773 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ||
34774 test "$compiler_id" = "CLANG"; then
34775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34776 $as_echo "yes" >&6; }
34778 $as_echo "#define CURL_HIDDEN_SYMBOLS 1" >>confdefs.h
34781 $as_echo "#define CURL_EXTERN_SYMBOL __attribute__ ((visibility (\"default\")))" >>confdefs.h
34783 CFLAGS="$CFLAGS -fvisibility=hidden"
34785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34786 $as_echo "no" >&6; }
34790 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
34791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34792 $as_echo "yes" >&6; }
34794 $as_echo "#define CURL_HIDDEN_SYMBOLS 1" >>confdefs.h
34797 $as_echo "#define CURL_EXTERN_SYMBOL __global" >>confdefs.h
34799 CFLAGS="$CFLAGS -xldscope=hidden"
34801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34802 $as_echo "no" >&6; }
34808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34809 $as_echo "no" >&6; }
34815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enforce SONAME bump" >&5
34816 $as_echo_n "checking whether to enforce SONAME bump... " >&6; }
34817 # Check whether --enable-soname-bump was given.
34818 if test "${enable_soname_bump+set}" = set; then :
34819 enableval=$enable_soname_bump; case "$enableval" in
34820 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34821 $as_echo "yes" >&6; }
34825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34826 $as_echo "no" >&6; }
34830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $soname_bump" >&5
34831 $as_echo "$soname_bump" >&6; }
34837 if test x$soname_bump = xyes; then
34839 SONAME_BUMP_FALSE='#'
34841 SONAME_BUMP_TRUE='#'
34847 if test ! -z "$winsock_LIB"; then
34850 LIBS="$LIBS $winsock_LIB"
34851 TEST_SERVER_LIBS="$TEST_SERVER_LIBS $winsock_LIB"
34864 if test x$cross_compiling = xyes; then
34865 CROSSCOMPILING_TRUE=
34866 CROSSCOMPILING_FALSE='#'
34868 CROSSCOMPILING_TRUE='#'
34869 CROSSCOMPILING_FALSE=
34873 ENABLE_SHARED="$enable_shared"
34877 if test "x$USE_SSLEAY" = "x1"; then
34878 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
34879 elif test -n "$SSL_ENABLED"; then
34880 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
34882 if test "@KRB4_ENABLED@" = "x1"; then
34883 SUPPORT_FEATURES="$SUPPORT_FEATURES KRB4"
34885 if test "x$IPV6_ENABLED" = "x1"; then
34886 SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
34888 if test "x$HAVE_LIBZ" = "x1"; then
34889 SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
34891 if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1"; then
34892 SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
34894 if test "x$IDN_ENABLED" = "x1"; then
34895 SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
34897 if test "x$USE_WINDOWS_SSPI" = "x1"; then
34898 SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
34900 if test "x$USE_SSLEAY" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
34901 -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1"; then
34902 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
34907 if test "x$CURL_DISABLE_HTTP" != "x1"; then
34908 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
34909 if test "x$SSL_ENABLED" = "x1"; then
34910 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
34913 if test "x$CURL_DISABLE_FTP" != "x1"; then
34914 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
34915 if test "x$SSL_ENABLED" = "x1"; then
34916 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
34919 if test "x$CURL_DISABLE_FILE" != "x1"; then
34920 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
34922 if test "x$CURL_DISABLE_TELNET" != "x1"; then
34923 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
34925 if test "x$CURL_DISABLE_LDAP" != "x1"; then
34926 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
34927 if test "x$CURL_DISABLE_LDAPS" != "x1"; then
34928 if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
34929 (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then
34930 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
34934 if test "x$CURL_DISABLE_DICT" != "x1"; then
34935 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
34937 if test "x$CURL_DISABLE_TFTP" != "x1"; then
34938 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
34940 if test "x$CURL_DISABLE_GOPHER" != "x1"; then
34941 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
34943 if test "x$CURL_DISABLE_POP3" != "x1"; then
34944 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
34945 if test "x$SSL_ENABLED" = "x1"; then
34946 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
34949 if test "x$CURL_DISABLE_IMAP" != "x1"; then
34950 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
34951 if test "x$SSL_ENABLED" = "x1"; then
34952 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
34955 if test "x$CURL_DISABLE_SMTP" != "x1"; then
34956 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
34957 if test "x$SSL_ENABLED" = "x1"; then
34958 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
34961 if test "x$USE_LIBSSH2" = "x1"; then
34962 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
34963 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
34965 if test "x$CURL_DISABLE_RTSP" != "x1"; then
34966 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
34968 if test "x$USE_LIBRTMP" = "x1"; then
34969 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
34972 SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
34984 squeeze LIBCURL_LIBS
34985 squeeze TEST_SERVER_LIBS
34986 squeeze CURL_NETWORK_LIBS
34988 squeeze SUPPORT_FEATURES
34989 squeeze SUPPORT_PROTOCOLS
34991 if test "x$want_curldebug_assumed" = "xyes" &&
34992 test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
34993 ac_configure_args="$ac_configure_args --enable-curldebug"
34996 ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile tests/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/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"
34998 cat >confcache <<\_ACEOF
34999 # This file is a shell script that caches the results of configure
35000 # tests run on this system so they can be shared between configure
35001 # scripts and configure runs, see configure's option --config-cache.
35002 # It is not useful on other systems. If it contains results you don't
35003 # want to keep, you may remove or edit it.
35005 # config.status only pays attention to the cache file if you give it
35006 # the --recheck option to rerun configure.
35008 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35009 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35010 # following values.
35014 # The following way of writing the cache mishandles newlines in values,
35015 # but we know of no workaround that is simple, portable, and efficient.
35016 # So, we kill variables containing newlines.
35017 # Ultrix sh set writes to stderr and can't be redirected directly,
35018 # and sets the high bit in the cache file unless we assign to the vars.
35020 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35021 eval ac_val=\$$ac_var
35025 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
35026 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35029 _ | IFS | as_nl) ;; #(
35030 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
35031 *) { eval $ac_var=; unset $ac_var;} ;;
35037 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35038 *${as_nl}ac_space=\ *)
35039 # `set' does not quote correctly, so add quotes: double-quote
35040 # substitution turns \\\\ into \\, and sed turns \\ into \.
35043 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35046 # `set' quotes correctly as required by POSIX, so do not add quotes.
35047 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35056 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35058 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35060 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35061 if test -w "$cache_file"; then
35062 test "x$cache_file" != "x/dev/null" &&
35063 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
35064 $as_echo "$as_me: updating cache $cache_file" >&6;}
35065 cat confcache >$cache_file
35067 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
35068 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35073 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35074 # Let make expand exec_prefix.
35075 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35077 DEFS=-DHAVE_CONFIG_H
35082 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35083 # 1. Remove the extension, and $U if already installed.
35084 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35085 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35086 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35087 # will be set to the directory where LIBOBJS objects are built.
35088 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35089 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
35091 LIBOBJS=$ac_libobjs
35093 LTLIBOBJS=$ac_ltlibobjs
35096 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
35097 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
35098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35100 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
35101 as_fn_error $? "conditional \"AMDEP\" was never defined.
35102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35104 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
35105 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
35106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35108 if test -z "${MIMPURE_TRUE}" && test -z "${MIMPURE_FALSE}"; then
35109 as_fn_error $? "conditional \"MIMPURE\" was never defined.
35110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35112 if test -z "${STATICLIB_TRUE}" && test -z "${STATICLIB_FALSE}"; then
35113 as_fn_error $? "conditional \"STATICLIB\" was never defined.
35114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35116 if test -z "${STATICLIB_TRUE}" && test -z "${STATICLIB_FALSE}"; then
35117 as_fn_error $? "conditional \"STATICLIB\" was never defined.
35118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35120 if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then
35121 as_fn_error $? "conditional \"NO_UNDEFINED\" was never defined.
35122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35124 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
35125 as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
35126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35128 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
35129 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
35130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35132 if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
35133 as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
35134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35136 if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
35137 as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
35138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35140 if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
35141 as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
35142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35144 if test -z "${SONAME_BUMP_TRUE}" && test -z "${SONAME_BUMP_FALSE}"; then
35145 as_fn_error $? "conditional \"SONAME_BUMP\" was never defined.
35146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35148 if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
35149 as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
35150 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35153 : ${CONFIG_STATUS=./config.status}
35155 ac_clean_files_save=$ac_clean_files
35156 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35157 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
35158 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
35160 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
35162 # Generated by $as_me.
35163 # Run this file to recreate the current configuration.
35164 # Compiler output produced by configure, useful for debugging
35165 # configure, is in config.log if it exists.
35168 ac_cs_recheck=false
35171 SHELL=\${CONFIG_SHELL-$SHELL}
35174 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35175 ## -------------------- ##
35176 ## M4sh Initialization. ##
35177 ## -------------------- ##
35179 # Be more Bourne compatible
35180 DUALCASE=1; export DUALCASE # for MKS sh
35181 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
35184 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35185 # is contrary to our usage. Disable this feature.
35186 alias -g '${1+"$@"}'='"$@"'
35187 setopt NO_GLOB_SUBST
35189 case `(set -o) 2>/dev/null` in #(
35201 # Printing a long string crashes Solaris 7 /usr/bin/printf.
35202 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35203 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35204 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
35205 # Prefer a ksh shell builtin over an external printf program on Solaris,
35206 # but without wasting forks for bash or zsh.
35207 if test -z "$BASH_VERSION$ZSH_VERSION" \
35208 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35209 as_echo='print -r --'
35210 as_echo_n='print -rn --'
35211 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
35212 as_echo='printf %s\n'
35213 as_echo_n='printf %s'
35215 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35216 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35217 as_echo_n='/usr/ucb/echo -n'
35219 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35220 as_echo_n_body='eval
35224 expr "X$arg" : "X\\(.*\\)$as_nl";
35225 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35227 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35229 export as_echo_n_body
35230 as_echo_n='sh -c $as_echo_n_body as_echo'
35232 export as_echo_body
35233 as_echo='sh -c $as_echo_body as_echo'
35239 # We need space, tab and new line, in precisely that order. Quoting is
35240 # there to prevent editors from complaining about space-tab.
35241 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35242 # splitting by setting IFS to empty value.)
35245 # Find who we are. Look in the path if we contain no directory separator.
35247 *[\\/]* ) as_myself=$0 ;;
35248 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35249 for as_dir in $PATH
35252 test -z "$as_dir" && as_dir=.
35253 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35259 # We did not find ourselves, most probably we were run as `sh COMMAND'
35260 # in which case we are not to be found in the path.
35261 if test "x$as_myself" = x; then
35264 if test ! -f "$as_myself"; then
35265 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35269 # Unset variables that we do not need and which cause bugs (e.g. in
35270 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35271 # suppresses any "Segmentation fault" message there. '((' could
35272 # trigger a bug in pdksh 5.2.14.
35273 for as_var in BASH_ENV ENV MAIL MAILPATH
35274 do eval test x\${$as_var+set} = xset \
35275 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
35288 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35291 # as_fn_error STATUS ERROR [LINENO LOG_FD]
35292 # ----------------------------------------
35293 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35294 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
35295 # script with STATUS, using 1 if that was 0.
35298 as_status=$1; test $as_status -eq 0 && as_status=1
35300 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35301 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
35303 $as_echo "$as_me: error: $2" >&2
35304 as_fn_exit $as_status
35308 # as_fn_set_status STATUS
35309 # -----------------------
35310 # Set $? to STATUS, without forking.
35311 as_fn_set_status ()
35314 } # as_fn_set_status
35316 # as_fn_exit STATUS
35317 # -----------------
35318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35322 as_fn_set_status $1
35328 # Portably unset VAR.
35331 { eval $1=; unset $1;}
35333 as_unset=as_fn_unset
35334 # as_fn_append VAR VALUE
35335 # ----------------------
35336 # Append the text in VALUE to the end of the definition contained in VAR. Take
35337 # advantage of any shell optimizations that allow amortized linear growth over
35338 # repeated appends, instead of the typical quadratic growth present in naive
35340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35341 eval 'as_fn_append ()
35352 # as_fn_arith ARG...
35353 # ------------------
35354 # Perform arithmetic evaluation on the ARGs, and store the result in the
35355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
35356 # must be portable across $(()) and expr.
35357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35358 eval 'as_fn_arith ()
35365 as_val=`expr "$@" || test $? -eq 1`
35370 if expr a : '\(a\)' >/dev/null 2>&1 &&
35371 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35377 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35378 as_basename=basename
35383 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35389 as_me=`$as_basename -- "$0" ||
35390 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35391 X"$0" : 'X\(//\)$' \| \
35392 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35394 sed '/^.*\/\([^/][^/]*\)\/*$/{
35408 # Avoid depending upon Character Ranges.
35409 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35410 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35411 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35412 as_cr_digits='0123456789'
35413 as_cr_alnum=$as_cr_Letters$as_cr_digits
35415 ECHO_C= ECHO_N= ECHO_T=
35416 case `echo -n x` in #(((((
35418 case `echo 'xy\c'` in
35419 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35421 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35428 rm -f conf$$ conf$$.exe conf$$.file
35429 if test -d conf$$.dir; then
35430 rm -f conf$$.dir/conf$$.file
35433 mkdir conf$$.dir 2>/dev/null
35435 if (echo >conf$$.file) 2>/dev/null; then
35436 if ln -s conf$$.file conf$$ 2>/dev/null; then
35438 # ... but there are two gotchas:
35439 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35440 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35441 # In both cases, we have to default to `cp -p'.
35442 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35444 elif ln conf$$.file conf$$ 2>/dev/null; then
35452 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35453 rmdir conf$$.dir 2>/dev/null
35458 # Create "$as_dir" as a directory, including parents if necessary.
35463 -*) as_dir=./$as_dir;;
35465 test -d "$as_dir" || eval $as_mkdir_p || {
35469 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35470 *) as_qdir=$as_dir;;
35472 as_dirs="'$as_qdir' $as_dirs"
35473 as_dir=`$as_dirname -- "$as_dir" ||
35474 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35475 X"$as_dir" : 'X\(//\)[^/]' \| \
35476 X"$as_dir" : 'X\(//\)$' \| \
35477 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35478 $as_echo X"$as_dir" |
35479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35483 /^X\(\/\/\)[^/].*/{
35496 test -d "$as_dir" && break
35498 test -z "$as_dirs" || eval "mkdir $as_dirs"
35499 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
35503 if mkdir -p . 2>/dev/null; then
35504 as_mkdir_p='mkdir -p "$as_dir"'
35506 test -d ./-p && rmdir ./-p
35510 if test -x / >/dev/null 2>&1; then
35511 as_test_x='test -x'
35513 if ls -dL / >/dev/null 2>&1; then
35520 if test -d "$1"; then
35526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
35527 ???[sx]*):;;*)false;;esac;fi
35531 as_executable_p=$as_test_x
35533 # Sed expression to map a string onto a valid CPP name.
35534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35536 # Sed expression to map a string onto a valid variable name.
35537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35541 ## ----------------------------------- ##
35542 ## Main body of $CONFIG_STATUS script. ##
35543 ## ----------------------------------- ##
35545 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
35547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35548 # Save the log message, to keep $0 and so on meaningful, and to
35549 # report actual input values of CONFIG_FILES etc. instead of their
35550 # values after options handling.
35552 This file was extended by curl $as_me -, which was
35553 generated by GNU Autoconf 2.67. Invocation command line was
35555 CONFIG_FILES = $CONFIG_FILES
35556 CONFIG_HEADERS = $CONFIG_HEADERS
35557 CONFIG_LINKS = $CONFIG_LINKS
35558 CONFIG_COMMANDS = $CONFIG_COMMANDS
35561 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35566 case $ac_config_files in *"
35567 "*) set x $ac_config_files; shift; ac_config_files=$*;;
35570 case $ac_config_headers in *"
35571 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35576 # Files that config.status was made for.
35577 config_files="$ac_config_files"
35578 config_headers="$ac_config_headers"
35579 config_commands="$ac_config_commands"
35583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35585 \`$as_me' instantiates files and other configuration actions
35586 from templates according to the current configuration. Unless the files
35587 and actions are specified as TAGs, all are instantiated by default.
35589 Usage: $0 [OPTION]... [TAG]...
35591 -h, --help print this help, then exit
35592 -V, --version print version number and configuration settings, then exit
35593 --config print configuration, then exit
35594 -q, --quiet, --silent
35595 do not print progress messages
35596 -d, --debug don't remove temporary files
35597 --recheck update $as_me by reconfiguring in the same conditions
35598 --file=FILE[:TEMPLATE]
35599 instantiate the configuration file FILE
35600 --header=FILE[:TEMPLATE]
35601 instantiate the configuration header FILE
35603 Configuration files:
35606 Configuration headers:
35609 Configuration commands:
35612 Report bugs to <a suitable curl mailing list: http://curl.haxx.se/mail/>."
35615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35616 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
35618 curl config.status -
35619 configured by $0, generated by GNU Autoconf 2.67,
35620 with options \\"\$ac_cs_config\\"
35622 Copyright (C) 2010 Free Software Foundation, Inc.
35623 This config.status script is free software; the Free Software Foundation
35624 gives unlimited permission to copy, distribute and modify it."
35630 test -n "\$AWK" || AWK=awk
35633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35634 # The default lists apply if the user does not specify any file.
35640 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35641 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35645 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35657 # Handling of the options.
35658 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35660 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35661 $as_echo "$ac_cs_version"; exit ;;
35662 --config | --confi | --conf | --con | --co | --c )
35663 $as_echo "$ac_cs_config"; exit ;;
35664 --debug | --debu | --deb | --de | --d | -d )
35666 --file | --fil | --fi | --f )
35669 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35670 '') as_fn_error $? "missing file argument" ;;
35672 as_fn_append CONFIG_FILES " '$ac_optarg'"
35673 ac_need_defaults=false;;
35674 --header | --heade | --head | --hea )
35677 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35679 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
35680 ac_need_defaults=false;;
35682 # Conflict between --help and --header
35683 as_fn_error $? "ambiguous option: \`$1'
35684 Try \`$0 --help' for more information.";;
35685 --help | --hel | -h )
35686 $as_echo "$ac_cs_usage"; exit ;;
35687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35688 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35691 # This is an error.
35692 -*) as_fn_error $? "unrecognized option: \`$1'
35693 Try \`$0 --help' for more information." ;;
35695 *) as_fn_append ac_config_targets " $1"
35696 ac_need_defaults=false ;;
35702 ac_configure_extra_args=
35704 if $ac_cs_silent; then
35706 ac_configure_extra_args="$ac_configure_extra_args --silent"
35710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35711 if \$ac_cs_recheck; then
35712 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35714 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35715 CONFIG_SHELL='$SHELL'
35716 export CONFIG_SHELL
35721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35725 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35726 ## Running $as_me. ##
35732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35736 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
35739 # The HP-UX ksh and POSIX shell print the target directory to stdout
35740 # if CDPATH is set.
35741 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35743 sed_quote_subst='$sed_quote_subst'
35744 double_quote_subst='$double_quote_subst'
35745 delay_variable_subst='$delay_variable_subst'
35746 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
35747 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
35748 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
35749 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
35750 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
35751 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
35752 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
35753 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
35754 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
35755 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
35756 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
35757 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
35758 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
35759 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
35760 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
35761 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
35762 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
35763 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
35764 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
35765 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
35766 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
35767 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
35768 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
35769 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
35770 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
35771 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
35772 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
35773 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
35774 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
35775 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
35776 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35777 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
35778 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
35779 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
35780 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
35781 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
35782 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
35783 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35784 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35785 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35786 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
35787 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
35788 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
35789 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
35790 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
35791 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
35792 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
35793 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
35794 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
35795 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
35796 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
35797 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
35798 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
35799 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
35800 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
35801 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
35802 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
35803 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
35804 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
35805 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
35806 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
35807 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
35808 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
35809 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
35810 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35811 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35812 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
35813 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
35814 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
35815 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
35816 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
35817 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35818 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35819 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35820 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35821 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35822 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35823 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
35824 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
35825 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
35826 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
35827 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
35828 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
35829 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
35830 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
35831 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
35832 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
35833 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
35834 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
35835 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
35836 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
35837 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
35838 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35839 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
35840 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
35841 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35842 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
35843 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
35844 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
35845 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
35846 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
35847 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
35848 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
35849 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
35850 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
35851 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
35852 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
35853 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35854 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35855 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
35856 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
35857 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
35858 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
35859 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
35860 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
35861 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
35862 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
35863 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
35864 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
35865 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
35868 LTCFLAGS='$LTCFLAGS'
35869 compiler='$compiler_DEFAULT'
35871 # Quote evaled strings.
35882 deplibs_check_method \
35891 lt_cv_sys_global_symbol_pipe \
35892 lt_cv_sys_global_symbol_to_cdecl \
35893 lt_cv_sys_global_symbol_to_c_name_address \
35894 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
35897 lt_prog_compiler_no_builtin_flag \
35898 lt_prog_compiler_wl \
35899 lt_prog_compiler_pic \
35900 lt_prog_compiler_static \
35901 lt_cv_prog_compiler_c_o \
35909 export_dynamic_flag_spec \
35910 whole_archive_flag_spec \
35911 compiler_needs_object \
35913 allow_undefined_flag \
35914 no_undefined_flag \
35915 hardcode_libdir_flag_spec \
35916 hardcode_libdir_flag_spec_ld \
35917 hardcode_libdir_separator \
35922 variables_saved_for_relink \
35924 library_names_spec \
35929 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
35930 *[\\\\\\\`\\"\\\$]*)
35931 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
35934 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35939 # Double-quote double-evaled strings.
35940 for var in reload_cmds \
35941 old_postinstall_cmds \
35942 old_postuninstall_cmds \
35944 extract_expsyms_cmds \
35945 old_archive_from_new_cmds \
35946 old_archive_from_expsyms_cmds \
35948 archive_expsym_cmds \
35950 module_expsym_cmds \
35951 export_symbols_cmds \
35954 postuninstall_cmds \
35956 sys_lib_search_path_spec \
35957 sys_lib_dlsearch_path_spec; do
35958 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
35959 *[\\\\\\\`\\"\\\$]*)
35960 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
35963 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35968 # Fix-up fallback echo if it was mangled by the above quoting rules.
35970 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
35974 ac_aux_dir='$ac_aux_dir'
35975 xsi_shell='$xsi_shell'
35976 lt_shell_append='$lt_shell_append'
35978 # See if we are running on zsh, and set the options which allow our
35979 # commands through without removal of \ escapes INIT.
35980 if test -n "\${ZSH_VERSION+set}" ; then
35981 setopt NO_GLOB_SUBST
35987 TIMESTAMP='$TIMESTAMP'
35996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35998 # Handling of arguments.
35999 for ac_config_target in $ac_config_targets
36001 case $ac_config_target in
36002 "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
36003 "src/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/curl_config.h" ;;
36004 "include/curl/curlbuild.h") CONFIG_HEADERS="$CONFIG_HEADERS include/curl/curlbuild.h" ;;
36005 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36006 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
36007 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36008 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
36009 "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
36010 "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
36011 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
36012 "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
36013 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
36014 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
36015 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
36016 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
36017 "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
36018 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
36019 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
36020 "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
36021 "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
36022 "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
36023 "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
36024 "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
36025 "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
36026 "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
36027 "packages/EPM/curl.list") CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
36028 "packages/EPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
36029 "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
36030 "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;;
36031 "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;;
36032 "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;;
36033 "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
36034 "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
36036 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
36041 # If the user did not use the arguments to specify the items to instantiate,
36042 # then the envvar interface is used. Set only those that are not.
36043 # We use the long form for the default assignment because of an extremely
36044 # bizarre bug on SunOS 4.1.3.
36045 if $ac_need_defaults; then
36046 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36047 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36048 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36051 # Have a temporary directory for convenience. Make it in the build tree
36052 # simply because there is no reason against having it here, and in addition,
36053 # creating and moving files from /tmp can sometimes cause problems.
36054 # Hook for its removal unless debugging.
36055 # Note that there is a small window in which the directory will not be cleaned:
36056 # after its creation but before its name has been assigned to `$tmp'.
36060 trap 'exit_status=$?
36061 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
36063 trap 'as_fn_exit 1' 1 2 13 15
36065 # Create a (secure) tmp directory for tmp files.
36068 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
36069 test -n "$tmp" && test -d "$tmp"
36072 tmp=./conf$$-$RANDOM
36073 (umask 077 && mkdir "$tmp")
36074 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
36076 # Set up the scripts for CONFIG_FILES section.
36077 # No need to generate them if there are no CONFIG_FILES.
36078 # This happens for instance with `./config.status config.h'.
36079 if test -n "$CONFIG_FILES"; then
36082 ac_cr=`echo X | tr X '\015'`
36083 # On cygwin, bash can eat \r inside `` if the user requested igncr.
36084 # But we know of no other shell where ac_cr would be empty at this
36085 # point, so we can use a bashism as a fallback.
36086 if test "x$ac_cr" = x; then
36087 eval ac_cr=\$\'\\r\'
36089 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36090 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
36093 ac_cs_awk_cr=$ac_cr
36096 echo 'BEGIN {' >"$tmp/subs1.awk" &&
36101 echo "cat >conf$$subs.awk <<_ACEOF" &&
36102 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36104 } >conf$$subs.sh ||
36105 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36106 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
36108 for ac_last_try in false false false false false :; do
36109 . ./conf$$subs.sh ||
36110 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36112 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36113 if test $ac_delim_n = $ac_delim_num; then
36115 elif $ac_last_try; then
36116 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36118 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36121 rm -f conf$$subs.sh
36123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36124 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
36128 s/^/S["/; s/!.*/"]=/
36138 s/\(.\{148\}\)..*/\1/
36140 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36145 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36152 s/\(.\{148\}\)..*/\1/
36154 s/["\\]/\\&/g; s/^/"/; s/$/"/
36158 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36163 ' <conf$$subs.awk | sed '
36168 ' >>$CONFIG_STATUS || ac_write_fail=1
36169 rm -f conf$$subs.awk
36170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36172 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
36173 for (key in S) S_is_set[key] = 1
36179 nfields = split(line, field, "@")
36181 len = length(field[1])
36182 for (i = 2; i < nfields; i++) {
36184 keylen = length(key)
36185 if (S_is_set[key]) {
36187 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36188 len += length(value) + length(field[++i])
36199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36200 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36201 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36204 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
36205 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
36208 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36209 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
36210 # trailing colons and then remove the whole line if VPATH becomes empty
36211 # (actually we leave an empty line to preserve line numbers).
36212 if test "x$srcdir" = x.; then
36213 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36232 fi # test -n "$CONFIG_FILES"
36234 # Set up the scripts for CONFIG_HEADERS section.
36235 # No need to generate them if there are no CONFIG_HEADERS.
36236 # This happens for instance with `./config.status Makefile'.
36237 if test -n "$CONFIG_HEADERS"; then
36238 cat >"$tmp/defines.awk" <<\_ACAWK ||
36242 # Transform confdefs.h into an awk script `defines.awk', embedded as
36243 # here-document in config.status, that substitutes the proper values into
36244 # config.h.in to produce config.h.
36246 # Create a delimiter string that does not exist in confdefs.h, to ease
36247 # handling of long lines.
36249 for ac_last_try in false false :; do
36250 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
36251 if test -z "$ac_t"; then
36253 elif $ac_last_try; then
36254 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
36256 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36260 # For the awk script, D is an array of macro values keyed by name,
36261 # likewise P contains macro parameters if any. Preserve backslash
36262 # newline sequences.
36264 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36266 s/.\{148\}/&'"$ac_delim"'/g
36269 s/^[ ]*#[ ]*define[ ][ ]*/ /
36276 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36278 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36282 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36283 D["\1"]=" \3\\\\\\n"\\/p
36285 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36290 s/.\{148\}/&'"$ac_delim"'/g
36295 s/["\\]/\\&/g; s/^/"/; s/$/"/p
36298 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36300 ' <confdefs.h | sed '
36301 s/'"$ac_delim"'/"\\\
36302 "/g' >>$CONFIG_STATUS || ac_write_fail=1
36304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36305 for (key in D) D_is_set[key] = 1
36308 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36310 split(line, arg, " ")
36311 if (arg[1] == "#") {
36315 defundef = substr(arg[1], 2)
36318 split(mac1, mac2, "(") #)
36320 prefix = substr(line, 1, index(line, defundef) - 1)
36321 if (D_is_set[macro]) {
36322 # Preserve the white space surrounding the "#".
36323 print prefix "define", macro P[macro] D[macro]
36326 # Replace #undef with comments. This is necessary, for example,
36327 # in the case of _POSIX_SOURCE, which is predefined and required
36328 # on some systems where configure will not decide to define it.
36329 if (defundef == "undef") {
36330 print "/*", prefix defundef, macro, "*/"
36338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36339 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
36340 fi # test -n "$CONFIG_HEADERS"
36343 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
36348 :[FHLC]) ac_mode=$ac_tag; continue;;
36350 case $ac_mode$ac_tag in
36352 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
36353 :[FH]-) ac_tag=-:-;;
36354 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36371 -) ac_f="$tmp/stdin";;
36372 *) # Look for the file first in the build tree, then in the source tree
36373 # (if the path is not absolute). The absolute path cannot be DOS-style,
36374 # because $ac_f cannot contain `:'.
36378 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36380 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
36382 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
36383 as_fn_append ac_file_inputs " '$ac_f'"
36386 # Let's still pretend it is `configure' which instantiates (i.e., don't
36387 # use $as_me), people would be surprised to read:
36388 # /* config.h. Generated by config.status. */
36389 configure_input='Generated from '`
36390 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36392 if test x"$ac_file" != x-; then
36393 configure_input="$ac_file. $configure_input"
36394 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
36395 $as_echo "$as_me: creating $ac_file" >&6;}
36397 # Neutralize special characters interpreted by sed in replacement strings.
36398 case $configure_input in #(
36399 *\&* | *\|* | *\\* )
36400 ac_sed_conf_input=`$as_echo "$configure_input" |
36401 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36402 *) ac_sed_conf_input=$configure_input;;
36406 *:-:* | *:-) cat >"$tmp/stdin" \
36407 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
36412 ac_dir=`$as_dirname -- "$ac_file" ||
36413 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36414 X"$ac_file" : 'X\(//\)[^/]' \| \
36415 X"$ac_file" : 'X\(//\)$' \| \
36416 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36417 $as_echo X"$ac_file" |
36418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36422 /^X\(\/\/\)[^/].*/{
36435 as_dir="$ac_dir"; as_fn_mkdir_p
36439 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36441 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36442 # A ".." for each directory in $ac_dir_suffix.
36443 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36444 case $ac_top_builddir_sub in
36445 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36446 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36449 ac_abs_top_builddir=$ac_pwd
36450 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36451 # for backward compatibility:
36452 ac_top_builddir=$ac_top_build_prefix
36455 .) # We are building in place.
36457 ac_top_srcdir=$ac_top_builddir_sub
36458 ac_abs_top_srcdir=$ac_pwd ;;
36459 [\\/]* | ?:[\\/]* ) # Absolute name.
36460 ac_srcdir=$srcdir$ac_dir_suffix;
36461 ac_top_srcdir=$srcdir
36462 ac_abs_top_srcdir=$srcdir ;;
36463 *) # Relative name.
36464 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36465 ac_top_srcdir=$ac_top_build_prefix$srcdir
36466 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36468 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36478 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36479 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36484 # If the template does not know about datarootdir, expand it.
36485 # FIXME: This hack should be removed a few years after 2.60.
36486 ac_datarootdir_hack=; ac_datarootdir_seen=
36497 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36498 *datarootdir*) ac_datarootdir_seen=yes;;
36499 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36501 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36504 ac_datarootdir_hack='
36505 s&@datadir@&$datadir&g
36506 s&@docdir@&$docdir&g
36507 s&@infodir@&$infodir&g
36508 s&@localedir@&$localedir&g
36509 s&@mandir@&$mandir&g
36510 s&\\\${datarootdir}&$datarootdir&g' ;;
36514 # Neutralize VPATH when `$srcdir' = `.'.
36515 # Shell code in configure.ac might set extrasub.
36516 # FIXME: do we really want to maintain this feature?
36517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36518 ac_sed_extra="$ac_vpsub
36521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36523 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36524 s|@configure_input@|$ac_sed_conf_input|;t t
36525 s&@top_builddir@&$ac_top_builddir_sub&;t t
36526 s&@top_build_prefix@&$ac_top_build_prefix&;t t
36527 s&@srcdir@&$ac_srcdir&;t t
36528 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36529 s&@top_srcdir@&$ac_top_srcdir&;t t
36530 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36531 s&@builddir@&$ac_builddir&;t t
36532 s&@abs_builddir@&$ac_abs_builddir&;t t
36533 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36534 s&@INSTALL@&$ac_INSTALL&;t t
36535 $ac_datarootdir_hack
36537 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
36538 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36540 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36541 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36542 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36544 which seems to be undefined. Please make sure it is defined" >&5
36545 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36546 which seems to be undefined. Please make sure it is defined" >&2;}
36550 -) cat "$tmp/out" && rm -f "$tmp/out";;
36551 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
36553 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36559 if test x"$ac_file" != x-; then
36561 $as_echo "/* $configure_input */" \
36562 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
36563 } >"$tmp/config.h" \
36564 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36565 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
36566 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
36567 $as_echo "$as_me: $ac_file is unchanged" >&6;}
36570 mv "$tmp/config.h" "$ac_file" \
36571 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36574 $as_echo "/* $configure_input */" \
36575 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
36576 || as_fn_error $? "could not create -" "$LINENO" 5
36578 # Compute "$ac_file"'s index in $config_headers.
36580 for _am_header in $config_headers :; do
36581 case $_am_header in
36582 "$ac_file" | "$ac_file":* )
36585 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
36588 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
36589 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36590 X"$ac_file" : 'X\(//\)[^/]' \| \
36591 X"$ac_file" : 'X\(//\)$' \| \
36592 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36593 $as_echo X"$ac_file" |
36594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36598 /^X\(\/\/\)[^/].*/{
36610 s/.*/./; q'`/stamp-h$_am_stamp_count
36613 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
36614 $as_echo "$as_me: executing $ac_file commands" >&6;}
36619 case $ac_file$ac_mode in
36620 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
36621 # Strip MF so we end up with the name of the file.
36622 mf=`echo "$mf" | sed -e 's/:.*$//'`
36623 # Check whether this is an Automake generated Makefile or not.
36624 # We used to match only the files named `Makefile.in', but
36625 # some people rename them; so instead we look at the file content.
36626 # Grep'ing the first line is not enough: some people post-process
36627 # each Makefile.in and add a new line on top of each file to say so.
36628 # So let's grep whole file.
36629 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
36630 dirpart=`$as_dirname -- "$mf" ||
36631 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36632 X"$mf" : 'X\(//\)[^/]' \| \
36633 X"$mf" : 'X\(//\)$' \| \
36634 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
36636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36640 /^X\(\/\/\)[^/].*/{
36656 # Extract the definition of DEPDIR, am__include, and am__quote
36657 # from the Makefile without running `make'.
36658 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
36659 test -z "$DEPDIR" && continue
36660 am__include=`sed -n 's/^am__include = //p' < "$mf"`
36661 test -z "am__include" && continue
36662 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
36663 # When using ansi2knr, U may be empty or an underscore; expand it
36664 U=`sed -n 's/^U = //p' < "$mf"`
36665 # Find all dependency output files, they are included files with
36666 # $(DEPDIR) in their names. We invoke sed twice because it is the
36667 # simplest approach to changing $(DEPDIR) to its actual value in the
36669 for file in `sed -n "
36670 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
36671 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
36672 # Make sure the directory exists.
36673 test -f "$dirpart/$file" && continue
36674 fdir=`$as_dirname -- "$file" ||
36675 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36676 X"$file" : 'X\(//\)[^/]' \| \
36677 X"$file" : 'X\(//\)$' \| \
36678 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
36679 $as_echo X"$file" |
36680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36684 /^X\(\/\/\)[^/].*/{
36697 as_dir=$dirpart/$fdir; as_fn_mkdir_p
36698 # echo "creating $dirpart/$file"
36699 echo '# dummy' > "$dirpart/$file"
36705 # See if we are running on zsh, and set the options which allow our
36706 # commands through without removal of \ escapes.
36707 if test -n "${ZSH_VERSION+set}" ; then
36708 setopt NO_GLOB_SUBST
36711 cfgfile="${ofile}T"
36712 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
36715 cat <<_LT_EOF >> "$cfgfile"
36718 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
36719 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
36720 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
36721 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
36723 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
36724 # 2006, 2007, 2008 Free Software Foundation, Inc.
36725 # Written by Gordon Matzigkeit, 1996
36727 # This file is part of GNU Libtool.
36729 # GNU Libtool is free software; you can redistribute it and/or
36730 # modify it under the terms of the GNU General Public License as
36731 # published by the Free Software Foundation; either version 2 of
36732 # the License, or (at your option) any later version.
36734 # As a special exception to the GNU General Public License,
36735 # if you distribute this file as part of a program or library that
36736 # is built using GNU Libtool, you may include this file under the
36737 # same distribution terms that you use for the rest of that program.
36739 # GNU Libtool is distributed in the hope that it will be useful,
36740 # but WITHOUT ANY WARRANTY; without even the implied warranty of
36741 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36742 # GNU General Public License for more details.
36744 # You should have received a copy of the GNU General Public License
36745 # along with GNU Libtool; see the file COPYING. If not, a copy
36746 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
36747 # obtained by writing to the Free Software Foundation, Inc.,
36748 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
36751 # The names of the tagged configurations supported by this script.
36754 # ### BEGIN LIBTOOL CONFIG
36756 # Assembler program.
36759 # DLL creation program.
36762 # Object dumper program.
36765 # Which release of libtool.m4 was used?
36766 macro_version=$macro_version
36767 macro_revision=$macro_revision
36769 # Whether or not to build shared libraries.
36770 build_libtool_libs=$enable_shared
36772 # Whether or not to build static libraries.
36773 build_old_libs=$enable_static
36775 # What type of objects to build.
36778 # Whether or not to optimize for fast installation.
36779 fast_install=$enable_fast_install
36782 host_alias=$host_alias
36786 # The build system.
36787 build_alias=$build_alias
36791 # A sed program that does not truncate output.
36794 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
36795 Xsed="\$SED -e 1s/^X//"
36797 # A grep program that handles long lines.
36803 # A literal string matcher.
36806 # A BSD- or MS-compatible name lister.
36809 # Whether we need soft or hard links.
36812 # What is the maximum length of a command?
36813 max_cmd_len=$max_cmd_len
36815 # Object file suffix (normally "o").
36818 # Executable file suffix (normally "").
36821 # whether the shell understands "unset".
36824 # turn spaces into newlines.
36827 # turn newlines into spaces.
36830 # How to create reloadable object files.
36831 reload_flag=$lt_reload_flag
36832 reload_cmds=$lt_reload_cmds
36834 # Method to check whether dependent libraries are shared objects.
36835 deplibs_check_method=$lt_deplibs_check_method
36837 # Command to use when deplibs_check_method == "file_magic".
36838 file_magic_cmd=$lt_file_magic_cmd
36842 AR_FLAGS=$lt_AR_FLAGS
36844 # A symbol stripping program.
36847 # Commands used to install an old-style archive.
36849 old_postinstall_cmds=$lt_old_postinstall_cmds
36850 old_postuninstall_cmds=$lt_old_postuninstall_cmds
36855 # LTCC compiler flags.
36856 LTCFLAGS=$lt_CFLAGS
36858 # Take the output of nm and produce a listing of raw symbols and C names.
36859 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
36861 # Transform the output of nm in a proper C declaration.
36862 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
36864 # Transform the output of nm in a C name address pair.
36865 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
36867 # Transform the output of nm in a C name address pair when lib prefix is needed.
36868 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
36870 # The name of the directory that contains temporary libtool files.
36873 # Shell to use when invoking shell scripts.
36876 # An echo program that does not interpret backslashes.
36879 # Used to examine libraries when file_magic_cmd begins with "file".
36880 MAGIC_CMD=$MAGIC_CMD
36882 # Must we lock files when doing compilation?
36883 need_locks=$lt_need_locks
36885 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
36886 DSYMUTIL=$lt_DSYMUTIL
36888 # Tool to change global to local symbols on Mac OS X.
36891 # Tool to manipulate fat objects and archives on Mac OS X.
36894 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
36897 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
36898 OTOOL64=$lt_OTOOL64
36900 # Old archive suffix (normally "a").
36903 # Shared library suffix (normally ".so").
36904 shrext_cmds=$lt_shrext_cmds
36906 # The commands to extract the exported symbol list from a shared archive.
36907 extract_expsyms_cmds=$lt_extract_expsyms_cmds
36909 # Variables whose values should be saved in libtool wrapper scripts and
36910 # restored at link time.
36911 variables_saved_for_relink=$lt_variables_saved_for_relink
36913 # Do we need the "lib" prefix for modules?
36914 need_lib_prefix=$need_lib_prefix
36916 # Do we need a version for libraries?
36917 need_version=$need_version
36919 # Library versioning type.
36920 version_type=$version_type
36922 # Shared library runtime path variable.
36923 runpath_var=$runpath_var
36925 # Shared library path variable.
36926 shlibpath_var=$shlibpath_var
36928 # Is shlibpath searched before the hard-coded library search path?
36929 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
36931 # Format of library name prefix.
36932 libname_spec=$lt_libname_spec
36934 # List of archive names. First name is the real one, the rest are links.
36935 # The last name is the one that the linker finds with -lNAME
36936 library_names_spec=$lt_library_names_spec
36938 # The coded name of the library, if different from the real name.
36939 soname_spec=$lt_soname_spec
36941 # Command to use after installation of a shared archive.
36942 postinstall_cmds=$lt_postinstall_cmds
36944 # Command to use after uninstallation of a shared archive.
36945 postuninstall_cmds=$lt_postuninstall_cmds
36947 # Commands used to finish a libtool library installation in a directory.
36948 finish_cmds=$lt_finish_cmds
36950 # As "finish_cmds", except a single script fragment to be evaled but
36952 finish_eval=$lt_finish_eval
36954 # Whether we should hardcode library paths into libraries.
36955 hardcode_into_libs=$hardcode_into_libs
36957 # Compile-time system search path for libraries.
36958 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
36960 # Run-time system search path for libraries.
36961 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
36963 # Whether dlopen is supported.
36964 dlopen_support=$enable_dlopen
36966 # Whether dlopen of programs is supported.
36967 dlopen_self=$enable_dlopen_self
36969 # Whether dlopen of statically linked programs is supported.
36970 dlopen_self_static=$enable_dlopen_self_static
36972 # Commands to strip libraries.
36973 old_striplib=$lt_old_striplib
36974 striplib=$lt_striplib
36977 # The linker used to build libraries.
36980 # Commands used to build an old-style archive.
36981 old_archive_cmds=$lt_old_archive_cmds
36983 # A language specific compiler.
36986 # Is the compiler the GNU compiler?
36989 # Compiler flag to turn off builtin functions.
36990 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
36992 # How to pass a linker flag through the compiler.
36993 wl=$lt_lt_prog_compiler_wl
36995 # Additional compiler flags for building library objects.
36996 pic_flag=$lt_lt_prog_compiler_pic
36998 # Compiler flag to prevent dynamic linking.
36999 link_static_flag=$lt_lt_prog_compiler_static
37001 # Does compiler simultaneously support -c and -o options?
37002 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37004 # Whether or not to add -lc for building shared libraries.
37005 build_libtool_need_lc=$archive_cmds_need_lc
37007 # Whether or not to disallow shared libs when runtime libs are static.
37008 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37010 # Compiler flag to allow reflexive dlopens.
37011 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37013 # Compiler flag to generate shared objects directly from archives.
37014 whole_archive_flag_spec=$lt_whole_archive_flag_spec
37016 # Whether the compiler copes with passing no objects directly.
37017 compiler_needs_object=$lt_compiler_needs_object
37019 # Create an old-style archive from a shared archive.
37020 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37022 # Create a temporary old-style archive to link instead of a shared archive.
37023 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37025 # Commands used to build a shared archive.
37026 archive_cmds=$lt_archive_cmds
37027 archive_expsym_cmds=$lt_archive_expsym_cmds
37029 # Commands used to build a loadable module if different from building
37030 # a shared archive.
37031 module_cmds=$lt_module_cmds
37032 module_expsym_cmds=$lt_module_expsym_cmds
37034 # Whether we are building with GNU ld or not.
37035 with_gnu_ld=$lt_with_gnu_ld
37037 # Flag that allows shared libraries with undefined symbols to be built.
37038 allow_undefined_flag=$lt_allow_undefined_flag
37040 # Flag that enforces no undefined symbols.
37041 no_undefined_flag=$lt_no_undefined_flag
37043 # Flag to hardcode \$libdir into a binary during linking.
37044 # This must work even if \$libdir does not exist
37045 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37047 # If ld is used when linking, flag to hardcode \$libdir into a binary
37048 # during linking. This must work even if \$libdir does not exist.
37049 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
37051 # Whether we need a single "-rpath" flag with a separated argument.
37052 hardcode_libdir_separator=$lt_hardcode_libdir_separator
37054 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37055 # DIR into the resulting binary.
37056 hardcode_direct=$hardcode_direct
37058 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37059 # DIR into the resulting binary and the resulting library dependency is
37060 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37061 # library is relocated.
37062 hardcode_direct_absolute=$hardcode_direct_absolute
37064 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37065 # into the resulting binary.
37066 hardcode_minus_L=$hardcode_minus_L
37068 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37069 # into the resulting binary.
37070 hardcode_shlibpath_var=$hardcode_shlibpath_var
37072 # Set to "yes" if building a shared library automatically hardcodes DIR
37073 # into the library and all subsequent libraries and executables linked
37075 hardcode_automatic=$hardcode_automatic
37077 # Set to yes if linker adds runtime paths of dependent libraries
37078 # to runtime path list.
37079 inherit_rpath=$inherit_rpath
37081 # Whether libtool must link a program against all its dependency libraries.
37082 link_all_deplibs=$link_all_deplibs
37084 # Fix the shell variable \$srcfile for the compiler.
37085 fix_srcfile_path=$lt_fix_srcfile_path
37087 # Set to "yes" if exported symbols are required.
37088 always_export_symbols=$always_export_symbols
37090 # The commands to list exported symbols.
37091 export_symbols_cmds=$lt_export_symbols_cmds
37093 # Symbols that should not be listed in the preloaded symbols.
37094 exclude_expsyms=$lt_exclude_expsyms
37096 # Symbols that must always be exported.
37097 include_expsyms=$lt_include_expsyms
37099 # Commands necessary for linking programs (against libraries) with templates.
37100 prelink_cmds=$lt_prelink_cmds
37102 # Specify filename containing input files.
37103 file_list_spec=$lt_file_list_spec
37105 # How to hardcode a shared library path into an executable.
37106 hardcode_action=$hardcode_action
37108 # ### END LIBTOOL CONFIG
37114 cat <<\_LT_EOF >> "$cfgfile"
37115 # AIX sometimes has problems with the GCC collect2 program. For some
37116 # reason, if we set the COLLECT_NAMES environment variable, the problems
37117 # vanish in a puff of smoke.
37118 if test "X${COLLECT_NAMES+set}" != Xset; then
37120 export COLLECT_NAMES
37127 ltmain="$ac_aux_dir/ltmain.sh"
37130 # We use sed instead of cat because bash on DJGPP gets confused if
37131 # if finds mixed CR/LF and LF-only lines. Since sed operates in
37132 # text mode, it properly converts lines to CR/LF. This bash problem
37133 # is reportedly fixed, but why not run on old versions too?
37134 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
37135 || (rm -f "$cfgfile"; exit 1)
37139 cat << \_LT_EOF >> "$cfgfile"
37141 # func_dirname file append nondir_replacement
37142 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
37143 # otherwise set result to NONDIR_REPLACEMENT.
37147 */*) func_dirname_result="${1%/*}${2}" ;;
37148 * ) func_dirname_result="${3}" ;;
37152 # func_basename file
37155 func_basename_result="${1##*/}"
37158 # func_dirname_and_basename file append nondir_replacement
37159 # perform func_basename and func_dirname in a single function
37161 # dirname: Compute the dirname of FILE. If nonempty,
37162 # add APPEND to the result, otherwise set result
37163 # to NONDIR_REPLACEMENT.
37164 # value returned in "$func_dirname_result"
37165 # basename: Compute filename of FILE.
37166 # value retuned in "$func_basename_result"
37167 # Implementation must be kept synchronized with func_dirname
37168 # and func_basename. For efficiency, we do not delegate to
37169 # those functions but instead duplicate the functionality here.
37170 func_dirname_and_basename ()
37173 */*) func_dirname_result="${1%/*}${2}" ;;
37174 * ) func_dirname_result="${3}" ;;
37176 func_basename_result="${1##*/}"
37179 # func_stripname prefix suffix name
37180 # strip PREFIX and SUFFIX off of NAME.
37181 # PREFIX and SUFFIX must not contain globbing or regex special
37182 # characters, hashes, percent signs, but SUFFIX may contain a leading
37183 # dot (in which case that matches only a dot).
37186 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
37187 # positional parameters, so assign one to ordinary parameter first.
37188 func_stripname_result=${3}
37189 func_stripname_result=${func_stripname_result#"${1}"}
37190 func_stripname_result=${func_stripname_result%"${2}"}
37196 func_opt_split_opt=${1%%=*}
37197 func_opt_split_arg=${1#*=}
37204 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
37205 *) func_lo2o_result=${1} ;;
37209 # func_xform libobj-or-source
37212 func_xform_result=${1%.*}.lo
37215 # func_arith arithmetic-term...
37218 func_arith_result=$(( $* ))
37222 # STRING may not start with a hyphen.
37225 func_len_result=${#1}
37230 *) # Bourne compatible functions.
37231 cat << \_LT_EOF >> "$cfgfile"
37233 # func_dirname file append nondir_replacement
37234 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
37235 # otherwise set result to NONDIR_REPLACEMENT.
37238 # Extract subdirectory from the argument.
37239 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
37240 if test "X$func_dirname_result" = "X${1}"; then
37241 func_dirname_result="${3}"
37243 func_dirname_result="$func_dirname_result${2}"
37247 # func_basename file
37250 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
37254 # func_stripname prefix suffix name
37255 # strip PREFIX and SUFFIX off of NAME.
37256 # PREFIX and SUFFIX must not contain globbing or regex special
37257 # characters, hashes, percent signs, but SUFFIX may contain a leading
37258 # dot (in which case that matches only a dot).
37259 # func_strip_suffix prefix name
37263 .*) func_stripname_result=`$ECHO "X${3}" \
37264 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
37265 *) func_stripname_result=`$ECHO "X${3}" \
37266 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
37271 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
37272 my_sed_long_arg='1s/^-[^=]*=//'
37277 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
37278 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
37284 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
37287 # func_xform libobj-or-source
37290 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
37293 # func_arith arithmetic-term...
37296 func_arith_result=`expr "$@"`
37300 # STRING may not start with a hyphen.
37303 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
37309 case $lt_shell_append in
37311 cat << \_LT_EOF >> "$cfgfile"
37313 # func_append var value
37314 # Append VALUE to the end of shell variable VAR.
37322 cat << \_LT_EOF >> "$cfgfile"
37324 # func_append var value
37325 # Append VALUE to the end of shell variable VAR.
37336 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
37337 || (rm -f "$cfgfile"; exit 1)
37339 mv -f "$cfgfile" "$ofile" ||
37340 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37351 ac_clean_files=$ac_clean_files_save
37353 test $ac_write_fail = 0 ||
37354 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
37357 # configure is writing to config.log, and then calls config.status.
37358 # config.status does its own redirection, appending to config.log.
37359 # Unfortunately, on DOS this fails, as config.log is still kept open
37360 # by configure, so config.status won't be able to write to it; its
37361 # output is simply discarded. So we exec the FD to /dev/null,
37362 # effectively closing config.log, so it can be properly (re)opened and
37363 # appended to by config.status. When coming back to configure, we
37364 # need to make the FD available again.
37365 if test "$no_create" != yes; then
37367 ac_config_status_args=
37368 test "$silent" = yes &&
37369 ac_config_status_args="$ac_config_status_args --quiet"
37371 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37373 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37374 # would make configure fail if this is the last instruction.
37375 $ac_cs_success || as_fn_exit 1
37379 # CONFIG_SUBDIRS section.
37381 if test "$no_recursion" != yes; then
37383 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
37384 # so they do not pile up.
37385 ac_sub_configure_args=
37387 eval "set x $ac_configure_args"
37391 if test -n "$ac_prev"; then
37396 -cache-file | --cache-file | --cache-fil | --cache-fi \
37397 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
37398 ac_prev=cache_file ;;
37399 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
37400 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
37403 --config-cache | -C)
37405 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
37407 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
37409 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
37411 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
37413 --disable-option-checking)
37417 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
37419 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
37423 # Always prepend --prefix to ensure using the same prefix
37424 # in subdir configurations.
37425 ac_arg="--prefix=$prefix"
37427 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
37429 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
37432 if test "$silent" = yes; then
37433 ac_sub_configure_args="--silent $ac_sub_configure_args"
37436 # Always prepend --disable-option-checking to silence warnings, since
37437 # different subdirs can have different --enable and --with options.
37438 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
37441 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
37443 # Do not complain, so a configure script can configure whichever
37444 # parts of a large source tree are present.
37445 test -d "$srcdir/$ac_dir" || continue
37447 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
37448 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
37449 $as_echo "$ac_msg" >&6
37450 as_dir="$ac_dir"; as_fn_mkdir_p
37454 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37456 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37457 # A ".." for each directory in $ac_dir_suffix.
37458 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37459 case $ac_top_builddir_sub in
37460 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37461 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37464 ac_abs_top_builddir=$ac_pwd
37465 ac_abs_builddir=$ac_pwd$ac_dir_suffix
37466 # for backward compatibility:
37467 ac_top_builddir=$ac_top_build_prefix
37470 .) # We are building in place.
37472 ac_top_srcdir=$ac_top_builddir_sub
37473 ac_abs_top_srcdir=$ac_pwd ;;
37474 [\\/]* | ?:[\\/]* ) # Absolute name.
37475 ac_srcdir=$srcdir$ac_dir_suffix;
37476 ac_top_srcdir=$srcdir
37477 ac_abs_top_srcdir=$srcdir ;;
37478 *) # Relative name.
37479 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37480 ac_top_srcdir=$ac_top_build_prefix$srcdir
37481 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37483 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37488 # Check for guested configure; otherwise get Cygnus style configure.
37489 if test -f "$ac_srcdir/configure.gnu"; then
37490 ac_sub_configure=$ac_srcdir/configure.gnu
37491 elif test -f "$ac_srcdir/configure"; then
37492 ac_sub_configure=$ac_srcdir/configure
37493 elif test -f "$ac_srcdir/configure.in"; then
37494 # This should be Cygnus configure.
37495 ac_sub_configure=$ac_aux_dir/configure
37497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
37498 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
37502 # The recursion is here.
37503 if test -n "$ac_sub_configure"; then
37504 # Make the cache file name correct relative to the subdirectory.
37505 case $cache_file in
37506 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
37507 *) # Relative name.
37508 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
37511 { $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
37512 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
37513 # The eval makes quoting arguments work.
37514 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
37515 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
37516 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
37522 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
37523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
37524 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
37529 tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
37530 if test -z "$tmp_cpp"; then
37533 cat >./tests/configurehelp.pm <<_EOF
37534 # This is a generated file. Do not edit.
37536 package configurehelp;
37548 @ISA = qw(Exporter);
37554 \$Cpreprocessor = '$tmp_cpp';
37560 { $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
37562 curl version: ${VERSION}
37563 Host setup: ${host}
37564 Install prefix: ${prefix}
37566 SSL support: ${curl_ssl_msg}
37567 SSH support: ${curl_ssh_msg}
37568 zlib support: ${curl_zlib_msg}
37569 krb4 support: ${curl_krb4_msg}
37570 GSSAPI support: ${curl_gss_msg}
37571 SPNEGO support: ${curl_spnego_msg}
37572 resolver: ${curl_res_msg}
37573 ipv6 support: ${curl_ipv6_msg}
37574 IDN support: ${curl_idn_msg}
37575 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
37576 Built-in manual: ${curl_manual_msg}
37577 Verbose errors: ${curl_verbose_msg}
37578 SSPI support: ${curl_sspi_msg}
37579 ca cert bundle: ${ca}
37580 ca cert path: ${capath}
37581 LDAP support: ${curl_ldap_msg}
37582 LDAPS support: ${curl_ldaps_msg}
37583 RTSP support: ${curl_rtsp_msg}
37584 RTMP support: ${curl_rtmp_msg}
37585 Protocols: ${SUPPORT_PROTOCOLS}
37587 $as_echo "$as_me: Configured to build curl/libcurl:
37589 curl version: ${VERSION}
37590 Host setup: ${host}
37591 Install prefix: ${prefix}
37593 SSL support: ${curl_ssl_msg}
37594 SSH support: ${curl_ssh_msg}
37595 zlib support: ${curl_zlib_msg}
37596 krb4 support: ${curl_krb4_msg}
37597 GSSAPI support: ${curl_gss_msg}
37598 SPNEGO support: ${curl_spnego_msg}
37599 resolver: ${curl_res_msg}
37600 ipv6 support: ${curl_ipv6_msg}
37601 IDN support: ${curl_idn_msg}
37602 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
37603 Built-in manual: ${curl_manual_msg}
37604 Verbose errors: ${curl_verbose_msg}
37605 SSPI support: ${curl_sspi_msg}
37606 ca cert bundle: ${ca}
37607 ca cert path: ${capath}
37608 LDAP support: ${curl_ldap_msg}
37609 LDAPS support: ${curl_ldaps_msg}
37610 RTSP support: ${curl_rtsp_msg}
37611 RTMP support: ${curl_rtmp_msg}
37612 Protocols: ${SUPPORT_PROTOCOLS}
37615 if test "x$soname_bump" = "xyes"; then
37618 SONAME bump: yes - WARNING: this library will be built with the SONAME
37619 number bumped due to (a detected) ABI breakage.
37620 See lib/README.curl_off_t for details on this.