mime: properly check Content-Type even if it has parameters
[platform/upstream/curl.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for curl -.
4 #
5 # Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 #
14 # Copyright (c) 1998 - 2019 Daniel Stenberg, <daniel@haxx.se>
15 # This configure script may be copied, distributed and modified under the
16 # terms of the curl license; see COPYING for more details
17
18 ## -------------------------------- ##
19 ##  XC_CONFIGURE_PREAMBLE ver: 1.0  ##
20 ## -------------------------------- ##
21
22 xc_configure_preamble_ver_major='1'
23 xc_configure_preamble_ver_minor='0'
24
25 #
26 # Set IFS to space, tab and newline.
27 #
28
29 xc_space=' '
30 xc_tab='        '
31 xc_newline='
32 '
33 IFS="$xc_space$xc_tab$xc_newline"
34
35 #
36 # Set internationalization behavior variables.
37 #
38
39 LANG='C'
40 LC_ALL='C'
41 LANGUAGE='C'
42 export LANG
43 export LC_ALL
44 export LANGUAGE
45
46 #
47 # Some useful variables.
48 #
49
50 xc_msg_warn='configure: WARNING:'
51 xc_msg_abrt='Can not continue.'
52 xc_msg_err='configure: error:'
53
54 #
55 # Verify that 'echo' command is available, otherwise abort.
56 #
57
58 xc_tst_str='unknown'
59 (`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
60 case "x$xc_tst_str" in # ((
61   xsuccess)
62     :
63     ;;
64   *)
65     # Try built-in echo, and fail.
66     echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
67     exit 1
68     ;;
69 esac
70
71 #
72 # Verify that 'test' command is available, otherwise abort.
73 #
74
75 xc_tst_str='unknown'
76 (`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
77 case "x$xc_tst_str" in # ((
78   xsuccess)
79     :
80     ;;
81   *)
82     echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2
83     exit 1
84     ;;
85 esac
86
87 #
88 # Verify that 'PATH' variable is set, otherwise abort.
89 #
90
91 xc_tst_str='unknown'
92 (`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
93 case "x$xc_tst_str" in # ((
94   xsuccess)
95     :
96     ;;
97   *)
98     echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2
99     exit 1
100     ;;
101 esac
102
103 #
104 # Verify that 'expr' command is available, otherwise abort.
105 #
106
107 xc_tst_str='unknown'
108 xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
109 case "x$xc_tst_str" in # ((
110   x7)
111     :
112     ;;
113   *)
114     echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2
115     exit 1
116     ;;
117 esac
118
119 #
120 # Verify that 'sed' utility is found within 'PATH', otherwise abort.
121 #
122
123 xc_tst_str='unknown'
124 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
125   | sed -e 's:unknown:success:' 2>/dev/null`
126 case "x$xc_tst_str" in # ((
127   xsuccess)
128     :
129     ;;
130   *)
131     echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2
132     exit 1
133     ;;
134 esac
135
136 #
137 # Verify that 'grep' utility is found within 'PATH', otherwise abort.
138 #
139
140 xc_tst_str='unknown'
141 (`echo "$xc_tst_str" 2>/dev/null \
142   | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
143 case "x$xc_tst_str" in # ((
144   xsuccess)
145     :
146     ;;
147   *)
148     echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2
149     exit 1
150     ;;
151 esac
152
153 #
154 # Verify that 'tr' utility is found within 'PATH', otherwise abort.
155 #
156
157 xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
158 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
159   | tr -d "0123456789$xc_tab" 2>/dev/null`
160 case "x$xc_tst_str" in # ((
161   xsuccess)
162     :
163     ;;
164   *)
165     echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2
166     exit 1
167     ;;
168 esac
169
170 #
171 # Verify that 'wc' utility is found within 'PATH', otherwise abort.
172 #
173
174 xc_tst_str='unknown unknown unknown unknown'
175 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
176   | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
177 case "x$xc_tst_str" in # ((
178   x4)
179     :
180     ;;
181   *)
182     echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2
183     exit 1
184     ;;
185 esac
186
187 #
188 # Verify that 'cat' utility is found within 'PATH', otherwise abort.
189 #
190
191 xc_tst_str='unknown'
192 xc_tst_str=`cat <<_EOT 2>/dev/null \
193   | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
194 unknown
195 unknown
196 unknown
197 _EOT`
198 case "x$xc_tst_str" in # ((
199   x3)
200     :
201     ;;
202   *)
203     echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2
204     exit 1
205     ;;
206 esac
207
208 #
209 # Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
210 #
211
212 # Directory count in 'PATH' when using a colon separator.
213 xc_tst_dirs_col='x'
214 xc_tst_prev_IFS=$IFS; IFS=':'
215 for xc_tst_dir in $PATH; do
216   IFS=$xc_tst_prev_IFS
217   xc_tst_dirs_col="x$xc_tst_dirs_col"
218 done
219 IFS=$xc_tst_prev_IFS
220 xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
221
222 # Directory count in 'PATH' when using a semicolon separator.
223 xc_tst_dirs_sem='x'
224 xc_tst_prev_IFS=$IFS; IFS=';'
225 for xc_tst_dir in $PATH; do
226   IFS=$xc_tst_prev_IFS
227   xc_tst_dirs_sem="x$xc_tst_dirs_sem"
228 done
229 IFS=$xc_tst_prev_IFS
230 xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
231
232 if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then
233   # When both counting methods give the same result we do not want to
234   # chose one over the other, and consider auto-detection not possible.
235   if test -z "$PATH_SEPARATOR"; then
236     # User should provide the correct 'PATH_SEPARATOR' definition.
237     # Until then, guess that it is colon!
238     echo "$xc_msg_warn path separator not determined, guessing colon" >&2
239     PATH_SEPARATOR=':'
240   fi
241 else
242   # Separator with the greater directory count is the auto-detected one.
243   if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
244     xc_tst_auto_separator=';'
245   else
246     xc_tst_auto_separator=':'
247   fi
248   if test -z "$PATH_SEPARATOR"; then
249     # Simply use the auto-detected one when not already set.
250     PATH_SEPARATOR=$xc_tst_auto_separator
251   elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
252     echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
253   fi
254 fi
255 xc_PATH_SEPARATOR=$PATH_SEPARATOR
256
257 xc_configure_preamble_result='yes'
258
259
260 ## -------------------- ##
261 ## M4sh Initialization. ##
262 ## -------------------- ##
263
264 # Be more Bourne compatible
265 DUALCASE=1; export DUALCASE # for MKS sh
266 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
267   emulate sh
268   NULLCMD=:
269   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
270   # is contrary to our usage.  Disable this feature.
271   alias -g '${1+"$@"}'='"$@"'
272   setopt NO_GLOB_SUBST
273 else
274   case `(set -o) 2>/dev/null` in #(
275   *posix*) :
276     set -o posix ;; #(
277   *) :
278      ;;
279 esac
280 fi
281
282
283 as_nl='
284 '
285 export as_nl
286 # Printing a long string crashes Solaris 7 /usr/bin/printf.
287 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
288 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
289 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
290 # Prefer a ksh shell builtin over an external printf program on Solaris,
291 # but without wasting forks for bash or zsh.
292 if test -z "$BASH_VERSION$ZSH_VERSION" \
293     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
294   as_echo='print -r --'
295   as_echo_n='print -rn --'
296 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
297   as_echo='printf %s\n'
298   as_echo_n='printf %s'
299 else
300   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
301     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
302     as_echo_n='/usr/ucb/echo -n'
303   else
304     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
305     as_echo_n_body='eval
306       arg=$1;
307       case $arg in #(
308       *"$as_nl"*)
309         expr "X$arg" : "X\\(.*\\)$as_nl";
310         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
311       esac;
312       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
313     '
314     export as_echo_n_body
315     as_echo_n='sh -c $as_echo_n_body as_echo'
316   fi
317   export as_echo_body
318   as_echo='sh -c $as_echo_body as_echo'
319 fi
320
321
322
323 # IFS
324 # We need space, tab and new line, in precisely that order.  Quoting is
325 # there to prevent editors from complaining about space-tab.
326 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
327 # splitting by setting IFS to empty value.)
328 IFS=" ""        $as_nl"
329
330 # Find who we are.  Look in the path if we contain no directory separator.
331 as_myself=
332 case $0 in #((
333   *[\\/]* ) as_myself=$0 ;;
334   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
335 for as_dir in $PATH
336 do
337   IFS=$as_save_IFS
338   test -z "$as_dir" && as_dir=.
339     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
340   done
341 IFS=$as_save_IFS
342
343      ;;
344 esac
345 # We did not find ourselves, most probably we were run as `sh COMMAND'
346 # in which case we are not to be found in the path.
347 if test "x$as_myself" = x; then
348   as_myself=$0
349 fi
350 if test ! -f "$as_myself"; then
351   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
352   exit 1
353 fi
354
355 # Unset variables that we do not need and which cause bugs (e.g. in
356 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
357 # suppresses any "Segmentation fault" message there.  '((' could
358 # trigger a bug in pdksh 5.2.14.
359 for as_var in BASH_ENV ENV MAIL MAILPATH
360 do eval test x\${$as_var+set} = xset \
361   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
362 done
363 PS1='$ '
364 PS2='> '
365 PS4='+ '
366
367 # NLS nuisances.
368 LC_ALL=C
369 export LC_ALL
370 LANGUAGE=C
371 export LANGUAGE
372
373 # CDPATH.
374 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
375
376 # Use a proper internal environment variable to ensure we don't fall
377   # into an infinite loop, continuously re-executing ourselves.
378   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
379     _as_can_reexec=no; export _as_can_reexec;
380     # We cannot yet assume a decent shell, so we have to provide a
381 # neutralization value for shells without unset; and this also
382 # works around shells that cannot unset nonexistent variables.
383 # Preserve -v and -x to the replacement shell.
384 BASH_ENV=/dev/null
385 ENV=/dev/null
386 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
387 case $- in # ((((
388   *v*x* | *x*v* ) as_opts=-vx ;;
389   *v* ) as_opts=-v ;;
390   *x* ) as_opts=-x ;;
391   * ) as_opts= ;;
392 esac
393 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
394 # Admittedly, this is quite paranoid, since all the known shells bail
395 # out after a failed `exec'.
396 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
397 as_fn_exit 255
398   fi
399   # We don't want this to propagate to other subprocesses.
400           { _as_can_reexec=; unset _as_can_reexec;}
401 if test "x$CONFIG_SHELL" = x; then
402   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
403   emulate sh
404   NULLCMD=:
405   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
406   # is contrary to our usage.  Disable this feature.
407   alias -g '\${1+\"\$@\"}'='\"\$@\"'
408   setopt NO_GLOB_SUBST
409 else
410   case \`(set -o) 2>/dev/null\` in #(
411   *posix*) :
412     set -o posix ;; #(
413   *) :
414      ;;
415 esac
416 fi
417 "
418   as_required="as_fn_return () { (exit \$1); }
419 as_fn_success () { as_fn_return 0; }
420 as_fn_failure () { as_fn_return 1; }
421 as_fn_ret_success () { return 0; }
422 as_fn_ret_failure () { return 1; }
423
424 exitcode=0
425 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
426 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
427 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
428 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
429 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
430
431 else
432   exitcode=1; echo positional parameters were not saved.
433 fi
434 test x\$exitcode = x0 || exit 1
435 test -x / || exit 1"
436   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
437   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
438   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
439   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
440 test \$(( 1 + 1 )) = 2 || exit 1
441
442   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
443     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
444     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
445     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
446     PATH=/empty FPATH=/empty; export PATH FPATH
447     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
448       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
449   if (eval "$as_required") 2>/dev/null; then :
450   as_have_required=yes
451 else
452   as_have_required=no
453 fi
454   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
455
456 else
457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
458 as_found=false
459 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
460 do
461   IFS=$as_save_IFS
462   test -z "$as_dir" && as_dir=.
463   as_found=:
464   case $as_dir in #(
465          /*)
466            for as_base in sh bash ksh sh5; do
467              # Try only shells that exist, to save several forks.
468              as_shell=$as_dir/$as_base
469              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
470                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
471   CONFIG_SHELL=$as_shell as_have_required=yes
472                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
473   break 2
474 fi
475 fi
476            done;;
477        esac
478   as_found=false
479 done
480 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
481               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
482   CONFIG_SHELL=$SHELL as_have_required=yes
483 fi; }
484 IFS=$as_save_IFS
485
486
487       if test "x$CONFIG_SHELL" != x; then :
488   export CONFIG_SHELL
489              # We cannot yet assume a decent shell, so we have to provide a
490 # neutralization value for shells without unset; and this also
491 # works around shells that cannot unset nonexistent variables.
492 # Preserve -v and -x to the replacement shell.
493 BASH_ENV=/dev/null
494 ENV=/dev/null
495 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
496 case $- in # ((((
497   *v*x* | *x*v* ) as_opts=-vx ;;
498   *v* ) as_opts=-v ;;
499   *x* ) as_opts=-x ;;
500   * ) as_opts= ;;
501 esac
502 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
503 # Admittedly, this is quite paranoid, since all the known shells bail
504 # out after a failed `exec'.
505 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
506 exit 255
507 fi
508
509     if test x$as_have_required = xno; then :
510   $as_echo "$0: This script requires a shell more modern than all"
511   $as_echo "$0: the shells that I found on your system."
512   if test x${ZSH_VERSION+set} = xset ; then
513     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
514     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
515   else
516     $as_echo "$0: Please tell bug-autoconf@gnu.org and a suitable curl
517 $0: mailing list: https://curl.haxx.se/mail/ about your
518 $0: system, including any error possibly output before this
519 $0: message. Then install a modern shell, or manually run
520 $0: the script under such a shell if you do have one."
521   fi
522   exit 1
523 fi
524 fi
525 fi
526 SHELL=${CONFIG_SHELL-/bin/sh}
527 export SHELL
528 # Unset more variables known to interfere with behavior of common tools.
529 CLICOLOR_FORCE= GREP_OPTIONS=
530 unset CLICOLOR_FORCE GREP_OPTIONS
531
532 ## --------------------- ##
533 ## M4sh Shell Functions. ##
534 ## --------------------- ##
535 # as_fn_unset VAR
536 # ---------------
537 # Portably unset VAR.
538 as_fn_unset ()
539 {
540   { eval $1=; unset $1;}
541 }
542 as_unset=as_fn_unset
543
544 # as_fn_set_status STATUS
545 # -----------------------
546 # Set $? to STATUS, without forking.
547 as_fn_set_status ()
548 {
549   return $1
550 } # as_fn_set_status
551
552 # as_fn_exit STATUS
553 # -----------------
554 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
555 as_fn_exit ()
556 {
557   set +e
558   as_fn_set_status $1
559   exit $1
560 } # as_fn_exit
561
562 # as_fn_mkdir_p
563 # -------------
564 # Create "$as_dir" as a directory, including parents if necessary.
565 as_fn_mkdir_p ()
566 {
567
568   case $as_dir in #(
569   -*) as_dir=./$as_dir;;
570   esac
571   test -d "$as_dir" || eval $as_mkdir_p || {
572     as_dirs=
573     while :; do
574       case $as_dir in #(
575       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
576       *) as_qdir=$as_dir;;
577       esac
578       as_dirs="'$as_qdir' $as_dirs"
579       as_dir=`$as_dirname -- "$as_dir" ||
580 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
581          X"$as_dir" : 'X\(//\)[^/]' \| \
582          X"$as_dir" : 'X\(//\)$' \| \
583          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
584 $as_echo X"$as_dir" |
585     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
586             s//\1/
587             q
588           }
589           /^X\(\/\/\)[^/].*/{
590             s//\1/
591             q
592           }
593           /^X\(\/\/\)$/{
594             s//\1/
595             q
596           }
597           /^X\(\/\).*/{
598             s//\1/
599             q
600           }
601           s/.*/./; q'`
602       test -d "$as_dir" && break
603     done
604     test -z "$as_dirs" || eval "mkdir $as_dirs"
605   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
606
607
608 } # as_fn_mkdir_p
609
610 # as_fn_executable_p FILE
611 # -----------------------
612 # Test if FILE is an executable regular file.
613 as_fn_executable_p ()
614 {
615   test -f "$1" && test -x "$1"
616 } # as_fn_executable_p
617 # as_fn_append VAR VALUE
618 # ----------------------
619 # Append the text in VALUE to the end of the definition contained in VAR. Take
620 # advantage of any shell optimizations that allow amortized linear growth over
621 # repeated appends, instead of the typical quadratic growth present in naive
622 # implementations.
623 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
624   eval 'as_fn_append ()
625   {
626     eval $1+=\$2
627   }'
628 else
629   as_fn_append ()
630   {
631     eval $1=\$$1\$2
632   }
633 fi # as_fn_append
634
635 # as_fn_arith ARG...
636 # ------------------
637 # Perform arithmetic evaluation on the ARGs, and store the result in the
638 # global $as_val. Take advantage of shells that can avoid forks. The arguments
639 # must be portable across $(()) and expr.
640 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
641   eval 'as_fn_arith ()
642   {
643     as_val=$(( $* ))
644   }'
645 else
646   as_fn_arith ()
647   {
648     as_val=`expr "$@" || test $? -eq 1`
649   }
650 fi # as_fn_arith
651
652
653 # as_fn_error STATUS ERROR [LINENO LOG_FD]
654 # ----------------------------------------
655 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
656 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
657 # script with STATUS, using 1 if that was 0.
658 as_fn_error ()
659 {
660   as_status=$1; test $as_status -eq 0 && as_status=1
661   if test "$4"; then
662     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
663     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
664   fi
665   $as_echo "$as_me: error: $2" >&2
666   as_fn_exit $as_status
667 } # as_fn_error
668
669 if expr a : '\(a\)' >/dev/null 2>&1 &&
670    test "X`expr 00001 : '.*\(...\)'`" = X001; then
671   as_expr=expr
672 else
673   as_expr=false
674 fi
675
676 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
677   as_basename=basename
678 else
679   as_basename=false
680 fi
681
682 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
683   as_dirname=dirname
684 else
685   as_dirname=false
686 fi
687
688 as_me=`$as_basename -- "$0" ||
689 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
690          X"$0" : 'X\(//\)$' \| \
691          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
692 $as_echo X/"$0" |
693     sed '/^.*\/\([^/][^/]*\)\/*$/{
694             s//\1/
695             q
696           }
697           /^X\/\(\/\/\)$/{
698             s//\1/
699             q
700           }
701           /^X\/\(\/\).*/{
702             s//\1/
703             q
704           }
705           s/.*/./; q'`
706
707 # Avoid depending upon Character Ranges.
708 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
709 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
710 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
711 as_cr_digits='0123456789'
712 as_cr_alnum=$as_cr_Letters$as_cr_digits
713
714
715   as_lineno_1=$LINENO as_lineno_1a=$LINENO
716   as_lineno_2=$LINENO as_lineno_2a=$LINENO
717   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
718   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
719   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
720   sed -n '
721     p
722     /[$]LINENO/=
723   ' <$as_myself |
724     sed '
725       s/[$]LINENO.*/&-/
726       t lineno
727       b
728       :lineno
729       N
730       :loop
731       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
732       t loop
733       s/-\n.*//
734     ' >$as_me.lineno &&
735   chmod +x "$as_me.lineno" ||
736     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
737
738   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
739   # already done that, so ensure we don't try to do so again and fall
740   # in an infinite loop.  This has already happened in practice.
741   _as_can_reexec=no; export _as_can_reexec
742   # Don't try to exec as it changes $[0], causing all sort of problems
743   # (the dirname of $[0] is not the place where we might find the
744   # original and so on.  Autoconf is especially sensitive to this).
745   . "./$as_me.lineno"
746   # Exit status is that of the last command.
747   exit
748 }
749
750 ECHO_C= ECHO_N= ECHO_T=
751 case `echo -n x` in #(((((
752 -n*)
753   case `echo 'xy\c'` in
754   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
755   xy)  ECHO_C='\c';;
756   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
757        ECHO_T=' ';;
758   esac;;
759 *)
760   ECHO_N='-n';;
761 esac
762
763 rm -f conf$$ conf$$.exe conf$$.file
764 if test -d conf$$.dir; then
765   rm -f conf$$.dir/conf$$.file
766 else
767   rm -f conf$$.dir
768   mkdir conf$$.dir 2>/dev/null
769 fi
770 if (echo >conf$$.file) 2>/dev/null; then
771   if ln -s conf$$.file conf$$ 2>/dev/null; then
772     as_ln_s='ln -s'
773     # ... but there are two gotchas:
774     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
775     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
776     # In both cases, we have to default to `cp -pR'.
777     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
778       as_ln_s='cp -pR'
779   elif ln conf$$.file conf$$ 2>/dev/null; then
780     as_ln_s=ln
781   else
782     as_ln_s='cp -pR'
783   fi
784 else
785   as_ln_s='cp -pR'
786 fi
787 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
788 rmdir conf$$.dir 2>/dev/null
789
790 if mkdir -p . 2>/dev/null; then
791   as_mkdir_p='mkdir -p "$as_dir"'
792 else
793   test -d ./-p && rmdir ./-p
794   as_mkdir_p=false
795 fi
796
797 as_test_x='test -x'
798 as_executable_p=as_fn_executable_p
799
800 # Sed expression to map a string onto a valid CPP name.
801 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
802
803 # Sed expression to map a string onto a valid variable name.
804 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
805
806 SHELL=${CONFIG_SHELL-/bin/sh}
807
808
809 test -n "$DJDIR" || exec 7<&0 </dev/null
810 exec 6>&1
811
812 # Name of the host.
813 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
814 # so uname gets run too.
815 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
816
817 #
818 # Initializations.
819 #
820 ac_default_prefix=/usr/local
821 ac_clean_files=
822 ac_config_libobj_dir=.
823 LIBOBJS=
824 cross_compiling=no
825 subdirs=
826 MFLAGS=
827 MAKEFLAGS=
828
829 # Identity of this package.
830 PACKAGE_NAME='curl'
831 PACKAGE_TARNAME='curl'
832 PACKAGE_VERSION='-'
833 PACKAGE_STRING='curl -'
834 PACKAGE_BUGREPORT='a suitable curl mailing list: https://curl.haxx.se/mail/'
835 PACKAGE_URL=''
836
837 ac_unique_file="lib/urldata.h"
838 # Factoring default headers for most tests.
839 ac_includes_default="\
840 #include <stdio.h>
841 #ifdef HAVE_SYS_TYPES_H
842 # include <sys/types.h>
843 #endif
844 #ifdef HAVE_SYS_STAT_H
845 # include <sys/stat.h>
846 #endif
847 #ifdef STDC_HEADERS
848 # include <stdlib.h>
849 # include <stddef.h>
850 #else
851 # ifdef HAVE_STDLIB_H
852 #  include <stdlib.h>
853 # endif
854 #endif
855 #ifdef HAVE_STRING_H
856 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
857 #  include <memory.h>
858 # endif
859 # include <string.h>
860 #endif
861 #ifdef HAVE_STRINGS_H
862 # include <strings.h>
863 #endif
864 #ifdef HAVE_INTTYPES_H
865 # include <inttypes.h>
866 #endif
867 #ifdef HAVE_STDINT_H
868 # include <stdint.h>
869 #endif
870 #ifdef HAVE_UNISTD_H
871 # include <unistd.h>
872 #endif"
873
874 enable_option_checking=no
875 ac_subst_vars='am__EXEEXT_FALSE
876 am__EXEEXT_TRUE
877 LTLIBOBJS
878 LIBOBJS
879 SSL_BACKENDS
880 SUPPORT_PROTOCOLS
881 SUPPORT_FEATURES
882 ENABLE_STATIC
883 ENABLE_SHARED
884 CROSSCOMPILING_FALSE
885 CROSSCOMPILING_TRUE
886 BLANK_AT_MAKETIME
887 CURL_NETWORK_AND_TIME_LIBS
888 CURL_NETWORK_LIBS
889 LIBCURL_LIBS
890 CFLAG_CURL_SYMBOL_HIDING
891 DOING_CURL_SYMBOL_HIDING_FALSE
892 DOING_CURL_SYMBOL_HIDING_TRUE
893 USE_UNIX_SOCKETS
894 BUILD_LIBHOSTNAME_FALSE
895 BUILD_LIBHOSTNAME_TRUE
896 USE_EMBEDDED_ARES_FALSE
897 USE_EMBEDDED_ARES_TRUE
898 USE_ARES
899 subdirs
900 USE_MANUAL_FALSE
901 USE_MANUAL_TRUE
902 MANOPT
903 NROFF
904 PERL
905 FISH_FUNCTIONS_DIR
906 ZSH_FUNCTIONS_DIR
907 USE_QUICHE
908 USE_NGHTTP3
909 USE_NGTCP2_CRYPTO_OPENSSL
910 USE_NGTCP2
911 USE_NGHTTP2
912 IDN_ENABLED
913 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
914 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
915 CURL_LT_SHLIB_VERSIONED_FLAVOUR
916 USE_LIBRTMP
917 USE_LIBSSH
918 USE_LIBSSH2
919 LIBMETALINK_CPPFLAGS
920 LIBMETALINK_LDFLAGS
921 LIBMETALINK_LIBS
922 USE_LIBPSL_FALSE
923 USE_LIBPSL_TRUE
924 CURL_CA_BUNDLE
925 CURL_WITH_MULTI_SSL
926 SSL_ENABLED
927 NSS_LIBS
928 USE_NSS
929 USE_BEARSSL
930 USE_MESALINK
931 USE_WOLFSSL
932 USE_MBEDTLS
933 HAVE_GNUTLS_SRP
934 USE_GNUTLS_NETTLE
935 USE_GNUTLS
936 HAVE_OPENSSL_SRP
937 RANDOM_FILE
938 SSL_LIBS
939 USE_SECTRANSP
940 USE_WINDOWS_SSPI
941 USE_SCHANNEL
942 DEFAULT_SSL_BACKEND
943 BUILD_STUB_GSS_FALSE
944 BUILD_STUB_GSS_TRUE
945 IPV6_ENABLED
946 USE_OPENLDAP
947 HAVE_BROTLI
948 ZLIB_LIBS
949 HAVE_LIBZ_FALSE
950 HAVE_LIBZ_TRUE
951 HAVE_LIBZ
952 PKGCONFIG
953 HAVE_PROTO_BSDSOCKET_H
954 CURL_DISABLE_GOPHER
955 CURL_DISABLE_SMTP
956 CURL_DISABLE_SMB
957 CURL_DISABLE_IMAP
958 CURL_DISABLE_POP3
959 CURL_DISABLE_TFTP
960 CURL_DISABLE_TELNET
961 CURL_DISABLE_DICT
962 CURL_DISABLE_PROXY
963 HAVE_LDAP_SSL
964 CURL_DISABLE_LDAPS
965 CURL_DISABLE_LDAP
966 CURL_DISABLE_FILE
967 CURL_DISABLE_FTP
968 CURL_DISABLE_RTSP
969 CURL_DISABLE_HTTP
970 DOING_NATIVE_WINDOWS_FALSE
971 DOING_NATIVE_WINDOWS_TRUE
972 BUILD_UNITTESTS_FALSE
973 BUILD_UNITTESTS_TRUE
974 CURLDEBUG_FALSE
975 CURLDEBUG_TRUE
976 USE_EXPLICIT_LIB_DEPS_FALSE
977 USE_EXPLICIT_LIB_DEPS_TRUE
978 REQUIRE_LIB_DEPS
979 CPPFLAG_CURL_STATICLIB
980 USE_CPPFLAG_CURL_STATICLIB_FALSE
981 USE_CPPFLAG_CURL_STATICLIB_TRUE
982 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
983 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
984 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
985 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
986 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
987 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
988 LT_SYS_LIBRARY_PATH
989 OTOOL64
990 OTOOL
991 LIPO
992 NMEDIT
993 DSYMUTIL
994 MANIFEST_TOOL
995 RANLIB
996 ac_ct_AR
997 LN_S
998 NM
999 ac_ct_DUMPBIN
1000 DUMPBIN
1001 LD
1002 FGREP
1003 LIBTOOL
1004 OBJDUMP
1005 DLLTOOL
1006 AS
1007 AR_FLAGS
1008 host_os
1009 host_vendor
1010 host_cpu
1011 host
1012 build_os
1013 build_vendor
1014 build_cpu
1015 build
1016 PKGADD_VENDOR
1017 PKGADD_NAME
1018 PKGADD_PKG
1019 VERSIONNUM
1020 CURLVERSION
1021 am__fastdepCC_FALSE
1022 am__fastdepCC_TRUE
1023 CCDEPMODE
1024 am__nodep
1025 AMDEPBACKSLASH
1026 AMDEP_FALSE
1027 AMDEP_TRUE
1028 am__include
1029 DEPDIR
1030 am__untar
1031 am__tar
1032 AMTAR
1033 am__leading_dot
1034 SET_MAKE
1035 AWK
1036 mkdir_p
1037 MKDIR_P
1038 INSTALL_STRIP_PROGRAM
1039 STRIP
1040 install_sh
1041 MAKEINFO
1042 AUTOHEADER
1043 AUTOMAKE
1044 AUTOCONF
1045 ACLOCAL
1046 VERSION
1047 PACKAGE
1048 CYGPATH_W
1049 am__isrc
1050 LCOV
1051 GCOV
1052 CPP
1053 OBJEXT
1054 EXEEXT
1055 ac_ct_CC
1056 CPPFLAGS
1057 LDFLAGS
1058 CFLAGS
1059 CC
1060 INSTALL_DATA
1061 INSTALL_SCRIPT
1062 INSTALL_PROGRAM
1063 libext
1064 AR
1065 EGREP
1066 GREP
1067 SED
1068 CURL_CFLAG_EXTRAS
1069 CONFIGURE_OPTIONS
1070 AM_BACKSLASH
1071 AM_DEFAULT_VERBOSITY
1072 AM_DEFAULT_V
1073 AM_V
1074 MAINT
1075 MAINTAINER_MODE_FALSE
1076 MAINTAINER_MODE_TRUE
1077 target_alias
1078 host_alias
1079 build_alias
1080 LIBS
1081 ECHO_T
1082 ECHO_N
1083 ECHO_C
1084 DEFS
1085 mandir
1086 localedir
1087 libdir
1088 psdir
1089 pdfdir
1090 dvidir
1091 htmldir
1092 infodir
1093 docdir
1094 oldincludedir
1095 includedir
1096 runstatedir
1097 localstatedir
1098 sharedstatedir
1099 sysconfdir
1100 datadir
1101 datarootdir
1102 libexecdir
1103 sbindir
1104 bindir
1105 program_transform_name
1106 prefix
1107 exec_prefix
1108 PACKAGE_URL
1109 PACKAGE_BUGREPORT
1110 PACKAGE_STRING
1111 PACKAGE_VERSION
1112 PACKAGE_TARNAME
1113 PACKAGE_NAME
1114 SHELL
1115 PATH_SEPARATOR
1116 am__quote'
1117 ac_subst_files=''
1118 ac_user_opts='
1119 enable_option_checking
1120 enable_maintainer_mode
1121 enable_silent_rules
1122 enable_debug
1123 enable_optimize
1124 enable_warnings
1125 enable_werror
1126 enable_curldebug
1127 enable_symbol_hiding
1128 enable_hidden_symbols
1129 enable_ares
1130 enable_rt
1131 enable_esni
1132 enable_code_coverage
1133 enable_dependency_tracking
1134 enable_largefile
1135 enable_shared
1136 enable_static
1137 with_pic
1138 enable_fast_install
1139 with_aix_soname
1140 with_gnu_ld
1141 with_sysroot
1142 enable_libtool_lock
1143 enable_http
1144 enable_ftp
1145 enable_file
1146 enable_ldap
1147 enable_ldaps
1148 enable_rtsp
1149 enable_proxy
1150 enable_dict
1151 enable_telnet
1152 enable_tftp
1153 enable_pop3
1154 enable_imap
1155 enable_smb
1156 enable_smtp
1157 enable_gopher
1158 enable_manual
1159 enable_libcurl_option
1160 enable_libgcc
1161 with_zlib
1162 with_brotli
1163 with_ldap_lib
1164 with_lber_lib
1165 enable_ipv6
1166 with_gssapi_includes
1167 with_gssapi_libs
1168 with_gssapi
1169 with_default_ssl_backend
1170 with_winssl
1171 with_schannel
1172 with_darwinssl
1173 with_secure_transport
1174 with_amissl
1175 with_ssl
1176 with_egd_socket
1177 with_random
1178 enable_openssl_auto_load_config
1179 with_gnutls
1180 with_mbedtls
1181 with_wolfssl
1182 with_mesalink
1183 with_bearssl
1184 with_nss
1185 with_ca_bundle
1186 with_ca_path
1187 with_ca_fallback
1188 with_libpsl
1189 with_libmetalink
1190 with_libssh2
1191 with_libssh
1192 with_librtmp
1193 enable_versioned_symbols
1194 with_winidn
1195 with_libidn2
1196 with_nghttp2
1197 with_ngtcp2
1198 with_nghttp3
1199 with_quiche
1200 with_zsh_functions_dir
1201 with_fish_functions_dir
1202 enable_threaded_resolver
1203 enable_pthreads
1204 enable_verbose
1205 enable_sspi
1206 enable_crypto_auth
1207 enable_ntlm_wb
1208 enable_tls_srp
1209 enable_unix_sockets
1210 enable_cookies
1211 enable_http_auth
1212 enable_doh
1213 enable_mime
1214 enable_dateparse
1215 enable_netrc
1216 enable_progress_meter
1217 enable_dnsshuffle
1218 enable_alt_svc
1219 '
1220       ac_precious_vars='build_alias
1221 host_alias
1222 target_alias
1223 CC
1224 CFLAGS
1225 LDFLAGS
1226 LIBS
1227 CPPFLAGS
1228 CPP
1229 LT_SYS_LIBRARY_PATH'
1230 ac_subdirs_all='ares'
1231
1232 # Initialize some variables set by options.
1233 ac_init_help=
1234 ac_init_version=false
1235 ac_unrecognized_opts=
1236 ac_unrecognized_sep=
1237 # The variables have the same names as the options, with
1238 # dashes changed to underlines.
1239 cache_file=/dev/null
1240 exec_prefix=NONE
1241 no_create=
1242 no_recursion=
1243 prefix=NONE
1244 program_prefix=NONE
1245 program_suffix=NONE
1246 program_transform_name=s,x,x,
1247 silent=
1248 site=
1249 srcdir=
1250 verbose=
1251 x_includes=NONE
1252 x_libraries=NONE
1253
1254 # Installation directory options.
1255 # These are left unexpanded so users can "make install exec_prefix=/foo"
1256 # and all the variables that are supposed to be based on exec_prefix
1257 # by default will actually change.
1258 # Use braces instead of parens because sh, perl, etc. also accept them.
1259 # (The list follows the same order as the GNU Coding Standards.)
1260 bindir='${exec_prefix}/bin'
1261 sbindir='${exec_prefix}/sbin'
1262 libexecdir='${exec_prefix}/libexec'
1263 datarootdir='${prefix}/share'
1264 datadir='${datarootdir}'
1265 sysconfdir='${prefix}/etc'
1266 sharedstatedir='${prefix}/com'
1267 localstatedir='${prefix}/var'
1268 runstatedir='${localstatedir}/run'
1269 includedir='${prefix}/include'
1270 oldincludedir='/usr/include'
1271 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1272 infodir='${datarootdir}/info'
1273 htmldir='${docdir}'
1274 dvidir='${docdir}'
1275 pdfdir='${docdir}'
1276 psdir='${docdir}'
1277 libdir='${exec_prefix}/lib'
1278 localedir='${datarootdir}/locale'
1279 mandir='${datarootdir}/man'
1280
1281 ac_prev=
1282 ac_dashdash=
1283 for ac_option
1284 do
1285   # If the previous option needs an argument, assign it.
1286   if test -n "$ac_prev"; then
1287     eval $ac_prev=\$ac_option
1288     ac_prev=
1289     continue
1290   fi
1291
1292   case $ac_option in
1293   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1294   *=)   ac_optarg= ;;
1295   *)    ac_optarg=yes ;;
1296   esac
1297
1298   # Accept the important Cygnus configure options, so we can diagnose typos.
1299
1300   case $ac_dashdash$ac_option in
1301   --)
1302     ac_dashdash=yes ;;
1303
1304   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1305     ac_prev=bindir ;;
1306   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1307     bindir=$ac_optarg ;;
1308
1309   -build | --build | --buil | --bui | --bu)
1310     ac_prev=build_alias ;;
1311   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1312     build_alias=$ac_optarg ;;
1313
1314   -cache-file | --cache-file | --cache-fil | --cache-fi \
1315   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1316     ac_prev=cache_file ;;
1317   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1318   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1319     cache_file=$ac_optarg ;;
1320
1321   --config-cache | -C)
1322     cache_file=config.cache ;;
1323
1324   -datadir | --datadir | --datadi | --datad)
1325     ac_prev=datadir ;;
1326   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1327     datadir=$ac_optarg ;;
1328
1329   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1330   | --dataroo | --dataro | --datar)
1331     ac_prev=datarootdir ;;
1332   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1333   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1334     datarootdir=$ac_optarg ;;
1335
1336   -disable-* | --disable-*)
1337     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1338     # Reject names that are not valid shell variable names.
1339     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1340       as_fn_error $? "invalid feature name: $ac_useropt"
1341     ac_useropt_orig=$ac_useropt
1342     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1343     case $ac_user_opts in
1344       *"
1345 "enable_$ac_useropt"
1346 "*) ;;
1347       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1348          ac_unrecognized_sep=', ';;
1349     esac
1350     eval enable_$ac_useropt=no ;;
1351
1352   -docdir | --docdir | --docdi | --doc | --do)
1353     ac_prev=docdir ;;
1354   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1355     docdir=$ac_optarg ;;
1356
1357   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1358     ac_prev=dvidir ;;
1359   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1360     dvidir=$ac_optarg ;;
1361
1362   -enable-* | --enable-*)
1363     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1364     # Reject names that are not valid shell variable names.
1365     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1366       as_fn_error $? "invalid feature name: $ac_useropt"
1367     ac_useropt_orig=$ac_useropt
1368     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1369     case $ac_user_opts in
1370       *"
1371 "enable_$ac_useropt"
1372 "*) ;;
1373       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1374          ac_unrecognized_sep=', ';;
1375     esac
1376     eval enable_$ac_useropt=\$ac_optarg ;;
1377
1378   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1379   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1380   | --exec | --exe | --ex)
1381     ac_prev=exec_prefix ;;
1382   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1383   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1384   | --exec=* | --exe=* | --ex=*)
1385     exec_prefix=$ac_optarg ;;
1386
1387   -gas | --gas | --ga | --g)
1388     # Obsolete; use --with-gas.
1389     with_gas=yes ;;
1390
1391   -help | --help | --hel | --he | -h)
1392     ac_init_help=long ;;
1393   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1394     ac_init_help=recursive ;;
1395   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1396     ac_init_help=short ;;
1397
1398   -host | --host | --hos | --ho)
1399     ac_prev=host_alias ;;
1400   -host=* | --host=* | --hos=* | --ho=*)
1401     host_alias=$ac_optarg ;;
1402
1403   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1404     ac_prev=htmldir ;;
1405   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1406   | --ht=*)
1407     htmldir=$ac_optarg ;;
1408
1409   -includedir | --includedir | --includedi | --included | --include \
1410   | --includ | --inclu | --incl | --inc)
1411     ac_prev=includedir ;;
1412   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1413   | --includ=* | --inclu=* | --incl=* | --inc=*)
1414     includedir=$ac_optarg ;;
1415
1416   -infodir | --infodir | --infodi | --infod | --info | --inf)
1417     ac_prev=infodir ;;
1418   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1419     infodir=$ac_optarg ;;
1420
1421   -libdir | --libdir | --libdi | --libd)
1422     ac_prev=libdir ;;
1423   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1424     libdir=$ac_optarg ;;
1425
1426   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1427   | --libexe | --libex | --libe)
1428     ac_prev=libexecdir ;;
1429   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1430   | --libexe=* | --libex=* | --libe=*)
1431     libexecdir=$ac_optarg ;;
1432
1433   -localedir | --localedir | --localedi | --localed | --locale)
1434     ac_prev=localedir ;;
1435   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1436     localedir=$ac_optarg ;;
1437
1438   -localstatedir | --localstatedir | --localstatedi | --localstated \
1439   | --localstate | --localstat | --localsta | --localst | --locals)
1440     ac_prev=localstatedir ;;
1441   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1442   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1443     localstatedir=$ac_optarg ;;
1444
1445   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1446     ac_prev=mandir ;;
1447   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1448     mandir=$ac_optarg ;;
1449
1450   -nfp | --nfp | --nf)
1451     # Obsolete; use --without-fp.
1452     with_fp=no ;;
1453
1454   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1455   | --no-cr | --no-c | -n)
1456     no_create=yes ;;
1457
1458   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1459   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1460     no_recursion=yes ;;
1461
1462   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1463   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1464   | --oldin | --oldi | --old | --ol | --o)
1465     ac_prev=oldincludedir ;;
1466   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1467   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1468   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1469     oldincludedir=$ac_optarg ;;
1470
1471   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1472     ac_prev=prefix ;;
1473   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1474     prefix=$ac_optarg ;;
1475
1476   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1477   | --program-pre | --program-pr | --program-p)
1478     ac_prev=program_prefix ;;
1479   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1480   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1481     program_prefix=$ac_optarg ;;
1482
1483   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1484   | --program-suf | --program-su | --program-s)
1485     ac_prev=program_suffix ;;
1486   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1487   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1488     program_suffix=$ac_optarg ;;
1489
1490   -program-transform-name | --program-transform-name \
1491   | --program-transform-nam | --program-transform-na \
1492   | --program-transform-n | --program-transform- \
1493   | --program-transform | --program-transfor \
1494   | --program-transfo | --program-transf \
1495   | --program-trans | --program-tran \
1496   | --progr-tra | --program-tr | --program-t)
1497     ac_prev=program_transform_name ;;
1498   -program-transform-name=* | --program-transform-name=* \
1499   | --program-transform-nam=* | --program-transform-na=* \
1500   | --program-transform-n=* | --program-transform-=* \
1501   | --program-transform=* | --program-transfor=* \
1502   | --program-transfo=* | --program-transf=* \
1503   | --program-trans=* | --program-tran=* \
1504   | --progr-tra=* | --program-tr=* | --program-t=*)
1505     program_transform_name=$ac_optarg ;;
1506
1507   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1508     ac_prev=pdfdir ;;
1509   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1510     pdfdir=$ac_optarg ;;
1511
1512   -psdir | --psdir | --psdi | --psd | --ps)
1513     ac_prev=psdir ;;
1514   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1515     psdir=$ac_optarg ;;
1516
1517   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1518   | -silent | --silent | --silen | --sile | --sil)
1519     silent=yes ;;
1520
1521   -runstatedir | --runstatedir | --runstatedi | --runstated \
1522   | --runstate | --runstat | --runsta | --runst | --runs \
1523   | --run | --ru | --r)
1524     ac_prev=runstatedir ;;
1525   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1526   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1527   | --run=* | --ru=* | --r=*)
1528     runstatedir=$ac_optarg ;;
1529
1530   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1531     ac_prev=sbindir ;;
1532   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1533   | --sbi=* | --sb=*)
1534     sbindir=$ac_optarg ;;
1535
1536   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1537   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1538   | --sharedst | --shareds | --shared | --share | --shar \
1539   | --sha | --sh)
1540     ac_prev=sharedstatedir ;;
1541   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1542   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1543   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1544   | --sha=* | --sh=*)
1545     sharedstatedir=$ac_optarg ;;
1546
1547   -site | --site | --sit)
1548     ac_prev=site ;;
1549   -site=* | --site=* | --sit=*)
1550     site=$ac_optarg ;;
1551
1552   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1553     ac_prev=srcdir ;;
1554   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1555     srcdir=$ac_optarg ;;
1556
1557   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1558   | --syscon | --sysco | --sysc | --sys | --sy)
1559     ac_prev=sysconfdir ;;
1560   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1561   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1562     sysconfdir=$ac_optarg ;;
1563
1564   -target | --target | --targe | --targ | --tar | --ta | --t)
1565     ac_prev=target_alias ;;
1566   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1567     target_alias=$ac_optarg ;;
1568
1569   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1570     verbose=yes ;;
1571
1572   -version | --version | --versio | --versi | --vers | -V)
1573     ac_init_version=: ;;
1574
1575   -with-* | --with-*)
1576     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1577     # Reject names that are not valid shell variable names.
1578     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1579       as_fn_error $? "invalid package name: $ac_useropt"
1580     ac_useropt_orig=$ac_useropt
1581     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1582     case $ac_user_opts in
1583       *"
1584 "with_$ac_useropt"
1585 "*) ;;
1586       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1587          ac_unrecognized_sep=', ';;
1588     esac
1589     eval with_$ac_useropt=\$ac_optarg ;;
1590
1591   -without-* | --without-*)
1592     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1593     # Reject names that are not valid shell variable names.
1594     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1595       as_fn_error $? "invalid package name: $ac_useropt"
1596     ac_useropt_orig=$ac_useropt
1597     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1598     case $ac_user_opts in
1599       *"
1600 "with_$ac_useropt"
1601 "*) ;;
1602       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1603          ac_unrecognized_sep=', ';;
1604     esac
1605     eval with_$ac_useropt=no ;;
1606
1607   --x)
1608     # Obsolete; use --with-x.
1609     with_x=yes ;;
1610
1611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1612   | --x-incl | --x-inc | --x-in | --x-i)
1613     ac_prev=x_includes ;;
1614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1616     x_includes=$ac_optarg ;;
1617
1618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1620     ac_prev=x_libraries ;;
1621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1623     x_libraries=$ac_optarg ;;
1624
1625   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1626 Try \`$0 --help' for more information"
1627     ;;
1628
1629   *=*)
1630     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1631     # Reject names that are not valid shell variable names.
1632     case $ac_envvar in #(
1633       '' | [0-9]* | *[!_$as_cr_alnum]* )
1634       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1635     esac
1636     eval $ac_envvar=\$ac_optarg
1637     export $ac_envvar ;;
1638
1639   *)
1640     # FIXME: should be removed in autoconf 3.0.
1641     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1642     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1643       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1644     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1645     ;;
1646
1647   esac
1648 done
1649
1650 if test -n "$ac_prev"; then
1651   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1652   as_fn_error $? "missing argument to $ac_option"
1653 fi
1654
1655 if test -n "$ac_unrecognized_opts"; then
1656   case $enable_option_checking in
1657     no) ;;
1658     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1659     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1660   esac
1661 fi
1662
1663 # Check all directory arguments for consistency.
1664 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1665                 datadir sysconfdir sharedstatedir localstatedir includedir \
1666                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1667                 libdir localedir mandir runstatedir
1668 do
1669   eval ac_val=\$$ac_var
1670   # Remove trailing slashes.
1671   case $ac_val in
1672     */ )
1673       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1674       eval $ac_var=\$ac_val;;
1675   esac
1676   # Be sure to have absolute directory names.
1677   case $ac_val in
1678     [\\/$]* | ?:[\\/]* )  continue;;
1679     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1680   esac
1681   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1682 done
1683
1684 # There might be people who depend on the old broken behavior: `$host'
1685 # used to hold the argument of --host etc.
1686 # FIXME: To remove some day.
1687 build=$build_alias
1688 host=$host_alias
1689 target=$target_alias
1690
1691 # FIXME: To remove some day.
1692 if test "x$host_alias" != x; then
1693   if test "x$build_alias" = x; then
1694     cross_compiling=maybe
1695   elif test "x$build_alias" != "x$host_alias"; then
1696     cross_compiling=yes
1697   fi
1698 fi
1699
1700 ac_tool_prefix=
1701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1702
1703 test "$silent" = yes && exec 6>/dev/null
1704
1705
1706 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1707 ac_ls_di=`ls -di .` &&
1708 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1709   as_fn_error $? "working directory cannot be determined"
1710 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1711   as_fn_error $? "pwd does not report name of working directory"
1712
1713
1714 # Find the source files, if location was not specified.
1715 if test -z "$srcdir"; then
1716   ac_srcdir_defaulted=yes
1717   # Try the directory containing this script, then the parent directory.
1718   ac_confdir=`$as_dirname -- "$as_myself" ||
1719 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1720          X"$as_myself" : 'X\(//\)[^/]' \| \
1721          X"$as_myself" : 'X\(//\)$' \| \
1722          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1723 $as_echo X"$as_myself" |
1724     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1725             s//\1/
1726             q
1727           }
1728           /^X\(\/\/\)[^/].*/{
1729             s//\1/
1730             q
1731           }
1732           /^X\(\/\/\)$/{
1733             s//\1/
1734             q
1735           }
1736           /^X\(\/\).*/{
1737             s//\1/
1738             q
1739           }
1740           s/.*/./; q'`
1741   srcdir=$ac_confdir
1742   if test ! -r "$srcdir/$ac_unique_file"; then
1743     srcdir=..
1744   fi
1745 else
1746   ac_srcdir_defaulted=no
1747 fi
1748 if test ! -r "$srcdir/$ac_unique_file"; then
1749   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1750   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1751 fi
1752 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1753 ac_abs_confdir=`(
1754         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1755         pwd)`
1756 # When building in place, set srcdir=.
1757 if test "$ac_abs_confdir" = "$ac_pwd"; then
1758   srcdir=.
1759 fi
1760 # Remove unnecessary trailing slashes from srcdir.
1761 # Double slashes in file names in object file debugging info
1762 # mess up M-x gdb in Emacs.
1763 case $srcdir in
1764 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1765 esac
1766 for ac_var in $ac_precious_vars; do
1767   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1768   eval ac_env_${ac_var}_value=\$${ac_var}
1769   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1770   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1771 done
1772
1773 #
1774 # Report the --help message.
1775 #
1776 if test "$ac_init_help" = "long"; then
1777   # Omit some internal or obsolete options to make the list less imposing.
1778   # This message is too long to be a string in the A/UX 3.1 sh.
1779   cat <<_ACEOF
1780 \`configure' configures curl - to adapt to many kinds of systems.
1781
1782 Usage: $0 [OPTION]... [VAR=VALUE]...
1783
1784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1785 VAR=VALUE.  See below for descriptions of some of the useful variables.
1786
1787 Defaults for the options are specified in brackets.
1788
1789 Configuration:
1790   -h, --help              display this help and exit
1791       --help=short        display options specific to this package
1792       --help=recursive    display the short help of all the included packages
1793   -V, --version           display version information and exit
1794   -q, --quiet, --silent   do not print \`checking ...' messages
1795       --cache-file=FILE   cache test results in FILE [disabled]
1796   -C, --config-cache      alias for \`--cache-file=config.cache'
1797   -n, --no-create         do not create output files
1798       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1799
1800 Installation directories:
1801   --prefix=PREFIX         install architecture-independent files in PREFIX
1802                           [$ac_default_prefix]
1803   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1804                           [PREFIX]
1805
1806 By default, \`make install' will install all the files in
1807 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1808 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1809 for instance \`--prefix=\$HOME'.
1810
1811 For better control, use the options below.
1812
1813 Fine tuning of the installation directories:
1814   --bindir=DIR            user executables [EPREFIX/bin]
1815   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1816   --libexecdir=DIR        program executables [EPREFIX/libexec]
1817   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1818   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1819   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1820   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1821   --libdir=DIR            object code libraries [EPREFIX/lib]
1822   --includedir=DIR        C header files [PREFIX/include]
1823   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1824   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1825   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1826   --infodir=DIR           info documentation [DATAROOTDIR/info]
1827   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1828   --mandir=DIR            man documentation [DATAROOTDIR/man]
1829   --docdir=DIR            documentation root [DATAROOTDIR/doc/curl]
1830   --htmldir=DIR           html documentation [DOCDIR]
1831   --dvidir=DIR            dvi documentation [DOCDIR]
1832   --pdfdir=DIR            pdf documentation [DOCDIR]
1833   --psdir=DIR             ps documentation [DOCDIR]
1834 _ACEOF
1835
1836   cat <<\_ACEOF
1837
1838 Program names:
1839   --program-prefix=PREFIX            prepend PREFIX to installed program names
1840   --program-suffix=SUFFIX            append SUFFIX to installed program names
1841   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1842
1843 System types:
1844   --build=BUILD     configure for building on BUILD [guessed]
1845   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1846 _ACEOF
1847 fi
1848
1849 if test -n "$ac_init_help"; then
1850   case $ac_init_help in
1851      short | recursive ) echo "Configuration of curl -:";;
1852    esac
1853   cat <<\_ACEOF
1854
1855 Optional Features:
1856   --disable-option-checking  ignore unrecognized --enable/--with options
1857   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1858   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1859   --enable-maintainer-mode
1860                           enable make rules and dependencies not useful (and
1861                           sometimes confusing) to the casual installer
1862   --enable-silent-rules   less verbose build output (undo: "make V=1")
1863   --disable-silent-rules  verbose build output (undo: "make V=0")
1864   --enable-debug          Enable debug build options
1865   --disable-debug         Disable debug build options
1866   --enable-optimize       Enable compiler optimizations
1867   --disable-optimize      Disable compiler optimizations
1868   --enable-warnings       Enable strict compiler warnings
1869   --disable-warnings      Disable strict compiler warnings
1870   --enable-werror         Enable compiler warnings as errors
1871   --disable-werror        Disable compiler warnings as errors
1872   --enable-curldebug      Enable curl debug memory tracking
1873   --disable-curldebug     Disable curl debug memory tracking
1874   --enable-symbol-hiding  Enable hiding of library internal symbols
1875   --disable-symbol-hiding Disable hiding of library internal symbols
1876   --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
1877   --disable-hidden-symbols
1878                           To be deprecated, use --disable-symbol-hiding
1879   --enable-ares[=PATH]    Enable c-ares for DNS lookups
1880   --disable-ares          Disable c-ares for DNS lookups
1881   --disable-rt            disable dependency on -lrt
1882   --enable-esni           Enable ESNI support
1883   --disable-esni          Disable ESNI support
1884   --enable-code-coverage  Provide code coverage
1885   --enable-dependency-tracking
1886                           do not reject slow dependency extractors
1887   --disable-dependency-tracking
1888                           speeds up one-time build
1889   --disable-largefile     omit support for large files
1890   --enable-shared[=PKGS]  build shared libraries [default=yes]
1891   --enable-static[=PKGS]  build static libraries [default=yes]
1892   --enable-fast-install[=PKGS]
1893                           optimize for fast installation [default=yes]
1894   --disable-libtool-lock  avoid locking (might break parallel builds)
1895   --enable-http           Enable HTTP support
1896   --disable-http          Disable HTTP support
1897   --enable-ftp            Enable FTP support
1898   --disable-ftp           Disable FTP support
1899   --enable-file           Enable FILE support
1900   --disable-file          Disable FILE support
1901   --enable-ldap           Enable LDAP support
1902   --disable-ldap          Disable LDAP support
1903   --enable-ldaps          Enable LDAPS support
1904   --disable-ldaps         Disable LDAPS support
1905   --enable-rtsp           Enable RTSP support
1906   --disable-rtsp          Disable RTSP support
1907   --enable-proxy          Enable proxy support
1908   --disable-proxy         Disable proxy support
1909   --enable-dict           Enable DICT support
1910   --disable-dict          Disable DICT support
1911   --enable-telnet         Enable TELNET support
1912   --disable-telnet        Disable TELNET support
1913   --enable-tftp           Enable TFTP support
1914   --disable-tftp          Disable TFTP support
1915   --enable-pop3           Enable POP3 support
1916   --disable-pop3          Disable POP3 support
1917   --enable-imap           Enable IMAP support
1918   --disable-imap          Disable IMAP support
1919   --enable-smb            Enable SMB/CIFS support
1920   --disable-smb           Disable SMB/CIFS support
1921   --enable-smtp           Enable SMTP support
1922   --disable-smtp          Disable SMTP support
1923   --enable-gopher         Enable Gopher support
1924   --disable-gopher        Disable Gopher support
1925   --enable-manual         Enable built-in manual
1926   --disable-manual        Disable built-in manual
1927   --enable-libcurl-option Enable --libcurl C code generation support
1928   --disable-libcurl-option
1929                           Disable --libcurl C code generation support
1930   --enable-libgcc         use libgcc when linking
1931   --enable-ipv6           Enable IPv6 (with IPv4) support
1932   --disable-ipv6          Disable IPv6 support
1933   --enable-openssl-auto-load-config
1934                           Enable automatic loading of OpenSSL configuration
1935   --disable-openssl-auto-load-config
1936                           Disable automatic loading of OpenSSL configuration
1937   --enable-versioned-symbols
1938                           Enable versioned symbols in shared library
1939   --disable-versioned-symbols
1940                           Disable versioned symbols in shared library
1941   --enable-threaded-resolver
1942                           Enable threaded resolver
1943   --disable-threaded-resolver
1944                           Disable threaded resolver
1945   --enable-pthreads       Enable POSIX threads (default for threaded resolver)
1946   --disable-pthreads      Disable POSIX threads
1947   --enable-verbose        Enable verbose strings
1948   --disable-verbose       Disable verbose strings
1949   --enable-sspi           Enable SSPI
1950   --disable-sspi          Disable SSPI
1951   --enable-crypto-auth    Enable cryptographic authentication
1952   --disable-crypto-auth   Disable cryptographic authentication
1953   --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
1954                           helper, where FILE is ntlm_auth's absolute filename
1955                           (default: /usr/bin/ntlm_auth)
1956   --disable-ntlm-wb       Disable NTLM delegation to winbind's ntlm_auth
1957                           helper
1958   --enable-tls-srp        Enable TLS-SRP authentication
1959   --disable-tls-srp       Disable TLS-SRP authentication
1960   --enable-unix-sockets   Enable Unix domain sockets
1961   --disable-unix-sockets  Disable Unix domain sockets
1962   --enable-cookies        Enable cookies support
1963   --disable-cookies       Disable cookies support
1964   --enable-http-auth      Enable HTTP authentication support
1965   --disable-http-auth     Disable HTTP authentication support
1966   --enable-doh            Enable DoH support
1967   --disable-doh           Disable DoH support
1968   --enable-mime           Enable mime API support
1969   --disable-mime          Disable mime API support
1970   --enable-dateparse      Enable date parsing
1971   --disable-dateparse     Disable date parsing
1972   --enable-netrc          Enable netrc parsing
1973   --disable-netrc         Disable netrc parsing
1974   --enable-progress-meter Enable progress-meter
1975   --disable-progress-meter
1976                           Disable progress-meter
1977   --enable-dnsshuffle     Enable DNS shuffling
1978   --disable-dnsshuffle    Disable DNS shuffling
1979   --enable-alt-svc        Enable alt-svc support
1980   --disable-alt-svc       Disable alt-svc support
1981
1982 Optional Packages:
1983   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1984   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1985   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1986                           both]
1987   --with-aix-soname=aix|svr4|both
1988                           shared library versioning (aka "SONAME") variant to
1989                           provide on AIX, [default=aix].
1990   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1991   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1992                           compiler's sysroot if not specified).
1993   --with-zlib=PATH        search for zlib in PATH
1994   --without-zlib          disable use of zlib
1995   --with-brotli=PATH      Where to look for brotli, PATH points to the BROTLI
1996                           installation; when possible, set the PKG_CONFIG_PATH
1997                           environment variable instead of using this option
1998   --without-brotli        disable BROTLI
1999   --with-ldap-lib=libname Specify name of ldap lib file
2000   --with-lber-lib=libname Specify name of lber lib file
2001   --with-gssapi-includes=DIR
2002                           Specify location of GSS-API headers
2003   --with-gssapi-libs=DIR  Specify location of GSS-API libs
2004   --with-gssapi=DIR       Where to look for GSS-API
2005   --with-default-ssl-backend=NAME
2006                           Use NAME as default SSL backend
2007   --without-default-ssl-backend
2008                           Use implicit default SSL backend
2009   --with-winssl           enable Windows native SSL/TLS
2010   --without-winssl        disable Windows native SSL/TLS
2011   --with-schannel         enable Windows native SSL/TLS
2012   --without-schannel      disable Windows native SSL/TLS
2013   --with-darwinssl        enable Apple OS native SSL/TLS
2014   --without-darwinssl     disable Apple OS native SSL/TLS
2015   --with-secure-transport enable Apple OS native SSL/TLS
2016   --without-secure-transport
2017                           disable Apple OS native SSL/TLS
2018   --with-amissl           enable Amiga native SSL/TLS (AmiSSL)
2019   --without-amissl        disable Amiga native SSL/TLS (AmiSSL)
2020   --with-ssl=PATH         Where to look for OpenSSL, PATH points to the SSL
2021                           installation (default: /usr/local/ssl); when
2022                           possible, set the PKG_CONFIG_PATH environment
2023                           variable instead of using this option
2024   --without-ssl           disable OpenSSL
2025   --with-egd-socket=FILE  Entropy Gathering Daemon socket pathname
2026   --with-random=FILE      read randomness from FILE (default=/dev/urandom)
2027   --with-gnutls=PATH      where to look for GnuTLS, PATH points to the
2028                           installation root
2029   --without-gnutls        disable GnuTLS detection
2030   --with-mbedtls=PATH     where to look for mbedTLS, PATH points to the
2031                           installation root
2032   --without-mbedtls       disable mbedTLS detection
2033   --with-wolfssl=PATH     where to look for WolfSSL, PATH points to the
2034                           installation root (default: system lib default)
2035   --without-wolfssl       disable WolfSSL detection
2036   --with-mesalink=PATH    where to look for MesaLink, PATH points to the
2037                           installation root
2038   --without-mesalink      disable MesaLink detection
2039   --with-bearssl=PATH     where to look for BearSSL, PATH points to the
2040                           installation root
2041   --without-bearssl       disable BearSSL detection
2042   --with-nss=PATH         where to look for NSS, PATH points to the
2043                           installation root
2044   --without-nss           disable NSS detection
2045   --with-ca-bundle=FILE   Path to a file containing CA certificates (example:
2046                           /etc/ca-bundle.crt)
2047   --without-ca-bundle     Don't use a default CA bundle
2048   --with-ca-path=DIRECTORY
2049                           Path to a directory containing CA certificates
2050                           stored individually, with their filenames in a hash
2051                           format. This option can be used with OpenSSL, GnuTLS
2052                           and PolarSSL backends. Refer to OpenSSL c_rehash for
2053                           details. (example: /etc/certificates)
2054   --without-ca-path       Don't use a default CA path
2055   --with-ca-fallback      Use the built in CA store of the SSL library
2056   --without-ca-fallback   Don't use the built in CA store of the SSL library
2057   --without-libpsl        disable support for libpsl cookie checking
2058   --with-libmetalink=PATH where to look for libmetalink, PATH points to the
2059                           installation root
2060   --without-libmetalink   disable libmetalink detection
2061   --with-libssh2=PATH     Where to look for libssh2, PATH points to the
2062                           LIBSSH2 installation; when possible, set the
2063                           PKG_CONFIG_PATH environment variable instead of
2064                           using this option
2065   --with-libssh2          enable LIBSSH2
2066   --with-libssh=PATH      Where to look for libssh, PATH points to the LIBSSH
2067                           installation; when possible, set the PKG_CONFIG_PATH
2068                           environment variable instead of using this option
2069   --with-libssh           enable LIBSSH
2070   --with-librtmp=PATH     Where to look for librtmp, PATH points to the
2071                           LIBRTMP installation; when possible, set the
2072                           PKG_CONFIG_PATH environment variable instead of
2073                           using this option
2074   --without-librtmp       disable LIBRTMP
2075   --with-winidn=PATH      enable Windows native IDN
2076   --without-winidn        disable Windows native IDN
2077   --with-libidn2=PATH     Enable libidn2 usage
2078   --without-libidn2       Disable libidn2 usage
2079   --with-nghttp2=PATH     Enable nghttp2 usage
2080   --without-nghttp2       Disable nghttp2 usage
2081   --with-ngtcp2=PATH      Enable ngtcp2 usage
2082   --without-ngtcp2        Disable ngtcp2 usage
2083   --with-nghttp3=PATH     Enable nghttp3 usage
2084   --without-nghttp3       Disable nghttp3 usage
2085   --with-quiche=PATH      Enable quiche usage
2086   --without-quiche        Disable quiche usage
2087   --with-zsh-functions-dir=PATH
2088                           Install zsh completions to PATH
2089   --without-zsh-functions-dir
2090                           Do not install zsh completions
2091   --with-fish-functions-dir=PATH
2092                           Install fish completions to PATH
2093   --without-fish-functions-dir
2094                           Do not install fish completions
2095
2096 Some influential environment variables:
2097   CC          C compiler command
2098   CFLAGS      C compiler flags
2099   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2100               nonstandard directory <lib dir>
2101   LIBS        libraries to pass to the linker, e.g. -l<library>
2102   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2103               you have headers in a nonstandard directory <include dir>
2104   CPP         C preprocessor
2105   LT_SYS_LIBRARY_PATH
2106               User-defined run-time library search path.
2107
2108 Use these variables to override the choices made by `configure' or to help
2109 it to find libraries and programs with nonstandard names/locations.
2110
2111 Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
2112 _ACEOF
2113 ac_status=$?
2114 fi
2115
2116 if test "$ac_init_help" = "recursive"; then
2117   # If there are subdirs, report their specific --help.
2118   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2119     test -d "$ac_dir" ||
2120       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2121       continue
2122     ac_builddir=.
2123
2124 case "$ac_dir" in
2125 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2126 *)
2127   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2128   # A ".." for each directory in $ac_dir_suffix.
2129   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2130   case $ac_top_builddir_sub in
2131   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2132   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2133   esac ;;
2134 esac
2135 ac_abs_top_builddir=$ac_pwd
2136 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2137 # for backward compatibility:
2138 ac_top_builddir=$ac_top_build_prefix
2139
2140 case $srcdir in
2141   .)  # We are building in place.
2142     ac_srcdir=.
2143     ac_top_srcdir=$ac_top_builddir_sub
2144     ac_abs_top_srcdir=$ac_pwd ;;
2145   [\\/]* | ?:[\\/]* )  # Absolute name.
2146     ac_srcdir=$srcdir$ac_dir_suffix;
2147     ac_top_srcdir=$srcdir
2148     ac_abs_top_srcdir=$srcdir ;;
2149   *) # Relative name.
2150     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2151     ac_top_srcdir=$ac_top_build_prefix$srcdir
2152     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2153 esac
2154 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2155
2156     cd "$ac_dir" || { ac_status=$?; continue; }
2157     # Check for guested configure.
2158     if test -f "$ac_srcdir/configure.gnu"; then
2159       echo &&
2160       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2161     elif test -f "$ac_srcdir/configure"; then
2162       echo &&
2163       $SHELL "$ac_srcdir/configure" --help=recursive
2164     else
2165       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2166     fi || ac_status=$?
2167     cd "$ac_pwd" || { ac_status=$?; break; }
2168   done
2169 fi
2170
2171 test -n "$ac_init_help" && exit $ac_status
2172 if $ac_init_version; then
2173   cat <<\_ACEOF
2174 curl configure -
2175 generated by GNU Autoconf 2.69
2176
2177 Copyright (C) 2012 Free Software Foundation, Inc.
2178 This configure script is free software; the Free Software Foundation
2179 gives unlimited permission to copy, distribute and modify it.
2180
2181 Copyright (c) 1998 - 2019 Daniel Stenberg, <daniel@haxx.se>
2182 This configure script may be copied, distributed and modified under the
2183 terms of the curl license; see COPYING for more details
2184 _ACEOF
2185   exit
2186 fi
2187
2188 ## ------------------------ ##
2189 ## Autoconf initialization. ##
2190 ## ------------------------ ##
2191
2192 # ac_fn_c_try_compile LINENO
2193 # --------------------------
2194 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2195 ac_fn_c_try_compile ()
2196 {
2197   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2198   rm -f conftest.$ac_objext
2199   if { { ac_try="$ac_compile"
2200 case "(($ac_try" in
2201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2202   *) ac_try_echo=$ac_try;;
2203 esac
2204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2205 $as_echo "$ac_try_echo"; } >&5
2206   (eval "$ac_compile") 2>conftest.err
2207   ac_status=$?
2208   if test -s conftest.err; then
2209     grep -v '^ *+' conftest.err >conftest.er1
2210     cat conftest.er1 >&5
2211     mv -f conftest.er1 conftest.err
2212   fi
2213   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2214   test $ac_status = 0; } && {
2215          test -z "$ac_c_werror_flag" ||
2216          test ! -s conftest.err
2217        } && test -s conftest.$ac_objext; then :
2218   ac_retval=0
2219 else
2220   $as_echo "$as_me: failed program was:" >&5
2221 sed 's/^/| /' conftest.$ac_ext >&5
2222
2223         ac_retval=1
2224 fi
2225   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2226   as_fn_set_status $ac_retval
2227
2228 } # ac_fn_c_try_compile
2229
2230 # ac_fn_c_try_cpp LINENO
2231 # ----------------------
2232 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2233 ac_fn_c_try_cpp ()
2234 {
2235   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2236   if { { ac_try="$ac_cpp conftest.$ac_ext"
2237 case "(($ac_try" in
2238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2239   *) ac_try_echo=$ac_try;;
2240 esac
2241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2242 $as_echo "$ac_try_echo"; } >&5
2243   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2244   ac_status=$?
2245   if test -s conftest.err; then
2246     grep -v '^ *+' conftest.err >conftest.er1
2247     cat conftest.er1 >&5
2248     mv -f conftest.er1 conftest.err
2249   fi
2250   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2251   test $ac_status = 0; } > conftest.i && {
2252          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2253          test ! -s conftest.err
2254        }; then :
2255   ac_retval=0
2256 else
2257   $as_echo "$as_me: failed program was:" >&5
2258 sed 's/^/| /' conftest.$ac_ext >&5
2259
2260     ac_retval=1
2261 fi
2262   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2263   as_fn_set_status $ac_retval
2264
2265 } # ac_fn_c_try_cpp
2266
2267 # ac_fn_c_try_link LINENO
2268 # -----------------------
2269 # Try to link conftest.$ac_ext, and return whether this succeeded.
2270 ac_fn_c_try_link ()
2271 {
2272   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2273   rm -f conftest.$ac_objext conftest$ac_exeext
2274   if { { ac_try="$ac_link"
2275 case "(($ac_try" in
2276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277   *) ac_try_echo=$ac_try;;
2278 esac
2279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2280 $as_echo "$ac_try_echo"; } >&5
2281   (eval "$ac_link") 2>conftest.err
2282   ac_status=$?
2283   if test -s conftest.err; then
2284     grep -v '^ *+' conftest.err >conftest.er1
2285     cat conftest.er1 >&5
2286     mv -f conftest.er1 conftest.err
2287   fi
2288   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2289   test $ac_status = 0; } && {
2290          test -z "$ac_c_werror_flag" ||
2291          test ! -s conftest.err
2292        } && test -s conftest$ac_exeext && {
2293          test "$cross_compiling" = yes ||
2294          test -x conftest$ac_exeext
2295        }; then :
2296   ac_retval=0
2297 else
2298   $as_echo "$as_me: failed program was:" >&5
2299 sed 's/^/| /' conftest.$ac_ext >&5
2300
2301         ac_retval=1
2302 fi
2303   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2304   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2305   # interfere with the next link command; also delete a directory that is
2306   # left behind by Apple's compiler.  We do this before executing the actions.
2307   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2308   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2309   as_fn_set_status $ac_retval
2310
2311 } # ac_fn_c_try_link
2312
2313 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2314 # -------------------------------------------------------
2315 # Tests whether HEADER exists and can be compiled using the include files in
2316 # INCLUDES, setting the cache variable VAR accordingly.
2317 ac_fn_c_check_header_compile ()
2318 {
2319   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2320   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2321 $as_echo_n "checking for $2... " >&6; }
2322 if eval \${$3+:} false; then :
2323   $as_echo_n "(cached) " >&6
2324 else
2325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2326 /* end confdefs.h.  */
2327 $4
2328 #include <$2>
2329 _ACEOF
2330 if ac_fn_c_try_compile "$LINENO"; then :
2331   eval "$3=yes"
2332 else
2333   eval "$3=no"
2334 fi
2335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336 fi
2337 eval ac_res=\$$3
2338                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2339 $as_echo "$ac_res" >&6; }
2340   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2341
2342 } # ac_fn_c_check_header_compile
2343
2344 # ac_fn_c_try_run LINENO
2345 # ----------------------
2346 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2347 # that executables *can* be run.
2348 ac_fn_c_try_run ()
2349 {
2350   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2351   if { { ac_try="$ac_link"
2352 case "(($ac_try" in
2353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2354   *) ac_try_echo=$ac_try;;
2355 esac
2356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2357 $as_echo "$ac_try_echo"; } >&5
2358   (eval "$ac_link") 2>&5
2359   ac_status=$?
2360   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2361   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2362   { { case "(($ac_try" in
2363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2364   *) ac_try_echo=$ac_try;;
2365 esac
2366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2367 $as_echo "$ac_try_echo"; } >&5
2368   (eval "$ac_try") 2>&5
2369   ac_status=$?
2370   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2371   test $ac_status = 0; }; }; then :
2372   ac_retval=0
2373 else
2374   $as_echo "$as_me: program exited with status $ac_status" >&5
2375        $as_echo "$as_me: failed program was:" >&5
2376 sed 's/^/| /' conftest.$ac_ext >&5
2377
2378        ac_retval=$ac_status
2379 fi
2380   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2381   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2382   as_fn_set_status $ac_retval
2383
2384 } # ac_fn_c_try_run
2385
2386 # ac_fn_c_check_func LINENO FUNC VAR
2387 # ----------------------------------
2388 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2389 ac_fn_c_check_func ()
2390 {
2391   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2393 $as_echo_n "checking for $2... " >&6; }
2394 if eval \${$3+:} false; then :
2395   $as_echo_n "(cached) " >&6
2396 else
2397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2398 /* end confdefs.h.  */
2399
2400 #define $2 innocuous_$2
2401 #ifdef __STDC__
2402 # include <limits.h>
2403 #else
2404 # include <assert.h>
2405 #endif
2406 #undef $2
2407 #ifdef __cplusplus
2408 extern "C"
2409 #endif
2410 char $2 ();
2411 #if defined __stub_$2 || defined __stub___$2
2412 choke me
2413 #endif
2414
2415 int main (void)
2416 {
2417 return $2 ();
2418  ;
2419  return 0;
2420 }
2421 _ACEOF
2422 if ac_fn_c_try_link "$LINENO"; then :
2423   eval "$3=yes"
2424 else
2425   eval "$3=no"
2426 fi
2427 rm -f core conftest.err conftest.$ac_objext \
2428     conftest$ac_exeext conftest.$ac_ext
2429 fi
2430 eval ac_res=\$$3
2431                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2432 $as_echo "$ac_res" >&6; }
2433   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2434
2435 } # ac_fn_c_check_func
2436
2437 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2438 # -------------------------------------------------------
2439 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2440 # the include files in INCLUDES and setting the cache variable VAR
2441 # accordingly.
2442 ac_fn_c_check_header_mongrel ()
2443 {
2444   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2445   if eval \${$3+:} false; then :
2446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2447 $as_echo_n "checking for $2... " >&6; }
2448 if eval \${$3+:} false; then :
2449   $as_echo_n "(cached) " >&6
2450 fi
2451 eval ac_res=\$$3
2452                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2453 $as_echo "$ac_res" >&6; }
2454 else
2455   # Is the header compilable?
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2457 $as_echo_n "checking $2 usability... " >&6; }
2458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2459 /* end confdefs.h.  */
2460 $4
2461 #include <$2>
2462 _ACEOF
2463 if ac_fn_c_try_compile "$LINENO"; then :
2464   ac_header_compiler=yes
2465 else
2466   ac_header_compiler=no
2467 fi
2468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2470 $as_echo "$ac_header_compiler" >&6; }
2471
2472 # Is the header present?
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2474 $as_echo_n "checking $2 presence... " >&6; }
2475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2476 /* end confdefs.h.  */
2477 #include <$2>
2478 _ACEOF
2479 if ac_fn_c_try_cpp "$LINENO"; then :
2480   ac_header_preproc=yes
2481 else
2482   ac_header_preproc=no
2483 fi
2484 rm -f conftest.err conftest.i conftest.$ac_ext
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2486 $as_echo "$ac_header_preproc" >&6; }
2487
2488 # So?  What about this header?
2489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2490   yes:no: )
2491     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2492 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2493     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2494 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2495     ;;
2496   no:yes:* )
2497     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2498 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2499     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2500 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2501     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2502 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2503     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2504 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2505     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2506 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2507 ( $as_echo "## ----------------------------------------------------------------------- ##
2508 ## Report this to a suitable curl mailing list: https://curl.haxx.se/mail/ ##
2509 ## ----------------------------------------------------------------------- ##"
2510      ) | sed "s/^/$as_me: WARNING:     /" >&2
2511     ;;
2512 esac
2513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2514 $as_echo_n "checking for $2... " >&6; }
2515 if eval \${$3+:} false; then :
2516   $as_echo_n "(cached) " >&6
2517 else
2518   eval "$3=\$ac_header_compiler"
2519 fi
2520 eval ac_res=\$$3
2521                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2522 $as_echo "$ac_res" >&6; }
2523 fi
2524   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2525
2526 } # ac_fn_c_check_header_mongrel
2527
2528 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2529 # -------------------------------------------
2530 # Tests whether TYPE exists after having included INCLUDES, setting cache
2531 # variable VAR accordingly.
2532 ac_fn_c_check_type ()
2533 {
2534   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2535   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2536 $as_echo_n "checking for $2... " >&6; }
2537 if eval \${$3+:} false; then :
2538   $as_echo_n "(cached) " >&6
2539 else
2540   eval "$3=no"
2541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2542 /* end confdefs.h.  */
2543 $4
2544 int main (void)
2545 {
2546 if (sizeof ($2))
2547          return 0;
2548  ;
2549  return 0;
2550 }
2551 _ACEOF
2552 if ac_fn_c_try_compile "$LINENO"; then :
2553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h.  */
2555 $4
2556 int main (void)
2557 {
2558 if (sizeof (($2)))
2559             return 0;
2560  ;
2561  return 0;
2562 }
2563 _ACEOF
2564 if ac_fn_c_try_compile "$LINENO"; then :
2565
2566 else
2567   eval "$3=yes"
2568 fi
2569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2570 fi
2571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2572 fi
2573 eval ac_res=\$$3
2574                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2575 $as_echo "$ac_res" >&6; }
2576   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2577
2578 } # ac_fn_c_check_type
2579
2580 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2581 # ---------------------------------------------
2582 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2583 # accordingly.
2584 ac_fn_c_check_decl ()
2585 {
2586   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2587   as_decl_name=`echo $2|sed 's/ *(.*//'`
2588   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2590 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2591 if eval \${$3+:} false; then :
2592   $as_echo_n "(cached) " >&6
2593 else
2594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2595 /* end confdefs.h.  */
2596 $4
2597 int main (void)
2598 {
2599 #ifndef $as_decl_name
2600 #ifdef __cplusplus
2601   (void) $as_decl_use;
2602 #else
2603   (void) $as_decl_name;
2604 #endif
2605 #endif
2606
2607  ;
2608  return 0;
2609 }
2610 _ACEOF
2611 if ac_fn_c_try_compile "$LINENO"; then :
2612   eval "$3=yes"
2613 else
2614   eval "$3=no"
2615 fi
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 fi
2618 eval ac_res=\$$3
2619                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2620 $as_echo "$ac_res" >&6; }
2621   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2622
2623 } # ac_fn_c_check_decl
2624
2625 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2626 # ----------------------------------------------------
2627 # Tries to find if the field MEMBER exists in type AGGR, after including
2628 # INCLUDES, setting cache variable VAR accordingly.
2629 ac_fn_c_check_member ()
2630 {
2631   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2632   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2633 $as_echo_n "checking for $2.$3... " >&6; }
2634 if eval \${$4+:} false; then :
2635   $as_echo_n "(cached) " >&6
2636 else
2637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2638 /* end confdefs.h.  */
2639 $5
2640 int main (void)
2641 {
2642 static $2 ac_aggr;
2643 if (ac_aggr.$3)
2644 return 0;
2645  ;
2646  return 0;
2647 }
2648 _ACEOF
2649 if ac_fn_c_try_compile "$LINENO"; then :
2650   eval "$4=yes"
2651 else
2652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2653 /* end confdefs.h.  */
2654 $5
2655 int main (void)
2656 {
2657 static $2 ac_aggr;
2658 if (sizeof ac_aggr.$3)
2659 return 0;
2660  ;
2661  return 0;
2662 }
2663 _ACEOF
2664 if ac_fn_c_try_compile "$LINENO"; then :
2665   eval "$4=yes"
2666 else
2667   eval "$4=no"
2668 fi
2669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2670 fi
2671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2672 fi
2673 eval ac_res=\$$4
2674                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2675 $as_echo "$ac_res" >&6; }
2676   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2677
2678 } # ac_fn_c_check_member
2679 cat >config.log <<_ACEOF
2680 This file contains any messages produced by compilers while
2681 running configure, to aid debugging if configure makes a mistake.
2682
2683 It was created by curl $as_me -, which was
2684 generated by GNU Autoconf 2.69.  Invocation command line was
2685
2686   $ $0 $@
2687
2688 _ACEOF
2689 exec 5>>config.log
2690 {
2691 cat <<_ASUNAME
2692 ## --------- ##
2693 ## Platform. ##
2694 ## --------- ##
2695
2696 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2697 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2698 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2699 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2700 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2701
2702 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2703 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2704
2705 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2706 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2707 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2708 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2709 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2710 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2711 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2712
2713 _ASUNAME
2714
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 for as_dir in $PATH
2717 do
2718   IFS=$as_save_IFS
2719   test -z "$as_dir" && as_dir=.
2720     $as_echo "PATH: $as_dir"
2721   done
2722 IFS=$as_save_IFS
2723
2724 } >&5
2725
2726 cat >&5 <<_ACEOF
2727
2728
2729 ## ----------- ##
2730 ## Core tests. ##
2731 ## ----------- ##
2732
2733 _ACEOF
2734
2735
2736 # Keep a trace of the command line.
2737 # Strip out --no-create and --no-recursion so they do not pile up.
2738 # Strip out --silent because we don't want to record it for future runs.
2739 # Also quote any args containing shell meta-characters.
2740 # Make two passes to allow for proper duplicate-argument suppression.
2741 ac_configure_args=
2742 ac_configure_args0=
2743 ac_configure_args1=
2744 ac_must_keep_next=false
2745 for ac_pass in 1 2
2746 do
2747   for ac_arg
2748   do
2749     case $ac_arg in
2750     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2751     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2752     | -silent | --silent | --silen | --sile | --sil)
2753       continue ;;
2754     *\'*)
2755       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2756     esac
2757     case $ac_pass in
2758     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2759     2)
2760       as_fn_append ac_configure_args1 " '$ac_arg'"
2761       if test $ac_must_keep_next = true; then
2762         ac_must_keep_next=false # Got value, back to normal.
2763       else
2764         case $ac_arg in
2765           *=* | --config-cache | -C | -disable-* | --disable-* \
2766           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2767           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2768           | -with-* | --with-* | -without-* | --without-* | --x)
2769             case "$ac_configure_args0 " in
2770               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2771             esac
2772             ;;
2773           -* ) ac_must_keep_next=true ;;
2774         esac
2775       fi
2776       as_fn_append ac_configure_args " '$ac_arg'"
2777       ;;
2778     esac
2779   done
2780 done
2781 { ac_configure_args0=; unset ac_configure_args0;}
2782 { ac_configure_args1=; unset ac_configure_args1;}
2783
2784 # When interrupted or exit'd, cleanup temporary files, and complete
2785 # config.log.  We remove comments because anyway the quotes in there
2786 # would cause problems or look ugly.
2787 # WARNING: Use '\'' to represent an apostrophe within the trap.
2788 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2789 trap 'exit_status=$?
2790   # Save into config.log some information that might help in debugging.
2791   {
2792     echo
2793
2794     $as_echo "## ---------------- ##
2795 ## Cache variables. ##
2796 ## ---------------- ##"
2797     echo
2798     # The following way of writing the cache mishandles newlines in values,
2799 (
2800   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2801     eval ac_val=\$$ac_var
2802     case $ac_val in #(
2803     *${as_nl}*)
2804       case $ac_var in #(
2805       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2806 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2807       esac
2808       case $ac_var in #(
2809       _ | IFS | as_nl) ;; #(
2810       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2811       *) { eval $ac_var=; unset $ac_var;} ;;
2812       esac ;;
2813     esac
2814   done
2815   (set) 2>&1 |
2816     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2817     *${as_nl}ac_space=\ *)
2818       sed -n \
2819         "s/'\''/'\''\\\\'\'''\''/g;
2820           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2821       ;; #(
2822     *)
2823       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2824       ;;
2825     esac |
2826     sort
2827 )
2828     echo
2829
2830     $as_echo "## ----------------- ##
2831 ## Output variables. ##
2832 ## ----------------- ##"
2833     echo
2834     for ac_var in $ac_subst_vars
2835     do
2836       eval ac_val=\$$ac_var
2837       case $ac_val in
2838       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2839       esac
2840       $as_echo "$ac_var='\''$ac_val'\''"
2841     done | sort
2842     echo
2843
2844     if test -n "$ac_subst_files"; then
2845       $as_echo "## ------------------- ##
2846 ## File substitutions. ##
2847 ## ------------------- ##"
2848       echo
2849       for ac_var in $ac_subst_files
2850       do
2851         eval ac_val=\$$ac_var
2852         case $ac_val in
2853         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2854         esac
2855         $as_echo "$ac_var='\''$ac_val'\''"
2856       done | sort
2857       echo
2858     fi
2859
2860     if test -s confdefs.h; then
2861       $as_echo "## ----------- ##
2862 ## confdefs.h. ##
2863 ## ----------- ##"
2864       echo
2865       cat confdefs.h
2866       echo
2867     fi
2868     test "$ac_signal" != 0 &&
2869       $as_echo "$as_me: caught signal $ac_signal"
2870     $as_echo "$as_me: exit $exit_status"
2871   } >&5
2872   rm -f core *.core core.conftest.* &&
2873     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2874     exit $exit_status
2875 ' 0
2876 for ac_signal in 1 2 13 15; do
2877   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2878 done
2879 ac_signal=0
2880
2881 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2882 rm -f -r conftest* confdefs.h
2883
2884 $as_echo "/* confdefs.h */" > confdefs.h
2885
2886 # Predefined preprocessor variables.
2887
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE_NAME "$PACKAGE_NAME"
2890 _ACEOF
2891
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2894 _ACEOF
2895
2896 cat >>confdefs.h <<_ACEOF
2897 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2898 _ACEOF
2899
2900 cat >>confdefs.h <<_ACEOF
2901 #define PACKAGE_STRING "$PACKAGE_STRING"
2902 _ACEOF
2903
2904 cat >>confdefs.h <<_ACEOF
2905 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2906 _ACEOF
2907
2908 cat >>confdefs.h <<_ACEOF
2909 #define PACKAGE_URL "$PACKAGE_URL"
2910 _ACEOF
2911
2912
2913 # Let the site file select an alternate cache file if it wants to.
2914 # Prefer an explicitly selected file to automatically selected ones.
2915 ac_site_file1=NONE
2916 ac_site_file2=NONE
2917 if test -n "$CONFIG_SITE"; then
2918   # We do not want a PATH search for config.site.
2919   case $CONFIG_SITE in #((
2920     -*)  ac_site_file1=./$CONFIG_SITE;;
2921     */*) ac_site_file1=$CONFIG_SITE;;
2922     *)   ac_site_file1=./$CONFIG_SITE;;
2923   esac
2924 elif test "x$prefix" != xNONE; then
2925   ac_site_file1=$prefix/share/config.site
2926   ac_site_file2=$prefix/etc/config.site
2927 else
2928   ac_site_file1=$ac_default_prefix/share/config.site
2929   ac_site_file2=$ac_default_prefix/etc/config.site
2930 fi
2931 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2932 do
2933   test "x$ac_site_file" = xNONE && continue
2934   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2935     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2936 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2937     sed 's/^/| /' "$ac_site_file" >&5
2938     . "$ac_site_file" \
2939       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2941 as_fn_error $? "failed to load site script $ac_site_file
2942 See \`config.log' for more details" "$LINENO" 5; }
2943   fi
2944 done
2945
2946 if test -r "$cache_file"; then
2947   # Some versions of bash will fail to source /dev/null (special files
2948   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2949   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2950     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2951 $as_echo "$as_me: loading cache $cache_file" >&6;}
2952     case $cache_file in
2953       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2954       *)                      . "./$cache_file";;
2955     esac
2956   fi
2957 else
2958   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2959 $as_echo "$as_me: creating cache $cache_file" >&6;}
2960   >$cache_file
2961 fi
2962
2963 # Check that the precious variables saved in the cache have kept the same
2964 # value.
2965 ac_cache_corrupted=false
2966 for ac_var in $ac_precious_vars; do
2967   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2968   eval ac_new_set=\$ac_env_${ac_var}_set
2969   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2970   eval ac_new_val=\$ac_env_${ac_var}_value
2971   case $ac_old_set,$ac_new_set in
2972     set,)
2973       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2974 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2975       ac_cache_corrupted=: ;;
2976     ,set)
2977       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2978 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2979       ac_cache_corrupted=: ;;
2980     ,);;
2981     *)
2982       if test "x$ac_old_val" != "x$ac_new_val"; then
2983         # differences in whitespace do not lead to failure.
2984         ac_old_val_w=`echo x $ac_old_val`
2985         ac_new_val_w=`echo x $ac_new_val`
2986         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2987           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2988 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2989           ac_cache_corrupted=:
2990         else
2991           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2992 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2993           eval $ac_var=\$ac_old_val
2994         fi
2995         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2996 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2997         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2998 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2999       fi;;
3000   esac
3001   # Pass precious variables to config.status.
3002   if test "$ac_new_set" = set; then
3003     case $ac_new_val in
3004     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3005     *) ac_arg=$ac_var=$ac_new_val ;;
3006     esac
3007     case " $ac_configure_args " in
3008       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3009       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3010     esac
3011   fi
3012 done
3013 if $ac_cache_corrupted; then
3014   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3016   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3017 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3018   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3019 fi
3020 ## -------------------- ##
3021 ## Main body of script. ##
3022 ## -------------------- ##
3023
3024 ac_ext=c
3025 ac_cpp='$CPP $CPPFLAGS'
3026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3029
3030
3031
3032
3033
3034
3035
3036 # using curl-override.m4
3037
3038
3039
3040
3041
3042 ac_config_headers="$ac_config_headers lib/curl_config.h"
3043
3044
3045
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3047 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3048     # Check whether --enable-maintainer-mode was given.
3049 if test "${enable_maintainer_mode+set}" = set; then :
3050   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3051 else
3052   USE_MAINTAINER_MODE=no
3053 fi
3054
3055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3056 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3057    if test $USE_MAINTAINER_MODE = yes; then
3058   MAINTAINER_MODE_TRUE=
3059   MAINTAINER_MODE_FALSE='#'
3060 else
3061   MAINTAINER_MODE_TRUE='#'
3062   MAINTAINER_MODE_FALSE=
3063 fi
3064
3065   MAINT=$MAINTAINER_MODE_TRUE
3066
3067
3068 # Check whether --enable-silent-rules was given.
3069 if test "${enable_silent_rules+set}" = set; then :
3070   enableval=$enable_silent_rules;
3071 fi
3072
3073 case $enable_silent_rules in # (((
3074   yes) AM_DEFAULT_VERBOSITY=0;;
3075    no) AM_DEFAULT_VERBOSITY=1;;
3076     *) AM_DEFAULT_VERBOSITY=0;;
3077 esac
3078 am_make=${MAKE-make}
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3080 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3081 if ${am_cv_make_support_nested_variables+:} false; then :
3082   $as_echo_n "(cached) " >&6
3083 else
3084   if $as_echo 'TRUE=$(BAR$(V))
3085 BAR0=false
3086 BAR1=true
3087 V=1
3088 am__doit:
3089         @$(TRUE)
3090 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3091   am_cv_make_support_nested_variables=yes
3092 else
3093   am_cv_make_support_nested_variables=no
3094 fi
3095 fi
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3097 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3098 if test $am_cv_make_support_nested_variables = yes; then
3099     AM_V='$(V)'
3100   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3101 else
3102   AM_V=$AM_DEFAULT_VERBOSITY
3103   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3104 fi
3105 AM_BACKSLASH='\'
3106
3107
3108
3109         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3110 $as_echo_n "checking whether to enable debug build options... " >&6; }
3111   OPT_DEBUG_BUILD="default"
3112   # Check whether --enable-debug was given.
3113 if test "${enable_debug+set}" = set; then :
3114   enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3115 fi
3116
3117   case "$OPT_DEBUG_BUILD" in
3118     no)
3119             want_debug="no"
3120       ;;
3121     default)
3122             want_debug="no"
3123       ;;
3124     *)
3125             want_debug="yes"
3126
3127 $as_echo "#define DEBUGBUILD 1" >>confdefs.h
3128
3129       ;;
3130   esac
3131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3132 $as_echo "$want_debug" >&6; }
3133
3134
3135       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3136 $as_echo_n "checking whether to enable compiler optimizer... " >&6; }
3137   OPT_COMPILER_OPTIMIZE="default"
3138   # Check whether --enable-optimize was given.
3139 if test "${enable_optimize+set}" = set; then :
3140   enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3141 fi
3142
3143   case "$OPT_COMPILER_OPTIMIZE" in
3144     no)
3145                               want_optimize="no"
3146       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3148       ;;
3149     default)
3150                                                                         if test "$want_debug" = "yes"; then
3151         want_optimize="assume_no"
3152         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3153 $as_echo "(assumed) no" >&6; }
3154       else
3155         want_optimize="assume_yes"
3156         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3157 $as_echo "(assumed) yes" >&6; }
3158       fi
3159       ;;
3160     *)
3161                               want_optimize="yes"
3162       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3163 $as_echo "yes" >&6; }
3164       ;;
3165   esac
3166
3167
3168         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3169 $as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
3170   OPT_COMPILER_WARNINGS="default"
3171   # Check whether --enable-warnings was given.
3172 if test "${enable_warnings+set}" = set; then :
3173   enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3174 fi
3175
3176   case "$OPT_COMPILER_WARNINGS" in
3177     no)
3178             want_warnings="no"
3179       ;;
3180     default)
3181                   want_warnings="$want_debug"
3182       ;;
3183     *)
3184             want_warnings="yes"
3185       ;;
3186   esac
3187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3188 $as_echo "$want_warnings" >&6; }
3189
3190
3191     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3192 $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
3193   OPT_COMPILER_WERROR="default"
3194   # Check whether --enable-werror was given.
3195 if test "${enable_werror+set}" = set; then :
3196   enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3197 fi
3198
3199   case "$OPT_COMPILER_WERROR" in
3200     no)
3201             want_werror="no"
3202       ;;
3203     default)
3204             want_werror="no"
3205       ;;
3206     *)
3207             want_werror="yes"
3208       ;;
3209   esac
3210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3211 $as_echo "$want_werror" >&6; }
3212
3213
3214     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3215 $as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
3216   OPT_CURLDEBUG_BUILD="default"
3217   # Check whether --enable-curldebug was given.
3218 if test "${enable_curldebug+set}" = set; then :
3219   enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3220 fi
3221
3222   case "$OPT_CURLDEBUG_BUILD" in
3223     no)
3224             want_curldebug="no"
3225       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226 $as_echo "no" >&6; }
3227       ;;
3228     default)
3229                                           if test "$want_debug" = "yes"; then
3230         { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3231 $as_echo "(assumed) yes" >&6; }
3232
3233 $as_echo "#define CURLDEBUG 1" >>confdefs.h
3234
3235       else
3236         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3238       fi
3239       want_curldebug_assumed="yes"
3240       want_curldebug="$want_debug"
3241       ;;
3242     *)
3243                                                       want_curldebug="yes"
3244
3245 $as_echo "#define CURLDEBUG 1" >>confdefs.h
3246
3247       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3248 $as_echo "yes" >&6; }
3249       ;;
3250   esac
3251
3252
3253     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3254 $as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3255   OPT_SYMBOL_HIDING="default"
3256   # Check whether --enable-symbol-hiding was given.
3257 if test "${enable_symbol_hiding+set}" = set; then :
3258   enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3259 fi
3260
3261   # Check whether --enable-hidden-symbols was given.
3262 if test "${enable_hidden_symbols+set}" = set; then :
3263   enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
3264 fi
3265
3266   case "$OPT_SYMBOL_HIDING" in
3267     no)
3268                               want_symbol_hiding="no"
3269       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3271       ;;
3272     default)
3273                   want_symbol_hiding="yes"
3274       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3275 $as_echo "yes" >&6; }
3276       ;;
3277     *)
3278                         want_symbol_hiding="yes"
3279       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3280 $as_echo "yes" >&6; }
3281       ;;
3282   esac
3283
3284
3285     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3286 $as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
3287   OPT_ARES="default"
3288   # Check whether --enable-ares was given.
3289 if test "${enable_ares+set}" = set; then :
3290   enableval=$enable_ares; OPT_ARES=$enableval
3291 fi
3292
3293   case "$OPT_ARES" in
3294     no)
3295             want_ares="no"
3296       ;;
3297     default)
3298             want_ares="no"
3299       ;;
3300     *)
3301             want_ares="yes"
3302       if test -n "$enableval" && test "$enableval" != "yes"; then
3303         want_ares_path="$enableval"
3304       fi
3305       ;;
3306   esac
3307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3308 $as_echo "$want_ares" >&6; }
3309
3310
3311     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3312 $as_echo_n "checking whether to disable dependency on -lrt... " >&6; }
3313   OPT_RT="default"
3314   # Check whether --enable-rt was given.
3315 if test "${enable_rt+set}" = set; then :
3316   enableval=$enable_rt; OPT_RT=$enableval
3317 fi
3318
3319   case "$OPT_RT" in
3320     no)
3321             dontwant_rt="yes"
3322       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3323 $as_echo "yes" >&6; }
3324       ;;
3325     default)
3326             dontwant_rt="no"
3327       { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3328 $as_echo "(assumed no)" >&6; }
3329       ;;
3330     *)
3331             dontwant_rt="no"
3332       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 $as_echo "no" >&6; }
3334       ;;
3335   esac
3336
3337
3338   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ESNI support" >&5
3339 $as_echo_n "checking whether to enable ESNI support... " >&6; }
3340   OPT_ESNI="default"
3341   # Check whether --enable-esni was given.
3342 if test "${enable_esni+set}" = set; then :
3343   enableval=$enable_esni; OPT_ESNI=$enableval
3344 fi
3345
3346   case "$OPT_ESNI" in
3347     no)
3348             want_esni="no"
3349       curl_esni_msg="no      (--enable-esni)"
3350       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 $as_echo "no" >&6; }
3352       ;;
3353     default)
3354             want_esni="no"
3355       curl_esni_msg="no      (--enable-esni)"
3356       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3357 $as_echo "no" >&6; }
3358       ;;
3359     *)
3360             want_esni="yes"
3361       curl_esni_msg="enabled (--disable-esni)"
3362       experimental="esni"
3363       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3364 $as_echo "yes" >&6; }
3365       ;;
3366   esac
3367
3368
3369 #
3370 # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3371 #
3372
3373 if test -z "$xc_configure_preamble_result"; then
3374   as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3375 fi
3376
3377 #
3378 # Check that 'PATH_SEPARATOR' has already been set.
3379 #
3380
3381 if test -z "$xc_PATH_SEPARATOR"; then
3382   as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3383 fi
3384 if test -z "$PATH_SEPARATOR"; then
3385   as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3386 fi
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3388 $as_echo_n "checking for path separator... " >&6; }
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3390 $as_echo "$PATH_SEPARATOR" >&6; }
3391 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3393 $as_echo_n "checking for initial path separator... " >&6; }
3394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3395 $as_echo "$xc_PATH_SEPARATOR" >&6; }
3396   as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3397 fi
3398
3399
3400 #
3401 # save the configure arguments
3402 #
3403 CONFIGURE_OPTIONS="\"$ac_configure_args\""
3404
3405
3406 CURL_CFLAG_EXTRAS=""
3407 if test X"$want_werror" = Xyes; then
3408   CURL_CFLAG_EXTRAS="-Werror"
3409   if test "$compiler_id" = "GNU_C"; then
3410             if test "$compiler_num" -ge "500"; then
3411       CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors"
3412     fi
3413   fi
3414 fi
3415
3416
3417 if test -z "$SED"; then
3418     # Extract the first word of "sed", so it can be a program name with args.
3419 set dummy sed; ac_word=$2
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3421 $as_echo_n "checking for $ac_word... " >&6; }
3422 if ${ac_cv_path_SED+:} false; then :
3423   $as_echo_n "(cached) " >&6
3424 else
3425   case $SED in
3426   [\\/]* | ?:[\\/]*)
3427   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3428   ;;
3429   *)
3430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3432 for as_dir in $as_dummy
3433 do
3434   IFS=$as_save_IFS
3435   test -z "$as_dir" && as_dir=.
3436     for ac_exec_ext in '' $ac_executable_extensions; do
3437   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3438     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3440     break 2
3441   fi
3442 done
3443   done
3444 IFS=$as_save_IFS
3445
3446   test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3447   ;;
3448 esac
3449 fi
3450 SED=$ac_cv_path_SED
3451 if test -n "$SED"; then
3452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3453 $as_echo "$SED" >&6; }
3454 else
3455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3456 $as_echo "no" >&6; }
3457 fi
3458
3459
3460   if test -z "$SED" || test "$SED" = "not_found"; then
3461     as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3462   fi
3463 fi
3464
3465
3466 if test -z "$GREP"; then
3467     # Extract the first word of "grep", so it can be a program name with args.
3468 set dummy grep; ac_word=$2
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3470 $as_echo_n "checking for $ac_word... " >&6; }
3471 if ${ac_cv_path_GREP+:} false; then :
3472   $as_echo_n "(cached) " >&6
3473 else
3474   case $GREP in
3475   [\\/]* | ?:[\\/]*)
3476   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3477   ;;
3478   *)
3479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3481 for as_dir in $as_dummy
3482 do
3483   IFS=$as_save_IFS
3484   test -z "$as_dir" && as_dir=.
3485     for ac_exec_ext in '' $ac_executable_extensions; do
3486   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3489     break 2
3490   fi
3491 done
3492   done
3493 IFS=$as_save_IFS
3494
3495   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3496   ;;
3497 esac
3498 fi
3499 GREP=$ac_cv_path_GREP
3500 if test -n "$GREP"; then
3501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3502 $as_echo "$GREP" >&6; }
3503 else
3504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 $as_echo "no" >&6; }
3506 fi
3507
3508
3509   if test -z "$GREP" || test "$GREP" = "not_found"; then
3510     as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3511   fi
3512 fi
3513
3514
3515 if test -z "$EGREP"; then
3516     if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3517     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3518 $as_echo_n "checking for egrep... " >&6; }
3519     EGREP="$GREP -E"
3520     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3521 $as_echo "$EGREP" >&6; }
3522   else
3523     # Extract the first word of "egrep", so it can be a program name with args.
3524 set dummy egrep; ac_word=$2
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3526 $as_echo_n "checking for $ac_word... " >&6; }
3527 if ${ac_cv_path_EGREP+:} false; then :
3528   $as_echo_n "(cached) " >&6
3529 else
3530   case $EGREP in
3531   [\\/]* | ?:[\\/]*)
3532   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3533   ;;
3534   *)
3535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3537 for as_dir in $as_dummy
3538 do
3539   IFS=$as_save_IFS
3540   test -z "$as_dir" && as_dir=.
3541     for ac_exec_ext in '' $ac_executable_extensions; do
3542   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3543     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3545     break 2
3546   fi
3547 done
3548   done
3549 IFS=$as_save_IFS
3550
3551   test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3552   ;;
3553 esac
3554 fi
3555 EGREP=$ac_cv_path_EGREP
3556 if test -n "$EGREP"; then
3557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3558 $as_echo "$EGREP" >&6; }
3559 else
3560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561 $as_echo "no" >&6; }
3562 fi
3563
3564
3565   fi
3566 fi
3567 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3568   as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3569 fi
3570
3571
3572 if test -z "$AR"; then
3573     if test -n "$ac_tool_prefix"; then
3574   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3575 set dummy ${ac_tool_prefix}ar; ac_word=$2
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3577 $as_echo_n "checking for $ac_word... " >&6; }
3578 if ${ac_cv_path_AR+:} false; then :
3579   $as_echo_n "(cached) " >&6
3580 else
3581   case $AR in
3582   [\\/]* | ?:[\\/]*)
3583   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3584   ;;
3585   *)
3586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3588 for as_dir in $as_dummy
3589 do
3590   IFS=$as_save_IFS
3591   test -z "$as_dir" && as_dir=.
3592     for ac_exec_ext in '' $ac_executable_extensions; do
3593   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3594     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3596     break 2
3597   fi
3598 done
3599   done
3600 IFS=$as_save_IFS
3601
3602   ;;
3603 esac
3604 fi
3605 AR=$ac_cv_path_AR
3606 if test -n "$AR"; then
3607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3608 $as_echo "$AR" >&6; }
3609 else
3610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3611 $as_echo "no" >&6; }
3612 fi
3613
3614
3615 fi
3616 if test -z "$ac_cv_path_AR"; then
3617   ac_pt_AR=$AR
3618   # Extract the first word of "ar", so it can be a program name with args.
3619 set dummy ar; ac_word=$2
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3621 $as_echo_n "checking for $ac_word... " >&6; }
3622 if ${ac_cv_path_ac_pt_AR+:} false; then :
3623   $as_echo_n "(cached) " >&6
3624 else
3625   case $ac_pt_AR in
3626   [\\/]* | ?:[\\/]*)
3627   ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3628   ;;
3629   *)
3630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3632 for as_dir in $as_dummy
3633 do
3634   IFS=$as_save_IFS
3635   test -z "$as_dir" && as_dir=.
3636     for ac_exec_ext in '' $ac_executable_extensions; do
3637   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3638     ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3640     break 2
3641   fi
3642 done
3643   done
3644 IFS=$as_save_IFS
3645
3646   ;;
3647 esac
3648 fi
3649 ac_pt_AR=$ac_cv_path_ac_pt_AR
3650 if test -n "$ac_pt_AR"; then
3651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3652 $as_echo "$ac_pt_AR" >&6; }
3653 else
3654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3655 $as_echo "no" >&6; }
3656 fi
3657
3658   if test "x$ac_pt_AR" = x; then
3659     AR="not_found"
3660   else
3661     case $cross_compiling:$ac_tool_warned in
3662 yes:)
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3665 ac_tool_warned=yes ;;
3666 esac
3667     AR=$ac_pt_AR
3668   fi
3669 else
3670   AR="$ac_cv_path_AR"
3671 fi
3672
3673   if test -z "$AR" || test "$AR" = "not_found"; then
3674     as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3675   fi
3676 fi
3677
3678
3679
3680
3681 CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
3682
3683   xc_prog_cc_prev_IFS=$IFS
3684   xc_prog_cc_prev_LIBS=$LIBS
3685   xc_prog_cc_prev_CFLAGS=$CFLAGS
3686   xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3687   xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3688
3689
3690
3691   xc_bad_var_libs=no
3692   for xc_word in $LIBS; do
3693     case "$xc_word" in
3694       -l* | --library=*)
3695         :
3696         ;;
3697       *)
3698         xc_bad_var_libs=yes
3699         ;;
3700     esac
3701   done
3702   if test $xc_bad_var_libs = yes; then
3703     { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3704 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
3705     { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
3706 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
3707   fi
3708
3709
3710   xc_bad_var_ldflags=no
3711   for xc_word in $LDFLAGS; do
3712     case "$xc_word" in
3713       -D*)
3714         xc_bad_var_ldflags=yes
3715         ;;
3716       -U*)
3717         xc_bad_var_ldflags=yes
3718         ;;
3719       -I*)
3720         xc_bad_var_ldflags=yes
3721         ;;
3722       -l* | --library=*)
3723         xc_bad_var_ldflags=yes
3724         ;;
3725     esac
3726   done
3727   if test $xc_bad_var_ldflags = yes; then
3728     { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3729 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3730     xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
3731     for xc_word in $LDFLAGS; do
3732       case "$xc_word" in
3733         -D*)
3734           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3735 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3736           ;;
3737         -U*)
3738           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3739 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3740           ;;
3741         -I*)
3742           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3743 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3744           ;;
3745         -l* | --library=*)
3746           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3747 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3748           ;;
3749       esac
3750     done
3751   fi
3752
3753
3754   xc_bad_var_cppflags=no
3755   for xc_word in $CPPFLAGS; do
3756     case "$xc_word" in
3757       -rpath*)
3758         xc_bad_var_cppflags=yes
3759         ;;
3760       -L* | --library-path=*)
3761         xc_bad_var_cppflags=yes
3762         ;;
3763       -l* | --library=*)
3764         xc_bad_var_cppflags=yes
3765         ;;
3766     esac
3767   done
3768   if test $xc_bad_var_cppflags = yes; then
3769     { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3770 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3771     xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
3772     for xc_word in $CPPFLAGS; do
3773       case "$xc_word" in
3774         -rpath*)
3775           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3776 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3777           ;;
3778         -L* | --library-path=*)
3779           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3780 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3781           ;;
3782         -l* | --library=*)
3783           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3784 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3785           ;;
3786       esac
3787     done
3788   fi
3789
3790
3791   xc_bad_var_cflags=no
3792   for xc_word in $CFLAGS; do
3793     case "$xc_word" in
3794       -D*)
3795         xc_bad_var_cflags=yes
3796         ;;
3797       -U*)
3798         xc_bad_var_cflags=yes
3799         ;;
3800       -I*)
3801         xc_bad_var_cflags=yes
3802         ;;
3803       -rpath*)
3804         xc_bad_var_cflags=yes
3805         ;;
3806       -L* | --library-path=*)
3807         xc_bad_var_cflags=yes
3808         ;;
3809       -l* | --library=*)
3810         xc_bad_var_cflags=yes
3811         ;;
3812     esac
3813   done
3814   if test $xc_bad_var_cflags = yes; then
3815     { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3816 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3817     xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
3818     for xc_word in $CFLAGS; do
3819       case "$xc_word" in
3820         -D*)
3821           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3822 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3823           ;;
3824         -U*)
3825           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3826 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3827           ;;
3828         -I*)
3829           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3830 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3831           ;;
3832         -rpath*)
3833           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3834 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3835           ;;
3836         -L* | --library-path=*)
3837           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3838 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3839           ;;
3840         -l* | --library=*)
3841           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3842 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3843           ;;
3844       esac
3845     done
3846   fi
3847
3848   if test $xc_bad_var_libs = yes ||
3849      test $xc_bad_var_cflags = yes ||
3850      test $xc_bad_var_ldflags = yes ||
3851      test $xc_bad_var_cppflags = yes; then
3852      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
3853 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
3854   fi
3855
3856 ac_aux_dir=
3857 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3858   if test -f "$ac_dir/install-sh"; then
3859     ac_aux_dir=$ac_dir
3860     ac_install_sh="$ac_aux_dir/install-sh -c"
3861     break
3862   elif test -f "$ac_dir/install.sh"; then
3863     ac_aux_dir=$ac_dir
3864     ac_install_sh="$ac_aux_dir/install.sh -c"
3865     break
3866   elif test -f "$ac_dir/shtool"; then
3867     ac_aux_dir=$ac_dir
3868     ac_install_sh="$ac_aux_dir/shtool install -c"
3869     break
3870   fi
3871 done
3872 if test -z "$ac_aux_dir"; then
3873   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3874 fi
3875
3876 # These three variables are undocumented and unsupported,
3877 # and are intended to be withdrawn in a future Autoconf release.
3878 # They can cause serious problems if a builder's source tree is in a directory
3879 # whose full name contains unusual characters.
3880 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3881 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3882 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3883
3884
3885 # Find a good install program.  We prefer a C program (faster),
3886 # so one script is as good as another.  But avoid the broken or
3887 # incompatible versions:
3888 # SysV /etc/install, /usr/sbin/install
3889 # SunOS /usr/etc/install
3890 # IRIX /sbin/install
3891 # AIX /bin/install
3892 # AmigaOS /C/install, which installs bootblocks on floppy discs
3893 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3894 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3895 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3896 # OS/2's system install, which has a completely different semantic
3897 # ./install, which can be erroneously created by make from ./install.sh.
3898 # Reject install programs that cannot install multiple files.
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3900 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3901 if test -z "$INSTALL"; then
3902 if ${ac_cv_path_install+:} false; then :
3903   $as_echo_n "(cached) " >&6
3904 else
3905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906 for as_dir in $PATH
3907 do
3908   IFS=$as_save_IFS
3909   test -z "$as_dir" && as_dir=.
3910     # Account for people who put trailing slashes in PATH elements.
3911 case $as_dir/ in #((
3912   ./ | .// | /[cC]/* | \
3913   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3914   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3915   /usr/ucb/* ) ;;
3916   *)
3917     # OSF1 and SCO ODT 3.0 have their own names for install.
3918     # Don't use installbsd from OSF since it installs stuff as root
3919     # by default.
3920     for ac_prog in ginstall scoinst install; do
3921       for ac_exec_ext in '' $ac_executable_extensions; do
3922         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3923           if test $ac_prog = install &&
3924             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3925             # AIX install.  It has an incompatible calling convention.
3926             :
3927           elif test $ac_prog = install &&
3928             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3929             # program-specific install script used by HP pwplus--don't use.
3930             :
3931           else
3932             rm -rf conftest.one conftest.two conftest.dir
3933             echo one > conftest.one
3934             echo two > conftest.two
3935             mkdir conftest.dir
3936             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3937               test -s conftest.one && test -s conftest.two &&
3938               test -s conftest.dir/conftest.one &&
3939               test -s conftest.dir/conftest.two
3940             then
3941               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3942               break 3
3943             fi
3944           fi
3945         fi
3946       done
3947     done
3948     ;;
3949 esac
3950
3951   done
3952 IFS=$as_save_IFS
3953
3954 rm -rf conftest.one conftest.two conftest.dir
3955
3956 fi
3957   if test "${ac_cv_path_install+set}" = set; then
3958     INSTALL=$ac_cv_path_install
3959   else
3960     # As a last resort, use the slow shell script.  Don't cache a
3961     # value for INSTALL within a source directory, because that will
3962     # break other packages using the cache if that directory is
3963     # removed, or if the value is a relative name.
3964     INSTALL=$ac_install_sh
3965   fi
3966 fi
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3968 $as_echo "$INSTALL" >&6; }
3969
3970 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3971 # It thinks the first close brace ends the variable substitution.
3972 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3973
3974 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3975
3976 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3977
3978 # Expand $ac_aux_dir to an absolute path.
3979 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3980
3981 ac_ext=c
3982 ac_cpp='$CPP $CPPFLAGS'
3983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3986 if test -n "$ac_tool_prefix"; then
3987   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3988 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3990 $as_echo_n "checking for $ac_word... " >&6; }
3991 if ${ac_cv_prog_CC+:} false; then :
3992   $as_echo_n "(cached) " >&6
3993 else
3994   if test -n "$CC"; then
3995   ac_cv_prog_CC="$CC" # Let the user override the test.
3996 else
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 for as_dir in $PATH
3999 do
4000   IFS=$as_save_IFS
4001   test -z "$as_dir" && as_dir=.
4002     for ac_exec_ext in '' $ac_executable_extensions; do
4003   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4004     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4006     break 2
4007   fi
4008 done
4009   done
4010 IFS=$as_save_IFS
4011
4012 fi
4013 fi
4014 CC=$ac_cv_prog_CC
4015 if test -n "$CC"; then
4016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4017 $as_echo "$CC" >&6; }
4018 else
4019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4020 $as_echo "no" >&6; }
4021 fi
4022
4023
4024 fi
4025 if test -z "$ac_cv_prog_CC"; then
4026   ac_ct_CC=$CC
4027   # Extract the first word of "gcc", so it can be a program name with args.
4028 set dummy gcc; ac_word=$2
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4030 $as_echo_n "checking for $ac_word... " >&6; }
4031 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4032   $as_echo_n "(cached) " >&6
4033 else
4034   if test -n "$ac_ct_CC"; then
4035   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4036 else
4037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038 for as_dir in $PATH
4039 do
4040   IFS=$as_save_IFS
4041   test -z "$as_dir" && as_dir=.
4042     for ac_exec_ext in '' $ac_executable_extensions; do
4043   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4044     ac_cv_prog_ac_ct_CC="gcc"
4045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4046     break 2
4047   fi
4048 done
4049   done
4050 IFS=$as_save_IFS
4051
4052 fi
4053 fi
4054 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4055 if test -n "$ac_ct_CC"; then
4056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4057 $as_echo "$ac_ct_CC" >&6; }
4058 else
4059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4060 $as_echo "no" >&6; }
4061 fi
4062
4063   if test "x$ac_ct_CC" = x; then
4064     CC=""
4065   else
4066     case $cross_compiling:$ac_tool_warned in
4067 yes:)
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4070 ac_tool_warned=yes ;;
4071 esac
4072     CC=$ac_ct_CC
4073   fi
4074 else
4075   CC="$ac_cv_prog_CC"
4076 fi
4077
4078 if test -z "$CC"; then
4079           if test -n "$ac_tool_prefix"; then
4080     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4081 set dummy ${ac_tool_prefix}cc; ac_word=$2
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4083 $as_echo_n "checking for $ac_word... " >&6; }
4084 if ${ac_cv_prog_CC+:} false; then :
4085   $as_echo_n "(cached) " >&6
4086 else
4087   if test -n "$CC"; then
4088   ac_cv_prog_CC="$CC" # Let the user override the test.
4089 else
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH
4092 do
4093   IFS=$as_save_IFS
4094   test -z "$as_dir" && as_dir=.
4095     for ac_exec_ext in '' $ac_executable_extensions; do
4096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4097     ac_cv_prog_CC="${ac_tool_prefix}cc"
4098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4099     break 2
4100   fi
4101 done
4102   done
4103 IFS=$as_save_IFS
4104
4105 fi
4106 fi
4107 CC=$ac_cv_prog_CC
4108 if test -n "$CC"; then
4109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4110 $as_echo "$CC" >&6; }
4111 else
4112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4113 $as_echo "no" >&6; }
4114 fi
4115
4116
4117   fi
4118 fi
4119 if test -z "$CC"; then
4120   # Extract the first word of "cc", so it can be a program name with args.
4121 set dummy cc; ac_word=$2
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4123 $as_echo_n "checking for $ac_word... " >&6; }
4124 if ${ac_cv_prog_CC+:} false; then :
4125   $as_echo_n "(cached) " >&6
4126 else
4127   if test -n "$CC"; then
4128   ac_cv_prog_CC="$CC" # Let the user override the test.
4129 else
4130   ac_prog_rejected=no
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 for as_dir in $PATH
4133 do
4134   IFS=$as_save_IFS
4135   test -z "$as_dir" && as_dir=.
4136     for ac_exec_ext in '' $ac_executable_extensions; do
4137   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4138     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4139        ac_prog_rejected=yes
4140        continue
4141      fi
4142     ac_cv_prog_CC="cc"
4143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4144     break 2
4145   fi
4146 done
4147   done
4148 IFS=$as_save_IFS
4149
4150 if test $ac_prog_rejected = yes; then
4151   # We found a bogon in the path, so make sure we never use it.
4152   set dummy $ac_cv_prog_CC
4153   shift
4154   if test $# != 0; then
4155     # We chose a different compiler from the bogus one.
4156     # However, it has the same basename, so the bogon will be chosen
4157     # first if we set CC to just the basename; use the full file name.
4158     shift
4159     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4160   fi
4161 fi
4162 fi
4163 fi
4164 CC=$ac_cv_prog_CC
4165 if test -n "$CC"; then
4166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4167 $as_echo "$CC" >&6; }
4168 else
4169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4170 $as_echo "no" >&6; }
4171 fi
4172
4173
4174 fi
4175 if test -z "$CC"; then
4176   if test -n "$ac_tool_prefix"; then
4177   for ac_prog in cl.exe
4178   do
4179     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4180 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182 $as_echo_n "checking for $ac_word... " >&6; }
4183 if ${ac_cv_prog_CC+:} false; then :
4184   $as_echo_n "(cached) " >&6
4185 else
4186   if test -n "$CC"; then
4187   ac_cv_prog_CC="$CC" # Let the user override the test.
4188 else
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in $PATH
4191 do
4192   IFS=$as_save_IFS
4193   test -z "$as_dir" && as_dir=.
4194     for ac_exec_ext in '' $ac_executable_extensions; do
4195   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4196     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4198     break 2
4199   fi
4200 done
4201   done
4202 IFS=$as_save_IFS
4203
4204 fi
4205 fi
4206 CC=$ac_cv_prog_CC
4207 if test -n "$CC"; then
4208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4209 $as_echo "$CC" >&6; }
4210 else
4211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212 $as_echo "no" >&6; }
4213 fi
4214
4215
4216     test -n "$CC" && break
4217   done
4218 fi
4219 if test -z "$CC"; then
4220   ac_ct_CC=$CC
4221   for ac_prog in cl.exe
4222 do
4223   # Extract the first word of "$ac_prog", so it can be a program name with args.
4224 set dummy $ac_prog; ac_word=$2
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4226 $as_echo_n "checking for $ac_word... " >&6; }
4227 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4228   $as_echo_n "(cached) " >&6
4229 else
4230   if test -n "$ac_ct_CC"; then
4231   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4232 else
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH
4235 do
4236   IFS=$as_save_IFS
4237   test -z "$as_dir" && as_dir=.
4238     for ac_exec_ext in '' $ac_executable_extensions; do
4239   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4240     ac_cv_prog_ac_ct_CC="$ac_prog"
4241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4242     break 2
4243   fi
4244 done
4245   done
4246 IFS=$as_save_IFS
4247
4248 fi
4249 fi
4250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4251 if test -n "$ac_ct_CC"; then
4252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4253 $as_echo "$ac_ct_CC" >&6; }
4254 else
4255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4256 $as_echo "no" >&6; }
4257 fi
4258
4259
4260   test -n "$ac_ct_CC" && break
4261 done
4262
4263   if test "x$ac_ct_CC" = x; then
4264     CC=""
4265   else
4266     case $cross_compiling:$ac_tool_warned in
4267 yes:)
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4270 ac_tool_warned=yes ;;
4271 esac
4272     CC=$ac_ct_CC
4273   fi
4274 fi
4275
4276 fi
4277
4278
4279 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4281 as_fn_error $? "no acceptable C compiler found in \$PATH
4282 See \`config.log' for more details" "$LINENO" 5; }
4283
4284 # Provide some information about the compiler.
4285 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4286 set X $ac_compile
4287 ac_compiler=$2
4288 for ac_option in --version -v -V -qversion; do
4289   { { ac_try="$ac_compiler $ac_option >&5"
4290 case "(($ac_try" in
4291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292   *) ac_try_echo=$ac_try;;
4293 esac
4294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4295 $as_echo "$ac_try_echo"; } >&5
4296   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4297   ac_status=$?
4298   if test -s conftest.err; then
4299     sed '10a\
4300 ... rest of stderr output deleted ...
4301          10q' conftest.err >conftest.er1
4302     cat conftest.er1 >&5
4303   fi
4304   rm -f conftest.er1 conftest.err
4305   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4306   test $ac_status = 0; }
4307 done
4308
4309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4310 /* end confdefs.h.  */
4311
4312 int main (void)
4313 {
4314
4315  ;
4316  return 0;
4317 }
4318 _ACEOF
4319 ac_clean_files_save=$ac_clean_files
4320 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4321 # Try to create an executable without -o first, disregard a.out.
4322 # It will help us diagnose broken compilers, and finding out an intuition
4323 # of exeext.
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4325 $as_echo_n "checking whether the C compiler works... " >&6; }
4326 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4327
4328 # The possible output files:
4329 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4330
4331 ac_rmfiles=
4332 for ac_file in $ac_files
4333 do
4334   case $ac_file in
4335     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4336     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4337   esac
4338 done
4339 rm -f $ac_rmfiles
4340
4341 if { { ac_try="$ac_link_default"
4342 case "(($ac_try" in
4343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344   *) ac_try_echo=$ac_try;;
4345 esac
4346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4347 $as_echo "$ac_try_echo"; } >&5
4348   (eval "$ac_link_default") 2>&5
4349   ac_status=$?
4350   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4351   test $ac_status = 0; }; then :
4352   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4353 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4354 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4355 # so that the user can short-circuit this test for compilers unknown to
4356 # Autoconf.
4357 for ac_file in $ac_files ''
4358 do
4359   test -f "$ac_file" || continue
4360   case $ac_file in
4361     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4362         ;;
4363     [ab].out )
4364         # We found the default executable, but exeext='' is most
4365         # certainly right.
4366         break;;
4367     *.* )
4368         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4369         then :; else
4370            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4371         fi
4372         # We set ac_cv_exeext here because the later test for it is not
4373         # safe: cross compilers may not add the suffix if given an `-o'
4374         # argument, so we may need to know it at that point already.
4375         # Even if this section looks crufty: it has the advantage of
4376         # actually working.
4377         break;;
4378     * )
4379         break;;
4380   esac
4381 done
4382 test "$ac_cv_exeext" = no && ac_cv_exeext=
4383
4384 else
4385   ac_file=''
4386 fi
4387 if test -z "$ac_file"; then :
4388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4389 $as_echo "no" >&6; }
4390 $as_echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4392
4393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4395 as_fn_error 77 "C compiler cannot create executables
4396 See \`config.log' for more details" "$LINENO" 5; }
4397 else
4398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4399 $as_echo "yes" >&6; }
4400 fi
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4402 $as_echo_n "checking for C compiler default output file name... " >&6; }
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4404 $as_echo "$ac_file" >&6; }
4405 ac_exeext=$ac_cv_exeext
4406
4407 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4408 ac_clean_files=$ac_clean_files_save
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4410 $as_echo_n "checking for suffix of executables... " >&6; }
4411 if { { ac_try="$ac_link"
4412 case "(($ac_try" in
4413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414   *) ac_try_echo=$ac_try;;
4415 esac
4416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4417 $as_echo "$ac_try_echo"; } >&5
4418   (eval "$ac_link") 2>&5
4419   ac_status=$?
4420   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4421   test $ac_status = 0; }; then :
4422   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4423 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4424 # work properly (i.e., refer to `conftest.exe'), while it won't with
4425 # `rm'.
4426 for ac_file in conftest.exe conftest conftest.*; do
4427   test -f "$ac_file" || continue
4428   case $ac_file in
4429     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4430     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4431           break;;
4432     * ) break;;
4433   esac
4434 done
4435 else
4436   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4438 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4439 See \`config.log' for more details" "$LINENO" 5; }
4440 fi
4441 rm -f conftest conftest$ac_cv_exeext
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4443 $as_echo "$ac_cv_exeext" >&6; }
4444
4445 rm -f conftest.$ac_ext
4446 EXEEXT=$ac_cv_exeext
4447 ac_exeext=$EXEEXT
4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h.  */
4450 #include <stdio.h>
4451 int main (void)
4452 {
4453 FILE *f = fopen ("conftest.out", "w");
4454  return ferror (f) || fclose (f) != 0;
4455
4456  ;
4457  return 0;
4458 }
4459 _ACEOF
4460 ac_clean_files="$ac_clean_files conftest.out"
4461 # Check that the compiler produces executables we can run.  If not, either
4462 # the compiler is broken, or we cross compile.
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4464 $as_echo_n "checking whether we are cross compiling... " >&6; }
4465 if test "$cross_compiling" != yes; then
4466   { { ac_try="$ac_link"
4467 case "(($ac_try" in
4468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4469   *) ac_try_echo=$ac_try;;
4470 esac
4471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4472 $as_echo "$ac_try_echo"; } >&5
4473   (eval "$ac_link") 2>&5
4474   ac_status=$?
4475   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4476   test $ac_status = 0; }
4477   if { ac_try='./conftest$ac_cv_exeext'
4478   { { case "(($ac_try" in
4479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480   *) ac_try_echo=$ac_try;;
4481 esac
4482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4483 $as_echo "$ac_try_echo"; } >&5
4484   (eval "$ac_try") 2>&5
4485   ac_status=$?
4486   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4487   test $ac_status = 0; }; }; then
4488     cross_compiling=no
4489   else
4490     if test "$cross_compiling" = maybe; then
4491         cross_compiling=yes
4492     else
4493         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4495 as_fn_error $? "cannot run C compiled programs.
4496 If you meant to cross compile, use \`--host'.
4497 See \`config.log' for more details" "$LINENO" 5; }
4498     fi
4499   fi
4500 fi
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4502 $as_echo "$cross_compiling" >&6; }
4503
4504 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4505 ac_clean_files=$ac_clean_files_save
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4507 $as_echo_n "checking for suffix of object files... " >&6; }
4508 if ${ac_cv_objext+:} false; then :
4509   $as_echo_n "(cached) " >&6
4510 else
4511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512 /* end confdefs.h.  */
4513
4514 int main (void)
4515 {
4516
4517  ;
4518  return 0;
4519 }
4520 _ACEOF
4521 rm -f conftest.o conftest.obj
4522 if { { ac_try="$ac_compile"
4523 case "(($ac_try" in
4524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525   *) ac_try_echo=$ac_try;;
4526 esac
4527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4528 $as_echo "$ac_try_echo"; } >&5
4529   (eval "$ac_compile") 2>&5
4530   ac_status=$?
4531   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4532   test $ac_status = 0; }; then :
4533   for ac_file in conftest.o conftest.obj conftest.*; do
4534   test -f "$ac_file" || continue;
4535   case $ac_file in
4536     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4537     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4538        break;;
4539   esac
4540 done
4541 else
4542   $as_echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.$ac_ext >&5
4544
4545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4547 as_fn_error $? "cannot compute suffix of object files: cannot compile
4548 See \`config.log' for more details" "$LINENO" 5; }
4549 fi
4550 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4551 fi
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4553 $as_echo "$ac_cv_objext" >&6; }
4554 OBJEXT=$ac_cv_objext
4555 ac_objext=$OBJEXT
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4557 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4558 if ${ac_cv_c_compiler_gnu+:} false; then :
4559   $as_echo_n "(cached) " >&6
4560 else
4561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562 /* end confdefs.h.  */
4563
4564 int main (void)
4565 {
4566 #ifndef __GNUC__
4567        choke me
4568 #endif
4569
4570  ;
4571  return 0;
4572 }
4573 _ACEOF
4574 if ac_fn_c_try_compile "$LINENO"; then :
4575   ac_compiler_gnu=yes
4576 else
4577   ac_compiler_gnu=no
4578 fi
4579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4580 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4581
4582 fi
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4584 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4585 if test $ac_compiler_gnu = yes; then
4586   GCC=yes
4587 else
4588   GCC=
4589 fi
4590 ac_test_CFLAGS=${CFLAGS+set}
4591 ac_save_CFLAGS=$CFLAGS
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4593 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4594 if ${ac_cv_prog_cc_g+:} false; then :
4595   $as_echo_n "(cached) " >&6
4596 else
4597   ac_save_c_werror_flag=$ac_c_werror_flag
4598    ac_c_werror_flag=yes
4599    ac_cv_prog_cc_g=no
4600    CFLAGS="-g"
4601    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602 /* end confdefs.h.  */
4603
4604 int main (void)
4605 {
4606
4607  ;
4608  return 0;
4609 }
4610 _ACEOF
4611 if ac_fn_c_try_compile "$LINENO"; then :
4612   ac_cv_prog_cc_g=yes
4613 else
4614   CFLAGS=""
4615       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h.  */
4617
4618 int main (void)
4619 {
4620
4621  ;
4622  return 0;
4623 }
4624 _ACEOF
4625 if ac_fn_c_try_compile "$LINENO"; then :
4626
4627 else
4628   ac_c_werror_flag=$ac_save_c_werror_flag
4629          CFLAGS="-g"
4630          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h.  */
4632
4633 int main (void)
4634 {
4635
4636  ;
4637  return 0;
4638 }
4639 _ACEOF
4640 if ac_fn_c_try_compile "$LINENO"; then :
4641   ac_cv_prog_cc_g=yes
4642 fi
4643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4644 fi
4645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4646 fi
4647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4648    ac_c_werror_flag=$ac_save_c_werror_flag
4649 fi
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4651 $as_echo "$ac_cv_prog_cc_g" >&6; }
4652 if test "$ac_test_CFLAGS" = set; then
4653   CFLAGS=$ac_save_CFLAGS
4654 elif test $ac_cv_prog_cc_g = yes; then
4655   if test "$GCC" = yes; then
4656     CFLAGS="-g -O2"
4657   else
4658     CFLAGS="-g"
4659   fi
4660 else
4661   if test "$GCC" = yes; then
4662     CFLAGS="-O2"
4663   else
4664     CFLAGS=
4665   fi
4666 fi
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4668 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4669 if ${ac_cv_prog_cc_c89+:} false; then :
4670   $as_echo_n "(cached) " >&6
4671 else
4672   ac_cv_prog_cc_c89=no
4673 ac_save_CC=$CC
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h.  */
4676 #include <stdarg.h>
4677 #include <stdio.h>
4678 struct stat;
4679 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4680 struct buf { int x; };
4681 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4682 static char *e (p, i)
4683      char **p;
4684      int i;
4685 {
4686   return p[i];
4687 }
4688 static char *f (char * (*g) (char **, int), char **p, ...)
4689 {
4690   char *s;
4691   va_list v;
4692   va_start (v,p);
4693   s = g (p, va_arg (v,int));
4694   va_end (v);
4695   return s;
4696 }
4697
4698 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4699    function prototypes and stuff, but not '\xHH' hex character constants.
4700    These don't provoke an error unfortunately, instead are silently treated
4701    as 'x'.  The following induces an error, until -std is added to get
4702    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4703    array size at least.  It's necessary to write '\x00'==0 to get something
4704    that's true only with -std.  */
4705 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4706
4707 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4708    inside strings and character constants.  */
4709 #define FOO(x) 'x'
4710 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4711
4712 int test (int i, double x);
4713 struct s1 {int (*f) (int a);};
4714 struct s2 {int (*f) (double a);};
4715 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4716 int argc;
4717 char **argv;
4718 int main (void)
4719 {
4720 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4721  ;
4722  return 0;
4723 }
4724 _ACEOF
4725 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4726         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4727 do
4728   CC="$ac_save_CC $ac_arg"
4729   if ac_fn_c_try_compile "$LINENO"; then :
4730   ac_cv_prog_cc_c89=$ac_arg
4731 fi
4732 rm -f core conftest.err conftest.$ac_objext
4733   test "x$ac_cv_prog_cc_c89" != "xno" && break
4734 done
4735 rm -f conftest.$ac_ext
4736 CC=$ac_save_CC
4737
4738 fi
4739 # AC_CACHE_VAL
4740 case "x$ac_cv_prog_cc_c89" in
4741   x)
4742     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4743 $as_echo "none needed" >&6; } ;;
4744   xno)
4745     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4746 $as_echo "unsupported" >&6; } ;;
4747   *)
4748     CC="$CC $ac_cv_prog_cc_c89"
4749     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4750 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4751 esac
4752 if test "x$ac_cv_prog_cc_c89" != xno; then :
4753
4754 fi
4755
4756 ac_ext=c
4757 ac_cpp='$CPP $CPPFLAGS'
4758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4761
4762 ac_ext=c
4763 ac_cpp='$CPP $CPPFLAGS'
4764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4768 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4769 if ${am_cv_prog_cc_c_o+:} false; then :
4770   $as_echo_n "(cached) " >&6
4771 else
4772   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h.  */
4774
4775 int main (void)
4776 {
4777
4778  ;
4779  return 0;
4780 }
4781 _ACEOF
4782   # Make sure it works both with $CC and with simple cc.
4783   # Following AC_PROG_CC_C_O, we do the test twice because some
4784   # compilers refuse to overwrite an existing .o file with -o,
4785   # though they will create one.
4786   am_cv_prog_cc_c_o=yes
4787   for am_i in 1 2; do
4788     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4789    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4790    ac_status=$?
4791    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792    (exit $ac_status); } \
4793          && test -f conftest2.$ac_objext; then
4794       : OK
4795     else
4796       am_cv_prog_cc_c_o=no
4797       break
4798     fi
4799   done
4800   rm -f core conftest*
4801   unset am_i
4802 fi
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4804 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4805 if test "$am_cv_prog_cc_c_o" != yes; then
4806    # Losing compiler, so override with the script.
4807    # FIXME: It is wrong to rewrite CC.
4808    # But if we don't then we get into trouble of one sort or another.
4809    # A longer-term fix would be to have automake use am__CC in this case,
4810    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4811    CC="$am_aux_dir/compile $CC"
4812 fi
4813 ac_ext=c
4814 ac_cpp='$CPP $CPPFLAGS'
4815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4818
4819
4820
4821 ac_ext=c
4822 ac_cpp='$CPP $CPPFLAGS'
4823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4827 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4828 # On Suns, sometimes $CPP names a directory.
4829 if test -n "$CPP" && test -d "$CPP"; then
4830   CPP=
4831 fi
4832 if test -z "$CPP"; then
4833   if ${ac_cv_prog_CPP+:} false; then :
4834   $as_echo_n "(cached) " >&6
4835 else
4836       # Double quotes because CPP needs to be expanded
4837     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4838     do
4839       ac_preproc_ok=false
4840 for ac_c_preproc_warn_flag in '' yes
4841 do
4842   # Use a header file that comes with gcc, so configuring glibc
4843   # with a fresh cross-compiler works.
4844   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4845   # <limits.h> exists even on freestanding compilers.
4846   # On the NeXT, cc -E runs the code through the compiler's parser,
4847   # not just through cpp. "Syntax error" is here to catch this case.
4848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h.  */
4850 #ifdef __STDC__
4851 # include <limits.h>
4852 #else
4853 # include <assert.h>
4854 #endif
4855                      Syntax error
4856 _ACEOF
4857 if ac_fn_c_try_cpp "$LINENO"; then :
4858
4859 else
4860   # Broken: fails on valid input.
4861 continue
4862 fi
4863 rm -f conftest.err conftest.i conftest.$ac_ext
4864
4865   # OK, works on sane cases.  Now check whether nonexistent headers
4866   # can be detected and how.
4867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4868 /* end confdefs.h.  */
4869 #include <ac_nonexistent.h>
4870 _ACEOF
4871 if ac_fn_c_try_cpp "$LINENO"; then :
4872   # Broken: success on invalid input.
4873 continue
4874 else
4875   # Passes both tests.
4876 ac_preproc_ok=:
4877 break
4878 fi
4879 rm -f conftest.err conftest.i conftest.$ac_ext
4880
4881 done
4882 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4883 rm -f conftest.i conftest.err conftest.$ac_ext
4884 if $ac_preproc_ok; then :
4885   break
4886 fi
4887
4888     done
4889     ac_cv_prog_CPP=$CPP
4890
4891 fi
4892   CPP=$ac_cv_prog_CPP
4893 else
4894   ac_cv_prog_CPP=$CPP
4895 fi
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4897 $as_echo "$CPP" >&6; }
4898 ac_preproc_ok=false
4899 for ac_c_preproc_warn_flag in '' yes
4900 do
4901   # Use a header file that comes with gcc, so configuring glibc
4902   # with a fresh cross-compiler works.
4903   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4904   # <limits.h> exists even on freestanding compilers.
4905   # On the NeXT, cc -E runs the code through the compiler's parser,
4906   # not just through cpp. "Syntax error" is here to catch this case.
4907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4908 /* end confdefs.h.  */
4909 #ifdef __STDC__
4910 # include <limits.h>
4911 #else
4912 # include <assert.h>
4913 #endif
4914                      Syntax error
4915 _ACEOF
4916 if ac_fn_c_try_cpp "$LINENO"; then :
4917
4918 else
4919   # Broken: fails on valid input.
4920 continue
4921 fi
4922 rm -f conftest.err conftest.i conftest.$ac_ext
4923
4924   # OK, works on sane cases.  Now check whether nonexistent headers
4925   # can be detected and how.
4926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h.  */
4928 #include <ac_nonexistent.h>
4929 _ACEOF
4930 if ac_fn_c_try_cpp "$LINENO"; then :
4931   # Broken: success on invalid input.
4932 continue
4933 else
4934   # Passes both tests.
4935 ac_preproc_ok=:
4936 break
4937 fi
4938 rm -f conftest.err conftest.i conftest.$ac_ext
4939
4940 done
4941 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4942 rm -f conftest.i conftest.err conftest.$ac_ext
4943 if $ac_preproc_ok; then :
4944
4945 else
4946   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4948 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4949 See \`config.log' for more details" "$LINENO" 5; }
4950 fi
4951
4952 ac_ext=c
4953 ac_cpp='$CPP $CPPFLAGS'
4954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4957
4958
4959   IFS=$xc_prog_cc_prev_IFS
4960   LIBS=$xc_prog_cc_prev_LIBS
4961   CFLAGS=$xc_prog_cc_prev_CFLAGS
4962   LDFLAGS=$xc_prog_cc_prev_LDFLAGS
4963   CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
4964
4965
4966
4967
4968
4969
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4971 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4972 if ${ac_cv_path_SED+:} false; then :
4973   $as_echo_n "(cached) " >&6
4974 else
4975             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4976      for ac_i in 1 2 3 4 5 6 7; do
4977        ac_script="$ac_script$as_nl$ac_script"
4978      done
4979      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4980      { ac_script=; unset ac_script;}
4981      if test -z "$SED"; then
4982   ac_path_SED_found=false
4983   # Loop through the user's path and test for each of PROGNAME-LIST
4984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 for as_dir in $PATH
4986 do
4987   IFS=$as_save_IFS
4988   test -z "$as_dir" && as_dir=.
4989     for ac_prog in sed gsed; do
4990     for ac_exec_ext in '' $ac_executable_extensions; do
4991       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4992       as_fn_executable_p "$ac_path_SED" || continue
4993 # Check for GNU ac_path_SED and select it if it is found.
4994   # Check for GNU $ac_path_SED
4995 case `"$ac_path_SED" --version 2>&1` in
4996 *GNU*)
4997   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4998 *)
4999   ac_count=0
5000   $as_echo_n 0123456789 >"conftest.in"
5001   while :
5002   do
5003     cat "conftest.in" "conftest.in" >"conftest.tmp"
5004     mv "conftest.tmp" "conftest.in"
5005     cp "conftest.in" "conftest.nl"
5006     $as_echo '' >> "conftest.nl"
5007     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5008     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5009     as_fn_arith $ac_count + 1 && ac_count=$as_val
5010     if test $ac_count -gt ${ac_path_SED_max-0}; then
5011       # Best one so far, save it but keep looking for a better one
5012       ac_cv_path_SED="$ac_path_SED"
5013       ac_path_SED_max=$ac_count
5014     fi
5015     # 10*(2^10) chars as input seems more than enough
5016     test $ac_count -gt 10 && break
5017   done
5018   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5019 esac
5020
5021       $ac_path_SED_found && break 3
5022     done
5023   done
5024   done
5025 IFS=$as_save_IFS
5026   if test -z "$ac_cv_path_SED"; then
5027     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5028   fi
5029 else
5030   ac_cv_path_SED=$SED
5031 fi
5032
5033 fi
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5035 $as_echo "$ac_cv_path_SED" >&6; }
5036  SED="$ac_cv_path_SED"
5037   rm -f conftest.sed
5038
5039
5040
5041
5042   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for code coverage support" >&5
5043 $as_echo_n "checking for code coverage support... " >&6; }
5044   coverage="no"
5045   curl_coverage_msg="disabled"
5046
5047     # Check whether --enable-code-coverage was given.
5048 if test "${enable_code_coverage+set}" = set; then :
5049   enableval=$enable_code_coverage; coverage="$enableval"
5050 fi
5051
5052
5053     if  test "$GCC" != "yes" ; then :
5054   coverage="no"
5055 fi
5056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $coverage" >&5
5057 $as_echo "$coverage" >&6; }
5058
5059   if test "x$coverage" = "xyes"; then
5060     curl_coverage_msg="enabled"
5061
5062     if test -n "$ac_tool_prefix"; then
5063   # Extract the first word of "${ac_tool_prefix}gcov", so it can be a program name with args.
5064 set dummy ${ac_tool_prefix}gcov; ac_word=$2
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5066 $as_echo_n "checking for $ac_word... " >&6; }
5067 if ${ac_cv_prog_GCOV+:} false; then :
5068   $as_echo_n "(cached) " >&6
5069 else
5070   if test -n "$GCOV"; then
5071   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
5072 else
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 for as_dir in $PATH
5075 do
5076   IFS=$as_save_IFS
5077   test -z "$as_dir" && as_dir=.
5078     for ac_exec_ext in '' $ac_executable_extensions; do
5079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5080     ac_cv_prog_GCOV="${ac_tool_prefix}gcov"
5081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5082     break 2
5083   fi
5084 done
5085   done
5086 IFS=$as_save_IFS
5087
5088 fi
5089 fi
5090 GCOV=$ac_cv_prog_GCOV
5091 if test -n "$GCOV"; then
5092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
5093 $as_echo "$GCOV" >&6; }
5094 else
5095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096 $as_echo "no" >&6; }
5097 fi
5098
5099
5100 fi
5101 if test -z "$ac_cv_prog_GCOV"; then
5102   ac_ct_GCOV=$GCOV
5103   # Extract the first word of "gcov", so it can be a program name with args.
5104 set dummy gcov; ac_word=$2
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5106 $as_echo_n "checking for $ac_word... " >&6; }
5107 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
5108   $as_echo_n "(cached) " >&6
5109 else
5110   if test -n "$ac_ct_GCOV"; then
5111   ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
5112 else
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 for as_dir in $PATH
5115 do
5116   IFS=$as_save_IFS
5117   test -z "$as_dir" && as_dir=.
5118     for ac_exec_ext in '' $ac_executable_extensions; do
5119   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5120     ac_cv_prog_ac_ct_GCOV="gcov"
5121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5122     break 2
5123   fi
5124 done
5125   done
5126 IFS=$as_save_IFS
5127
5128 fi
5129 fi
5130 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
5131 if test -n "$ac_ct_GCOV"; then
5132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
5133 $as_echo "$ac_ct_GCOV" >&6; }
5134 else
5135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136 $as_echo "no" >&6; }
5137 fi
5138
5139   if test "x$ac_ct_GCOV" = x; then
5140     GCOV="gcov"
5141   else
5142     case $cross_compiling:$ac_tool_warned in
5143 yes:)
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5146 ac_tool_warned=yes ;;
5147 esac
5148     GCOV=$ac_ct_GCOV
5149   fi
5150 else
5151   GCOV="$ac_cv_prog_GCOV"
5152 fi
5153
5154     if test -z "$GCOV"; then
5155       as_fn_error $? "needs gcov for code coverage" "$LINENO" 5
5156     fi
5157     # Extract the first word of "lcov", so it can be a program name with args.
5158 set dummy lcov; ac_word=$2
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5160 $as_echo_n "checking for $ac_word... " >&6; }
5161 if ${ac_cv_prog_LCOV+:} false; then :
5162   $as_echo_n "(cached) " >&6
5163 else
5164   if test -n "$LCOV"; then
5165   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
5166 else
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 for as_dir in $PATH
5169 do
5170   IFS=$as_save_IFS
5171   test -z "$as_dir" && as_dir=.
5172     for ac_exec_ext in '' $ac_executable_extensions; do
5173   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5174     ac_cv_prog_LCOV="lcov"
5175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5176     break 2
5177   fi
5178 done
5179   done
5180 IFS=$as_save_IFS
5181
5182 fi
5183 fi
5184 LCOV=$ac_cv_prog_LCOV
5185 if test -n "$LCOV"; then
5186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
5187 $as_echo "$LCOV" >&6; }
5188 else
5189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5190 $as_echo "no" >&6; }
5191 fi
5192
5193
5194     if test -z "$LCOV"; then
5195       as_fn_error $? "needs lcov for code coverage" "$LINENO" 5
5196     fi
5197
5198     CPPFLAGS="$CPPFLAGS -DNDEBUG"
5199     CFLAGS="$CLAGS -O0 -g -fprofile-arcs -ftest-coverage"
5200     LIBS="$LIBS -lgcov"
5201   fi
5202
5203
5204 am__api_version='1.16'
5205
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5207 $as_echo_n "checking whether build environment is sane... " >&6; }
5208 # Reject unsafe characters in $srcdir or the absolute working directory
5209 # name.  Accept space and tab only in the latter.
5210 am_lf='
5211 '
5212 case `pwd` in
5213   *[\\\"\#\$\&\'\`$am_lf]*)
5214     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5215 esac
5216 case $srcdir in
5217   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
5218     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5219 esac
5220
5221 # Do 'set' in a subshell so we don't clobber the current shell's
5222 # arguments.  Must try -L first in case configure is actually a
5223 # symlink; some systems play weird games with the mod time of symlinks
5224 # (eg FreeBSD returns the mod time of the symlink's containing
5225 # directory).
5226 if (
5227    am_has_slept=no
5228    for am_try in 1 2; do
5229      echo "timestamp, slept: $am_has_slept" > conftest.file
5230      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5231      if test "$*" = "X"; then
5232         # -L didn't work.
5233         set X `ls -t "$srcdir/configure" conftest.file`
5234      fi
5235      if test "$*" != "X $srcdir/configure conftest.file" \
5236         && test "$*" != "X conftest.file $srcdir/configure"; then
5237
5238         # If neither matched, then we have a broken ls.  This can happen
5239         # if, for instance, CONFIG_SHELL is bash and it inherits a
5240         # broken ls alias from the environment.  This has actually
5241         # happened.  Such a system could not be considered "sane".
5242         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
5243   alias in your environment" "$LINENO" 5
5244      fi
5245      if test "$2" = conftest.file || test $am_try -eq 2; then
5246        break
5247      fi
5248      # Just in case.
5249      sleep 1
5250      am_has_slept=yes
5251    done
5252    test "$2" = conftest.file
5253    )
5254 then
5255    # Ok.
5256    :
5257 else
5258    as_fn_error $? "newly created file is older than distributed files!
5259 Check your system clock" "$LINENO" 5
5260 fi
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5262 $as_echo "yes" >&6; }
5263 # If we didn't sleep, we still need to ensure time stamps of config.status and
5264 # generated files are strictly newer.
5265 am_sleep_pid=
5266 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5267   ( sleep 1 ) &
5268   am_sleep_pid=$!
5269 fi
5270
5271 rm -f conftest.file
5272
5273 test "$program_prefix" != NONE &&
5274   program_transform_name="s&^&$program_prefix&;$program_transform_name"
5275 # Use a double $ so make ignores it.
5276 test "$program_suffix" != NONE &&
5277   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5278 # Double any \ or $.
5279 # By default was `s,x,x', remove it if useless.
5280 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5281 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5282
5283 if test x"${MISSING+set}" != xset; then
5284   case $am_aux_dir in
5285   *\ * | *\     *)
5286     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5287   *)
5288     MISSING="\${SHELL} $am_aux_dir/missing" ;;
5289   esac
5290 fi
5291 # Use eval to expand $SHELL
5292 if eval "$MISSING --is-lightweight"; then
5293   am_missing_run="$MISSING "
5294 else
5295   am_missing_run=
5296   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5297 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5298 fi
5299
5300 if test x"${install_sh+set}" != xset; then
5301   case $am_aux_dir in
5302   *\ * | *\     *)
5303     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5304   *)
5305     install_sh="\${SHELL} $am_aux_dir/install-sh"
5306   esac
5307 fi
5308
5309 # Installed binaries are usually stripped using 'strip' when the user
5310 # run "make install-strip".  However 'strip' might not be the right
5311 # tool to use in cross-compilation environments, therefore Automake
5312 # will honor the 'STRIP' environment variable to overrule this program.
5313 if test "$cross_compiling" != no; then
5314   if test -n "$ac_tool_prefix"; then
5315   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5316 set dummy ${ac_tool_prefix}strip; ac_word=$2
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5318 $as_echo_n "checking for $ac_word... " >&6; }
5319 if ${ac_cv_prog_STRIP+:} false; then :
5320   $as_echo_n "(cached) " >&6
5321 else
5322   if test -n "$STRIP"; then
5323   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5324 else
5325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 for as_dir in $PATH
5327 do
5328   IFS=$as_save_IFS
5329   test -z "$as_dir" && as_dir=.
5330     for ac_exec_ext in '' $ac_executable_extensions; do
5331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5332     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5334     break 2
5335   fi
5336 done
5337   done
5338 IFS=$as_save_IFS
5339
5340 fi
5341 fi
5342 STRIP=$ac_cv_prog_STRIP
5343 if test -n "$STRIP"; then
5344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5345 $as_echo "$STRIP" >&6; }
5346 else
5347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5348 $as_echo "no" >&6; }
5349 fi
5350
5351
5352 fi
5353 if test -z "$ac_cv_prog_STRIP"; then
5354   ac_ct_STRIP=$STRIP
5355   # Extract the first word of "strip", so it can be a program name with args.
5356 set dummy strip; ac_word=$2
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358 $as_echo_n "checking for $ac_word... " >&6; }
5359 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5360   $as_echo_n "(cached) " >&6
5361 else
5362   if test -n "$ac_ct_STRIP"; then
5363   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5364 else
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 for as_dir in $PATH
5367 do
5368   IFS=$as_save_IFS
5369   test -z "$as_dir" && as_dir=.
5370     for ac_exec_ext in '' $ac_executable_extensions; do
5371   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5372     ac_cv_prog_ac_ct_STRIP="strip"
5373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5374     break 2
5375   fi
5376 done
5377   done
5378 IFS=$as_save_IFS
5379
5380 fi
5381 fi
5382 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5383 if test -n "$ac_ct_STRIP"; then
5384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5385 $as_echo "$ac_ct_STRIP" >&6; }
5386 else
5387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388 $as_echo "no" >&6; }
5389 fi
5390
5391   if test "x$ac_ct_STRIP" = x; then
5392     STRIP=":"
5393   else
5394     case $cross_compiling:$ac_tool_warned in
5395 yes:)
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5398 ac_tool_warned=yes ;;
5399 esac
5400     STRIP=$ac_ct_STRIP
5401   fi
5402 else
5403   STRIP="$ac_cv_prog_STRIP"
5404 fi
5405
5406 fi
5407 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5408
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5410 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5411 if test -z "$MKDIR_P"; then
5412   if ${ac_cv_path_mkdir+:} false; then :
5413   $as_echo_n "(cached) " >&6
5414 else
5415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5417 do
5418   IFS=$as_save_IFS
5419   test -z "$as_dir" && as_dir=.
5420     for ac_prog in mkdir gmkdir; do
5421          for ac_exec_ext in '' $ac_executable_extensions; do
5422            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5423            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5424              'mkdir (GNU coreutils) '* | \
5425              'mkdir (coreutils) '* | \
5426              'mkdir (fileutils) '4.1*)
5427                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5428                break 3;;
5429            esac
5430          done
5431        done
5432   done
5433 IFS=$as_save_IFS
5434
5435 fi
5436
5437   test -d ./--version && rmdir ./--version
5438   if test "${ac_cv_path_mkdir+set}" = set; then
5439     MKDIR_P="$ac_cv_path_mkdir -p"
5440   else
5441     # As a last resort, use the slow shell script.  Don't cache a
5442     # value for MKDIR_P within a source directory, because that will
5443     # break other packages using the cache if that directory is
5444     # removed, or if the value is a relative name.
5445     MKDIR_P="$ac_install_sh -d"
5446   fi
5447 fi
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5449 $as_echo "$MKDIR_P" >&6; }
5450
5451 for ac_prog in gawk mawk nawk awk
5452 do
5453   # Extract the first word of "$ac_prog", so it can be a program name with args.
5454 set dummy $ac_prog; ac_word=$2
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5456 $as_echo_n "checking for $ac_word... " >&6; }
5457 if ${ac_cv_prog_AWK+:} false; then :
5458   $as_echo_n "(cached) " >&6
5459 else
5460   if test -n "$AWK"; then
5461   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5462 else
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 for as_dir in $PATH
5465 do
5466   IFS=$as_save_IFS
5467   test -z "$as_dir" && as_dir=.
5468     for ac_exec_ext in '' $ac_executable_extensions; do
5469   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5470     ac_cv_prog_AWK="$ac_prog"
5471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5472     break 2
5473   fi
5474 done
5475   done
5476 IFS=$as_save_IFS
5477
5478 fi
5479 fi
5480 AWK=$ac_cv_prog_AWK
5481 if test -n "$AWK"; then
5482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5483 $as_echo "$AWK" >&6; }
5484 else
5485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486 $as_echo "no" >&6; }
5487 fi
5488
5489
5490   test -n "$AWK" && break
5491 done
5492
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5494 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5495 set x ${MAKE-make}
5496 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5497 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5498   $as_echo_n "(cached) " >&6
5499 else
5500   cat >conftest.make <<\_ACEOF
5501 SHELL = /bin/sh
5502 all:
5503         @echo '@@@%%%=$(MAKE)=@@@%%%'
5504 _ACEOF
5505 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5506 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5507   *@@@%%%=?*=@@@%%%*)
5508     eval ac_cv_prog_make_${ac_make}_set=yes;;
5509   *)
5510     eval ac_cv_prog_make_${ac_make}_set=no;;
5511 esac
5512 rm -f conftest.make
5513 fi
5514 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5516 $as_echo "yes" >&6; }
5517   SET_MAKE=
5518 else
5519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5520 $as_echo "no" >&6; }
5521   SET_MAKE="MAKE=${MAKE-make}"
5522 fi
5523
5524 rm -rf .tst 2>/dev/null
5525 mkdir .tst 2>/dev/null
5526 if test -d .tst; then
5527   am__leading_dot=.
5528 else
5529   am__leading_dot=_
5530 fi
5531 rmdir .tst 2>/dev/null
5532
5533 DEPDIR="${am__leading_dot}deps"
5534
5535 ac_config_commands="$ac_config_commands depfiles"
5536
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5538 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
5539 cat > confinc.mk << 'END'
5540 am__doit:
5541         @echo this is the am__doit target >confinc.out
5542 .PHONY: am__doit
5543 END
5544 am__include="#"
5545 am__quote=
5546 # BSD make does it like this.
5547 echo '.include "confinc.mk" # ignored' > confmf.BSD
5548 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5549 echo 'include confinc.mk # ignored' > confmf.GNU
5550 _am_result=no
5551 for s in GNU BSD; do
5552   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5553    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5554    ac_status=$?
5555    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556    (exit $ac_status); }
5557   case $?:`cat confinc.out 2>/dev/null` in #(
5558   '0:this is the am__doit target') :
5559     case $s in #(
5560   BSD) :
5561     am__include='.include' am__quote='"' ;; #(
5562   *) :
5563     am__include='include' am__quote='' ;;
5564 esac ;; #(
5565   *) :
5566      ;;
5567 esac
5568   if test "$am__include" != "#"; then
5569     _am_result="yes ($s style)"
5570     break
5571   fi
5572 done
5573 rm -f confinc.* confmf.*
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5575 $as_echo "${_am_result}" >&6; }
5576
5577 # Check whether --enable-dependency-tracking was given.
5578 if test "${enable_dependency_tracking+set}" = set; then :
5579   enableval=$enable_dependency_tracking;
5580 fi
5581
5582 if test "x$enable_dependency_tracking" != xno; then
5583   am_depcomp="$ac_aux_dir/depcomp"
5584   AMDEPBACKSLASH='\'
5585   am__nodep='_no'
5586 fi
5587  if test "x$enable_dependency_tracking" != xno; then
5588   AMDEP_TRUE=
5589   AMDEP_FALSE='#'
5590 else
5591   AMDEP_TRUE='#'
5592   AMDEP_FALSE=
5593 fi
5594
5595
5596 ## --------------------------------------- ##
5597 ##  Start of automake initialization code  ##
5598 ## --------------------------------------- ##
5599
5600 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5601   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5602   # is not polluted with repeated "-I."
5603   am__isrc=' -I$(srcdir)'
5604   # test to see if srcdir already configured
5605   if test -f $srcdir/config.status; then
5606     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5607   fi
5608 fi
5609
5610 # test whether we have cygpath
5611 if test -z "$CYGPATH_W"; then
5612   if (cygpath --version) >/dev/null 2>/dev/null; then
5613     CYGPATH_W='cygpath -w'
5614   else
5615     CYGPATH_W=echo
5616   fi
5617 fi
5618
5619
5620 # Define the identity of the package.
5621  PACKAGE='curl'
5622  VERSION='-'
5623
5624
5625 cat >>confdefs.h <<_ACEOF
5626 #define PACKAGE "$PACKAGE"
5627 _ACEOF
5628
5629
5630 cat >>confdefs.h <<_ACEOF
5631 #define VERSION "$VERSION"
5632 _ACEOF
5633
5634 # Some tools Automake needs.
5635
5636 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5637
5638
5639 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5640
5641
5642 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5643
5644
5645 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5646
5647
5648 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5649
5650 # For better backward compatibility.  To be removed once Automake 1.9.x
5651 # dies out for good.  For more background, see:
5652 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5653 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5654 mkdir_p='$(MKDIR_P)'
5655
5656 # We need awk for the "check" target (and possibly the TAP driver).  The
5657 # system "awk" is bad on some platforms.
5658 # Always define AMTAR for backward compatibility.  Yes, it's still used
5659 # in the wild :-(  We should find a proper way to deprecate it ...
5660 AMTAR='$${TAR-tar}'
5661
5662
5663 # We'll loop over all known methods to create a tar archive until one works.
5664 _am_tools='gnutar  pax cpio none'
5665
5666 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5667
5668
5669
5670
5671
5672 depcc="$CC"   am_compiler_list=
5673
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5675 $as_echo_n "checking dependency style of $depcc... " >&6; }
5676 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5677   $as_echo_n "(cached) " >&6
5678 else
5679   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5680   # We make a subdir and do the tests there.  Otherwise we can end up
5681   # making bogus files that we don't know about and never remove.  For
5682   # instance it was reported that on HP-UX the gcc test will end up
5683   # making a dummy file named 'D' -- because '-MD' means "put the output
5684   # in D".
5685   rm -rf conftest.dir
5686   mkdir conftest.dir
5687   # Copy depcomp to subdir because otherwise we won't find it if we're
5688   # using a relative directory.
5689   cp "$am_depcomp" conftest.dir
5690   cd conftest.dir
5691   # We will build objects and dependencies in a subdirectory because
5692   # it helps to detect inapplicable dependency modes.  For instance
5693   # both Tru64's cc and ICC support -MD to output dependencies as a
5694   # side effect of compilation, but ICC will put the dependencies in
5695   # the current directory while Tru64 will put them in the object
5696   # directory.
5697   mkdir sub
5698
5699   am_cv_CC_dependencies_compiler_type=none
5700   if test "$am_compiler_list" = ""; then
5701      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5702   fi
5703   am__universal=false
5704   case " $depcc " in #(
5705      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5706      esac
5707
5708   for depmode in $am_compiler_list; do
5709     # Setup a source with many dependencies, because some compilers
5710     # like to wrap large dependency lists on column 80 (with \), and
5711     # we should not choose a depcomp mode which is confused by this.
5712     #
5713     # We need to recreate these files for each test, as the compiler may
5714     # overwrite some of them when testing with obscure command lines.
5715     # This happens at least with the AIX C compiler.
5716     : > sub/conftest.c
5717     for i in 1 2 3 4 5 6; do
5718       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5719       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5720       # Solaris 10 /bin/sh.
5721       echo '/* dummy */' > sub/conftst$i.h
5722     done
5723     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5724
5725     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5726     # mode.  It turns out that the SunPro C++ compiler does not properly
5727     # handle '-M -o', and we need to detect this.  Also, some Intel
5728     # versions had trouble with output in subdirs.
5729     am__obj=sub/conftest.${OBJEXT-o}
5730     am__minus_obj="-o $am__obj"
5731     case $depmode in
5732     gcc)
5733       # This depmode causes a compiler race in universal mode.
5734       test "$am__universal" = false || continue
5735       ;;
5736     nosideeffect)
5737       # After this tag, mechanisms are not by side-effect, so they'll
5738       # only be used when explicitly requested.
5739       if test "x$enable_dependency_tracking" = xyes; then
5740         continue
5741       else
5742         break
5743       fi
5744       ;;
5745     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5746       # This compiler won't grok '-c -o', but also, the minuso test has
5747       # not run yet.  These depmodes are late enough in the game, and
5748       # so weak that their functioning should not be impacted.
5749       am__obj=conftest.${OBJEXT-o}
5750       am__minus_obj=
5751       ;;
5752     none) break ;;
5753     esac
5754     if depmode=$depmode \
5755        source=sub/conftest.c object=$am__obj \
5756        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5757        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5758          >/dev/null 2>conftest.err &&
5759        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5760        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5761        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5762        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5763       # icc doesn't choke on unknown options, it will just issue warnings
5764       # or remarks (even with -Werror).  So we grep stderr for any message
5765       # that says an option was ignored or not supported.
5766       # When given -MP, icc 7.0 and 7.1 complain thusly:
5767       #   icc: Command line warning: ignoring option '-M'; no argument required
5768       # The diagnosis changed in icc 8.0:
5769       #   icc: Command line remark: option '-MP' not supported
5770       if (grep 'ignoring option' conftest.err ||
5771           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5772         am_cv_CC_dependencies_compiler_type=$depmode
5773         break
5774       fi
5775     fi
5776   done
5777
5778   cd ..
5779   rm -rf conftest.dir
5780 else
5781   am_cv_CC_dependencies_compiler_type=none
5782 fi
5783
5784 fi
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5786 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5787 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5788
5789  if
5790   test "x$enable_dependency_tracking" != xno \
5791   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5792   am__fastdepCC_TRUE=
5793   am__fastdepCC_FALSE='#'
5794 else
5795   am__fastdepCC_TRUE='#'
5796   am__fastdepCC_FALSE=
5797 fi
5798
5799
5800
5801 # POSIX will say in a future version that running "rm -f" with no argument
5802 # is OK; and we want to be able to make that assumption in our Makefile
5803 # recipes.  So use an aggressive probe to check that the usage we want is
5804 # actually supported "in the wild" to an acceptable degree.
5805 # See automake bug#10828.
5806 # To make any issue more visible, cause the running configure to be aborted
5807 # by default if the 'rm' program in use doesn't match our expectations; the
5808 # user can still override this though.
5809 if rm -f && rm -fr && rm -rf; then : OK; else
5810   cat >&2 <<'END'
5811 Oops!
5812
5813 Your 'rm' program seems unable to run without file operands specified
5814 on the command line, even when the '-f' option is present.  This is contrary
5815 to the behaviour of most rm programs out there, and not conforming with
5816 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5817
5818 Please tell bug-automake@gnu.org about your system, including the value
5819 of your $PATH and any error possibly output before this message.  This
5820 can help us improve future automake versions.
5821
5822 END
5823   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5824     echo 'Configuration will proceed anyway, since you have set the' >&2
5825     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5826     echo >&2
5827   else
5828     cat >&2 <<'END'
5829 Aborting the configuration process, to ensure you take notice of the issue.
5830
5831 You can download and install GNU coreutils to get an 'rm' implementation
5832 that behaves properly: <https://www.gnu.org/software/coreutils/>.
5833
5834 If you want to complete the configuration process using your problematic
5835 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5836 to "yes", and re-run configure.
5837
5838 END
5839     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5840   fi
5841 fi
5842
5843 ## ------------------------------------- ##
5844 ##  End of automake initialization code  ##
5845 ## ------------------------------------- ##
5846
5847
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
5849 $as_echo_n "checking curl version... " >&6; }
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
5851 $as_echo "$CURLVERSION" >&6; }
5852
5853
5854
5855 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
5856
5857
5858 PKGADD_PKG="HAXXcurl"
5859 PKGADD_NAME="curl - a client that groks URLs"
5860 PKGADD_VENDOR="curl.haxx.se"
5861
5862
5863
5864
5865     curl_ssl_msg="no      (--with-{ssl,gnutls,nss,mbedtls,wolfssl,schannel,secure-transport,mesalink,amissl,bearssl} )"
5866     curl_ssh_msg="no      (--with-{libssh,libssh2})"
5867    curl_zlib_msg="no      (--with-zlib)"
5868  curl_brotli_msg="no      (--with-brotli)"
5869     curl_gss_msg="no      (--with-gssapi)"
5870 curl_tls_srp_msg="no      (--enable-tls-srp)"
5871     curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
5872    curl_ipv6_msg="no      (--enable-ipv6)"
5873 curl_unix_sockets_msg="no      (--enable-unix-sockets)"
5874     curl_idn_msg="no      (--with-{libidn2,winidn})"
5875  curl_manual_msg="no      (--enable-manual)"
5876 curl_libcurl_msg="enabled (--disable-libcurl-option)"
5877 curl_verbose_msg="enabled (--disable-verbose)"
5878    curl_sspi_msg="no      (--enable-sspi)"
5879    curl_ldap_msg="no      (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
5880   curl_ldaps_msg="no      (--enable-ldaps)"
5881    curl_rtsp_msg="no      (--enable-rtsp)"
5882    curl_rtmp_msg="no      (--with-librtmp)"
5883   curl_mtlnk_msg="no      (--with-libmetalink)"
5884     curl_psl_msg="no      (--with-libpsl)"
5885
5886     ssl_backends=
5887
5888 INITIAL_LDFLAGS=$LDFLAGS
5889 INITIAL_LIBS=$LIBS
5890
5891
5892 # Make sure we can run config.sub.
5893 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5894   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5895
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5897 $as_echo_n "checking build system type... " >&6; }
5898 if ${ac_cv_build+:} false; then :
5899   $as_echo_n "(cached) " >&6
5900 else
5901   ac_build_alias=$build_alias
5902 test "x$ac_build_alias" = x &&
5903   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5904 test "x$ac_build_alias" = x &&
5905   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5906 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5907   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5908
5909 fi
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5911 $as_echo "$ac_cv_build" >&6; }
5912 case $ac_cv_build in
5913 *-*-*) ;;
5914 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5915 esac
5916 build=$ac_cv_build
5917 ac_save_IFS=$IFS; IFS='-'
5918 set x $ac_cv_build
5919 shift
5920 build_cpu=$1
5921 build_vendor=$2
5922 shift; shift
5923 # Remember, the first character of IFS is used to create $*,
5924 # except with old shells:
5925 build_os=$*
5926 IFS=$ac_save_IFS
5927 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5928
5929
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5931 $as_echo_n "checking host system type... " >&6; }
5932 if ${ac_cv_host+:} false; then :
5933   $as_echo_n "(cached) " >&6
5934 else
5935   if test "x$host_alias" = x; then
5936   ac_cv_host=$ac_cv_build
5937 else
5938   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5939     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5940 fi
5941
5942 fi
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5944 $as_echo "$ac_cv_host" >&6; }
5945 case $ac_cv_host in
5946 *-*-*) ;;
5947 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5948 esac
5949 host=$ac_cv_host
5950 ac_save_IFS=$IFS; IFS='-'
5951 set x $ac_cv_host
5952 shift
5953 host_cpu=$1
5954 host_vendor=$2
5955 shift; shift
5956 # Remember, the first character of IFS is used to create $*,
5957 # except with old shells:
5958 host_os=$*
5959 IFS=$ac_save_IFS
5960 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5961
5962
5963
5964 cat >>confdefs.h <<_ACEOF
5965 #define OS "${host}"
5966 _ACEOF
5967
5968
5969 # Silence warning: ar: 'u' modifier ignored since 'D' is the default
5970 AR_FLAGS=cr
5971
5972
5973
5974
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5976 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5977 if ${ac_cv_path_GREP+:} false; then :
5978   $as_echo_n "(cached) " >&6
5979 else
5980   if test -z "$GREP"; then
5981   ac_path_GREP_found=false
5982   # Loop through the user's path and test for each of PROGNAME-LIST
5983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5985 do
5986   IFS=$as_save_IFS
5987   test -z "$as_dir" && as_dir=.
5988     for ac_prog in grep ggrep; do
5989     for ac_exec_ext in '' $ac_executable_extensions; do
5990       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5991       as_fn_executable_p "$ac_path_GREP" || continue
5992 # Check for GNU ac_path_GREP and select it if it is found.
5993   # Check for GNU $ac_path_GREP
5994 case `"$ac_path_GREP" --version 2>&1` in
5995 *GNU*)
5996   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5997 *)
5998   ac_count=0
5999   $as_echo_n 0123456789 >"conftest.in"
6000   while :
6001   do
6002     cat "conftest.in" "conftest.in" >"conftest.tmp"
6003     mv "conftest.tmp" "conftest.in"
6004     cp "conftest.in" "conftest.nl"
6005     $as_echo 'GREP' >> "conftest.nl"
6006     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6007     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6008     as_fn_arith $ac_count + 1 && ac_count=$as_val
6009     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6010       # Best one so far, save it but keep looking for a better one
6011       ac_cv_path_GREP="$ac_path_GREP"
6012       ac_path_GREP_max=$ac_count
6013     fi
6014     # 10*(2^10) chars as input seems more than enough
6015     test $ac_count -gt 10 && break
6016   done
6017   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6018 esac
6019
6020       $ac_path_GREP_found && break 3
6021     done
6022   done
6023   done
6024 IFS=$as_save_IFS
6025   if test -z "$ac_cv_path_GREP"; then
6026     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6027   fi
6028 else
6029   ac_cv_path_GREP=$GREP
6030 fi
6031
6032 fi
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6034 $as_echo "$ac_cv_path_GREP" >&6; }
6035  GREP="$ac_cv_path_GREP"
6036
6037
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6039 $as_echo_n "checking for egrep... " >&6; }
6040 if ${ac_cv_path_EGREP+:} false; then :
6041   $as_echo_n "(cached) " >&6
6042 else
6043   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6044    then ac_cv_path_EGREP="$GREP -E"
6045    else
6046      if test -z "$EGREP"; then
6047   ac_path_EGREP_found=false
6048   # Loop through the user's path and test for each of PROGNAME-LIST
6049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6051 do
6052   IFS=$as_save_IFS
6053   test -z "$as_dir" && as_dir=.
6054     for ac_prog in egrep; do
6055     for ac_exec_ext in '' $ac_executable_extensions; do
6056       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6057       as_fn_executable_p "$ac_path_EGREP" || continue
6058 # Check for GNU ac_path_EGREP and select it if it is found.
6059   # Check for GNU $ac_path_EGREP
6060 case `"$ac_path_EGREP" --version 2>&1` in
6061 *GNU*)
6062   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6063 *)
6064   ac_count=0
6065   $as_echo_n 0123456789 >"conftest.in"
6066   while :
6067   do
6068     cat "conftest.in" "conftest.in" >"conftest.tmp"
6069     mv "conftest.tmp" "conftest.in"
6070     cp "conftest.in" "conftest.nl"
6071     $as_echo 'EGREP' >> "conftest.nl"
6072     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6073     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6074     as_fn_arith $ac_count + 1 && ac_count=$as_val
6075     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6076       # Best one so far, save it but keep looking for a better one
6077       ac_cv_path_EGREP="$ac_path_EGREP"
6078       ac_path_EGREP_max=$ac_count
6079     fi
6080     # 10*(2^10) chars as input seems more than enough
6081     test $ac_count -gt 10 && break
6082   done
6083   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6084 esac
6085
6086       $ac_path_EGREP_found && break 3
6087     done
6088   done
6089   done
6090 IFS=$as_save_IFS
6091   if test -z "$ac_cv_path_EGREP"; then
6092     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6093   fi
6094 else
6095   ac_cv_path_EGREP=$EGREP
6096 fi
6097
6098    fi
6099 fi
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6101 $as_echo "$ac_cv_path_EGREP" >&6; }
6102  EGREP="$ac_cv_path_EGREP"
6103
6104
6105
6106
6107         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6108 $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6110 /* end confdefs.h.  */
6111
6112 #ifdef _AIX
6113    yes_this_is_aix
6114 #endif
6115
6116 _ACEOF
6117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6118   $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6119
6120     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6121 $as_echo "yes" >&6; }
6122     $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6123
6124
6125 else
6126
6127     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6128 $as_echo "no" >&6; }
6129
6130 fi
6131 rm -f conftest*
6132
6133
6134
6135
6136     #
6137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6138 $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6140 /* end confdefs.h.  */
6141
6142
6143
6144 int main (void)
6145 {
6146
6147 #ifdef _THREAD_SAFE
6148       int dummy=1;
6149 #else
6150       force compilation error
6151 #endif
6152
6153  ;
6154  return 0;
6155 }
6156
6157 _ACEOF
6158 if ac_fn_c_try_compile "$LINENO"; then :
6159
6160     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6161 $as_echo "yes" >&6; }
6162     tmp_thread_safe_initially_defined="yes"
6163
6164 else
6165
6166     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6167 $as_echo "no" >&6; }
6168     tmp_thread_safe_initially_defined="no"
6169
6170 fi
6171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6172   #
6173   if test "$tmp_thread_safe_initially_defined" = "no"; then
6174     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6175 $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6176
6177   case $host_os in
6178     aix[123].* | aix4.[012].*)
6179             tmp_need_thread_safe="no"
6180       ;;
6181     aix*)
6182             tmp_need_thread_safe="yes"
6183       ;;
6184     *)
6185       tmp_need_thread_safe="no"
6186       ;;
6187   esac
6188
6189     if test "$tmp_need_thread_safe" = "yes"; then
6190       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6191 $as_echo "yes" >&6; }
6192     else
6193       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6194 $as_echo "no" >&6; }
6195     fi
6196   fi
6197   #
6198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6199 $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6200   if test "$tmp_thread_safe_initially_defined" = "yes" ||
6201     test "$tmp_need_thread_safe" = "yes"; then
6202
6203
6204 $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6205
6206 cat >>confdefs.h <<_EOF
6207 #ifndef _THREAD_SAFE
6208 #  define _THREAD_SAFE
6209 #endif
6210 _EOF
6211
6212     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6213 $as_echo "yes" >&6; }
6214   else
6215     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6216 $as_echo "no" >&6; }
6217   fi
6218   #
6219
6220
6221     #
6222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6223 $as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h.  */
6226
6227
6228
6229 int main (void)
6230 {
6231
6232 #ifdef _REENTRANT
6233       int dummy=1;
6234 #else
6235       force compilation error
6236 #endif
6237
6238  ;
6239  return 0;
6240 }
6241
6242 _ACEOF
6243 if ac_fn_c_try_compile "$LINENO"; then :
6244
6245     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6246 $as_echo "yes" >&6; }
6247     tmp_reentrant_initially_defined="yes"
6248
6249 else
6250
6251     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6252 $as_echo "no" >&6; }
6253     tmp_reentrant_initially_defined="no"
6254
6255 fi
6256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6257   #
6258   if test "$tmp_reentrant_initially_defined" = "no"; then
6259     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6260 $as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6261
6262   case $host_os in
6263     solaris*)
6264       tmp_need_reentrant="yes"
6265       ;;
6266     *)
6267       tmp_need_reentrant="no"
6268       ;;
6269   esac
6270
6271     if test "$tmp_need_reentrant" = "no"; then
6272
6273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274 /* end confdefs.h.  */
6275
6276
6277 #include <errno.h>
6278
6279 int main (void)
6280 {
6281
6282       if(0 != errno)
6283         return 1;
6284
6285  ;
6286  return 0;
6287 }
6288
6289 _ACEOF
6290 if ac_fn_c_try_compile "$LINENO"; then :
6291
6292     tmp_errno="yes"
6293
6294 else
6295
6296     tmp_errno="no"
6297
6298 fi
6299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6300   if test "$tmp_errno" = "yes"; then
6301     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6302 /* end confdefs.h.  */
6303
6304
6305 #include <errno.h>
6306
6307 int main (void)
6308 {
6309
6310 #ifdef errno
6311         int dummy=1;
6312 #else
6313         force compilation error
6314 #endif
6315
6316  ;
6317  return 0;
6318 }
6319
6320 _ACEOF
6321 if ac_fn_c_try_compile "$LINENO"; then :
6322
6323       tmp_errno="errno_macro_defined"
6324
6325 else
6326
6327       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328 /* end confdefs.h.  */
6329
6330
6331 #define _REENTRANT
6332 #include <errno.h>
6333
6334 int main (void)
6335 {
6336
6337 #ifdef errno
6338           int dummy=1;
6339 #else
6340           force compilation error
6341 #endif
6342
6343  ;
6344  return 0;
6345 }
6346
6347 _ACEOF
6348 if ac_fn_c_try_compile "$LINENO"; then :
6349
6350         tmp_errno="errno_macro_needs_reentrant"
6351         tmp_need_reentrant="yes"
6352
6353 fi
6354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6355
6356 fi
6357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6358   fi
6359
6360     fi
6361     if test "$tmp_need_reentrant" = "no"; then
6362
6363   if test "$tmp_need_reentrant" = "no"; then
6364
6365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366 /* end confdefs.h.  */
6367
6368
6369 #define gmtime_r innocuous_gmtime_r
6370 #ifdef __STDC__
6371 # include <limits.h>
6372 #else
6373 # include <assert.h>
6374 #endif
6375 #undef gmtime_r
6376 #ifdef __cplusplus
6377 extern "C"
6378 #endif
6379 char gmtime_r ();
6380 #if defined __stub_gmtime_r || defined __stub___gmtime_r
6381 choke me
6382 #endif
6383
6384 int main (void)
6385 {
6386 return gmtime_r ();
6387  ;
6388  return 0;
6389 }
6390
6391 _ACEOF
6392 if ac_fn_c_try_link "$LINENO"; then :
6393
6394     tmp_gmtime_r="yes"
6395
6396 else
6397
6398     tmp_gmtime_r="no"
6399
6400 fi
6401 rm -f core conftest.err conftest.$ac_objext \
6402     conftest$ac_exeext conftest.$ac_ext
6403   if test "$tmp_gmtime_r" = "yes"; then
6404     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6405 /* end confdefs.h.  */
6406
6407 #include <sys/types.h>
6408 #include <time.h>
6409
6410 _ACEOF
6411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6412   $EGREP "gmtime_r" >/dev/null 2>&1; then :
6413
6414       tmp_gmtime_r="proto_declared"
6415
6416 else
6417
6418       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h.  */
6420
6421 #define _REENTRANT
6422 #include <sys/types.h>
6423 #include <time.h>
6424
6425 _ACEOF
6426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6427   $EGREP "gmtime_r" >/dev/null 2>&1; then :
6428
6429         tmp_gmtime_r="proto_needs_reentrant"
6430         tmp_need_reentrant="yes"
6431
6432 fi
6433 rm -f conftest*
6434
6435
6436 fi
6437 rm -f conftest*
6438
6439   fi
6440
6441   fi
6442   if test "$tmp_need_reentrant" = "no"; then
6443
6444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6445 /* end confdefs.h.  */
6446
6447
6448 #define localtime_r innocuous_localtime_r
6449 #ifdef __STDC__
6450 # include <limits.h>
6451 #else
6452 # include <assert.h>
6453 #endif
6454 #undef localtime_r
6455 #ifdef __cplusplus
6456 extern "C"
6457 #endif
6458 char localtime_r ();
6459 #if defined __stub_localtime_r || defined __stub___localtime_r
6460 choke me
6461 #endif
6462
6463 int main (void)
6464 {
6465 return localtime_r ();
6466  ;
6467  return 0;
6468 }
6469
6470 _ACEOF
6471 if ac_fn_c_try_link "$LINENO"; then :
6472
6473     tmp_localtime_r="yes"
6474
6475 else
6476
6477     tmp_localtime_r="no"
6478
6479 fi
6480 rm -f core conftest.err conftest.$ac_objext \
6481     conftest$ac_exeext conftest.$ac_ext
6482   if test "$tmp_localtime_r" = "yes"; then
6483     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484 /* end confdefs.h.  */
6485
6486 #include <sys/types.h>
6487 #include <time.h>
6488
6489 _ACEOF
6490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6491   $EGREP "localtime_r" >/dev/null 2>&1; then :
6492
6493       tmp_localtime_r="proto_declared"
6494
6495 else
6496
6497       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498 /* end confdefs.h.  */
6499
6500 #define _REENTRANT
6501 #include <sys/types.h>
6502 #include <time.h>
6503
6504 _ACEOF
6505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6506   $EGREP "localtime_r" >/dev/null 2>&1; then :
6507
6508         tmp_localtime_r="proto_needs_reentrant"
6509         tmp_need_reentrant="yes"
6510
6511 fi
6512 rm -f conftest*
6513
6514
6515 fi
6516 rm -f conftest*
6517
6518   fi
6519
6520   fi
6521   if test "$tmp_need_reentrant" = "no"; then
6522
6523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524 /* end confdefs.h.  */
6525
6526
6527 #define strerror_r innocuous_strerror_r
6528 #ifdef __STDC__
6529 # include <limits.h>
6530 #else
6531 # include <assert.h>
6532 #endif
6533 #undef strerror_r
6534 #ifdef __cplusplus
6535 extern "C"
6536 #endif
6537 char strerror_r ();
6538 #if defined __stub_strerror_r || defined __stub___strerror_r
6539 choke me
6540 #endif
6541
6542 int main (void)
6543 {
6544 return strerror_r ();
6545  ;
6546  return 0;
6547 }
6548
6549 _ACEOF
6550 if ac_fn_c_try_link "$LINENO"; then :
6551
6552     tmp_strerror_r="yes"
6553
6554 else
6555
6556     tmp_strerror_r="no"
6557
6558 fi
6559 rm -f core conftest.err conftest.$ac_objext \
6560     conftest$ac_exeext conftest.$ac_ext
6561   if test "$tmp_strerror_r" = "yes"; then
6562     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6563 /* end confdefs.h.  */
6564
6565 #include <sys/types.h>
6566 #include <string.h>
6567
6568 _ACEOF
6569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6570   $EGREP "strerror_r" >/dev/null 2>&1; then :
6571
6572       tmp_strerror_r="proto_declared"
6573
6574 else
6575
6576       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6577 /* end confdefs.h.  */
6578
6579 #define _REENTRANT
6580 #include <sys/types.h>
6581 #include <string.h>
6582
6583 _ACEOF
6584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6585   $EGREP "strerror_r" >/dev/null 2>&1; then :
6586
6587         tmp_strerror_r="proto_needs_reentrant"
6588         tmp_need_reentrant="yes"
6589
6590 fi
6591 rm -f conftest*
6592
6593
6594 fi
6595 rm -f conftest*
6596
6597   fi
6598
6599   fi
6600   if test "$tmp_need_reentrant" = "no"; then
6601
6602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6603 /* end confdefs.h.  */
6604
6605
6606 #define strtok_r innocuous_strtok_r
6607 #ifdef __STDC__
6608 # include <limits.h>
6609 #else
6610 # include <assert.h>
6611 #endif
6612 #undef strtok_r
6613 #ifdef __cplusplus
6614 extern "C"
6615 #endif
6616 char strtok_r ();
6617 #if defined __stub_strtok_r || defined __stub___strtok_r
6618 choke me
6619 #endif
6620
6621 int main (void)
6622 {
6623 return strtok_r ();
6624  ;
6625  return 0;
6626 }
6627
6628 _ACEOF
6629 if ac_fn_c_try_link "$LINENO"; then :
6630
6631     tmp_strtok_r="yes"
6632
6633 else
6634
6635     tmp_strtok_r="no"
6636
6637 fi
6638 rm -f core conftest.err conftest.$ac_objext \
6639     conftest$ac_exeext conftest.$ac_ext
6640   if test "$tmp_strtok_r" = "yes"; then
6641     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6642 /* end confdefs.h.  */
6643
6644 #include <sys/types.h>
6645 #include <string.h>
6646
6647 _ACEOF
6648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6649   $EGREP "strtok_r" >/dev/null 2>&1; then :
6650
6651       tmp_strtok_r="proto_declared"
6652
6653 else
6654
6655       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6656 /* end confdefs.h.  */
6657
6658 #define _REENTRANT
6659 #include <sys/types.h>
6660 #include <string.h>
6661
6662 _ACEOF
6663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6664   $EGREP "strtok_r" >/dev/null 2>&1; then :
6665
6666         tmp_strtok_r="proto_needs_reentrant"
6667         tmp_need_reentrant="yes"
6668
6669 fi
6670 rm -f conftest*
6671
6672
6673 fi
6674 rm -f conftest*
6675
6676   fi
6677
6678   fi
6679   if test "$tmp_need_reentrant" = "no"; then
6680
6681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682 /* end confdefs.h.  */
6683
6684
6685 #define inet_ntoa_r innocuous_inet_ntoa_r
6686 #ifdef __STDC__
6687 # include <limits.h>
6688 #else
6689 # include <assert.h>
6690 #endif
6691 #undef inet_ntoa_r
6692 #ifdef __cplusplus
6693 extern "C"
6694 #endif
6695 char inet_ntoa_r ();
6696 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
6697 choke me
6698 #endif
6699
6700 int main (void)
6701 {
6702 return inet_ntoa_r ();
6703  ;
6704  return 0;
6705 }
6706
6707 _ACEOF
6708 if ac_fn_c_try_link "$LINENO"; then :
6709
6710     tmp_inet_ntoa_r="yes"
6711
6712 else
6713
6714     tmp_inet_ntoa_r="no"
6715
6716 fi
6717 rm -f core conftest.err conftest.$ac_objext \
6718     conftest$ac_exeext conftest.$ac_ext
6719   if test "$tmp_inet_ntoa_r" = "yes"; then
6720     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6721 /* end confdefs.h.  */
6722
6723 #include <sys/types.h>
6724 #include <sys/socket.h>
6725 #include <netinet/in.h>
6726 #include <arpa/inet.h>
6727
6728 _ACEOF
6729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6730   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6731
6732       tmp_inet_ntoa_r="proto_declared"
6733
6734 else
6735
6736       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6737 /* end confdefs.h.  */
6738
6739 #define _REENTRANT
6740 #include <sys/types.h>
6741 #include <sys/socket.h>
6742 #include <netinet/in.h>
6743 #include <arpa/inet.h>
6744
6745 _ACEOF
6746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6747   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6748
6749         tmp_inet_ntoa_r="proto_needs_reentrant"
6750         tmp_need_reentrant="yes"
6751
6752 fi
6753 rm -f conftest*
6754
6755
6756 fi
6757 rm -f conftest*
6758
6759   fi
6760
6761   fi
6762   if test "$tmp_need_reentrant" = "no"; then
6763
6764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6765 /* end confdefs.h.  */
6766
6767
6768 #define gethostbyaddr_r innocuous_gethostbyaddr_r
6769 #ifdef __STDC__
6770 # include <limits.h>
6771 #else
6772 # include <assert.h>
6773 #endif
6774 #undef gethostbyaddr_r
6775 #ifdef __cplusplus
6776 extern "C"
6777 #endif
6778 char gethostbyaddr_r ();
6779 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
6780 choke me
6781 #endif
6782
6783 int main (void)
6784 {
6785 return gethostbyaddr_r ();
6786  ;
6787  return 0;
6788 }
6789
6790 _ACEOF
6791 if ac_fn_c_try_link "$LINENO"; then :
6792
6793     tmp_gethostbyaddr_r="yes"
6794
6795 else
6796
6797     tmp_gethostbyaddr_r="no"
6798
6799 fi
6800 rm -f core conftest.err conftest.$ac_objext \
6801     conftest$ac_exeext conftest.$ac_ext
6802   if test "$tmp_gethostbyaddr_r" = "yes"; then
6803     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6804 /* end confdefs.h.  */
6805
6806 #include <sys/types.h>
6807 #include <netdb.h>
6808
6809 _ACEOF
6810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6811   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6812
6813       tmp_gethostbyaddr_r="proto_declared"
6814
6815 else
6816
6817       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6818 /* end confdefs.h.  */
6819
6820 #define _REENTRANT
6821 #include <sys/types.h>
6822 #include <netdb.h>
6823
6824 _ACEOF
6825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6826   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6827
6828         tmp_gethostbyaddr_r="proto_needs_reentrant"
6829         tmp_need_reentrant="yes"
6830
6831 fi
6832 rm -f conftest*
6833
6834
6835 fi
6836 rm -f conftest*
6837
6838   fi
6839
6840   fi
6841   if test "$tmp_need_reentrant" = "no"; then
6842
6843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844 /* end confdefs.h.  */
6845
6846
6847 #define gethostbyname_r innocuous_gethostbyname_r
6848 #ifdef __STDC__
6849 # include <limits.h>
6850 #else
6851 # include <assert.h>
6852 #endif
6853 #undef gethostbyname_r
6854 #ifdef __cplusplus
6855 extern "C"
6856 #endif
6857 char gethostbyname_r ();
6858 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
6859 choke me
6860 #endif
6861
6862 int main (void)
6863 {
6864 return gethostbyname_r ();
6865  ;
6866  return 0;
6867 }
6868
6869 _ACEOF
6870 if ac_fn_c_try_link "$LINENO"; then :
6871
6872     tmp_gethostbyname_r="yes"
6873
6874 else
6875
6876     tmp_gethostbyname_r="no"
6877
6878 fi
6879 rm -f core conftest.err conftest.$ac_objext \
6880     conftest$ac_exeext conftest.$ac_ext
6881   if test "$tmp_gethostbyname_r" = "yes"; then
6882     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6883 /* end confdefs.h.  */
6884
6885 #include <sys/types.h>
6886 #include <netdb.h>
6887
6888 _ACEOF
6889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6890   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
6891
6892       tmp_gethostbyname_r="proto_declared"
6893
6894 else
6895
6896       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6897 /* end confdefs.h.  */
6898
6899 #define _REENTRANT
6900 #include <sys/types.h>
6901 #include <netdb.h>
6902
6903 _ACEOF
6904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6905   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
6906
6907         tmp_gethostbyname_r="proto_needs_reentrant"
6908         tmp_need_reentrant="yes"
6909
6910 fi
6911 rm -f conftest*
6912
6913
6914 fi
6915 rm -f conftest*
6916
6917   fi
6918
6919   fi
6920   if test "$tmp_need_reentrant" = "no"; then
6921
6922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923 /* end confdefs.h.  */
6924
6925
6926 #define getprotobyname_r innocuous_getprotobyname_r
6927 #ifdef __STDC__
6928 # include <limits.h>
6929 #else
6930 # include <assert.h>
6931 #endif
6932 #undef getprotobyname_r
6933 #ifdef __cplusplus
6934 extern "C"
6935 #endif
6936 char getprotobyname_r ();
6937 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
6938 choke me
6939 #endif
6940
6941 int main (void)
6942 {
6943 return getprotobyname_r ();
6944  ;
6945  return 0;
6946 }
6947
6948 _ACEOF
6949 if ac_fn_c_try_link "$LINENO"; then :
6950
6951     tmp_getprotobyname_r="yes"
6952
6953 else
6954
6955     tmp_getprotobyname_r="no"
6956
6957 fi
6958 rm -f core conftest.err conftest.$ac_objext \
6959     conftest$ac_exeext conftest.$ac_ext
6960   if test "$tmp_getprotobyname_r" = "yes"; then
6961     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962 /* end confdefs.h.  */
6963
6964 #include <sys/types.h>
6965 #include <netdb.h>
6966
6967 _ACEOF
6968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6969   $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
6970
6971       tmp_getprotobyname_r="proto_declared"
6972
6973 else
6974
6975       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6976 /* end confdefs.h.  */
6977
6978 #define _REENTRANT
6979 #include <sys/types.h>
6980 #include <netdb.h>
6981
6982 _ACEOF
6983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6984   $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
6985
6986         tmp_getprotobyname_r="proto_needs_reentrant"
6987         tmp_need_reentrant="yes"
6988
6989 fi
6990 rm -f conftest*
6991
6992
6993 fi
6994 rm -f conftest*
6995
6996   fi
6997
6998   fi
6999   if test "$tmp_need_reentrant" = "no"; then
7000
7001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002 /* end confdefs.h.  */
7003
7004
7005 #define getservbyport_r innocuous_getservbyport_r
7006 #ifdef __STDC__
7007 # include <limits.h>
7008 #else
7009 # include <assert.h>
7010 #endif
7011 #undef getservbyport_r
7012 #ifdef __cplusplus
7013 extern "C"
7014 #endif
7015 char getservbyport_r ();
7016 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7017 choke me
7018 #endif
7019
7020 int main (void)
7021 {
7022 return getservbyport_r ();
7023  ;
7024  return 0;
7025 }
7026
7027 _ACEOF
7028 if ac_fn_c_try_link "$LINENO"; then :
7029
7030     tmp_getservbyport_r="yes"
7031
7032 else
7033
7034     tmp_getservbyport_r="no"
7035
7036 fi
7037 rm -f core conftest.err conftest.$ac_objext \
7038     conftest$ac_exeext conftest.$ac_ext
7039   if test "$tmp_getservbyport_r" = "yes"; then
7040     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7041 /* end confdefs.h.  */
7042
7043 #include <sys/types.h>
7044 #include <netdb.h>
7045
7046 _ACEOF
7047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7048   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7049
7050       tmp_getservbyport_r="proto_declared"
7051
7052 else
7053
7054       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055 /* end confdefs.h.  */
7056
7057 #define _REENTRANT
7058 #include <sys/types.h>
7059 #include <netdb.h>
7060
7061 _ACEOF
7062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7063   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7064
7065         tmp_getservbyport_r="proto_needs_reentrant"
7066         tmp_need_reentrant="yes"
7067
7068 fi
7069 rm -f conftest*
7070
7071
7072 fi
7073 rm -f conftest*
7074
7075   fi
7076
7077   fi
7078
7079     fi
7080     if test "$tmp_need_reentrant" = "yes"; then
7081       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7082 $as_echo "yes" >&6; }
7083     else
7084       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7085 $as_echo "no" >&6; }
7086     fi
7087   fi
7088   #
7089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7090 $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7091   if test "$tmp_reentrant_initially_defined" = "yes" ||
7092     test "$tmp_need_reentrant" = "yes"; then
7093
7094
7095 $as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7096
7097 cat >>confdefs.h <<_EOF
7098 #ifndef _REENTRANT
7099 #  define _REENTRANT
7100 #endif
7101 _EOF
7102
7103     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7104 $as_echo "yes" >&6; }
7105   else
7106     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7107 $as_echo "no" >&6; }
7108   fi
7109   #
7110
7111
7112 # Check whether --enable-largefile was given.
7113 if test "${enable_largefile+set}" = set; then :
7114   enableval=$enable_largefile;
7115 fi
7116
7117 if test "$enable_largefile" != no; then
7118
7119   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7120 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7121 if ${ac_cv_sys_largefile_CC+:} false; then :
7122   $as_echo_n "(cached) " >&6
7123 else
7124   ac_cv_sys_largefile_CC=no
7125      if test "$GCC" != yes; then
7126        ac_save_CC=$CC
7127        while :; do
7128          # IRIX 6.2 and later do not support large files by default,
7129          # so use the C compiler's -n32 option if that helps.
7130          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7131 /* end confdefs.h.  */
7132 #include <sys/types.h>
7133  /* Check that off_t can represent 2**63 - 1 correctly.
7134     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7135     since some C++ compilers masquerading as C compilers
7136     incorrectly reject 9223372036854775807.  */
7137 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7138   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7139                        && LARGE_OFF_T % 2147483647 == 1)
7140                       ? 1 : -1];
7141 int main (void)
7142 {
7143
7144  ;
7145  return 0;
7146 }
7147 _ACEOF
7148          if ac_fn_c_try_compile "$LINENO"; then :
7149   break
7150 fi
7151 rm -f core conftest.err conftest.$ac_objext
7152          CC="$CC -n32"
7153          if ac_fn_c_try_compile "$LINENO"; then :
7154   ac_cv_sys_largefile_CC=' -n32'; break
7155 fi
7156 rm -f core conftest.err conftest.$ac_objext
7157          break
7158        done
7159        CC=$ac_save_CC
7160        rm -f conftest.$ac_ext
7161     fi
7162 fi
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7164 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7165   if test "$ac_cv_sys_largefile_CC" != no; then
7166     CC=$CC$ac_cv_sys_largefile_CC
7167   fi
7168
7169   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7170 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7171 if ${ac_cv_sys_file_offset_bits+:} false; then :
7172   $as_echo_n "(cached) " >&6
7173 else
7174   while :; do
7175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176 /* end confdefs.h.  */
7177 #include <sys/types.h>
7178  /* Check that off_t can represent 2**63 - 1 correctly.
7179     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7180     since some C++ compilers masquerading as C compilers
7181     incorrectly reject 9223372036854775807.  */
7182 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7183   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7184                        && LARGE_OFF_T % 2147483647 == 1)
7185                       ? 1 : -1];
7186 int main (void)
7187 {
7188
7189  ;
7190  return 0;
7191 }
7192 _ACEOF
7193 if ac_fn_c_try_compile "$LINENO"; then :
7194   ac_cv_sys_file_offset_bits=no; break
7195 fi
7196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198 /* end confdefs.h.  */
7199 #define _FILE_OFFSET_BITS 64
7200 #include <sys/types.h>
7201  /* Check that off_t can represent 2**63 - 1 correctly.
7202     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7203     since some C++ compilers masquerading as C compilers
7204     incorrectly reject 9223372036854775807.  */
7205 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7206   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7207                        && LARGE_OFF_T % 2147483647 == 1)
7208                       ? 1 : -1];
7209 int main (void)
7210 {
7211
7212  ;
7213  return 0;
7214 }
7215 _ACEOF
7216 if ac_fn_c_try_compile "$LINENO"; then :
7217   ac_cv_sys_file_offset_bits=64; break
7218 fi
7219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7220   ac_cv_sys_file_offset_bits=unknown
7221   break
7222 done
7223 fi
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7225 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7226 case $ac_cv_sys_file_offset_bits in #(
7227   no | unknown) ;;
7228   *)
7229 cat >>confdefs.h <<_ACEOF
7230 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7231 _ACEOF
7232 ;;
7233 esac
7234 rm -rf conftest*
7235   if test $ac_cv_sys_file_offset_bits = unknown; then
7236     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7237 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7238 if ${ac_cv_sys_large_files+:} false; then :
7239   $as_echo_n "(cached) " >&6
7240 else
7241   while :; do
7242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7243 /* end confdefs.h.  */
7244 #include <sys/types.h>
7245  /* Check that off_t can represent 2**63 - 1 correctly.
7246     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7247     since some C++ compilers masquerading as C compilers
7248     incorrectly reject 9223372036854775807.  */
7249 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7250   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7251                        && LARGE_OFF_T % 2147483647 == 1)
7252                       ? 1 : -1];
7253 int main (void)
7254 {
7255
7256  ;
7257  return 0;
7258 }
7259 _ACEOF
7260 if ac_fn_c_try_compile "$LINENO"; then :
7261   ac_cv_sys_large_files=no; break
7262 fi
7263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h.  */
7266 #define _LARGE_FILES 1
7267 #include <sys/types.h>
7268  /* Check that off_t can represent 2**63 - 1 correctly.
7269     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7270     since some C++ compilers masquerading as C compilers
7271     incorrectly reject 9223372036854775807.  */
7272 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7273   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7274                        && LARGE_OFF_T % 2147483647 == 1)
7275                       ? 1 : -1];
7276 int main (void)
7277 {
7278
7279  ;
7280  return 0;
7281 }
7282 _ACEOF
7283 if ac_fn_c_try_compile "$LINENO"; then :
7284   ac_cv_sys_large_files=1; break
7285 fi
7286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7287   ac_cv_sys_large_files=unknown
7288   break
7289 done
7290 fi
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7292 $as_echo "$ac_cv_sys_large_files" >&6; }
7293 case $ac_cv_sys_large_files in #(
7294   no | unknown) ;;
7295   *)
7296 cat >>confdefs.h <<_ACEOF
7297 #define _LARGE_FILES $ac_cv_sys_large_files
7298 _ACEOF
7299 ;;
7300 esac
7301 rm -rf conftest*
7302   fi
7303
7304
7305 fi
7306
7307
7308 case `pwd` in
7309   *\ * | *\     *)
7310     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7311 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7312 esac
7313
7314
7315
7316 macro_version='2.4.6'
7317 macro_revision='2.4.6'
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331 ltmain=$ac_aux_dir/ltmain.sh
7332
7333 # Backslashify metacharacters that are still active within
7334 # double-quoted strings.
7335 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7336
7337 # Same as above, but do not quote variable references.
7338 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7339
7340 # Sed substitution to delay expansion of an escaped shell variable in a
7341 # double_quote_subst'ed string.
7342 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7343
7344 # Sed substitution to delay expansion of an escaped single quote.
7345 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7346
7347 # Sed substitution to avoid accidental globbing in evaled expressions
7348 no_glob_subst='s/\*/\\\*/g'
7349
7350 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7351 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7352 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7353
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7355 $as_echo_n "checking how to print strings... " >&6; }
7356 # Test print first, because it will be a builtin if present.
7357 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7358    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7359   ECHO='print -r --'
7360 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7361   ECHO='printf %s\n'
7362 else
7363   # Use this function as a fallback that always works.
7364   func_fallback_echo ()
7365   {
7366     eval 'cat <<_LTECHO_EOF
7367 $1
7368 _LTECHO_EOF'
7369   }
7370   ECHO='func_fallback_echo'
7371 fi
7372
7373 # func_echo_all arg...
7374 # Invoke $ECHO with all args, space-separated.
7375 func_echo_all ()
7376 {
7377     $ECHO ""
7378 }
7379
7380 case $ECHO in
7381   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7382 $as_echo "printf" >&6; } ;;
7383   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7384 $as_echo "print -r" >&6; } ;;
7385   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7386 $as_echo "cat" >&6; } ;;
7387 esac
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7403 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7404 if ${ac_cv_path_SED+:} false; then :
7405   $as_echo_n "(cached) " >&6
7406 else
7407             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7408      for ac_i in 1 2 3 4 5 6 7; do
7409        ac_script="$ac_script$as_nl$ac_script"
7410      done
7411      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7412      { ac_script=; unset ac_script;}
7413      if test -z "$SED"; then
7414   ac_path_SED_found=false
7415   # Loop through the user's path and test for each of PROGNAME-LIST
7416   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417 for as_dir in $PATH
7418 do
7419   IFS=$as_save_IFS
7420   test -z "$as_dir" && as_dir=.
7421     for ac_prog in sed gsed; do
7422     for ac_exec_ext in '' $ac_executable_extensions; do
7423       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7424       as_fn_executable_p "$ac_path_SED" || continue
7425 # Check for GNU ac_path_SED and select it if it is found.
7426   # Check for GNU $ac_path_SED
7427 case `"$ac_path_SED" --version 2>&1` in
7428 *GNU*)
7429   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7430 *)
7431   ac_count=0
7432   $as_echo_n 0123456789 >"conftest.in"
7433   while :
7434   do
7435     cat "conftest.in" "conftest.in" >"conftest.tmp"
7436     mv "conftest.tmp" "conftest.in"
7437     cp "conftest.in" "conftest.nl"
7438     $as_echo '' >> "conftest.nl"
7439     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7440     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7441     as_fn_arith $ac_count + 1 && ac_count=$as_val
7442     if test $ac_count -gt ${ac_path_SED_max-0}; then
7443       # Best one so far, save it but keep looking for a better one
7444       ac_cv_path_SED="$ac_path_SED"
7445       ac_path_SED_max=$ac_count
7446     fi
7447     # 10*(2^10) chars as input seems more than enough
7448     test $ac_count -gt 10 && break
7449   done
7450   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7451 esac
7452
7453       $ac_path_SED_found && break 3
7454     done
7455   done
7456   done
7457 IFS=$as_save_IFS
7458   if test -z "$ac_cv_path_SED"; then
7459     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7460   fi
7461 else
7462   ac_cv_path_SED=$SED
7463 fi
7464
7465 fi
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7467 $as_echo "$ac_cv_path_SED" >&6; }
7468  SED="$ac_cv_path_SED"
7469   rm -f conftest.sed
7470
7471 test -z "$SED" && SED=sed
7472 Xsed="$SED -e 1s/^X//"
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7485 $as_echo_n "checking for fgrep... " >&6; }
7486 if ${ac_cv_path_FGREP+:} false; then :
7487   $as_echo_n "(cached) " >&6
7488 else
7489   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7490    then ac_cv_path_FGREP="$GREP -F"
7491    else
7492      if test -z "$FGREP"; then
7493   ac_path_FGREP_found=false
7494   # Loop through the user's path and test for each of PROGNAME-LIST
7495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7497 do
7498   IFS=$as_save_IFS
7499   test -z "$as_dir" && as_dir=.
7500     for ac_prog in fgrep; do
7501     for ac_exec_ext in '' $ac_executable_extensions; do
7502       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7503       as_fn_executable_p "$ac_path_FGREP" || continue
7504 # Check for GNU ac_path_FGREP and select it if it is found.
7505   # Check for GNU $ac_path_FGREP
7506 case `"$ac_path_FGREP" --version 2>&1` in
7507 *GNU*)
7508   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7509 *)
7510   ac_count=0
7511   $as_echo_n 0123456789 >"conftest.in"
7512   while :
7513   do
7514     cat "conftest.in" "conftest.in" >"conftest.tmp"
7515     mv "conftest.tmp" "conftest.in"
7516     cp "conftest.in" "conftest.nl"
7517     $as_echo 'FGREP' >> "conftest.nl"
7518     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7519     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7520     as_fn_arith $ac_count + 1 && ac_count=$as_val
7521     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7522       # Best one so far, save it but keep looking for a better one
7523       ac_cv_path_FGREP="$ac_path_FGREP"
7524       ac_path_FGREP_max=$ac_count
7525     fi
7526     # 10*(2^10) chars as input seems more than enough
7527     test $ac_count -gt 10 && break
7528   done
7529   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7530 esac
7531
7532       $ac_path_FGREP_found && break 3
7533     done
7534   done
7535   done
7536 IFS=$as_save_IFS
7537   if test -z "$ac_cv_path_FGREP"; then
7538     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7539   fi
7540 else
7541   ac_cv_path_FGREP=$FGREP
7542 fi
7543
7544    fi
7545 fi
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7547 $as_echo "$ac_cv_path_FGREP" >&6; }
7548  FGREP="$ac_cv_path_FGREP"
7549
7550
7551 test -z "$GREP" && GREP=grep
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571 # Check whether --with-gnu-ld was given.
7572 if test "${with_gnu_ld+set}" = set; then :
7573   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7574 else
7575   with_gnu_ld=no
7576 fi
7577
7578 ac_prog=ld
7579 if test yes = "$GCC"; then
7580   # Check if gcc -print-prog-name=ld gives a path.
7581   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7582 $as_echo_n "checking for ld used by $CC... " >&6; }
7583   case $host in
7584   *-*-mingw*)
7585     # gcc leaves a trailing carriage return, which upsets mingw
7586     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7587   *)
7588     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7589   esac
7590   case $ac_prog in
7591     # Accept absolute paths.
7592     [\\/]* | ?:[\\/]*)
7593       re_direlt='/[^/][^/]*/\.\./'
7594       # Canonicalize the pathname of ld
7595       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7596       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7597         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7598       done
7599       test -z "$LD" && LD=$ac_prog
7600       ;;
7601   "")
7602     # If it fails, then pretend we aren't using GCC.
7603     ac_prog=ld
7604     ;;
7605   *)
7606     # If it is relative, then search for the first ld in PATH.
7607     with_gnu_ld=unknown
7608     ;;
7609   esac
7610 elif test yes = "$with_gnu_ld"; then
7611   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7612 $as_echo_n "checking for GNU ld... " >&6; }
7613 else
7614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7615 $as_echo_n "checking for non-GNU ld... " >&6; }
7616 fi
7617 if ${lt_cv_path_LD+:} false; then :
7618   $as_echo_n "(cached) " >&6
7619 else
7620   if test -z "$LD"; then
7621   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7622   for ac_dir in $PATH; do
7623     IFS=$lt_save_ifs
7624     test -z "$ac_dir" && ac_dir=.
7625     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7626       lt_cv_path_LD=$ac_dir/$ac_prog
7627       # Check to see if the program is GNU ld.  I'd rather use --version,
7628       # but apparently some variants of GNU ld only accept -v.
7629       # Break only if it was the GNU/non-GNU ld that we prefer.
7630       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7631       *GNU* | *'with BFD'*)
7632         test no != "$with_gnu_ld" && break
7633         ;;
7634       *)
7635         test yes != "$with_gnu_ld" && break
7636         ;;
7637       esac
7638     fi
7639   done
7640   IFS=$lt_save_ifs
7641 else
7642   lt_cv_path_LD=$LD # Let the user override the test with a path.
7643 fi
7644 fi
7645
7646 LD=$lt_cv_path_LD
7647 if test -n "$LD"; then
7648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7649 $as_echo "$LD" >&6; }
7650 else
7651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7652 $as_echo "no" >&6; }
7653 fi
7654 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7656 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7657 if ${lt_cv_prog_gnu_ld+:} false; then :
7658   $as_echo_n "(cached) " >&6
7659 else
7660   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7661 case `$LD -v 2>&1 </dev/null` in
7662 *GNU* | *'with BFD'*)
7663   lt_cv_prog_gnu_ld=yes
7664   ;;
7665 *)
7666   lt_cv_prog_gnu_ld=no
7667   ;;
7668 esac
7669 fi
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7671 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7672 with_gnu_ld=$lt_cv_prog_gnu_ld
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7683 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7684 if ${lt_cv_path_NM+:} false; then :
7685   $as_echo_n "(cached) " >&6
7686 else
7687   if test -n "$NM"; then
7688   # Let the user override the test.
7689   lt_cv_path_NM=$NM
7690 else
7691   lt_nm_to_check=${ac_tool_prefix}nm
7692   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7693     lt_nm_to_check="$lt_nm_to_check nm"
7694   fi
7695   for lt_tmp_nm in $lt_nm_to_check; do
7696     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7697     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7698       IFS=$lt_save_ifs
7699       test -z "$ac_dir" && ac_dir=.
7700       tmp_nm=$ac_dir/$lt_tmp_nm
7701       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7702         # Check to see if the nm accepts a BSD-compat flag.
7703         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7704         #   nm: unknown option "B" ignored
7705         # Tru64's nm complains that /dev/null is an invalid object file
7706         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7707         case $build_os in
7708         mingw*) lt_bad_file=conftest.nm/nofile ;;
7709         *) lt_bad_file=/dev/null ;;
7710         esac
7711         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7712         *$lt_bad_file* | *'Invalid file or object type'*)
7713           lt_cv_path_NM="$tmp_nm -B"
7714           break 2
7715           ;;
7716         *)
7717           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7718           */dev/null*)
7719             lt_cv_path_NM="$tmp_nm -p"
7720             break 2
7721             ;;
7722           *)
7723             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7724             continue # so that we can try to find one that supports BSD flags
7725             ;;
7726           esac
7727           ;;
7728         esac
7729       fi
7730     done
7731     IFS=$lt_save_ifs
7732   done
7733   : ${lt_cv_path_NM=no}
7734 fi
7735 fi
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7737 $as_echo "$lt_cv_path_NM" >&6; }
7738 if test no != "$lt_cv_path_NM"; then
7739   NM=$lt_cv_path_NM
7740 else
7741   # Didn't find any BSD compatible name lister, look for dumpbin.
7742   if test -n "$DUMPBIN"; then :
7743     # Let the user override the test.
7744   else
7745     if test -n "$ac_tool_prefix"; then
7746   for ac_prog in dumpbin "link -dump"
7747   do
7748     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7749 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7751 $as_echo_n "checking for $ac_word... " >&6; }
7752 if ${ac_cv_prog_DUMPBIN+:} false; then :
7753   $as_echo_n "(cached) " >&6
7754 else
7755   if test -n "$DUMPBIN"; then
7756   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7757 else
7758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7759 for as_dir in $PATH
7760 do
7761   IFS=$as_save_IFS
7762   test -z "$as_dir" && as_dir=.
7763     for ac_exec_ext in '' $ac_executable_extensions; do
7764   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7765     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7767     break 2
7768   fi
7769 done
7770   done
7771 IFS=$as_save_IFS
7772
7773 fi
7774 fi
7775 DUMPBIN=$ac_cv_prog_DUMPBIN
7776 if test -n "$DUMPBIN"; then
7777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7778 $as_echo "$DUMPBIN" >&6; }
7779 else
7780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7781 $as_echo "no" >&6; }
7782 fi
7783
7784
7785     test -n "$DUMPBIN" && break
7786   done
7787 fi
7788 if test -z "$DUMPBIN"; then
7789   ac_ct_DUMPBIN=$DUMPBIN
7790   for ac_prog in dumpbin "link -dump"
7791 do
7792   # Extract the first word of "$ac_prog", so it can be a program name with args.
7793 set dummy $ac_prog; ac_word=$2
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7795 $as_echo_n "checking for $ac_word... " >&6; }
7796 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7797   $as_echo_n "(cached) " >&6
7798 else
7799   if test -n "$ac_ct_DUMPBIN"; then
7800   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7801 else
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 for as_dir in $PATH
7804 do
7805   IFS=$as_save_IFS
7806   test -z "$as_dir" && as_dir=.
7807     for ac_exec_ext in '' $ac_executable_extensions; do
7808   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7809     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7811     break 2
7812   fi
7813 done
7814   done
7815 IFS=$as_save_IFS
7816
7817 fi
7818 fi
7819 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7820 if test -n "$ac_ct_DUMPBIN"; then
7821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7822 $as_echo "$ac_ct_DUMPBIN" >&6; }
7823 else
7824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825 $as_echo "no" >&6; }
7826 fi
7827
7828
7829   test -n "$ac_ct_DUMPBIN" && break
7830 done
7831
7832   if test "x$ac_ct_DUMPBIN" = x; then
7833     DUMPBIN=":"
7834   else
7835     case $cross_compiling:$ac_tool_warned in
7836 yes:)
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7839 ac_tool_warned=yes ;;
7840 esac
7841     DUMPBIN=$ac_ct_DUMPBIN
7842   fi
7843 fi
7844
7845     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7846     *COFF*)
7847       DUMPBIN="$DUMPBIN -symbols -headers"
7848       ;;
7849     *)
7850       DUMPBIN=:
7851       ;;
7852     esac
7853   fi
7854
7855   if test : != "$DUMPBIN"; then
7856     NM=$DUMPBIN
7857   fi
7858 fi
7859 test -z "$NM" && NM=nm
7860
7861
7862
7863
7864
7865
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7867 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7868 if ${lt_cv_nm_interface+:} false; then :
7869   $as_echo_n "(cached) " >&6
7870 else
7871   lt_cv_nm_interface="BSD nm"
7872   echo "int some_variable = 0;" > conftest.$ac_ext
7873   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7874   (eval "$ac_compile" 2>conftest.err)
7875   cat conftest.err >&5
7876   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7877   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7878   cat conftest.err >&5
7879   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7880   cat conftest.out >&5
7881   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7882     lt_cv_nm_interface="MS dumpbin"
7883   fi
7884   rm -f conftest*
7885 fi
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7887 $as_echo "$lt_cv_nm_interface" >&6; }
7888
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7890 $as_echo_n "checking whether ln -s works... " >&6; }
7891 LN_S=$as_ln_s
7892 if test "$LN_S" = "ln -s"; then
7893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7894 $as_echo "yes" >&6; }
7895 else
7896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7897 $as_echo "no, using $LN_S" >&6; }
7898 fi
7899
7900 # find the maximum length of command line arguments
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7902 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7903 if ${lt_cv_sys_max_cmd_len+:} false; then :
7904   $as_echo_n "(cached) " >&6
7905 else
7906     i=0
7907   teststring=ABCD
7908
7909   case $build_os in
7910   msdosdjgpp*)
7911     # On DJGPP, this test can blow up pretty badly due to problems in libc
7912     # (any single argument exceeding 2000 bytes causes a buffer overrun
7913     # during glob expansion).  Even if it were fixed, the result of this
7914     # check would be larger than it should be.
7915     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7916     ;;
7917
7918   gnu*)
7919     # Under GNU Hurd, this test is not required because there is
7920     # no limit to the length of command line arguments.
7921     # Libtool will interpret -1 as no limit whatsoever
7922     lt_cv_sys_max_cmd_len=-1;
7923     ;;
7924
7925   cygwin* | mingw* | cegcc*)
7926     # On Win9x/ME, this test blows up -- it succeeds, but takes
7927     # about 5 minutes as the teststring grows exponentially.
7928     # Worse, since 9x/ME are not pre-emptively multitasking,
7929     # you end up with a "frozen" computer, even though with patience
7930     # the test eventually succeeds (with a max line length of 256k).
7931     # Instead, let's just punt: use the minimum linelength reported by
7932     # all of the supported platforms: 8192 (on NT/2K/XP).
7933     lt_cv_sys_max_cmd_len=8192;
7934     ;;
7935
7936   mint*)
7937     # On MiNT this can take a long time and run out of memory.
7938     lt_cv_sys_max_cmd_len=8192;
7939     ;;
7940
7941   amigaos*)
7942     # On AmigaOS with pdksh, this test takes hours, literally.
7943     # So we just punt and use a minimum line length of 8192.
7944     lt_cv_sys_max_cmd_len=8192;
7945     ;;
7946
7947   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7948     # This has been around since 386BSD, at least.  Likely further.
7949     if test -x /sbin/sysctl; then
7950       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7951     elif test -x /usr/sbin/sysctl; then
7952       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7953     else
7954       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7955     fi
7956     # And add a safety zone
7957     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7958     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7959     ;;
7960
7961   interix*)
7962     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7963     lt_cv_sys_max_cmd_len=196608
7964     ;;
7965
7966   os2*)
7967     # The test takes a long time on OS/2.
7968     lt_cv_sys_max_cmd_len=8192
7969     ;;
7970
7971   osf*)
7972     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7973     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7974     # nice to cause kernel panics so lets avoid the loop below.
7975     # First set a reasonable default.
7976     lt_cv_sys_max_cmd_len=16384
7977     #
7978     if test -x /sbin/sysconfig; then
7979       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7980         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7981       esac
7982     fi
7983     ;;
7984   sco3.2v5*)
7985     lt_cv_sys_max_cmd_len=102400
7986     ;;
7987   sysv5* | sco5v6* | sysv4.2uw2*)
7988     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7989     if test -n "$kargmax"; then
7990       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7991     else
7992       lt_cv_sys_max_cmd_len=32768
7993     fi
7994     ;;
7995   *)
7996     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7997     if test -n "$lt_cv_sys_max_cmd_len" && \
7998        test undefined != "$lt_cv_sys_max_cmd_len"; then
7999       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8000       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8001     else
8002       # Make teststring a little bigger before we do anything with it.
8003       # a 1K string should be a reasonable start.
8004       for i in 1 2 3 4 5 6 7 8; do
8005         teststring=$teststring$teststring
8006       done
8007       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8008       # If test is not a shell built-in, we'll probably end up computing a
8009       # maximum length that is only half of the actual maximum length, but
8010       # we can't tell.
8011       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8012                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8013               test 17 != "$i" # 1/2 MB should be enough
8014       do
8015         i=`expr $i + 1`
8016         teststring=$teststring$teststring
8017       done
8018       # Only check the string length outside the loop.
8019       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8020       teststring=
8021       # Add a significant safety factor because C++ compilers can tack on
8022       # massive amounts of additional arguments before passing them to the
8023       # linker.  It appears as though 1/2 is a usable value.
8024       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8025     fi
8026     ;;
8027   esac
8028
8029 fi
8030
8031 if test -n "$lt_cv_sys_max_cmd_len"; then
8032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8033 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8034 else
8035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8036 $as_echo "none" >&6; }
8037 fi
8038 max_cmd_len=$lt_cv_sys_max_cmd_len
8039
8040
8041
8042
8043
8044
8045 : ${CP="cp -f"}
8046 : ${MV="mv -f"}
8047 : ${RM="rm -f"}
8048
8049 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8050   lt_unset=unset
8051 else
8052   lt_unset=false
8053 fi
8054
8055
8056
8057
8058
8059 # test EBCDIC or ASCII
8060 case `echo X|tr X '\101'` in
8061  A) # ASCII based system
8062     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8063   lt_SP2NL='tr \040 \012'
8064   lt_NL2SP='tr \015\012 \040\040'
8065   ;;
8066  *) # EBCDIC based system
8067   lt_SP2NL='tr \100 \n'
8068   lt_NL2SP='tr \r\n \100\100'
8069   ;;
8070 esac
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8081 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8082 if ${lt_cv_to_host_file_cmd+:} false; then :
8083   $as_echo_n "(cached) " >&6
8084 else
8085   case $host in
8086   *-*-mingw* )
8087     case $build in
8088       *-*-mingw* ) # actually msys
8089         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8090         ;;
8091       *-*-cygwin* )
8092         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8093         ;;
8094       * ) # otherwise, assume *nix
8095         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8096         ;;
8097     esac
8098     ;;
8099   *-*-cygwin* )
8100     case $build in
8101       *-*-mingw* ) # actually msys
8102         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8103         ;;
8104       *-*-cygwin* )
8105         lt_cv_to_host_file_cmd=func_convert_file_noop
8106         ;;
8107       * ) # otherwise, assume *nix
8108         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8109         ;;
8110     esac
8111     ;;
8112   * ) # unhandled hosts (and "normal" native builds)
8113     lt_cv_to_host_file_cmd=func_convert_file_noop
8114     ;;
8115 esac
8116
8117 fi
8118
8119 to_host_file_cmd=$lt_cv_to_host_file_cmd
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8121 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8122
8123
8124
8125
8126
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8128 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8129 if ${lt_cv_to_tool_file_cmd+:} false; then :
8130   $as_echo_n "(cached) " >&6
8131 else
8132   #assume ordinary cross tools, or native build.
8133 lt_cv_to_tool_file_cmd=func_convert_file_noop
8134 case $host in
8135   *-*-mingw* )
8136     case $build in
8137       *-*-mingw* ) # actually msys
8138         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8139         ;;
8140     esac
8141     ;;
8142 esac
8143
8144 fi
8145
8146 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8148 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8149
8150
8151
8152
8153
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8155 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8156 if ${lt_cv_ld_reload_flag+:} false; then :
8157   $as_echo_n "(cached) " >&6
8158 else
8159   lt_cv_ld_reload_flag='-r'
8160 fi
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8162 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8163 reload_flag=$lt_cv_ld_reload_flag
8164 case $reload_flag in
8165 "" | " "*) ;;
8166 *) reload_flag=" $reload_flag" ;;
8167 esac
8168 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8169 case $host_os in
8170   cygwin* | mingw* | pw32* | cegcc*)
8171     if test yes != "$GCC"; then
8172       reload_cmds=false
8173     fi
8174     ;;
8175   darwin*)
8176     if test yes = "$GCC"; then
8177       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8178     else
8179       reload_cmds='$LD$reload_flag -o $output$reload_objs'
8180     fi
8181     ;;
8182 esac
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192 if test -n "$ac_tool_prefix"; then
8193   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8194 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8196 $as_echo_n "checking for $ac_word... " >&6; }
8197 if ${ac_cv_prog_OBJDUMP+:} false; then :
8198   $as_echo_n "(cached) " >&6
8199 else
8200   if test -n "$OBJDUMP"; then
8201   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8202 else
8203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8204 for as_dir in $PATH
8205 do
8206   IFS=$as_save_IFS
8207   test -z "$as_dir" && as_dir=.
8208     for ac_exec_ext in '' $ac_executable_extensions; do
8209   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8210     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8212     break 2
8213   fi
8214 done
8215   done
8216 IFS=$as_save_IFS
8217
8218 fi
8219 fi
8220 OBJDUMP=$ac_cv_prog_OBJDUMP
8221 if test -n "$OBJDUMP"; then
8222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8223 $as_echo "$OBJDUMP" >&6; }
8224 else
8225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226 $as_echo "no" >&6; }
8227 fi
8228
8229
8230 fi
8231 if test -z "$ac_cv_prog_OBJDUMP"; then
8232   ac_ct_OBJDUMP=$OBJDUMP
8233   # Extract the first word of "objdump", so it can be a program name with args.
8234 set dummy objdump; ac_word=$2
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8236 $as_echo_n "checking for $ac_word... " >&6; }
8237 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8238   $as_echo_n "(cached) " >&6
8239 else
8240   if test -n "$ac_ct_OBJDUMP"; then
8241   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8242 else
8243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8244 for as_dir in $PATH
8245 do
8246   IFS=$as_save_IFS
8247   test -z "$as_dir" && as_dir=.
8248     for ac_exec_ext in '' $ac_executable_extensions; do
8249   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8250     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8252     break 2
8253   fi
8254 done
8255   done
8256 IFS=$as_save_IFS
8257
8258 fi
8259 fi
8260 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8261 if test -n "$ac_ct_OBJDUMP"; then
8262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8263 $as_echo "$ac_ct_OBJDUMP" >&6; }
8264 else
8265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266 $as_echo "no" >&6; }
8267 fi
8268
8269   if test "x$ac_ct_OBJDUMP" = x; then
8270     OBJDUMP="false"
8271   else
8272     case $cross_compiling:$ac_tool_warned in
8273 yes:)
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8276 ac_tool_warned=yes ;;
8277 esac
8278     OBJDUMP=$ac_ct_OBJDUMP
8279   fi
8280 else
8281   OBJDUMP="$ac_cv_prog_OBJDUMP"
8282 fi
8283
8284 test -z "$OBJDUMP" && OBJDUMP=objdump
8285
8286
8287
8288
8289
8290
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8292 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8293 if ${lt_cv_deplibs_check_method+:} false; then :
8294   $as_echo_n "(cached) " >&6
8295 else
8296   lt_cv_file_magic_cmd='$MAGIC_CMD'
8297 lt_cv_file_magic_test_file=
8298 lt_cv_deplibs_check_method='unknown'
8299 # Need to set the preceding variable on all platforms that support
8300 # interlibrary dependencies.
8301 # 'none' -- dependencies not supported.
8302 # 'unknown' -- same as none, but documents that we really don't know.
8303 # 'pass_all' -- all dependencies passed with no checks.
8304 # 'test_compile' -- check by making test program.
8305 # 'file_magic [[regex]]' -- check by looking for files in library path
8306 # that responds to the $file_magic_cmd with a given extended regex.
8307 # If you have 'file' or equivalent on your system and you're not sure
8308 # whether 'pass_all' will *always* work, you probably want this one.
8309
8310 case $host_os in
8311 aix[4-9]*)
8312   lt_cv_deplibs_check_method=pass_all
8313   ;;
8314
8315 beos*)
8316   lt_cv_deplibs_check_method=pass_all
8317   ;;
8318
8319 bsdi[45]*)
8320   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8321   lt_cv_file_magic_cmd='/usr/bin/file -L'
8322   lt_cv_file_magic_test_file=/shlib/libc.so
8323   ;;
8324
8325 cygwin*)
8326   # func_win32_libid is a shell function defined in ltmain.sh
8327   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8328   lt_cv_file_magic_cmd='func_win32_libid'
8329   ;;
8330
8331 mingw* | pw32*)
8332   # Base MSYS/MinGW do not provide the 'file' command needed by
8333   # func_win32_libid shell function, so use a weaker test based on 'objdump',
8334   # unless we find 'file', for example because we are cross-compiling.
8335   if ( file / ) >/dev/null 2>&1; then
8336     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8337     lt_cv_file_magic_cmd='func_win32_libid'
8338   else
8339     # Keep this pattern in sync with the one in func_win32_libid.
8340     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8341     lt_cv_file_magic_cmd='$OBJDUMP -f'
8342   fi
8343   ;;
8344
8345 cegcc*)
8346   # use the weaker test based on 'objdump'. See mingw*.
8347   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8348   lt_cv_file_magic_cmd='$OBJDUMP -f'
8349   ;;
8350
8351 darwin* | rhapsody*)
8352   lt_cv_deplibs_check_method=pass_all
8353   ;;
8354
8355 freebsd* | dragonfly*)
8356   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8357     case $host_cpu in
8358     i*86 )
8359       # Not sure whether the presence of OpenBSD here was a mistake.
8360       # Let's accept both of them until this is cleared up.
8361       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8362       lt_cv_file_magic_cmd=/usr/bin/file
8363       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8364       ;;
8365     esac
8366   else
8367     lt_cv_deplibs_check_method=pass_all
8368   fi
8369   ;;
8370
8371 haiku*)
8372   lt_cv_deplibs_check_method=pass_all
8373   ;;
8374
8375 hpux10.20* | hpux11*)
8376   lt_cv_file_magic_cmd=/usr/bin/file
8377   case $host_cpu in
8378   ia64*)
8379     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8380     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8381     ;;
8382   hppa*64*)
8383     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
8384     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8385     ;;
8386   *)
8387     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8388     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8389     ;;
8390   esac
8391   ;;
8392
8393 interix[3-9]*)
8394   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8395   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8396   ;;
8397
8398 irix5* | irix6* | nonstopux*)
8399   case $LD in
8400   *-32|*"-32 ") libmagic=32-bit;;
8401   *-n32|*"-n32 ") libmagic=N32;;
8402   *-64|*"-64 ") libmagic=64-bit;;
8403   *) libmagic=never-match;;
8404   esac
8405   lt_cv_deplibs_check_method=pass_all
8406   ;;
8407
8408 # This must be glibc/ELF.
8409 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8410   lt_cv_deplibs_check_method=pass_all
8411   ;;
8412
8413 netbsd* | netbsdelf*-gnu)
8414   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8415     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8416   else
8417     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8418   fi
8419   ;;
8420
8421 newos6*)
8422   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8423   lt_cv_file_magic_cmd=/usr/bin/file
8424   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8425   ;;
8426
8427 *nto* | *qnx*)
8428   lt_cv_deplibs_check_method=pass_all
8429   ;;
8430
8431 openbsd* | bitrig*)
8432   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8433     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8434   else
8435     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8436   fi
8437   ;;
8438
8439 osf3* | osf4* | osf5*)
8440   lt_cv_deplibs_check_method=pass_all
8441   ;;
8442
8443 rdos*)
8444   lt_cv_deplibs_check_method=pass_all
8445   ;;
8446
8447 solaris*)
8448   lt_cv_deplibs_check_method=pass_all
8449   ;;
8450
8451 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8452   lt_cv_deplibs_check_method=pass_all
8453   ;;
8454
8455 sysv4 | sysv4.3*)
8456   case $host_vendor in
8457   motorola)
8458     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]'
8459     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8460     ;;
8461   ncr)
8462     lt_cv_deplibs_check_method=pass_all
8463     ;;
8464   sequent)
8465     lt_cv_file_magic_cmd='/bin/file'
8466     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8467     ;;
8468   sni)
8469     lt_cv_file_magic_cmd='/bin/file'
8470     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8471     lt_cv_file_magic_test_file=/lib/libc.so
8472     ;;
8473   siemens)
8474     lt_cv_deplibs_check_method=pass_all
8475     ;;
8476   pc)
8477     lt_cv_deplibs_check_method=pass_all
8478     ;;
8479   esac
8480   ;;
8481
8482 tpf*)
8483   lt_cv_deplibs_check_method=pass_all
8484   ;;
8485 os2*)
8486   lt_cv_deplibs_check_method=pass_all
8487   ;;
8488 esac
8489
8490 fi
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8492 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8493
8494 file_magic_glob=
8495 want_nocaseglob=no
8496 if test "$build" = "$host"; then
8497   case $host_os in
8498   mingw* | pw32*)
8499     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8500       want_nocaseglob=yes
8501     else
8502       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8503     fi
8504     ;;
8505   esac
8506 fi
8507
8508 file_magic_cmd=$lt_cv_file_magic_cmd
8509 deplibs_check_method=$lt_cv_deplibs_check_method
8510 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533 if test -n "$ac_tool_prefix"; then
8534   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8535 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8537 $as_echo_n "checking for $ac_word... " >&6; }
8538 if ${ac_cv_prog_DLLTOOL+:} false; then :
8539   $as_echo_n "(cached) " >&6
8540 else
8541   if test -n "$DLLTOOL"; then
8542   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8543 else
8544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545 for as_dir in $PATH
8546 do
8547   IFS=$as_save_IFS
8548   test -z "$as_dir" && as_dir=.
8549     for ac_exec_ext in '' $ac_executable_extensions; do
8550   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8551     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8553     break 2
8554   fi
8555 done
8556   done
8557 IFS=$as_save_IFS
8558
8559 fi
8560 fi
8561 DLLTOOL=$ac_cv_prog_DLLTOOL
8562 if test -n "$DLLTOOL"; then
8563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8564 $as_echo "$DLLTOOL" >&6; }
8565 else
8566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8567 $as_echo "no" >&6; }
8568 fi
8569
8570
8571 fi
8572 if test -z "$ac_cv_prog_DLLTOOL"; then
8573   ac_ct_DLLTOOL=$DLLTOOL
8574   # Extract the first word of "dlltool", so it can be a program name with args.
8575 set dummy dlltool; ac_word=$2
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8577 $as_echo_n "checking for $ac_word... " >&6; }
8578 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8579   $as_echo_n "(cached) " >&6
8580 else
8581   if test -n "$ac_ct_DLLTOOL"; then
8582   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8583 else
8584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8585 for as_dir in $PATH
8586 do
8587   IFS=$as_save_IFS
8588   test -z "$as_dir" && as_dir=.
8589     for ac_exec_ext in '' $ac_executable_extensions; do
8590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8591     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8593     break 2
8594   fi
8595 done
8596   done
8597 IFS=$as_save_IFS
8598
8599 fi
8600 fi
8601 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8602 if test -n "$ac_ct_DLLTOOL"; then
8603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8604 $as_echo "$ac_ct_DLLTOOL" >&6; }
8605 else
8606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8607 $as_echo "no" >&6; }
8608 fi
8609
8610   if test "x$ac_ct_DLLTOOL" = x; then
8611     DLLTOOL="false"
8612   else
8613     case $cross_compiling:$ac_tool_warned in
8614 yes:)
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8617 ac_tool_warned=yes ;;
8618 esac
8619     DLLTOOL=$ac_ct_DLLTOOL
8620   fi
8621 else
8622   DLLTOOL="$ac_cv_prog_DLLTOOL"
8623 fi
8624
8625 test -z "$DLLTOOL" && DLLTOOL=dlltool
8626
8627
8628
8629
8630
8631
8632
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8634 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8635 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8636   $as_echo_n "(cached) " >&6
8637 else
8638   lt_cv_sharedlib_from_linklib_cmd='unknown'
8639
8640 case $host_os in
8641 cygwin* | mingw* | pw32* | cegcc*)
8642   # two different shell functions defined in ltmain.sh;
8643   # decide which one to use based on capabilities of $DLLTOOL
8644   case `$DLLTOOL --help 2>&1` in
8645   *--identify-strict*)
8646     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8647     ;;
8648   *)
8649     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8650     ;;
8651   esac
8652   ;;
8653 *)
8654   # fallback: assume linklib IS sharedlib
8655   lt_cv_sharedlib_from_linklib_cmd=$ECHO
8656   ;;
8657 esac
8658
8659 fi
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8661 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8662 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8663 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8664
8665
8666
8667
8668
8669
8670
8671 if test -n "$ac_tool_prefix"; then
8672   for ac_prog in ar
8673   do
8674     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8675 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8677 $as_echo_n "checking for $ac_word... " >&6; }
8678 if ${ac_cv_prog_AR+:} false; then :
8679   $as_echo_n "(cached) " >&6
8680 else
8681   if test -n "$AR"; then
8682   ac_cv_prog_AR="$AR" # Let the user override the test.
8683 else
8684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8685 for as_dir in $PATH
8686 do
8687   IFS=$as_save_IFS
8688   test -z "$as_dir" && as_dir=.
8689     for ac_exec_ext in '' $ac_executable_extensions; do
8690   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8691     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8693     break 2
8694   fi
8695 done
8696   done
8697 IFS=$as_save_IFS
8698
8699 fi
8700 fi
8701 AR=$ac_cv_prog_AR
8702 if test -n "$AR"; then
8703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8704 $as_echo "$AR" >&6; }
8705 else
8706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8707 $as_echo "no" >&6; }
8708 fi
8709
8710
8711     test -n "$AR" && break
8712   done
8713 fi
8714 if test -z "$AR"; then
8715   ac_ct_AR=$AR
8716   for ac_prog in ar
8717 do
8718   # Extract the first word of "$ac_prog", so it can be a program name with args.
8719 set dummy $ac_prog; ac_word=$2
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8721 $as_echo_n "checking for $ac_word... " >&6; }
8722 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8723   $as_echo_n "(cached) " >&6
8724 else
8725   if test -n "$ac_ct_AR"; then
8726   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8727 else
8728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8729 for as_dir in $PATH
8730 do
8731   IFS=$as_save_IFS
8732   test -z "$as_dir" && as_dir=.
8733     for ac_exec_ext in '' $ac_executable_extensions; do
8734   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8735     ac_cv_prog_ac_ct_AR="$ac_prog"
8736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8737     break 2
8738   fi
8739 done
8740   done
8741 IFS=$as_save_IFS
8742
8743 fi
8744 fi
8745 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8746 if test -n "$ac_ct_AR"; then
8747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8748 $as_echo "$ac_ct_AR" >&6; }
8749 else
8750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8751 $as_echo "no" >&6; }
8752 fi
8753
8754
8755   test -n "$ac_ct_AR" && break
8756 done
8757
8758   if test "x$ac_ct_AR" = x; then
8759     AR="false"
8760   else
8761     case $cross_compiling:$ac_tool_warned in
8762 yes:)
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8765 ac_tool_warned=yes ;;
8766 esac
8767     AR=$ac_ct_AR
8768   fi
8769 fi
8770
8771 : ${AR=ar}
8772 : ${AR_FLAGS=cru}
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8785 $as_echo_n "checking for archiver @FILE support... " >&6; }
8786 if ${lt_cv_ar_at_file+:} false; then :
8787   $as_echo_n "(cached) " >&6
8788 else
8789   lt_cv_ar_at_file=no
8790    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8791 /* end confdefs.h.  */
8792
8793 int main (void)
8794 {
8795
8796  ;
8797  return 0;
8798 }
8799 _ACEOF
8800 if ac_fn_c_try_compile "$LINENO"; then :
8801   echo conftest.$ac_objext > conftest.lst
8802       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8803       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8804   (eval $lt_ar_try) 2>&5
8805   ac_status=$?
8806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8807   test $ac_status = 0; }
8808       if test 0 -eq "$ac_status"; then
8809         # Ensure the archiver fails upon bogus file names.
8810         rm -f conftest.$ac_objext libconftest.a
8811         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8812   (eval $lt_ar_try) 2>&5
8813   ac_status=$?
8814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8815   test $ac_status = 0; }
8816         if test 0 -ne "$ac_status"; then
8817           lt_cv_ar_at_file=@
8818         fi
8819       fi
8820       rm -f conftest.* libconftest.a
8821
8822 fi
8823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8824
8825 fi
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8827 $as_echo "$lt_cv_ar_at_file" >&6; }
8828
8829 if test no = "$lt_cv_ar_at_file"; then
8830   archiver_list_spec=
8831 else
8832   archiver_list_spec=$lt_cv_ar_at_file
8833 fi
8834
8835
8836
8837
8838
8839
8840
8841 if test -n "$ac_tool_prefix"; then
8842   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8843 set dummy ${ac_tool_prefix}strip; ac_word=$2
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8845 $as_echo_n "checking for $ac_word... " >&6; }
8846 if ${ac_cv_prog_STRIP+:} false; then :
8847   $as_echo_n "(cached) " >&6
8848 else
8849   if test -n "$STRIP"; then
8850   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8851 else
8852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8853 for as_dir in $PATH
8854 do
8855   IFS=$as_save_IFS
8856   test -z "$as_dir" && as_dir=.
8857     for ac_exec_ext in '' $ac_executable_extensions; do
8858   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8859     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8861     break 2
8862   fi
8863 done
8864   done
8865 IFS=$as_save_IFS
8866
8867 fi
8868 fi
8869 STRIP=$ac_cv_prog_STRIP
8870 if test -n "$STRIP"; then
8871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8872 $as_echo "$STRIP" >&6; }
8873 else
8874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8875 $as_echo "no" >&6; }
8876 fi
8877
8878
8879 fi
8880 if test -z "$ac_cv_prog_STRIP"; then
8881   ac_ct_STRIP=$STRIP
8882   # Extract the first word of "strip", so it can be a program name with args.
8883 set dummy strip; ac_word=$2
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8885 $as_echo_n "checking for $ac_word... " >&6; }
8886 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8887   $as_echo_n "(cached) " >&6
8888 else
8889   if test -n "$ac_ct_STRIP"; then
8890   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8891 else
8892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8893 for as_dir in $PATH
8894 do
8895   IFS=$as_save_IFS
8896   test -z "$as_dir" && as_dir=.
8897     for ac_exec_ext in '' $ac_executable_extensions; do
8898   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8899     ac_cv_prog_ac_ct_STRIP="strip"
8900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8901     break 2
8902   fi
8903 done
8904   done
8905 IFS=$as_save_IFS
8906
8907 fi
8908 fi
8909 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8910 if test -n "$ac_ct_STRIP"; then
8911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8912 $as_echo "$ac_ct_STRIP" >&6; }
8913 else
8914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8915 $as_echo "no" >&6; }
8916 fi
8917
8918   if test "x$ac_ct_STRIP" = x; then
8919     STRIP=":"
8920   else
8921     case $cross_compiling:$ac_tool_warned in
8922 yes:)
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8925 ac_tool_warned=yes ;;
8926 esac
8927     STRIP=$ac_ct_STRIP
8928   fi
8929 else
8930   STRIP="$ac_cv_prog_STRIP"
8931 fi
8932
8933 test -z "$STRIP" && STRIP=:
8934
8935
8936
8937
8938
8939
8940 if test -n "$ac_tool_prefix"; then
8941   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8942 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8944 $as_echo_n "checking for $ac_word... " >&6; }
8945 if ${ac_cv_prog_RANLIB+:} false; then :
8946   $as_echo_n "(cached) " >&6
8947 else
8948   if test -n "$RANLIB"; then
8949   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8950 else
8951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8952 for as_dir in $PATH
8953 do
8954   IFS=$as_save_IFS
8955   test -z "$as_dir" && as_dir=.
8956     for ac_exec_ext in '' $ac_executable_extensions; do
8957   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8958     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8960     break 2
8961   fi
8962 done
8963   done
8964 IFS=$as_save_IFS
8965
8966 fi
8967 fi
8968 RANLIB=$ac_cv_prog_RANLIB
8969 if test -n "$RANLIB"; then
8970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8971 $as_echo "$RANLIB" >&6; }
8972 else
8973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8974 $as_echo "no" >&6; }
8975 fi
8976
8977
8978 fi
8979 if test -z "$ac_cv_prog_RANLIB"; then
8980   ac_ct_RANLIB=$RANLIB
8981   # Extract the first word of "ranlib", so it can be a program name with args.
8982 set dummy ranlib; ac_word=$2
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8984 $as_echo_n "checking for $ac_word... " >&6; }
8985 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8986   $as_echo_n "(cached) " >&6
8987 else
8988   if test -n "$ac_ct_RANLIB"; then
8989   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8990 else
8991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8992 for as_dir in $PATH
8993 do
8994   IFS=$as_save_IFS
8995   test -z "$as_dir" && as_dir=.
8996     for ac_exec_ext in '' $ac_executable_extensions; do
8997   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8998     ac_cv_prog_ac_ct_RANLIB="ranlib"
8999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9000     break 2
9001   fi
9002 done
9003   done
9004 IFS=$as_save_IFS
9005
9006 fi
9007 fi
9008 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9009 if test -n "$ac_ct_RANLIB"; then
9010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9011 $as_echo "$ac_ct_RANLIB" >&6; }
9012 else
9013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9014 $as_echo "no" >&6; }
9015 fi
9016
9017   if test "x$ac_ct_RANLIB" = x; then
9018     RANLIB=":"
9019   else
9020     case $cross_compiling:$ac_tool_warned in
9021 yes:)
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9024 ac_tool_warned=yes ;;
9025 esac
9026     RANLIB=$ac_ct_RANLIB
9027   fi
9028 else
9029   RANLIB="$ac_cv_prog_RANLIB"
9030 fi
9031
9032 test -z "$RANLIB" && RANLIB=:
9033
9034
9035
9036
9037
9038
9039 # Determine commands to create old-style static archives.
9040 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9041 old_postinstall_cmds='chmod 644 $oldlib'
9042 old_postuninstall_cmds=
9043
9044 if test -n "$RANLIB"; then
9045   case $host_os in
9046   bitrig* | openbsd*)
9047     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9048     ;;
9049   *)
9050     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9051     ;;
9052   esac
9053   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9054 fi
9055
9056 case $host_os in
9057   darwin*)
9058     lock_old_archive_extraction=yes ;;
9059   *)
9060     lock_old_archive_extraction=no ;;
9061 esac
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101 # If no C compiler was specified, use CC.
9102 LTCC=${LTCC-"$CC"}
9103
9104 # If no C compiler flags were specified, use CFLAGS.
9105 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9106
9107 # Allow CC to be a program name with arguments.
9108 compiler=$CC
9109
9110
9111 # Check for command to grab the raw symbol name followed by C symbol from nm.
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9113 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9114 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9115   $as_echo_n "(cached) " >&6
9116 else
9117
9118 # These are sane defaults that work on at least a few old systems.
9119 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9120
9121 # Character class describing NM global symbol codes.
9122 symcode='[BCDEGRST]'
9123
9124 # Regexp to match symbols that can be accessed directly from C.
9125 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9126
9127 # Define system-specific variables.
9128 case $host_os in
9129 aix*)
9130   symcode='[BCDT]'
9131   ;;
9132 cygwin* | mingw* | pw32* | cegcc*)
9133   symcode='[ABCDGISTW]'
9134   ;;
9135 hpux*)
9136   if test ia64 = "$host_cpu"; then
9137     symcode='[ABCDEGRST]'
9138   fi
9139   ;;
9140 irix* | nonstopux*)
9141   symcode='[BCDEGRST]'
9142   ;;
9143 osf*)
9144   symcode='[BCDEGQRST]'
9145   ;;
9146 solaris*)
9147   symcode='[BDRT]'
9148   ;;
9149 sco3.2v5*)
9150   symcode='[DT]'
9151   ;;
9152 sysv4.2uw2*)
9153   symcode='[DT]'
9154   ;;
9155 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9156   symcode='[ABDT]'
9157   ;;
9158 sysv4)
9159   symcode='[DFNSTU]'
9160   ;;
9161 esac
9162
9163 # If we're using GNU nm, then use its standard symbol codes.
9164 case `$NM -V 2>&1` in
9165 *GNU* | *'with BFD'*)
9166   symcode='[ABCDGIRSTW]' ;;
9167 esac
9168
9169 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9170   # Gets list of data symbols to import.
9171   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9172   # Adjust the below global symbol transforms to fixup imported variables.
9173   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9174   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
9175   lt_c_name_lib_hook="\
9176   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
9177   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
9178 else
9179   # Disable hooks by default.
9180   lt_cv_sys_global_symbol_to_import=
9181   lt_cdecl_hook=
9182   lt_c_name_hook=
9183   lt_c_name_lib_hook=
9184 fi
9185
9186 # Transform an extracted symbol line into a proper C declaration.
9187 # Some systems (esp. on ia64) link data and code symbols differently,
9188 # so use this general approach.
9189 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9190 $lt_cdecl_hook\
9191 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9192 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9193
9194 # Transform an extracted symbol line into symbol name and symbol address
9195 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9196 $lt_c_name_hook\
9197 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9198 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
9199
9200 # Transform an extracted symbol line into symbol name with lib prefix and
9201 # symbol address.
9202 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9203 $lt_c_name_lib_hook\
9204 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9205 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
9206 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
9207
9208 # Handle CRLF in mingw tool chain
9209 opt_cr=
9210 case $build_os in
9211 mingw*)
9212   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9213   ;;
9214 esac
9215
9216 # Try without a prefix underscore, then with it.
9217 for ac_symprfx in "" "_"; do
9218
9219   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9220   symxfrm="\\1 $ac_symprfx\\2 \\2"
9221
9222   # Write the raw and C identifiers.
9223   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9224     # Fake it for dumpbin and say T for any non-static function,
9225     # D for any global variable and I for any imported variable.
9226     # Also find C++ and __fastcall symbols from MSVC++,
9227     # which start with @ or ?.
9228     lt_cv_sys_global_symbol_pipe="$AWK '"\
9229 "     {last_section=section; section=\$ 3};"\
9230 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9231 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9232 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9233 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9234 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9235 "     \$ 0!~/External *\|/{next};"\
9236 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9237 "     {if(hide[section]) next};"\
9238 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9239 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9240 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9241 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9242 "     ' prfx=^$ac_symprfx"
9243   else
9244     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9245   fi
9246   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9247
9248   # Check to see that the pipe works correctly.
9249   pipe_works=no
9250
9251   rm -f conftest*
9252   cat > conftest.$ac_ext <<_LT_EOF
9253 #ifdef __cplusplus
9254 extern "C" {
9255 #endif
9256 char nm_test_var;
9257 void nm_test_func(void);
9258 void nm_test_func(void){}
9259 #ifdef __cplusplus
9260 }
9261 #endif
9262 int main(){nm_test_var='a';nm_test_func();return(0);}
9263 _LT_EOF
9264
9265   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9266   (eval $ac_compile) 2>&5
9267   ac_status=$?
9268   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9269   test $ac_status = 0; }; then
9270     # Now try to grab the symbols.
9271     nlist=conftest.nm
9272     $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
9273     if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
9274       # Try sorting and uniquifying the output.
9275       if sort "$nlist" | uniq > "$nlist"T; then
9276         mv -f "$nlist"T "$nlist"
9277       else
9278         rm -f "$nlist"T
9279       fi
9280
9281       # Make sure that we snagged all the symbols we need.
9282       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9283         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9284           cat <<_LT_EOF > conftest.$ac_ext
9285 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9286 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9287 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9288    relocations are performed -- see ld's documentation on pseudo-relocs.  */
9289 # define LT_DLSYM_CONST
9290 #elif defined __osf__
9291 /* This system does not cope well with relocations in const data.  */
9292 # define LT_DLSYM_CONST
9293 #else
9294 # define LT_DLSYM_CONST const
9295 #endif
9296
9297 #ifdef __cplusplus
9298 extern "C" {
9299 #endif
9300
9301 _LT_EOF
9302           # Now generate the symbol file.
9303           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9304
9305           cat <<_LT_EOF >> conftest.$ac_ext
9306
9307 /* The mapping between symbol names and symbols.  */
9308 LT_DLSYM_CONST struct {
9309   const char *name;
9310   void       *address;
9311 }
9312 lt__PROGRAM__LTX_preloaded_symbols[] =
9313 {
9314   { "@PROGRAM@", (void *) 0 },
9315 _LT_EOF
9316           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9317           cat <<\_LT_EOF >> conftest.$ac_ext
9318   {0, (void *) 0}
9319 };
9320
9321 /* This works around a problem in FreeBSD linker */
9322 #ifdef FREEBSD_WORKAROUND
9323 static const void *lt_preloaded_setup() {
9324   return lt__PROGRAM__LTX_preloaded_symbols;
9325 }
9326 #endif
9327
9328 #ifdef __cplusplus
9329 }
9330 #endif
9331 _LT_EOF
9332           # Now try linking the two files.
9333           mv -f conftest.$ac_objext conftstm.$ac_objext
9334           lt_globsym_save_LIBS=$LIBS
9335           lt_globsym_save_CFLAGS=$CFLAGS
9336           LIBS=conftstm.$ac_objext
9337           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9338           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9339   (eval $ac_link) 2>&5
9340   ac_status=$?
9341   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9342   test $ac_status = 0; } && test -s conftest$ac_exeext; then
9343             pipe_works=yes
9344           fi
9345           LIBS=$lt_globsym_save_LIBS
9346           CFLAGS=$lt_globsym_save_CFLAGS
9347         else
9348           echo "cannot find nm_test_func in $nlist" >&5
9349         fi
9350       else
9351         echo "cannot find nm_test_var in $nlist" >&5
9352       fi
9353     else
9354       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9355     fi
9356   else
9357     echo "$progname: failed program was:" >&5
9358     cat conftest.$ac_ext >&5
9359   fi
9360   rm -rf conftest* conftst*
9361
9362   # Do not use the global_symbol_pipe unless it works.
9363   if test yes = "$pipe_works"; then
9364     break
9365   else
9366     lt_cv_sys_global_symbol_pipe=
9367   fi
9368 done
9369
9370 fi
9371
9372 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9373   lt_cv_sys_global_symbol_to_cdecl=
9374 fi
9375 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9377 $as_echo "failed" >&6; }
9378 else
9379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9380 $as_echo "ok" >&6; }
9381 fi
9382
9383 # Response file support.
9384 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9385   nm_file_list_spec='@'
9386 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9387   nm_file_list_spec='@'
9388 fi
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9427 $as_echo_n "checking for sysroot... " >&6; }
9428
9429 # Check whether --with-sysroot was given.
9430 if test "${with_sysroot+set}" = set; then :
9431   withval=$with_sysroot;
9432 else
9433   with_sysroot=no
9434 fi
9435
9436
9437 lt_sysroot=
9438 case $with_sysroot in #(
9439  yes)
9440    if test yes = "$GCC"; then
9441      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9442    fi
9443    ;; #(
9444  /*)
9445    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9446    ;; #(
9447  no|'')
9448    ;; #(
9449  *)
9450    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9451 $as_echo "$with_sysroot" >&6; }
9452    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9453    ;;
9454 esac
9455
9456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9457 $as_echo "${lt_sysroot:-no}" >&6; }
9458
9459
9460
9461
9462
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9464 $as_echo_n "checking for a working dd... " >&6; }
9465 if ${ac_cv_path_lt_DD+:} false; then :
9466   $as_echo_n "(cached) " >&6
9467 else
9468   printf 0123456789abcdef0123456789abcdef >conftest.i
9469 cat conftest.i conftest.i >conftest2.i
9470 : ${lt_DD:=$DD}
9471 if test -z "$lt_DD"; then
9472   ac_path_lt_DD_found=false
9473   # Loop through the user's path and test for each of PROGNAME-LIST
9474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9475 for as_dir in $PATH
9476 do
9477   IFS=$as_save_IFS
9478   test -z "$as_dir" && as_dir=.
9479     for ac_prog in dd; do
9480     for ac_exec_ext in '' $ac_executable_extensions; do
9481       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9482       as_fn_executable_p "$ac_path_lt_DD" || continue
9483 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9484   cmp -s conftest.i conftest.out \
9485   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9486 fi
9487       $ac_path_lt_DD_found && break 3
9488     done
9489   done
9490   done
9491 IFS=$as_save_IFS
9492   if test -z "$ac_cv_path_lt_DD"; then
9493     :
9494   fi
9495 else
9496   ac_cv_path_lt_DD=$lt_DD
9497 fi
9498
9499 rm -f conftest.i conftest2.i conftest.out
9500 fi
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9502 $as_echo "$ac_cv_path_lt_DD" >&6; }
9503
9504
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9506 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9507 if ${lt_cv_truncate_bin+:} false; then :
9508   $as_echo_n "(cached) " >&6
9509 else
9510   printf 0123456789abcdef0123456789abcdef >conftest.i
9511 cat conftest.i conftest.i >conftest2.i
9512 lt_cv_truncate_bin=
9513 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9514   cmp -s conftest.i conftest.out \
9515   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9516 fi
9517 rm -f conftest.i conftest2.i conftest.out
9518 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9519 fi
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9521 $as_echo "$lt_cv_truncate_bin" >&6; }
9522
9523
9524
9525
9526
9527
9528
9529 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9530 func_cc_basename ()
9531 {
9532     for cc_temp in $*""; do
9533       case $cc_temp in
9534         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9535         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9536         \-*) ;;
9537         *) break;;
9538       esac
9539     done
9540     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9541 }
9542
9543 # Check whether --enable-libtool-lock was given.
9544 if test "${enable_libtool_lock+set}" = set; then :
9545   enableval=$enable_libtool_lock;
9546 fi
9547
9548 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9549
9550 # Some flags need to be propagated to the compiler or linker for good
9551 # libtool support.
9552 case $host in
9553 ia64-*-hpux*)
9554   # Find out what ABI is being produced by ac_compile, and set mode
9555   # options accordingly.
9556   echo 'int i;' > conftest.$ac_ext
9557   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9558   (eval $ac_compile) 2>&5
9559   ac_status=$?
9560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9561   test $ac_status = 0; }; then
9562     case `/usr/bin/file conftest.$ac_objext` in
9563       *ELF-32*)
9564         HPUX_IA64_MODE=32
9565         ;;
9566       *ELF-64*)
9567         HPUX_IA64_MODE=64
9568         ;;
9569     esac
9570   fi
9571   rm -rf conftest*
9572   ;;
9573 *-*-irix6*)
9574   # Find out what ABI is being produced by ac_compile, and set linker
9575   # options accordingly.
9576   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9577   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9578   (eval $ac_compile) 2>&5
9579   ac_status=$?
9580   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9581   test $ac_status = 0; }; then
9582     if test yes = "$lt_cv_prog_gnu_ld"; then
9583       case `/usr/bin/file conftest.$ac_objext` in
9584         *32-bit*)
9585           LD="${LD-ld} -melf32bsmip"
9586           ;;
9587         *N32*)
9588           LD="${LD-ld} -melf32bmipn32"
9589           ;;
9590         *64-bit*)
9591           LD="${LD-ld} -melf64bmip"
9592         ;;
9593       esac
9594     else
9595       case `/usr/bin/file conftest.$ac_objext` in
9596         *32-bit*)
9597           LD="${LD-ld} -32"
9598           ;;
9599         *N32*)
9600           LD="${LD-ld} -n32"
9601           ;;
9602         *64-bit*)
9603           LD="${LD-ld} -64"
9604           ;;
9605       esac
9606     fi
9607   fi
9608   rm -rf conftest*
9609   ;;
9610
9611 mips64*-*linux*)
9612   # Find out what ABI is being produced by ac_compile, and set linker
9613   # options accordingly.
9614   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9615   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9616   (eval $ac_compile) 2>&5
9617   ac_status=$?
9618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9619   test $ac_status = 0; }; then
9620     emul=elf
9621     case `/usr/bin/file conftest.$ac_objext` in
9622       *32-bit*)
9623         emul="${emul}32"
9624         ;;
9625       *64-bit*)
9626         emul="${emul}64"
9627         ;;
9628     esac
9629     case `/usr/bin/file conftest.$ac_objext` in
9630       *MSB*)
9631         emul="${emul}btsmip"
9632         ;;
9633       *LSB*)
9634         emul="${emul}ltsmip"
9635         ;;
9636     esac
9637     case `/usr/bin/file conftest.$ac_objext` in
9638       *N32*)
9639         emul="${emul}n32"
9640         ;;
9641     esac
9642     LD="${LD-ld} -m $emul"
9643   fi
9644   rm -rf conftest*
9645   ;;
9646
9647 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9648 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9649   # Find out what ABI is being produced by ac_compile, and set linker
9650   # options accordingly.  Note that the listed cases only cover the
9651   # situations where additional linker options are needed (such as when
9652   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9653   # vice versa); the common cases where no linker options are needed do
9654   # not appear in the list.
9655   echo 'int i;' > conftest.$ac_ext
9656   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9657   (eval $ac_compile) 2>&5
9658   ac_status=$?
9659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9660   test $ac_status = 0; }; then
9661     case `/usr/bin/file conftest.o` in
9662       *32-bit*)
9663         case $host in
9664           x86_64-*kfreebsd*-gnu)
9665             LD="${LD-ld} -m elf_i386_fbsd"
9666             ;;
9667           x86_64-*linux*)
9668             case `/usr/bin/file conftest.o` in
9669               *x86-64*)
9670                 LD="${LD-ld} -m elf32_x86_64"
9671                 ;;
9672               *)
9673                 LD="${LD-ld} -m elf_i386"
9674                 ;;
9675             esac
9676             ;;
9677           powerpc64le-*linux*)
9678             LD="${LD-ld} -m elf32lppclinux"
9679             ;;
9680           powerpc64-*linux*)
9681             LD="${LD-ld} -m elf32ppclinux"
9682             ;;
9683           s390x-*linux*)
9684             LD="${LD-ld} -m elf_s390"
9685             ;;
9686           sparc64-*linux*)
9687             LD="${LD-ld} -m elf32_sparc"
9688             ;;
9689         esac
9690         ;;
9691       *64-bit*)
9692         case $host in
9693           x86_64-*kfreebsd*-gnu)
9694             LD="${LD-ld} -m elf_x86_64_fbsd"
9695             ;;
9696           x86_64-*linux*)
9697             LD="${LD-ld} -m elf_x86_64"
9698             ;;
9699           powerpcle-*linux*)
9700             LD="${LD-ld} -m elf64lppc"
9701             ;;
9702           powerpc-*linux*)
9703             LD="${LD-ld} -m elf64ppc"
9704             ;;
9705           s390*-*linux*|s390*-*tpf*)
9706             LD="${LD-ld} -m elf64_s390"
9707             ;;
9708           sparc*-*linux*)
9709             LD="${LD-ld} -m elf64_sparc"
9710             ;;
9711         esac
9712         ;;
9713     esac
9714   fi
9715   rm -rf conftest*
9716   ;;
9717
9718 *-*-sco3.2v5*)
9719   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9720   SAVE_CFLAGS=$CFLAGS
9721   CFLAGS="$CFLAGS -belf"
9722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9723 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9724 if ${lt_cv_cc_needs_belf+:} false; then :
9725   $as_echo_n "(cached) " >&6
9726 else
9727   ac_ext=c
9728 ac_cpp='$CPP $CPPFLAGS'
9729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9732
9733      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9734 /* end confdefs.h.  */
9735
9736 int main (void)
9737 {
9738
9739  ;
9740  return 0;
9741 }
9742 _ACEOF
9743 if ac_fn_c_try_link "$LINENO"; then :
9744   lt_cv_cc_needs_belf=yes
9745 else
9746   lt_cv_cc_needs_belf=no
9747 fi
9748 rm -f core conftest.err conftest.$ac_objext \
9749     conftest$ac_exeext conftest.$ac_ext
9750      ac_ext=c
9751 ac_cpp='$CPP $CPPFLAGS'
9752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9755
9756 fi
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9758 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9759   if test yes != "$lt_cv_cc_needs_belf"; then
9760     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9761     CFLAGS=$SAVE_CFLAGS
9762   fi
9763   ;;
9764 *-*solaris*)
9765   # Find out what ABI is being produced by ac_compile, and set linker
9766   # options accordingly.
9767   echo 'int i;' > conftest.$ac_ext
9768   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9769   (eval $ac_compile) 2>&5
9770   ac_status=$?
9771   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9772   test $ac_status = 0; }; then
9773     case `/usr/bin/file conftest.o` in
9774     *64-bit*)
9775       case $lt_cv_prog_gnu_ld in
9776       yes*)
9777         case $host in
9778         i?86-*-solaris*|x86_64-*-solaris*)
9779           LD="${LD-ld} -m elf_x86_64"
9780           ;;
9781         sparc*-*-solaris*)
9782           LD="${LD-ld} -m elf64_sparc"
9783           ;;
9784         esac
9785         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9786         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9787           LD=${LD-ld}_sol2
9788         fi
9789         ;;
9790       *)
9791         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9792           LD="${LD-ld} -64"
9793         fi
9794         ;;
9795       esac
9796       ;;
9797     esac
9798   fi
9799   rm -rf conftest*
9800   ;;
9801 esac
9802
9803 need_locks=$enable_libtool_lock
9804
9805 if test -n "$ac_tool_prefix"; then
9806   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9807 set dummy ${ac_tool_prefix}mt; ac_word=$2
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9809 $as_echo_n "checking for $ac_word... " >&6; }
9810 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9811   $as_echo_n "(cached) " >&6
9812 else
9813   if test -n "$MANIFEST_TOOL"; then
9814   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9815 else
9816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9817 for as_dir in $PATH
9818 do
9819   IFS=$as_save_IFS
9820   test -z "$as_dir" && as_dir=.
9821     for ac_exec_ext in '' $ac_executable_extensions; do
9822   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9823     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9825     break 2
9826   fi
9827 done
9828   done
9829 IFS=$as_save_IFS
9830
9831 fi
9832 fi
9833 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9834 if test -n "$MANIFEST_TOOL"; then
9835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9836 $as_echo "$MANIFEST_TOOL" >&6; }
9837 else
9838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9839 $as_echo "no" >&6; }
9840 fi
9841
9842
9843 fi
9844 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9845   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9846   # Extract the first word of "mt", so it can be a program name with args.
9847 set dummy mt; ac_word=$2
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9849 $as_echo_n "checking for $ac_word... " >&6; }
9850 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9851   $as_echo_n "(cached) " >&6
9852 else
9853   if test -n "$ac_ct_MANIFEST_TOOL"; then
9854   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9855 else
9856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9857 for as_dir in $PATH
9858 do
9859   IFS=$as_save_IFS
9860   test -z "$as_dir" && as_dir=.
9861     for ac_exec_ext in '' $ac_executable_extensions; do
9862   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9863     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9865     break 2
9866   fi
9867 done
9868   done
9869 IFS=$as_save_IFS
9870
9871 fi
9872 fi
9873 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9874 if test -n "$ac_ct_MANIFEST_TOOL"; then
9875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9876 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9877 else
9878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9879 $as_echo "no" >&6; }
9880 fi
9881
9882   if test "x$ac_ct_MANIFEST_TOOL" = x; then
9883     MANIFEST_TOOL=":"
9884   else
9885     case $cross_compiling:$ac_tool_warned in
9886 yes:)
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9889 ac_tool_warned=yes ;;
9890 esac
9891     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9892   fi
9893 else
9894   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9895 fi
9896
9897 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9899 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9900 if ${lt_cv_path_mainfest_tool+:} false; then :
9901   $as_echo_n "(cached) " >&6
9902 else
9903   lt_cv_path_mainfest_tool=no
9904   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9905   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9906   cat conftest.err >&5
9907   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9908     lt_cv_path_mainfest_tool=yes
9909   fi
9910   rm -f conftest*
9911 fi
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9913 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9914 if test yes != "$lt_cv_path_mainfest_tool"; then
9915   MANIFEST_TOOL=:
9916 fi
9917
9918
9919
9920
9921
9922
9923   case $host_os in
9924     rhapsody* | darwin*)
9925     if test -n "$ac_tool_prefix"; then
9926   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9927 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9929 $as_echo_n "checking for $ac_word... " >&6; }
9930 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9931   $as_echo_n "(cached) " >&6
9932 else
9933   if test -n "$DSYMUTIL"; then
9934   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9935 else
9936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9937 for as_dir in $PATH
9938 do
9939   IFS=$as_save_IFS
9940   test -z "$as_dir" && as_dir=.
9941     for ac_exec_ext in '' $ac_executable_extensions; do
9942   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9943     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9945     break 2
9946   fi
9947 done
9948   done
9949 IFS=$as_save_IFS
9950
9951 fi
9952 fi
9953 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9954 if test -n "$DSYMUTIL"; then
9955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9956 $as_echo "$DSYMUTIL" >&6; }
9957 else
9958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9959 $as_echo "no" >&6; }
9960 fi
9961
9962
9963 fi
9964 if test -z "$ac_cv_prog_DSYMUTIL"; then
9965   ac_ct_DSYMUTIL=$DSYMUTIL
9966   # Extract the first word of "dsymutil", so it can be a program name with args.
9967 set dummy dsymutil; ac_word=$2
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9969 $as_echo_n "checking for $ac_word... " >&6; }
9970 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9971   $as_echo_n "(cached) " >&6
9972 else
9973   if test -n "$ac_ct_DSYMUTIL"; then
9974   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9975 else
9976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9977 for as_dir in $PATH
9978 do
9979   IFS=$as_save_IFS
9980   test -z "$as_dir" && as_dir=.
9981     for ac_exec_ext in '' $ac_executable_extensions; do
9982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9983     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9985     break 2
9986   fi
9987 done
9988   done
9989 IFS=$as_save_IFS
9990
9991 fi
9992 fi
9993 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9994 if test -n "$ac_ct_DSYMUTIL"; then
9995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9996 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9997 else
9998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9999 $as_echo "no" >&6; }
10000 fi
10001
10002   if test "x$ac_ct_DSYMUTIL" = x; then
10003     DSYMUTIL=":"
10004   else
10005     case $cross_compiling:$ac_tool_warned in
10006 yes:)
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10009 ac_tool_warned=yes ;;
10010 esac
10011     DSYMUTIL=$ac_ct_DSYMUTIL
10012   fi
10013 else
10014   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10015 fi
10016
10017     if test -n "$ac_tool_prefix"; then
10018   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10019 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10021 $as_echo_n "checking for $ac_word... " >&6; }
10022 if ${ac_cv_prog_NMEDIT+:} false; then :
10023   $as_echo_n "(cached) " >&6
10024 else
10025   if test -n "$NMEDIT"; then
10026   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10027 else
10028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10029 for as_dir in $PATH
10030 do
10031   IFS=$as_save_IFS
10032   test -z "$as_dir" && as_dir=.
10033     for ac_exec_ext in '' $ac_executable_extensions; do
10034   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10035     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10037     break 2
10038   fi
10039 done
10040   done
10041 IFS=$as_save_IFS
10042
10043 fi
10044 fi
10045 NMEDIT=$ac_cv_prog_NMEDIT
10046 if test -n "$NMEDIT"; then
10047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10048 $as_echo "$NMEDIT" >&6; }
10049 else
10050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10051 $as_echo "no" >&6; }
10052 fi
10053
10054
10055 fi
10056 if test -z "$ac_cv_prog_NMEDIT"; then
10057   ac_ct_NMEDIT=$NMEDIT
10058   # Extract the first word of "nmedit", so it can be a program name with args.
10059 set dummy nmedit; ac_word=$2
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10061 $as_echo_n "checking for $ac_word... " >&6; }
10062 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10063   $as_echo_n "(cached) " >&6
10064 else
10065   if test -n "$ac_ct_NMEDIT"; then
10066   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10067 else
10068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10069 for as_dir in $PATH
10070 do
10071   IFS=$as_save_IFS
10072   test -z "$as_dir" && as_dir=.
10073     for ac_exec_ext in '' $ac_executable_extensions; do
10074   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10075     ac_cv_prog_ac_ct_NMEDIT="nmedit"
10076     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10077     break 2
10078   fi
10079 done
10080   done
10081 IFS=$as_save_IFS
10082
10083 fi
10084 fi
10085 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10086 if test -n "$ac_ct_NMEDIT"; then
10087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10088 $as_echo "$ac_ct_NMEDIT" >&6; }
10089 else
10090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10091 $as_echo "no" >&6; }
10092 fi
10093
10094   if test "x$ac_ct_NMEDIT" = x; then
10095     NMEDIT=":"
10096   else
10097     case $cross_compiling:$ac_tool_warned in
10098 yes:)
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10101 ac_tool_warned=yes ;;
10102 esac
10103     NMEDIT=$ac_ct_NMEDIT
10104   fi
10105 else
10106   NMEDIT="$ac_cv_prog_NMEDIT"
10107 fi
10108
10109     if test -n "$ac_tool_prefix"; then
10110   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10111 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10113 $as_echo_n "checking for $ac_word... " >&6; }
10114 if ${ac_cv_prog_LIPO+:} false; then :
10115   $as_echo_n "(cached) " >&6
10116 else
10117   if test -n "$LIPO"; then
10118   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10119 else
10120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10121 for as_dir in $PATH
10122 do
10123   IFS=$as_save_IFS
10124   test -z "$as_dir" && as_dir=.
10125     for ac_exec_ext in '' $ac_executable_extensions; do
10126   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10127     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10129     break 2
10130   fi
10131 done
10132   done
10133 IFS=$as_save_IFS
10134
10135 fi
10136 fi
10137 LIPO=$ac_cv_prog_LIPO
10138 if test -n "$LIPO"; then
10139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10140 $as_echo "$LIPO" >&6; }
10141 else
10142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10143 $as_echo "no" >&6; }
10144 fi
10145
10146
10147 fi
10148 if test -z "$ac_cv_prog_LIPO"; then
10149   ac_ct_LIPO=$LIPO
10150   # Extract the first word of "lipo", so it can be a program name with args.
10151 set dummy lipo; ac_word=$2
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10153 $as_echo_n "checking for $ac_word... " >&6; }
10154 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10155   $as_echo_n "(cached) " >&6
10156 else
10157   if test -n "$ac_ct_LIPO"; then
10158   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10159 else
10160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10161 for as_dir in $PATH
10162 do
10163   IFS=$as_save_IFS
10164   test -z "$as_dir" && as_dir=.
10165     for ac_exec_ext in '' $ac_executable_extensions; do
10166   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10167     ac_cv_prog_ac_ct_LIPO="lipo"
10168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10169     break 2
10170   fi
10171 done
10172   done
10173 IFS=$as_save_IFS
10174
10175 fi
10176 fi
10177 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10178 if test -n "$ac_ct_LIPO"; then
10179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10180 $as_echo "$ac_ct_LIPO" >&6; }
10181 else
10182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10183 $as_echo "no" >&6; }
10184 fi
10185
10186   if test "x$ac_ct_LIPO" = x; then
10187     LIPO=":"
10188   else
10189     case $cross_compiling:$ac_tool_warned in
10190 yes:)
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10193 ac_tool_warned=yes ;;
10194 esac
10195     LIPO=$ac_ct_LIPO
10196   fi
10197 else
10198   LIPO="$ac_cv_prog_LIPO"
10199 fi
10200
10201     if test -n "$ac_tool_prefix"; then
10202   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10203 set dummy ${ac_tool_prefix}otool; ac_word=$2
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10205 $as_echo_n "checking for $ac_word... " >&6; }
10206 if ${ac_cv_prog_OTOOL+:} false; then :
10207   $as_echo_n "(cached) " >&6
10208 else
10209   if test -n "$OTOOL"; then
10210   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10211 else
10212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10213 for as_dir in $PATH
10214 do
10215   IFS=$as_save_IFS
10216   test -z "$as_dir" && as_dir=.
10217     for ac_exec_ext in '' $ac_executable_extensions; do
10218   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10219     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10221     break 2
10222   fi
10223 done
10224   done
10225 IFS=$as_save_IFS
10226
10227 fi
10228 fi
10229 OTOOL=$ac_cv_prog_OTOOL
10230 if test -n "$OTOOL"; then
10231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10232 $as_echo "$OTOOL" >&6; }
10233 else
10234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10235 $as_echo "no" >&6; }
10236 fi
10237
10238
10239 fi
10240 if test -z "$ac_cv_prog_OTOOL"; then
10241   ac_ct_OTOOL=$OTOOL
10242   # Extract the first word of "otool", so it can be a program name with args.
10243 set dummy otool; ac_word=$2
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10245 $as_echo_n "checking for $ac_word... " >&6; }
10246 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10247   $as_echo_n "(cached) " >&6
10248 else
10249   if test -n "$ac_ct_OTOOL"; then
10250   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10251 else
10252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10253 for as_dir in $PATH
10254 do
10255   IFS=$as_save_IFS
10256   test -z "$as_dir" && as_dir=.
10257     for ac_exec_ext in '' $ac_executable_extensions; do
10258   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10259     ac_cv_prog_ac_ct_OTOOL="otool"
10260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10261     break 2
10262   fi
10263 done
10264   done
10265 IFS=$as_save_IFS
10266
10267 fi
10268 fi
10269 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10270 if test -n "$ac_ct_OTOOL"; then
10271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10272 $as_echo "$ac_ct_OTOOL" >&6; }
10273 else
10274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10275 $as_echo "no" >&6; }
10276 fi
10277
10278   if test "x$ac_ct_OTOOL" = x; then
10279     OTOOL=":"
10280   else
10281     case $cross_compiling:$ac_tool_warned in
10282 yes:)
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10285 ac_tool_warned=yes ;;
10286 esac
10287     OTOOL=$ac_ct_OTOOL
10288   fi
10289 else
10290   OTOOL="$ac_cv_prog_OTOOL"
10291 fi
10292
10293     if test -n "$ac_tool_prefix"; then
10294   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10295 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10297 $as_echo_n "checking for $ac_word... " >&6; }
10298 if ${ac_cv_prog_OTOOL64+:} false; then :
10299   $as_echo_n "(cached) " >&6
10300 else
10301   if test -n "$OTOOL64"; then
10302   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10303 else
10304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10305 for as_dir in $PATH
10306 do
10307   IFS=$as_save_IFS
10308   test -z "$as_dir" && as_dir=.
10309     for ac_exec_ext in '' $ac_executable_extensions; do
10310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10311     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10313     break 2
10314   fi
10315 done
10316   done
10317 IFS=$as_save_IFS
10318
10319 fi
10320 fi
10321 OTOOL64=$ac_cv_prog_OTOOL64
10322 if test -n "$OTOOL64"; then
10323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10324 $as_echo "$OTOOL64" >&6; }
10325 else
10326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10327 $as_echo "no" >&6; }
10328 fi
10329
10330
10331 fi
10332 if test -z "$ac_cv_prog_OTOOL64"; then
10333   ac_ct_OTOOL64=$OTOOL64
10334   # Extract the first word of "otool64", so it can be a program name with args.
10335 set dummy otool64; ac_word=$2
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10337 $as_echo_n "checking for $ac_word... " >&6; }
10338 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10339   $as_echo_n "(cached) " >&6
10340 else
10341   if test -n "$ac_ct_OTOOL64"; then
10342   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10343 else
10344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10345 for as_dir in $PATH
10346 do
10347   IFS=$as_save_IFS
10348   test -z "$as_dir" && as_dir=.
10349     for ac_exec_ext in '' $ac_executable_extensions; do
10350   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10351     ac_cv_prog_ac_ct_OTOOL64="otool64"
10352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10353     break 2
10354   fi
10355 done
10356   done
10357 IFS=$as_save_IFS
10358
10359 fi
10360 fi
10361 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10362 if test -n "$ac_ct_OTOOL64"; then
10363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10364 $as_echo "$ac_ct_OTOOL64" >&6; }
10365 else
10366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10367 $as_echo "no" >&6; }
10368 fi
10369
10370   if test "x$ac_ct_OTOOL64" = x; then
10371     OTOOL64=":"
10372   else
10373     case $cross_compiling:$ac_tool_warned in
10374 yes:)
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10377 ac_tool_warned=yes ;;
10378 esac
10379     OTOOL64=$ac_ct_OTOOL64
10380   fi
10381 else
10382   OTOOL64="$ac_cv_prog_OTOOL64"
10383 fi
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10412 $as_echo_n "checking for -single_module linker flag... " >&6; }
10413 if ${lt_cv_apple_cc_single_mod+:} false; then :
10414   $as_echo_n "(cached) " >&6
10415 else
10416   lt_cv_apple_cc_single_mod=no
10417       if test -z "$LT_MULTI_MODULE"; then
10418         # By default we will add the -single_module flag. You can override
10419         # by either setting the environment variable LT_MULTI_MODULE
10420         # non-empty at configure time, or by adding -multi_module to the
10421         # link flags.
10422         rm -rf libconftest.dylib*
10423         echo "int foo(void){return 1;}" > conftest.c
10424         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10425 -dynamiclib -Wl,-single_module conftest.c" >&5
10426         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10427           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10428         _lt_result=$?
10429         # If there is a non-empty error log, and "single_module"
10430         # appears in it, assume the flag caused a linker warning
10431         if test -s conftest.err && $GREP single_module conftest.err; then
10432           cat conftest.err >&5
10433         # Otherwise, if the output was created with a 0 exit code from
10434         # the compiler, it worked.
10435         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10436           lt_cv_apple_cc_single_mod=yes
10437         else
10438           cat conftest.err >&5
10439         fi
10440         rm -rf libconftest.dylib*
10441         rm -f conftest.*
10442       fi
10443 fi
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10445 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10446
10447     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10448 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10449 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10450   $as_echo_n "(cached) " >&6
10451 else
10452   lt_cv_ld_exported_symbols_list=no
10453       save_LDFLAGS=$LDFLAGS
10454       echo "_main" > conftest.sym
10455       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10456       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10457 /* end confdefs.h.  */
10458
10459 int main (void)
10460 {
10461
10462  ;
10463  return 0;
10464 }
10465 _ACEOF
10466 if ac_fn_c_try_link "$LINENO"; then :
10467   lt_cv_ld_exported_symbols_list=yes
10468 else
10469   lt_cv_ld_exported_symbols_list=no
10470 fi
10471 rm -f core conftest.err conftest.$ac_objext \
10472     conftest$ac_exeext conftest.$ac_ext
10473         LDFLAGS=$save_LDFLAGS
10474
10475 fi
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10477 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10478
10479     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10480 $as_echo_n "checking for -force_load linker flag... " >&6; }
10481 if ${lt_cv_ld_force_load+:} false; then :
10482   $as_echo_n "(cached) " >&6
10483 else
10484   lt_cv_ld_force_load=no
10485       cat > conftest.c << _LT_EOF
10486 int forced_loaded() { return 2;}
10487 _LT_EOF
10488       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10489       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10490       echo "$AR cru libconftest.a conftest.o" >&5
10491       $AR cru libconftest.a conftest.o 2>&5
10492       echo "$RANLIB libconftest.a" >&5
10493       $RANLIB libconftest.a 2>&5
10494       cat > conftest.c << _LT_EOF
10495 int main() { return 0;}
10496 _LT_EOF
10497       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10498       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10499       _lt_result=$?
10500       if test -s conftest.err && $GREP force_load conftest.err; then
10501         cat conftest.err >&5
10502       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10503         lt_cv_ld_force_load=yes
10504       else
10505         cat conftest.err >&5
10506       fi
10507         rm -f conftest.err libconftest.a conftest conftest.c
10508         rm -rf conftest.dSYM
10509
10510 fi
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10512 $as_echo "$lt_cv_ld_force_load" >&6; }
10513     case $host_os in
10514     rhapsody* | darwin1.[012])
10515       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10516     darwin1.*)
10517       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10518     darwin*) # darwin 5.x on
10519       # if running on 10.5 or later, the deployment target defaults
10520       # to the OS version, if on x86, and 10.4, the deployment
10521       # target defaults to 10.4. Don't you love it?
10522       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10523         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10524           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10525         10.[012][,.]*)
10526           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10527         10.*)
10528           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10529       esac
10530     ;;
10531   esac
10532     if test yes = "$lt_cv_apple_cc_single_mod"; then
10533       _lt_dar_single_mod='$single_module'
10534     fi
10535     if test yes = "$lt_cv_ld_exported_symbols_list"; then
10536       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10537     else
10538       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10539     fi
10540     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10541       _lt_dsymutil='~$DSYMUTIL $lib || :'
10542     else
10543       _lt_dsymutil=
10544     fi
10545     ;;
10546   esac
10547
10548 # func_munge_path_list VARIABLE PATH
10549 # -----------------------------------
10550 # VARIABLE is name of variable containing _space_ separated list of
10551 # directories to be munged by the contents of PATH, which is string
10552 # having a format:
10553 # "DIR[:DIR]:"
10554 #       string "DIR[ DIR]" will be prepended to VARIABLE
10555 # ":DIR[:DIR]"
10556 #       string "DIR[ DIR]" will be appended to VARIABLE
10557 # "DIRP[:DIRP]::[DIRA:]DIRA"
10558 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10559 #       "DIRA[ DIRA]" will be appended to VARIABLE
10560 # "DIR[:DIR]"
10561 #       VARIABLE will be replaced by "DIR[ DIR]"
10562 func_munge_path_list ()
10563 {
10564     case x$2 in
10565     x)
10566         ;;
10567     *:)
10568         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10569         ;;
10570     x:*)
10571         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10572         ;;
10573     *::*)
10574         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10575         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10576         ;;
10577     *)
10578         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10579         ;;
10580     esac
10581 }
10582
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10584 $as_echo_n "checking for ANSI C header files... " >&6; }
10585 if ${ac_cv_header_stdc+:} false; then :
10586   $as_echo_n "(cached) " >&6
10587 else
10588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10589 /* end confdefs.h.  */
10590 #include <stdlib.h>
10591 #include <stdarg.h>
10592 #include <string.h>
10593 #include <float.h>
10594
10595 int main (void)
10596 {
10597
10598  ;
10599  return 0;
10600 }
10601 _ACEOF
10602 if ac_fn_c_try_compile "$LINENO"; then :
10603   ac_cv_header_stdc=yes
10604 else
10605   ac_cv_header_stdc=no
10606 fi
10607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10608
10609 if test $ac_cv_header_stdc = yes; then
10610   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10611   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10612 /* end confdefs.h.  */
10613 #include <string.h>
10614
10615 _ACEOF
10616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10617   $EGREP "memchr" >/dev/null 2>&1; then :
10618
10619 else
10620   ac_cv_header_stdc=no
10621 fi
10622 rm -f conftest*
10623
10624 fi
10625
10626 if test $ac_cv_header_stdc = yes; then
10627   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10629 /* end confdefs.h.  */
10630 #include <stdlib.h>
10631
10632 _ACEOF
10633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10634   $EGREP "free" >/dev/null 2>&1; then :
10635
10636 else
10637   ac_cv_header_stdc=no
10638 fi
10639 rm -f conftest*
10640
10641 fi
10642
10643 if test $ac_cv_header_stdc = yes; then
10644   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10645   if test "$cross_compiling" = yes; then :
10646   :
10647 else
10648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10649 /* end confdefs.h.  */
10650 #include <ctype.h>
10651 #include <stdlib.h>
10652 #if ((' ' & 0x0FF) == 0x020)
10653 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10654 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10655 #else
10656 # define ISLOWER(c) \
10657                    (('a' <= (c) && (c) <= 'i') \
10658                      || ('j' <= (c) && (c) <= 'r') \
10659                      || ('s' <= (c) && (c) <= 'z'))
10660 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10661 #endif
10662
10663 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10664 int
10665 main ()
10666 {
10667   int i;
10668   for (i = 0; i < 256; i++)
10669     if (XOR (islower (i), ISLOWER (i))
10670         || toupper (i) != TOUPPER (i))
10671       return 2;
10672   return 0;
10673 }
10674 _ACEOF
10675 if ac_fn_c_try_run "$LINENO"; then :
10676
10677 else
10678   ac_cv_header_stdc=no
10679 fi
10680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10681   conftest.$ac_objext conftest.beam conftest.$ac_ext
10682 fi
10683
10684 fi
10685 fi
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10687 $as_echo "$ac_cv_header_stdc" >&6; }
10688 if test $ac_cv_header_stdc = yes; then
10689
10690 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10691
10692 fi
10693
10694 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10695 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10696                   inttypes.h stdint.h unistd.h
10697 do :
10698   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10699 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10700 "
10701 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10702   cat >>confdefs.h <<_ACEOF
10703 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10704 _ACEOF
10705
10706 fi
10707
10708 done
10709
10710
10711 for ac_header in dlfcn.h
10712 do :
10713   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10714 "
10715 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10716   cat >>confdefs.h <<_ACEOF
10717 #define HAVE_DLFCN_H 1
10718 _ACEOF
10719
10720 fi
10721
10722 done
10723
10724 # ------------------------------------ #
10725 #  Determine libtool default behavior  #
10726 # ------------------------------------ #
10727
10728 #
10729 # Default behavior is to enable shared and static libraries on systems
10730 # where libtool knows how to build both library versions, and does not
10731 # require separate configuration and build runs for each flavor.
10732 #
10733
10734 xc_lt_want_enable_shared='yes'
10735 xc_lt_want_enable_static='yes'
10736
10737 #
10738 # User may have disabled shared or static libraries.
10739 #
10740 case "x$enable_shared" in # (
10741   xno)
10742     xc_lt_want_enable_shared='no'
10743     ;;
10744 esac
10745 case "x$enable_static" in # (
10746   xno)
10747     xc_lt_want_enable_static='no'
10748     ;;
10749 esac
10750 if test "x$xc_lt_want_enable_shared" = 'xno' &&
10751   test "x$xc_lt_want_enable_static" = 'xno'; then
10752   as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
10753 fi
10754
10755 #
10756 # Default behavior on systems that require independent configuration
10757 # and build runs for shared and static is to enable shared libraries
10758 # and disable static ones. On these systems option '--disable-shared'
10759 # must be used in order to build a proper static library.
10760 #
10761
10762 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
10763   test "x$xc_lt_want_enable_static" = 'xyes'; then
10764   case $host_os in # (
10765     pw32* | cegcc* | os2* | aix*)
10766       xc_lt_want_enable_static='no'
10767       ;;
10768   esac
10769 fi
10770
10771 #
10772 # Make libtool aware of current shared and static library preferences
10773 # taking in account that, depending on host characteristics, libtool
10774 # may modify these option preferences later in this configure script.
10775 #
10776
10777 enable_shared=$xc_lt_want_enable_shared
10778 enable_static=$xc_lt_want_enable_static
10779
10780 #
10781 # Default behavior is to build PIC objects for shared libraries and
10782 # non-PIC objects for static libraries.
10783 #
10784
10785 xc_lt_want_with_pic='default'
10786
10787 #
10788 # User may have specified PIC preference.
10789 #
10790
10791 case "x$with_pic" in # ((
10792   xno)
10793     xc_lt_want_with_pic='no'
10794     ;;
10795   xyes)
10796     xc_lt_want_with_pic='yes'
10797     ;;
10798 esac
10799
10800 #
10801 # Default behavior on some systems where building a shared library out
10802 # of non-PIC compiled objects will fail with following linker error
10803 # "relocation R_X86_64_32 can not be used when making a shared object"
10804 # is to build PIC objects even for static libraries. This behavior may
10805 # be overridden using 'configure --disable-shared --without-pic'.
10806 #
10807
10808 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
10809   case $host_cpu in # (
10810     x86_64 | amd64 | ia64)
10811       case $host_os in # (
10812         linux* | freebsd*)
10813           xc_lt_want_with_pic='yes'
10814           ;;
10815       esac
10816       ;;
10817   esac
10818 fi
10819
10820 #
10821 # Make libtool aware of current PIC preference taking in account that,
10822 # depending on host characteristics, libtool may modify PIC default
10823 # behavior to fit host system idiosyncrasies later in this script.
10824 #
10825
10826 with_pic=$xc_lt_want_with_pic
10827
10828 ## ----------------------- ##
10829 ##  Start of libtool code  ##
10830 ## ----------------------- ##
10831
10832
10833
10834
10835 # Set options
10836 enable_win32_dll=yes
10837
10838 case $host in
10839 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10840   if test -n "$ac_tool_prefix"; then
10841   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10842 set dummy ${ac_tool_prefix}as; ac_word=$2
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10844 $as_echo_n "checking for $ac_word... " >&6; }
10845 if ${ac_cv_prog_AS+:} false; then :
10846   $as_echo_n "(cached) " >&6
10847 else
10848   if test -n "$AS"; then
10849   ac_cv_prog_AS="$AS" # Let the user override the test.
10850 else
10851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10852 for as_dir in $PATH
10853 do
10854   IFS=$as_save_IFS
10855   test -z "$as_dir" && as_dir=.
10856     for ac_exec_ext in '' $ac_executable_extensions; do
10857   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10858     ac_cv_prog_AS="${ac_tool_prefix}as"
10859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10860     break 2
10861   fi
10862 done
10863   done
10864 IFS=$as_save_IFS
10865
10866 fi
10867 fi
10868 AS=$ac_cv_prog_AS
10869 if test -n "$AS"; then
10870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10871 $as_echo "$AS" >&6; }
10872 else
10873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10874 $as_echo "no" >&6; }
10875 fi
10876
10877
10878 fi
10879 if test -z "$ac_cv_prog_AS"; then
10880   ac_ct_AS=$AS
10881   # Extract the first word of "as", so it can be a program name with args.
10882 set dummy as; ac_word=$2
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10884 $as_echo_n "checking for $ac_word... " >&6; }
10885 if ${ac_cv_prog_ac_ct_AS+:} false; then :
10886   $as_echo_n "(cached) " >&6
10887 else
10888   if test -n "$ac_ct_AS"; then
10889   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10890 else
10891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10892 for as_dir in $PATH
10893 do
10894   IFS=$as_save_IFS
10895   test -z "$as_dir" && as_dir=.
10896     for ac_exec_ext in '' $ac_executable_extensions; do
10897   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10898     ac_cv_prog_ac_ct_AS="as"
10899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10900     break 2
10901   fi
10902 done
10903   done
10904 IFS=$as_save_IFS
10905
10906 fi
10907 fi
10908 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10909 if test -n "$ac_ct_AS"; then
10910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10911 $as_echo "$ac_ct_AS" >&6; }
10912 else
10913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10914 $as_echo "no" >&6; }
10915 fi
10916
10917   if test "x$ac_ct_AS" = x; then
10918     AS="false"
10919   else
10920     case $cross_compiling:$ac_tool_warned in
10921 yes:)
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10924 ac_tool_warned=yes ;;
10925 esac
10926     AS=$ac_ct_AS
10927   fi
10928 else
10929   AS="$ac_cv_prog_AS"
10930 fi
10931
10932   if test -n "$ac_tool_prefix"; then
10933   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10934 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10936 $as_echo_n "checking for $ac_word... " >&6; }
10937 if ${ac_cv_prog_DLLTOOL+:} false; then :
10938   $as_echo_n "(cached) " >&6
10939 else
10940   if test -n "$DLLTOOL"; then
10941   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10942 else
10943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10944 for as_dir in $PATH
10945 do
10946   IFS=$as_save_IFS
10947   test -z "$as_dir" && as_dir=.
10948     for ac_exec_ext in '' $ac_executable_extensions; do
10949   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10950     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10952     break 2
10953   fi
10954 done
10955   done
10956 IFS=$as_save_IFS
10957
10958 fi
10959 fi
10960 DLLTOOL=$ac_cv_prog_DLLTOOL
10961 if test -n "$DLLTOOL"; then
10962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10963 $as_echo "$DLLTOOL" >&6; }
10964 else
10965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10966 $as_echo "no" >&6; }
10967 fi
10968
10969
10970 fi
10971 if test -z "$ac_cv_prog_DLLTOOL"; then
10972   ac_ct_DLLTOOL=$DLLTOOL
10973   # Extract the first word of "dlltool", so it can be a program name with args.
10974 set dummy dlltool; ac_word=$2
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10976 $as_echo_n "checking for $ac_word... " >&6; }
10977 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10978   $as_echo_n "(cached) " >&6
10979 else
10980   if test -n "$ac_ct_DLLTOOL"; then
10981   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10982 else
10983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10984 for as_dir in $PATH
10985 do
10986   IFS=$as_save_IFS
10987   test -z "$as_dir" && as_dir=.
10988     for ac_exec_ext in '' $ac_executable_extensions; do
10989   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10990     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10992     break 2
10993   fi
10994 done
10995   done
10996 IFS=$as_save_IFS
10997
10998 fi
10999 fi
11000 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11001 if test -n "$ac_ct_DLLTOOL"; then
11002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11003 $as_echo "$ac_ct_DLLTOOL" >&6; }
11004 else
11005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11006 $as_echo "no" >&6; }
11007 fi
11008
11009   if test "x$ac_ct_DLLTOOL" = x; then
11010     DLLTOOL="false"
11011   else
11012     case $cross_compiling:$ac_tool_warned in
11013 yes:)
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11016 ac_tool_warned=yes ;;
11017 esac
11018     DLLTOOL=$ac_ct_DLLTOOL
11019   fi
11020 else
11021   DLLTOOL="$ac_cv_prog_DLLTOOL"
11022 fi
11023
11024   if test -n "$ac_tool_prefix"; then
11025   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11026 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11028 $as_echo_n "checking for $ac_word... " >&6; }
11029 if ${ac_cv_prog_OBJDUMP+:} false; then :
11030   $as_echo_n "(cached) " >&6
11031 else
11032   if test -n "$OBJDUMP"; then
11033   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11034 else
11035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11036 for as_dir in $PATH
11037 do
11038   IFS=$as_save_IFS
11039   test -z "$as_dir" && as_dir=.
11040     for ac_exec_ext in '' $ac_executable_extensions; do
11041   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11042     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11044     break 2
11045   fi
11046 done
11047   done
11048 IFS=$as_save_IFS
11049
11050 fi
11051 fi
11052 OBJDUMP=$ac_cv_prog_OBJDUMP
11053 if test -n "$OBJDUMP"; then
11054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11055 $as_echo "$OBJDUMP" >&6; }
11056 else
11057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11058 $as_echo "no" >&6; }
11059 fi
11060
11061
11062 fi
11063 if test -z "$ac_cv_prog_OBJDUMP"; then
11064   ac_ct_OBJDUMP=$OBJDUMP
11065   # Extract the first word of "objdump", so it can be a program name with args.
11066 set dummy objdump; ac_word=$2
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11068 $as_echo_n "checking for $ac_word... " >&6; }
11069 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11070   $as_echo_n "(cached) " >&6
11071 else
11072   if test -n "$ac_ct_OBJDUMP"; then
11073   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11074 else
11075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11076 for as_dir in $PATH
11077 do
11078   IFS=$as_save_IFS
11079   test -z "$as_dir" && as_dir=.
11080     for ac_exec_ext in '' $ac_executable_extensions; do
11081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11082     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11084     break 2
11085   fi
11086 done
11087   done
11088 IFS=$as_save_IFS
11089
11090 fi
11091 fi
11092 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11093 if test -n "$ac_ct_OBJDUMP"; then
11094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11095 $as_echo "$ac_ct_OBJDUMP" >&6; }
11096 else
11097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11098 $as_echo "no" >&6; }
11099 fi
11100
11101   if test "x$ac_ct_OBJDUMP" = x; then
11102     OBJDUMP="false"
11103   else
11104     case $cross_compiling:$ac_tool_warned in
11105 yes:)
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11108 ac_tool_warned=yes ;;
11109 esac
11110     OBJDUMP=$ac_ct_OBJDUMP
11111   fi
11112 else
11113   OBJDUMP="$ac_cv_prog_OBJDUMP"
11114 fi
11115
11116   ;;
11117 esac
11118
11119 test -z "$AS" && AS=as
11120
11121
11122
11123
11124
11125 test -z "$DLLTOOL" && DLLTOOL=dlltool
11126
11127
11128
11129
11130
11131 test -z "$OBJDUMP" && OBJDUMP=objdump
11132
11133
11134
11135
11136
11137
11138
11139         enable_dlopen=no
11140
11141
11142
11143             # Check whether --enable-shared was given.
11144 if test "${enable_shared+set}" = set; then :
11145   enableval=$enable_shared; p=${PACKAGE-default}
11146     case $enableval in
11147     yes) enable_shared=yes ;;
11148     no) enable_shared=no ;;
11149     *)
11150       enable_shared=no
11151       # Look at the argument we got.  We use all the common list separators.
11152       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11153       for pkg in $enableval; do
11154         IFS=$lt_save_ifs
11155         if test "X$pkg" = "X$p"; then
11156           enable_shared=yes
11157         fi
11158       done
11159       IFS=$lt_save_ifs
11160       ;;
11161     esac
11162 else
11163   enable_shared=yes
11164 fi
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174   # Check whether --enable-static was given.
11175 if test "${enable_static+set}" = set; then :
11176   enableval=$enable_static; p=${PACKAGE-default}
11177     case $enableval in
11178     yes) enable_static=yes ;;
11179     no) enable_static=no ;;
11180     *)
11181      enable_static=no
11182       # Look at the argument we got.  We use all the common list separators.
11183       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11184       for pkg in $enableval; do
11185         IFS=$lt_save_ifs
11186         if test "X$pkg" = "X$p"; then
11187           enable_static=yes
11188         fi
11189       done
11190       IFS=$lt_save_ifs
11191       ;;
11192     esac
11193 else
11194   enable_static=yes
11195 fi
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206 # Check whether --with-pic was given.
11207 if test "${with_pic+set}" = set; then :
11208   withval=$with_pic; lt_p=${PACKAGE-default}
11209     case $withval in
11210     yes|no) pic_mode=$withval ;;
11211     *)
11212       pic_mode=default
11213       # Look at the argument we got.  We use all the common list separators.
11214       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11215       for lt_pkg in $withval; do
11216         IFS=$lt_save_ifs
11217         if test "X$lt_pkg" = "X$lt_p"; then
11218           pic_mode=yes
11219         fi
11220       done
11221       IFS=$lt_save_ifs
11222       ;;
11223     esac
11224 else
11225   pic_mode=default
11226 fi
11227
11228
11229
11230
11231
11232
11233
11234
11235   # Check whether --enable-fast-install was given.
11236 if test "${enable_fast_install+set}" = set; then :
11237   enableval=$enable_fast_install; p=${PACKAGE-default}
11238     case $enableval in
11239     yes) enable_fast_install=yes ;;
11240     no) enable_fast_install=no ;;
11241     *)
11242       enable_fast_install=no
11243       # Look at the argument we got.  We use all the common list separators.
11244       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11245       for pkg in $enableval; do
11246         IFS=$lt_save_ifs
11247         if test "X$pkg" = "X$p"; then
11248           enable_fast_install=yes
11249         fi
11250       done
11251       IFS=$lt_save_ifs
11252       ;;
11253     esac
11254 else
11255   enable_fast_install=yes
11256 fi
11257
11258
11259
11260
11261
11262
11263
11264
11265   shared_archive_member_spec=
11266 case $host,$enable_shared in
11267 power*-*-aix[5-9]*,yes)
11268   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11269 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11270
11271 # Check whether --with-aix-soname was given.
11272 if test "${with_aix_soname+set}" = set; then :
11273   withval=$with_aix_soname; case $withval in
11274     aix|svr4|both)
11275       ;;
11276     *)
11277       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11278       ;;
11279     esac
11280     lt_cv_with_aix_soname=$with_aix_soname
11281 else
11282   if ${lt_cv_with_aix_soname+:} false; then :
11283   $as_echo_n "(cached) " >&6
11284 else
11285   lt_cv_with_aix_soname=aix
11286 fi
11287
11288     with_aix_soname=$lt_cv_with_aix_soname
11289 fi
11290
11291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11292 $as_echo "$with_aix_soname" >&6; }
11293   if test aix != "$with_aix_soname"; then
11294     # For the AIX way of multilib, we name the shared archive member
11295     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11296     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11297     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11298     # the AIX toolchain works better with OBJECT_MODE set (default 32).
11299     if test 64 = "${OBJECT_MODE-32}"; then
11300       shared_archive_member_spec=shr_64
11301     else
11302       shared_archive_member_spec=shr
11303     fi
11304   fi
11305   ;;
11306 *)
11307   with_aix_soname=aix
11308   ;;
11309 esac
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320 # This can be used to rebuild libtool when needed
11321 LIBTOOL_DEPS=$ltmain
11322
11323 # Always use our own libtool.
11324 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355 test -z "$LN_S" && LN_S="ln -s"
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370 if test -n "${ZSH_VERSION+set}"; then
11371    setopt NO_GLOB_SUBST
11372 fi
11373
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11375 $as_echo_n "checking for objdir... " >&6; }
11376 if ${lt_cv_objdir+:} false; then :
11377   $as_echo_n "(cached) " >&6
11378 else
11379   rm -f .libs 2>/dev/null
11380 mkdir .libs 2>/dev/null
11381 if test -d .libs; then
11382   lt_cv_objdir=.libs
11383 else
11384   # MS-DOS does not allow filenames that begin with a dot.
11385   lt_cv_objdir=_libs
11386 fi
11387 rmdir .libs 2>/dev/null
11388 fi
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11390 $as_echo "$lt_cv_objdir" >&6; }
11391 objdir=$lt_cv_objdir
11392
11393
11394
11395
11396
11397 cat >>confdefs.h <<_ACEOF
11398 #define LT_OBJDIR "$lt_cv_objdir/"
11399 _ACEOF
11400
11401
11402
11403
11404 case $host_os in
11405 aix3*)
11406   # AIX sometimes has problems with the GCC collect2 program.  For some
11407   # reason, if we set the COLLECT_NAMES environment variable, the problems
11408   # vanish in a puff of smoke.
11409   if test set != "${COLLECT_NAMES+set}"; then
11410     COLLECT_NAMES=
11411     export COLLECT_NAMES
11412   fi
11413   ;;
11414 esac
11415
11416 # Global variables:
11417 ofile=libtool
11418 can_build_shared=yes
11419
11420 # All known linkers require a '.a' archive for static linking (except MSVC,
11421 # which needs '.lib').
11422 libext=a
11423
11424 with_gnu_ld=$lt_cv_prog_gnu_ld
11425
11426 old_CC=$CC
11427 old_CFLAGS=$CFLAGS
11428
11429 # Set sane defaults for various variables
11430 test -z "$CC" && CC=cc
11431 test -z "$LTCC" && LTCC=$CC
11432 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11433 test -z "$LD" && LD=ld
11434 test -z "$ac_objext" && ac_objext=o
11435
11436 func_cc_basename $compiler
11437 cc_basename=$func_cc_basename_result
11438
11439
11440 # Only perform the check for file, if the check method requires it
11441 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11442 case $deplibs_check_method in
11443 file_magic*)
11444   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11445     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11446 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11447 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11448   $as_echo_n "(cached) " >&6
11449 else
11450   case $MAGIC_CMD in
11451 [\\/*] |  ?:[\\/]*)
11452   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11453   ;;
11454 *)
11455   lt_save_MAGIC_CMD=$MAGIC_CMD
11456   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11457   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11458   for ac_dir in $ac_dummy; do
11459     IFS=$lt_save_ifs
11460     test -z "$ac_dir" && ac_dir=.
11461     if test -f "$ac_dir/${ac_tool_prefix}file"; then
11462       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11463       if test -n "$file_magic_test_file"; then
11464         case $deplibs_check_method in
11465         "file_magic "*)
11466           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11467           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11468           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11469             $EGREP "$file_magic_regex" > /dev/null; then
11470             :
11471           else
11472             cat <<_LT_EOF 1>&2
11473
11474 *** Warning: the command libtool uses to detect shared libraries,
11475 *** $file_magic_cmd, produces output that libtool cannot recognize.
11476 *** The result is that libtool may fail to recognize shared libraries
11477 *** as such.  This will affect the creation of libtool libraries that
11478 *** depend on shared libraries, but programs linked with such libtool
11479 *** libraries will work regardless of this problem.  Nevertheless, you
11480 *** may want to report the problem to your system manager and/or to
11481 *** bug-libtool@gnu.org
11482
11483 _LT_EOF
11484           fi ;;
11485         esac
11486       fi
11487       break
11488     fi
11489   done
11490   IFS=$lt_save_ifs
11491   MAGIC_CMD=$lt_save_MAGIC_CMD
11492   ;;
11493 esac
11494 fi
11495
11496 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11497 if test -n "$MAGIC_CMD"; then
11498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11499 $as_echo "$MAGIC_CMD" >&6; }
11500 else
11501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11502 $as_echo "no" >&6; }
11503 fi
11504
11505
11506
11507
11508
11509 if test -z "$lt_cv_path_MAGIC_CMD"; then
11510   if test -n "$ac_tool_prefix"; then
11511     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11512 $as_echo_n "checking for file... " >&6; }
11513 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11514   $as_echo_n "(cached) " >&6
11515 else
11516   case $MAGIC_CMD in
11517 [\\/*] |  ?:[\\/]*)
11518   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11519   ;;
11520 *)
11521   lt_save_MAGIC_CMD=$MAGIC_CMD
11522   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11523   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11524   for ac_dir in $ac_dummy; do
11525     IFS=$lt_save_ifs
11526     test -z "$ac_dir" && ac_dir=.
11527     if test -f "$ac_dir/file"; then
11528       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11529       if test -n "$file_magic_test_file"; then
11530         case $deplibs_check_method in
11531         "file_magic "*)
11532           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11533           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11534           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11535             $EGREP "$file_magic_regex" > /dev/null; then
11536             :
11537           else
11538             cat <<_LT_EOF 1>&2
11539
11540 *** Warning: the command libtool uses to detect shared libraries,
11541 *** $file_magic_cmd, produces output that libtool cannot recognize.
11542 *** The result is that libtool may fail to recognize shared libraries
11543 *** as such.  This will affect the creation of libtool libraries that
11544 *** depend on shared libraries, but programs linked with such libtool
11545 *** libraries will work regardless of this problem.  Nevertheless, you
11546 *** may want to report the problem to your system manager and/or to
11547 *** bug-libtool@gnu.org
11548
11549 _LT_EOF
11550           fi ;;
11551         esac
11552       fi
11553       break
11554     fi
11555   done
11556   IFS=$lt_save_ifs
11557   MAGIC_CMD=$lt_save_MAGIC_CMD
11558   ;;
11559 esac
11560 fi
11561
11562 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11563 if test -n "$MAGIC_CMD"; then
11564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11565 $as_echo "$MAGIC_CMD" >&6; }
11566 else
11567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11568 $as_echo "no" >&6; }
11569 fi
11570
11571
11572   else
11573     MAGIC_CMD=:
11574   fi
11575 fi
11576
11577   fi
11578   ;;
11579 esac
11580
11581 # Use C for the default configuration in the libtool script
11582
11583 lt_save_CC=$CC
11584 ac_ext=c
11585 ac_cpp='$CPP $CPPFLAGS'
11586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11589
11590
11591 # Source file extension for C test sources.
11592 ac_ext=c
11593
11594 # Object file extension for compiled C test sources.
11595 objext=o
11596 objext=$objext
11597
11598 # Code to be used in simple compile tests
11599 lt_simple_compile_test_code="int some_variable = 0;"
11600
11601 # Code to be used in simple link tests
11602 lt_simple_link_test_code='int main(){return(0);}'
11603
11604
11605
11606
11607
11608
11609
11610 # If no C compiler was specified, use CC.
11611 LTCC=${LTCC-"$CC"}
11612
11613 # If no C compiler flags were specified, use CFLAGS.
11614 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11615
11616 # Allow CC to be a program name with arguments.
11617 compiler=$CC
11618
11619 # Save the default compiler, since it gets overwritten when the other
11620 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11621 compiler_DEFAULT=$CC
11622
11623 # save warnings/boilerplate of simple test code
11624 ac_outfile=conftest.$ac_objext
11625 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11626 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11627 _lt_compiler_boilerplate=`cat conftest.err`
11628 $RM conftest*
11629
11630 ac_outfile=conftest.$ac_objext
11631 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11632 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11633 _lt_linker_boilerplate=`cat conftest.err`
11634 $RM -r conftest*
11635
11636
11637 ## CAVEAT EMPTOR:
11638 ## There is no encapsulation within the following macros, do not change
11639 ## the running order or otherwise move them around unless you know exactly
11640 ## what you are doing...
11641 if test -n "$compiler"; then
11642
11643 lt_prog_compiler_no_builtin_flag=
11644
11645 if test yes = "$GCC"; then
11646   case $cc_basename in
11647   nvcc*)
11648     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11649   *)
11650     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11651   esac
11652
11653   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11654 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11655 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11656   $as_echo_n "(cached) " >&6
11657 else
11658   lt_cv_prog_compiler_rtti_exceptions=no
11659    ac_outfile=conftest.$ac_objext
11660    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11661    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
11662    # Insert the option either (1) after the last *FLAGS variable, or
11663    # (2) before a word containing "conftest.", or (3) at the end.
11664    # Note that $ac_compile itself does not contain backslashes and begins
11665    # with a dollar sign (not a hyphen), so the echo should work correctly.
11666    # The option is referenced via a variable to avoid confusing sed.
11667    lt_compile=`echo "$ac_compile" | $SED \
11668    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11669    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11670    -e 's:$: $lt_compiler_flag:'`
11671    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11672    (eval "$lt_compile" 2>conftest.err)
11673    ac_status=$?
11674    cat conftest.err >&5
11675    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676    if (exit $ac_status) && test -s "$ac_outfile"; then
11677      # The compiler can only warn and ignore the option if not recognized
11678      # So say no if there are warnings other than the usual output.
11679      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11680      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11681      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11682        lt_cv_prog_compiler_rtti_exceptions=yes
11683      fi
11684    fi
11685    $RM conftest*
11686
11687 fi
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11689 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11690
11691 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11692     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11693 else
11694     :
11695 fi
11696
11697 fi
11698
11699
11700
11701
11702
11703
11704   lt_prog_compiler_wl=
11705 lt_prog_compiler_pic=
11706 lt_prog_compiler_static=
11707
11708
11709   if test yes = "$GCC"; then
11710     lt_prog_compiler_wl='-Wl,'
11711     lt_prog_compiler_static='-static'
11712
11713     case $host_os in
11714       aix*)
11715       # All AIX code is PIC.
11716       if test ia64 = "$host_cpu"; then
11717         # AIX 5 now supports IA64 processor
11718         lt_prog_compiler_static='-Bstatic'
11719       fi
11720       lt_prog_compiler_pic='-fPIC'
11721       ;;
11722
11723     amigaos*)
11724       case $host_cpu in
11725       powerpc)
11726             # see comment about AmigaOS4 .so support
11727             lt_prog_compiler_pic='-fPIC'
11728         ;;
11729       m68k)
11730             # FIXME: we need at least 68020 code to build shared libraries, but
11731             # adding the '-m68020' flag to GCC prevents building anything better,
11732             # like '-m68040'.
11733             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11734         ;;
11735       esac
11736       ;;
11737
11738     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11739       # PIC is the default for these OSes.
11740       ;;
11741
11742     mingw* | cygwin* | pw32* | os2* | cegcc*)
11743       # This hack is so that the source file can tell whether it is being
11744       # built for inclusion in a dll (and should export symbols for example).
11745       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11746       # (--disable-auto-import) libraries
11747       lt_prog_compiler_pic='-DDLL_EXPORT'
11748       case $host_os in
11749       os2*)
11750         lt_prog_compiler_static='$wl-static'
11751         ;;
11752       esac
11753       ;;
11754
11755     darwin* | rhapsody*)
11756       # PIC is the default on this platform
11757       # Common symbols not allowed in MH_DYLIB files
11758       lt_prog_compiler_pic='-fno-common'
11759       ;;
11760
11761     haiku*)
11762       # PIC is the default for Haiku.
11763       # The "-static" flag exists, but is broken.
11764       lt_prog_compiler_static=
11765       ;;
11766
11767     hpux*)
11768       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11769       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11770       # sets the default TLS model and affects inlining.
11771       case $host_cpu in
11772       hppa*64*)
11773         # +Z the default
11774         ;;
11775       *)
11776         lt_prog_compiler_pic='-fPIC'
11777         ;;
11778       esac
11779       ;;
11780
11781     interix[3-9]*)
11782       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11783       # Instead, we relocate shared libraries at runtime.
11784       ;;
11785
11786     msdosdjgpp*)
11787       # Just because we use GCC doesn't mean we suddenly get shared libraries
11788       # on systems that don't support them.
11789       lt_prog_compiler_can_build_shared=no
11790       enable_shared=no
11791       ;;
11792
11793     *nto* | *qnx*)
11794       # QNX uses GNU C++, but need to define -shared option too, otherwise
11795       # it will coredump.
11796       lt_prog_compiler_pic='-fPIC -shared'
11797       ;;
11798
11799     sysv4*MP*)
11800       if test -d /usr/nec; then
11801         lt_prog_compiler_pic=-Kconform_pic
11802       fi
11803       ;;
11804
11805     *)
11806       lt_prog_compiler_pic='-fPIC'
11807       ;;
11808     esac
11809
11810     case $cc_basename in
11811     nvcc*) # Cuda Compiler Driver 2.2
11812       lt_prog_compiler_wl='-Xlinker '
11813       if test -n "$lt_prog_compiler_pic"; then
11814         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11815       fi
11816       ;;
11817     esac
11818   else
11819     # PORTME Check for flag to pass linker flags through the system compiler.
11820     case $host_os in
11821     aix*)
11822       lt_prog_compiler_wl='-Wl,'
11823       if test ia64 = "$host_cpu"; then
11824         # AIX 5 now supports IA64 processor
11825         lt_prog_compiler_static='-Bstatic'
11826       else
11827         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11828       fi
11829       ;;
11830
11831     darwin* | rhapsody*)
11832       # PIC is the default on this platform
11833       # Common symbols not allowed in MH_DYLIB files
11834       lt_prog_compiler_pic='-fno-common'
11835       case $cc_basename in
11836       nagfor*)
11837         # NAG Fortran compiler
11838         lt_prog_compiler_wl='-Wl,-Wl,,'
11839         lt_prog_compiler_pic='-PIC'
11840         lt_prog_compiler_static='-Bstatic'
11841         ;;
11842       esac
11843       ;;
11844
11845     mingw* | cygwin* | pw32* | os2* | cegcc*)
11846       # This hack is so that the source file can tell whether it is being
11847       # built for inclusion in a dll (and should export symbols for example).
11848       lt_prog_compiler_pic='-DDLL_EXPORT'
11849       case $host_os in
11850       os2*)
11851         lt_prog_compiler_static='$wl-static'
11852         ;;
11853       esac
11854       ;;
11855
11856     hpux9* | hpux10* | hpux11*)
11857       lt_prog_compiler_wl='-Wl,'
11858       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11859       # not for PA HP-UX.
11860       case $host_cpu in
11861       hppa*64*|ia64*)
11862         # +Z the default
11863         ;;
11864       *)
11865         lt_prog_compiler_pic='+Z'
11866         ;;
11867       esac
11868       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11869       lt_prog_compiler_static='$wl-a ${wl}archive'
11870       ;;
11871
11872     irix5* | irix6* | nonstopux*)
11873       lt_prog_compiler_wl='-Wl,'
11874       # PIC (with -KPIC) is the default.
11875       lt_prog_compiler_static='-non_shared'
11876       ;;
11877
11878     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11879       case $cc_basename in
11880       # old Intel for x86_64, which still supported -KPIC.
11881       ecc*)
11882         lt_prog_compiler_wl='-Wl,'
11883         lt_prog_compiler_pic='-KPIC'
11884         lt_prog_compiler_static='-static'
11885         ;;
11886       # flang / f18. f95 an alias for gfortran or flang on Debian
11887       flang* | f18* | f95*)
11888         lt_prog_compiler_wl='-Wl,'
11889         lt_prog_compiler_pic='-fPIC'
11890         lt_prog_compiler_static='-static'
11891         ;;
11892       # icc used to be incompatible with GCC.
11893       # ICC 10 doesn't accept -KPIC any more.
11894       icc* | ifort*)
11895         lt_prog_compiler_wl='-Wl,'
11896         lt_prog_compiler_pic='-fPIC'
11897         lt_prog_compiler_static='-static'
11898         ;;
11899       # Lahey Fortran 8.1.
11900       lf95*)
11901         lt_prog_compiler_wl='-Wl,'
11902         lt_prog_compiler_pic='--shared'
11903         lt_prog_compiler_static='--static'
11904         ;;
11905       nagfor*)
11906         # NAG Fortran compiler
11907         lt_prog_compiler_wl='-Wl,-Wl,,'
11908         lt_prog_compiler_pic='-PIC'
11909         lt_prog_compiler_static='-Bstatic'
11910         ;;
11911       tcc*)
11912         # Fabrice Bellard et al's Tiny C Compiler
11913         lt_prog_compiler_wl='-Wl,'
11914         lt_prog_compiler_pic='-fPIC'
11915         lt_prog_compiler_static='-static'
11916         ;;
11917       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11918         # Portland Group compilers (*not* the Pentium gcc compiler,
11919         # which looks to be a dead project)
11920         lt_prog_compiler_wl='-Wl,'
11921         lt_prog_compiler_pic='-fpic'
11922         lt_prog_compiler_static='-Bstatic'
11923         ;;
11924       ccc*)
11925         lt_prog_compiler_wl='-Wl,'
11926         # All Alpha code is PIC.
11927         lt_prog_compiler_static='-non_shared'
11928         ;;
11929       xl* | bgxl* | bgf* | mpixl*)
11930         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11931         lt_prog_compiler_wl='-Wl,'
11932         lt_prog_compiler_pic='-qpic'
11933         lt_prog_compiler_static='-qstaticlink'
11934         ;;
11935       *)
11936         case `$CC -V 2>&1 | sed 5q` in
11937         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11938           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11939           lt_prog_compiler_pic='-KPIC'
11940           lt_prog_compiler_static='-Bstatic'
11941           lt_prog_compiler_wl=''
11942           ;;
11943         *Sun\ F* | *Sun*Fortran*)
11944           lt_prog_compiler_pic='-KPIC'
11945           lt_prog_compiler_static='-Bstatic'
11946           lt_prog_compiler_wl='-Qoption ld '
11947           ;;
11948         *Sun\ C*)
11949           # Sun C 5.9
11950           lt_prog_compiler_pic='-KPIC'
11951           lt_prog_compiler_static='-Bstatic'
11952           lt_prog_compiler_wl='-Wl,'
11953           ;;
11954         *Intel*\ [CF]*Compiler*)
11955           lt_prog_compiler_wl='-Wl,'
11956           lt_prog_compiler_pic='-fPIC'
11957           lt_prog_compiler_static='-static'
11958           ;;
11959         *Portland\ Group*)
11960           lt_prog_compiler_wl='-Wl,'
11961           lt_prog_compiler_pic='-fpic'
11962           lt_prog_compiler_static='-Bstatic'
11963           ;;
11964         esac
11965         ;;
11966       esac
11967       ;;
11968
11969     newsos6)
11970       lt_prog_compiler_pic='-KPIC'
11971       lt_prog_compiler_static='-Bstatic'
11972       ;;
11973
11974     *nto* | *qnx*)
11975       # QNX uses GNU C++, but need to define -shared option too, otherwise
11976       # it will coredump.
11977       lt_prog_compiler_pic='-fPIC -shared'
11978       ;;
11979
11980     osf3* | osf4* | osf5*)
11981       lt_prog_compiler_wl='-Wl,'
11982       # All OSF/1 code is PIC.
11983       lt_prog_compiler_static='-non_shared'
11984       ;;
11985
11986     rdos*)
11987       lt_prog_compiler_static='-non_shared'
11988       ;;
11989
11990     solaris*)
11991       lt_prog_compiler_pic='-KPIC'
11992       lt_prog_compiler_static='-Bstatic'
11993       case $cc_basename in
11994       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11995         lt_prog_compiler_wl='-Qoption ld ';;
11996       *)
11997         lt_prog_compiler_wl='-Wl,';;
11998       esac
11999       ;;
12000
12001     sunos4*)
12002       lt_prog_compiler_wl='-Qoption ld '
12003       lt_prog_compiler_pic='-PIC'
12004       lt_prog_compiler_static='-Bstatic'
12005       ;;
12006
12007     sysv4 | sysv4.2uw2* | sysv4.3*)
12008       lt_prog_compiler_wl='-Wl,'
12009       lt_prog_compiler_pic='-KPIC'
12010       lt_prog_compiler_static='-Bstatic'
12011       ;;
12012
12013     sysv4*MP*)
12014       if test -d /usr/nec; then
12015         lt_prog_compiler_pic='-Kconform_pic'
12016         lt_prog_compiler_static='-Bstatic'
12017       fi
12018       ;;
12019
12020     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12021       lt_prog_compiler_wl='-Wl,'
12022       lt_prog_compiler_pic='-KPIC'
12023       lt_prog_compiler_static='-Bstatic'
12024       ;;
12025
12026     unicos*)
12027       lt_prog_compiler_wl='-Wl,'
12028       lt_prog_compiler_can_build_shared=no
12029       ;;
12030
12031     uts4*)
12032       lt_prog_compiler_pic='-pic'
12033       lt_prog_compiler_static='-Bstatic'
12034       ;;
12035
12036     *)
12037       lt_prog_compiler_can_build_shared=no
12038       ;;
12039     esac
12040   fi
12041
12042 case $host_os in
12043   # For platforms that do not support PIC, -DPIC is meaningless:
12044   *djgpp*)
12045     lt_prog_compiler_pic=
12046     ;;
12047   *)
12048     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12049     ;;
12050 esac
12051
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12053 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12054 if ${lt_cv_prog_compiler_pic+:} false; then :
12055   $as_echo_n "(cached) " >&6
12056 else
12057   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12058 fi
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12060 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12061 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12062
12063 #
12064 # Check to make sure the PIC flag actually works.
12065 #
12066 if test -n "$lt_prog_compiler_pic"; then
12067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12068 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12069 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12070   $as_echo_n "(cached) " >&6
12071 else
12072   lt_cv_prog_compiler_pic_works=no
12073    ac_outfile=conftest.$ac_objext
12074    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12075    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
12076    # Insert the option either (1) after the last *FLAGS variable, or
12077    # (2) before a word containing "conftest.", or (3) at the end.
12078    # Note that $ac_compile itself does not contain backslashes and begins
12079    # with a dollar sign (not a hyphen), so the echo should work correctly.
12080    # The option is referenced via a variable to avoid confusing sed.
12081    lt_compile=`echo "$ac_compile" | $SED \
12082    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12083    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12084    -e 's:$: $lt_compiler_flag:'`
12085    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12086    (eval "$lt_compile" 2>conftest.err)
12087    ac_status=$?
12088    cat conftest.err >&5
12089    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090    if (exit $ac_status) && test -s "$ac_outfile"; then
12091      # The compiler can only warn and ignore the option if not recognized
12092      # So say no if there are warnings other than the usual output.
12093      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12094      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12095      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12096        lt_cv_prog_compiler_pic_works=yes
12097      fi
12098    fi
12099    $RM conftest*
12100
12101 fi
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12103 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12104
12105 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12106     case $lt_prog_compiler_pic in
12107      "" | " "*) ;;
12108      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12109      esac
12110 else
12111     lt_prog_compiler_pic=
12112      lt_prog_compiler_can_build_shared=no
12113 fi
12114
12115 fi
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127 #
12128 # Check to make sure the static flag actually works.
12129 #
12130 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12132 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12133 if ${lt_cv_prog_compiler_static_works+:} false; then :
12134   $as_echo_n "(cached) " >&6
12135 else
12136   lt_cv_prog_compiler_static_works=no
12137    save_LDFLAGS=$LDFLAGS
12138    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12139    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12140    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12141      # The linker can only warn and ignore the option if not recognized
12142      # So say no if there are warnings
12143      if test -s conftest.err; then
12144        # Append any errors to the config.log.
12145        cat conftest.err 1>&5
12146        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12147        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12148        if diff conftest.exp conftest.er2 >/dev/null; then
12149          lt_cv_prog_compiler_static_works=yes
12150        fi
12151      else
12152        lt_cv_prog_compiler_static_works=yes
12153      fi
12154    fi
12155    $RM -r conftest*
12156    LDFLAGS=$save_LDFLAGS
12157
12158 fi
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12160 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12161
12162 if test yes = "$lt_cv_prog_compiler_static_works"; then
12163     :
12164 else
12165     lt_prog_compiler_static=
12166 fi
12167
12168
12169
12170
12171
12172
12173
12174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12175 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12176 if ${lt_cv_prog_compiler_c_o+:} false; then :
12177   $as_echo_n "(cached) " >&6
12178 else
12179   lt_cv_prog_compiler_c_o=no
12180    $RM -r conftest 2>/dev/null
12181    mkdir conftest
12182    cd conftest
12183    mkdir out
12184    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12185
12186    lt_compiler_flag="-o out/conftest2.$ac_objext"
12187    # Insert the option either (1) after the last *FLAGS variable, or
12188    # (2) before a word containing "conftest.", or (3) at the end.
12189    # Note that $ac_compile itself does not contain backslashes and begins
12190    # with a dollar sign (not a hyphen), so the echo should work correctly.
12191    lt_compile=`echo "$ac_compile" | $SED \
12192    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12193    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12194    -e 's:$: $lt_compiler_flag:'`
12195    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12196    (eval "$lt_compile" 2>out/conftest.err)
12197    ac_status=$?
12198    cat out/conftest.err >&5
12199    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12201    then
12202      # The compiler can only warn and ignore the option if not recognized
12203      # So say no if there are warnings
12204      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12205      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12206      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12207        lt_cv_prog_compiler_c_o=yes
12208      fi
12209    fi
12210    chmod u+w . 2>&5
12211    $RM conftest*
12212    # SGI C++ compiler will create directory out/ii_files/ for
12213    # template instantiation
12214    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12215    $RM out/* && rmdir out
12216    cd ..
12217    $RM -r conftest
12218    $RM conftest*
12219
12220 fi
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12222 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12223
12224
12225
12226
12227
12228
12229   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12230 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12231 if ${lt_cv_prog_compiler_c_o+:} false; then :
12232   $as_echo_n "(cached) " >&6
12233 else
12234   lt_cv_prog_compiler_c_o=no
12235    $RM -r conftest 2>/dev/null
12236    mkdir conftest
12237    cd conftest
12238    mkdir out
12239    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12240
12241    lt_compiler_flag="-o out/conftest2.$ac_objext"
12242    # Insert the option either (1) after the last *FLAGS variable, or
12243    # (2) before a word containing "conftest.", or (3) at the end.
12244    # Note that $ac_compile itself does not contain backslashes and begins
12245    # with a dollar sign (not a hyphen), so the echo should work correctly.
12246    lt_compile=`echo "$ac_compile" | $SED \
12247    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12248    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12249    -e 's:$: $lt_compiler_flag:'`
12250    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12251    (eval "$lt_compile" 2>out/conftest.err)
12252    ac_status=$?
12253    cat out/conftest.err >&5
12254    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12256    then
12257      # The compiler can only warn and ignore the option if not recognized
12258      # So say no if there are warnings
12259      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12260      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12261      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12262        lt_cv_prog_compiler_c_o=yes
12263      fi
12264    fi
12265    chmod u+w . 2>&5
12266    $RM conftest*
12267    # SGI C++ compiler will create directory out/ii_files/ for
12268    # template instantiation
12269    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12270    $RM out/* && rmdir out
12271    cd ..
12272    $RM -r conftest
12273    $RM conftest*
12274
12275 fi
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12277 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12278
12279
12280
12281
12282 hard_links=nottested
12283 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12284   # do not overwrite the value of need_locks provided by the user
12285   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12286 $as_echo_n "checking if we can lock with hard links... " >&6; }
12287   hard_links=yes
12288   $RM conftest*
12289   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12290   touch conftest.a
12291   ln conftest.a conftest.b 2>&5 || hard_links=no
12292   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12294 $as_echo "$hard_links" >&6; }
12295   if test no = "$hard_links"; then
12296     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12297 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12298     need_locks=warn
12299   fi
12300 else
12301   need_locks=no
12302 fi
12303
12304
12305
12306
12307
12308
12309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12310 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12311
12312   runpath_var=
12313   allow_undefined_flag=
12314   always_export_symbols=no
12315   archive_cmds=
12316   archive_expsym_cmds=
12317   compiler_needs_object=no
12318   enable_shared_with_static_runtimes=no
12319   export_dynamic_flag_spec=
12320   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12321   hardcode_automatic=no
12322   hardcode_direct=no
12323   hardcode_direct_absolute=no
12324   hardcode_libdir_flag_spec=
12325   hardcode_libdir_separator=
12326   hardcode_minus_L=no
12327   hardcode_shlibpath_var=unsupported
12328   inherit_rpath=no
12329   link_all_deplibs=unknown
12330   module_cmds=
12331   module_expsym_cmds=
12332   old_archive_from_new_cmds=
12333   old_archive_from_expsyms_cmds=
12334   thread_safe_flag_spec=
12335   whole_archive_flag_spec=
12336   # include_expsyms should be a list of space-separated symbols to be *always*
12337   # included in the symbol list
12338   include_expsyms=
12339   # exclude_expsyms can be an extended regexp of symbols to exclude
12340   # it will be wrapped by ' (' and ')$', so one must not match beginning or
12341   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12342   # as well as any symbol that contains 'd'.
12343   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12344   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12345   # platforms (ab)use it in PIC code, but their linkers get confused if
12346   # the symbol is explicitly referenced.  Since portable code cannot
12347   # rely on this symbol name, it's probably fine to never include it in
12348   # preloaded symbol tables.
12349   # Exclude shared library initialization/finalization symbols.
12350   extract_expsyms_cmds=
12351
12352   case $host_os in
12353   cygwin* | mingw* | pw32* | cegcc*)
12354     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12355     # When not using gcc, we currently assume that we are using
12356     # Microsoft Visual C++.
12357     if test yes != "$GCC"; then
12358       with_gnu_ld=no
12359     fi
12360     ;;
12361   interix*)
12362     # we just hope/assume this is gcc and not c89 (= MSVC++)
12363     with_gnu_ld=yes
12364     ;;
12365   openbsd* | bitrig*)
12366     with_gnu_ld=no
12367     ;;
12368   linux* | k*bsd*-gnu | gnu*)
12369     link_all_deplibs=no
12370     ;;
12371   esac
12372
12373   ld_shlibs=yes
12374
12375   # On some targets, GNU ld is compatible enough with the native linker
12376   # that we're better off using the native interface for both.
12377   lt_use_gnu_ld_interface=no
12378   if test yes = "$with_gnu_ld"; then
12379     case $host_os in
12380       aix*)
12381         # The AIX port of GNU ld has always aspired to compatibility
12382         # with the native linker.  However, as the warning in the GNU ld
12383         # block says, versions before 2.19.5* couldn't really create working
12384         # shared libraries, regardless of the interface used.
12385         case `$LD -v 2>&1` in
12386           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12387           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12388           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12389           *)
12390             lt_use_gnu_ld_interface=yes
12391             ;;
12392         esac
12393         ;;
12394       *)
12395         lt_use_gnu_ld_interface=yes
12396         ;;
12397     esac
12398   fi
12399
12400   if test yes = "$lt_use_gnu_ld_interface"; then
12401     # If archive_cmds runs LD, not CC, wlarc should be empty
12402     wlarc='$wl'
12403
12404     # Set some defaults for GNU ld with shared library support. These
12405     # are reset later if shared libraries are not supported. Putting them
12406     # here allows them to be overridden if necessary.
12407     runpath_var=LD_RUN_PATH
12408     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12409     export_dynamic_flag_spec='$wl--export-dynamic'
12410     # ancient GNU ld didn't support --whole-archive et. al.
12411     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12412       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12413     else
12414       whole_archive_flag_spec=
12415     fi
12416     supports_anon_versioning=no
12417     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12418       *GNU\ gold*) supports_anon_versioning=yes ;;
12419       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12420       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12421       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12422       *\ 2.11.*) ;; # other 2.11 versions
12423       *) supports_anon_versioning=yes ;;
12424     esac
12425
12426     # See if GNU ld supports shared libraries.
12427     case $host_os in
12428     aix[3-9]*)
12429       # On AIX/PPC, the GNU linker is very broken
12430       if test ia64 != "$host_cpu"; then
12431         ld_shlibs=no
12432         cat <<_LT_EOF 1>&2
12433
12434 *** Warning: the GNU linker, at least up to release 2.19, is reported
12435 *** to be unable to reliably create shared libraries on AIX.
12436 *** Therefore, libtool is disabling shared libraries support.  If you
12437 *** really care for shared libraries, you may want to install binutils
12438 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12439 *** You will then need to restart the configuration process.
12440
12441 _LT_EOF
12442       fi
12443       ;;
12444
12445     amigaos*)
12446       case $host_cpu in
12447       powerpc)
12448             # see comment about AmigaOS4 .so support
12449             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12450             archive_expsym_cmds=''
12451         ;;
12452       m68k)
12453             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)'
12454             hardcode_libdir_flag_spec='-L$libdir'
12455             hardcode_minus_L=yes
12456         ;;
12457       esac
12458       ;;
12459
12460     beos*)
12461       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12462         allow_undefined_flag=unsupported
12463         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12464         # support --undefined.  This deserves some investigation.  FIXME
12465         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12466       else
12467         ld_shlibs=no
12468       fi
12469       ;;
12470
12471     cygwin* | mingw* | pw32* | cegcc*)
12472       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12473       # as there is no search path for DLLs.
12474       hardcode_libdir_flag_spec='-L$libdir'
12475       export_dynamic_flag_spec='$wl--export-all-symbols'
12476       allow_undefined_flag=unsupported
12477       always_export_symbols=no
12478       enable_shared_with_static_runtimes=yes
12479       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
12480       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12481
12482       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12483         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12484         # If the export-symbols file already is a .def file, use it as
12485         # is; otherwise, prepend EXPORTS...
12486         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12487           cp $export_symbols $output_objdir/$soname.def;
12488         else
12489           echo EXPORTS > $output_objdir/$soname.def;
12490           cat $export_symbols >> $output_objdir/$soname.def;
12491         fi~
12492         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12493       else
12494         ld_shlibs=no
12495       fi
12496       ;;
12497
12498     haiku*)
12499       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12500       link_all_deplibs=yes
12501       ;;
12502
12503     os2*)
12504       hardcode_libdir_flag_spec='-L$libdir'
12505       hardcode_minus_L=yes
12506       allow_undefined_flag=unsupported
12507       shrext_cmds=.dll
12508       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12509         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12510         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12511         $ECHO EXPORTS >> $output_objdir/$libname.def~
12512         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12513         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12514         emximp -o $lib $output_objdir/$libname.def'
12515       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12516         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12517         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12518         $ECHO EXPORTS >> $output_objdir/$libname.def~
12519         prefix_cmds="$SED"~
12520         if test EXPORTS = "`$SED 1q $export_symbols`"; then
12521           prefix_cmds="$prefix_cmds -e 1d";
12522         fi~
12523         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12524         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12525         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12526         emximp -o $lib $output_objdir/$libname.def'
12527       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12528       enable_shared_with_static_runtimes=yes
12529       ;;
12530
12531     interix[3-9]*)
12532       hardcode_direct=no
12533       hardcode_shlibpath_var=no
12534       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12535       export_dynamic_flag_spec='$wl-E'
12536       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12537       # Instead, shared libraries are loaded at an image base (0x10000000 by
12538       # default) and relocated if they conflict, which is a slow very memory
12539       # consuming and fragmenting process.  To avoid this, we pick a random,
12540       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12541       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12542       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12543       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'
12544       ;;
12545
12546     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12547       tmp_diet=no
12548       if test linux-dietlibc = "$host_os"; then
12549         case $cc_basename in
12550           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12551         esac
12552       fi
12553       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12554          && test no = "$tmp_diet"
12555       then
12556         tmp_addflag=' $pic_flag'
12557         tmp_sharedflag='-shared'
12558         case $cc_basename,$host_cpu in
12559         pgcc*)                          # Portland Group C compiler
12560           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12561           tmp_addflag=' $pic_flag'
12562           ;;
12563         pgf77* | pgf90* | pgf95* | pgfortran*)
12564                                         # Portland Group f77 and f90 compilers
12565           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12566           tmp_addflag=' $pic_flag -Mnomain' ;;
12567         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12568           tmp_addflag=' -i_dynamic' ;;
12569         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12570           tmp_addflag=' -i_dynamic -nofor_main' ;;
12571         ifc* | ifort*)                  # Intel Fortran compiler
12572           tmp_addflag=' -nofor_main' ;;
12573         lf95*)                          # Lahey Fortran 8.1
12574           whole_archive_flag_spec=
12575           tmp_sharedflag='--shared' ;;
12576         nagfor*)                        # NAGFOR 5.3
12577           tmp_sharedflag='-Wl,-shared' ;;
12578         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12579           tmp_sharedflag='-qmkshrobj'
12580           tmp_addflag= ;;
12581         nvcc*)  # Cuda Compiler Driver 2.2
12582           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12583           compiler_needs_object=yes
12584           ;;
12585         esac
12586         case `$CC -V 2>&1 | sed 5q` in
12587         *Sun\ C*)                       # Sun C 5.9
12588           whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12589           compiler_needs_object=yes
12590           tmp_sharedflag='-G' ;;
12591         *Sun\ F*)                       # Sun Fortran 8.3
12592           tmp_sharedflag='-G' ;;
12593         esac
12594         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12595
12596         if test yes = "$supports_anon_versioning"; then
12597           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12598             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12599             echo "local: *; };" >> $output_objdir/$libname.ver~
12600             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12601         fi
12602
12603         case $cc_basename in
12604         tcc*)
12605           export_dynamic_flag_spec='-rdynamic'
12606           ;;
12607         xlf* | bgf* | bgxlf* | mpixlf*)
12608           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12609           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12610           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12611           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12612           if test yes = "$supports_anon_versioning"; then
12613             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12614               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12615               echo "local: *; };" >> $output_objdir/$libname.ver~
12616               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12617           fi
12618           ;;
12619         esac
12620       else
12621         ld_shlibs=no
12622       fi
12623       ;;
12624
12625     netbsd* | netbsdelf*-gnu)
12626       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12627         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12628         wlarc=
12629       else
12630         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12631         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12632       fi
12633       ;;
12634
12635     solaris*)
12636       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12637         ld_shlibs=no
12638         cat <<_LT_EOF 1>&2
12639
12640 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12641 *** create shared libraries on Solaris systems.  Therefore, libtool
12642 *** is disabling shared libraries support.  We urge you to upgrade GNU
12643 *** binutils to release 2.9.1 or newer.  Another option is to modify
12644 *** your PATH or compiler configuration so that the native linker is
12645 *** used, and then restart.
12646
12647 _LT_EOF
12648       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12649         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12650         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12651       else
12652         ld_shlibs=no
12653       fi
12654       ;;
12655
12656     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12657       case `$LD -v 2>&1` in
12658         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12659         ld_shlibs=no
12660         cat <<_LT_EOF 1>&2
12661
12662 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12663 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12664 *** is disabling shared libraries support.  We urge you to upgrade GNU
12665 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12666 *** your PATH or compiler configuration so that the native linker is
12667 *** used, and then restart.
12668
12669 _LT_EOF
12670         ;;
12671         *)
12672           # For security reasons, it is highly recommended that you always
12673           # use absolute paths for naming shared libraries, and exclude the
12674           # DT_RUNPATH tag from executables and libraries.  But doing so
12675           # requires that you compile everything twice, which is a pain.
12676           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12677             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12678             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12679             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12680           else
12681             ld_shlibs=no
12682           fi
12683         ;;
12684       esac
12685       ;;
12686
12687     sunos4*)
12688       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12689       wlarc=
12690       hardcode_direct=yes
12691       hardcode_shlibpath_var=no
12692       ;;
12693
12694     *)
12695       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12696         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12697         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12698       else
12699         ld_shlibs=no
12700       fi
12701       ;;
12702     esac
12703
12704     if test no = "$ld_shlibs"; then
12705       runpath_var=
12706       hardcode_libdir_flag_spec=
12707       export_dynamic_flag_spec=
12708       whole_archive_flag_spec=
12709     fi
12710   else
12711     # PORTME fill in a description of your system's linker (not GNU ld)
12712     case $host_os in
12713     aix3*)
12714       allow_undefined_flag=unsupported
12715       always_export_symbols=yes
12716       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'
12717       # Note: this linker hardcodes the directories in LIBPATH if there
12718       # are no directories specified by -L.
12719       hardcode_minus_L=yes
12720       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12721         # Neither direct hardcoding nor static linking is supported with a
12722         # broken collect2.
12723         hardcode_direct=unsupported
12724       fi
12725       ;;
12726
12727     aix[4-9]*)
12728       if test ia64 = "$host_cpu"; then
12729         # On IA64, the linker does run time linking by default, so we don't
12730         # have to do anything special.
12731         aix_use_runtimelinking=no
12732         exp_sym_flag='-Bexport'
12733         no_entry_flag=
12734       else
12735         # If we're using GNU nm, then we don't want the "-C" option.
12736         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12737         # Without the "-l" option, or with the "-B" option, AIX nm treats
12738         # weak defined symbols like other global defined symbols, whereas
12739         # GNU nm marks them as "W".
12740         # While the 'weak' keyword is ignored in the Export File, we need
12741         # it in the Import File for the 'aix-soname' feature, so we have
12742         # to replace the "-B" option with "-P" for AIX nm.
12743         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12744           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
12745         else
12746           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
12747         fi
12748         aix_use_runtimelinking=no
12749
12750         # Test if we are trying to use run time linking or normal
12751         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12752         # have runtime linking enabled, and use it for executables.
12753         # For shared libraries, we enable/disable runtime linking
12754         # depending on the kind of the shared library created -
12755         # when "with_aix_soname,aix_use_runtimelinking" is:
12756         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
12757         # "aix,yes"  lib.so          shared, rtl:yes, for executables
12758         #            lib.a           static archive
12759         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
12760         #            lib.a(lib.so.V) shared, rtl:no,  for executables
12761         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12762         #            lib.a(lib.so.V) shared, rtl:no
12763         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
12764         #            lib.a           static archive
12765         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12766           for ld_flag in $LDFLAGS; do
12767           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12768             aix_use_runtimelinking=yes
12769             break
12770           fi
12771           done
12772           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12773             # With aix-soname=svr4, we create the lib.so.V shared archives only,
12774             # so we don't have lib.a shared libs to link our executables.
12775             # We have to force runtime linking in this case.
12776             aix_use_runtimelinking=yes
12777             LDFLAGS="$LDFLAGS -Wl,-brtl"
12778           fi
12779           ;;
12780         esac
12781
12782         exp_sym_flag='-bexport'
12783         no_entry_flag='-bnoentry'
12784       fi
12785
12786       # When large executables or shared objects are built, AIX ld can
12787       # have problems creating the table of contents.  If linking a library
12788       # or program results in "error TOC overflow" add -mminimal-toc to
12789       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12790       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12791
12792       archive_cmds=''
12793       hardcode_direct=yes
12794       hardcode_direct_absolute=yes
12795       hardcode_libdir_separator=':'
12796       link_all_deplibs=yes
12797       file_list_spec='$wl-f,'
12798       case $with_aix_soname,$aix_use_runtimelinking in
12799       aix,*) ;; # traditional, no import file
12800       svr4,* | *,yes) # use import file
12801         # The Import File defines what to hardcode.
12802         hardcode_direct=no
12803         hardcode_direct_absolute=no
12804         ;;
12805       esac
12806
12807       if test yes = "$GCC"; then
12808         case $host_os in aix4.[012]|aix4.[012].*)
12809         # We only want to do this on AIX 4.2 and lower, the check
12810         # below for broken collect2 doesn't work under 4.3+
12811           collect2name=`$CC -print-prog-name=collect2`
12812           if test -f "$collect2name" &&
12813            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12814           then
12815           # We have reworked collect2
12816           :
12817           else
12818           # We have old collect2
12819           hardcode_direct=unsupported
12820           # It fails to find uninstalled libraries when the uninstalled
12821           # path is not listed in the libpath.  Setting hardcode_minus_L
12822           # to unsupported forces relinking
12823           hardcode_minus_L=yes
12824           hardcode_libdir_flag_spec='-L$libdir'
12825           hardcode_libdir_separator=
12826           fi
12827           ;;
12828         esac
12829         shared_flag='-shared'
12830         if test yes = "$aix_use_runtimelinking"; then
12831           shared_flag="$shared_flag "'$wl-G'
12832         fi
12833         # Need to ensure runtime linking is disabled for the traditional
12834         # shared library, or the linker may eventually find shared libraries
12835         # /with/ Import File - we do not want to mix them.
12836         shared_flag_aix='-shared'
12837         shared_flag_svr4='-shared $wl-G'
12838       else
12839         # not using gcc
12840         if test ia64 = "$host_cpu"; then
12841         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12842         # chokes on -Wl,-G. The following line is correct:
12843           shared_flag='-G'
12844         else
12845           if test yes = "$aix_use_runtimelinking"; then
12846             shared_flag='$wl-G'
12847           else
12848             shared_flag='$wl-bM:SRE'
12849           fi
12850           shared_flag_aix='$wl-bM:SRE'
12851           shared_flag_svr4='$wl-G'
12852         fi
12853       fi
12854
12855       export_dynamic_flag_spec='$wl-bexpall'
12856       # It seems that -bexpall does not export symbols beginning with
12857       # underscore (_), so it is better to generate a list of symbols to export.
12858       always_export_symbols=yes
12859       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12860         # Warning - without using the other runtime loading flags (-brtl),
12861         # -berok will link without error, but may produce a broken library.
12862         allow_undefined_flag='-berok'
12863         # Determine the default libpath from the value encoded in an
12864         # empty executable.
12865         if test set = "${lt_cv_aix_libpath+set}"; then
12866   aix_libpath=$lt_cv_aix_libpath
12867 else
12868   if ${lt_cv_aix_libpath_+:} false; then :
12869   $as_echo_n "(cached) " >&6
12870 else
12871   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12872 /* end confdefs.h.  */
12873
12874 int main (void)
12875 {
12876
12877  ;
12878  return 0;
12879 }
12880 _ACEOF
12881 if ac_fn_c_try_link "$LINENO"; then :
12882
12883   lt_aix_libpath_sed='
12884       /Import File Strings/,/^$/ {
12885           /^0/ {
12886               s/^0  *\([^ ]*\) *$/\1/
12887               p
12888           }
12889       }'
12890   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12891   # Check for a 64-bit object if we didn't find anything.
12892   if test -z "$lt_cv_aix_libpath_"; then
12893     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12894   fi
12895 fi
12896 rm -f core conftest.err conftest.$ac_objext \
12897     conftest$ac_exeext conftest.$ac_ext
12898   if test -z "$lt_cv_aix_libpath_"; then
12899     lt_cv_aix_libpath_=/usr/lib:/lib
12900   fi
12901
12902 fi
12903
12904   aix_libpath=$lt_cv_aix_libpath_
12905 fi
12906
12907         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12908         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12909       else
12910         if test ia64 = "$host_cpu"; then
12911           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12912           allow_undefined_flag="-z nodefs"
12913           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"
12914         else
12915          # Determine the default libpath from the value encoded in an
12916          # empty executable.
12917          if test set = "${lt_cv_aix_libpath+set}"; then
12918   aix_libpath=$lt_cv_aix_libpath
12919 else
12920   if ${lt_cv_aix_libpath_+:} false; then :
12921   $as_echo_n "(cached) " >&6
12922 else
12923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12924 /* end confdefs.h.  */
12925
12926 int main (void)
12927 {
12928
12929  ;
12930  return 0;
12931 }
12932 _ACEOF
12933 if ac_fn_c_try_link "$LINENO"; then :
12934
12935   lt_aix_libpath_sed='
12936       /Import File Strings/,/^$/ {
12937           /^0/ {
12938               s/^0  *\([^ ]*\) *$/\1/
12939               p
12940           }
12941       }'
12942   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12943   # Check for a 64-bit object if we didn't find anything.
12944   if test -z "$lt_cv_aix_libpath_"; then
12945     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12946   fi
12947 fi
12948 rm -f core conftest.err conftest.$ac_objext \
12949     conftest$ac_exeext conftest.$ac_ext
12950   if test -z "$lt_cv_aix_libpath_"; then
12951     lt_cv_aix_libpath_=/usr/lib:/lib
12952   fi
12953
12954 fi
12955
12956   aix_libpath=$lt_cv_aix_libpath_
12957 fi
12958
12959          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12960           # Warning - without using the other run time loading flags,
12961           # -berok will link without error, but may produce a broken library.
12962           no_undefined_flag=' $wl-bernotok'
12963           allow_undefined_flag=' $wl-berok'
12964           if test yes = "$with_gnu_ld"; then
12965             # We only use this code for GNU lds that support --whole-archive.
12966             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12967           else
12968             # Exported symbols can be pulled into shared objects from archives
12969             whole_archive_flag_spec='$convenience'
12970           fi
12971           archive_cmds_need_lc=yes
12972           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12973           # -brtl affects multiple linker settings, -berok does not and is overridden later
12974           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12975           if test svr4 != "$with_aix_soname"; then
12976             # This is similar to how AIX traditionally builds its shared libraries.
12977             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12978           fi
12979           if test aix != "$with_aix_soname"; then
12980             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12981           else
12982             # used by -dlpreopen to get the symbols
12983             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
12984           fi
12985           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12986         fi
12987       fi
12988       ;;
12989
12990     amigaos*)
12991       case $host_cpu in
12992       powerpc)
12993             # see comment about AmigaOS4 .so support
12994             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12995             archive_expsym_cmds=''
12996         ;;
12997       m68k)
12998             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)'
12999             hardcode_libdir_flag_spec='-L$libdir'
13000             hardcode_minus_L=yes
13001         ;;
13002       esac
13003       ;;
13004
13005     bsdi[45]*)
13006       export_dynamic_flag_spec=-rdynamic
13007       ;;
13008
13009     cygwin* | mingw* | pw32* | cegcc*)
13010       # When not using gcc, we currently assume that we are using
13011       # Microsoft Visual C++.
13012       # hardcode_libdir_flag_spec is actually meaningless, as there is
13013       # no search path for DLLs.
13014       case $cc_basename in
13015       cl*)
13016         # Native MSVC
13017         hardcode_libdir_flag_spec=' '
13018         allow_undefined_flag=unsupported
13019         always_export_symbols=yes
13020         file_list_spec='@'
13021         # Tell ltmain to make .lib files, not .a files.
13022         libext=lib
13023         # Tell ltmain to make .dll files, not .so files.
13024         shrext_cmds=.dll
13025         # FIXME: Setting linknames here is a bad hack.
13026         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13027         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13028             cp "$export_symbols" "$output_objdir/$soname.def";
13029             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13030           else
13031             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13032           fi~
13033           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13034           linknames='
13035         # The linker will not automatically build a static lib if we build a DLL.
13036         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13037         enable_shared_with_static_runtimes=yes
13038         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13039         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13040         # Don't use ranlib
13041         old_postinstall_cmds='chmod 644 $oldlib'
13042         postlink_cmds='lt_outputfile="@OUTPUT@"~
13043           lt_tool_outputfile="@TOOL_OUTPUT@"~
13044           case $lt_outputfile in
13045             *.exe|*.EXE) ;;
13046             *)
13047               lt_outputfile=$lt_outputfile.exe
13048               lt_tool_outputfile=$lt_tool_outputfile.exe
13049               ;;
13050           esac~
13051           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13052             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13053             $RM "$lt_outputfile.manifest";
13054           fi'
13055         ;;
13056       *)
13057         # Assume MSVC wrapper
13058         hardcode_libdir_flag_spec=' '
13059         allow_undefined_flag=unsupported
13060         # Tell ltmain to make .lib files, not .a files.
13061         libext=lib
13062         # Tell ltmain to make .dll files, not .so files.
13063         shrext_cmds=.dll
13064         # FIXME: Setting linknames here is a bad hack.
13065         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13066         # The linker will automatically build a .lib file if we build a DLL.
13067         old_archive_from_new_cmds='true'
13068         # FIXME: Should let the user specify the lib program.
13069         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13070         enable_shared_with_static_runtimes=yes
13071         ;;
13072       esac
13073       ;;
13074
13075     darwin* | rhapsody*)
13076
13077
13078   archive_cmds_need_lc=no
13079   hardcode_direct=no
13080   hardcode_automatic=yes
13081   hardcode_shlibpath_var=unsupported
13082   if test yes = "$lt_cv_ld_force_load"; then
13083     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13084
13085   else
13086     whole_archive_flag_spec=''
13087   fi
13088   link_all_deplibs=yes
13089   allow_undefined_flag=$_lt_dar_allow_undefined
13090   case $cc_basename in
13091      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13092      *) _lt_dar_can_shared=$GCC ;;
13093   esac
13094   if test yes = "$_lt_dar_can_shared"; then
13095     output_verbose_link_cmd=func_echo_all
13096     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13097     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13098     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"
13099     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"
13100
13101   else
13102   ld_shlibs=no
13103   fi
13104
13105       ;;
13106
13107     dgux*)
13108       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13109       hardcode_libdir_flag_spec='-L$libdir'
13110       hardcode_shlibpath_var=no
13111       ;;
13112
13113     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13114     # support.  Future versions do this automatically, but an explicit c++rt0.o
13115     # does not break anything, and helps significantly (at the cost of a little
13116     # extra space).
13117     freebsd2.2*)
13118       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13119       hardcode_libdir_flag_spec='-R$libdir'
13120       hardcode_direct=yes
13121       hardcode_shlibpath_var=no
13122       ;;
13123
13124     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13125     freebsd2.*)
13126       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13127       hardcode_direct=yes
13128       hardcode_minus_L=yes
13129       hardcode_shlibpath_var=no
13130       ;;
13131
13132     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13133     freebsd* | dragonfly*)
13134       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13135       hardcode_libdir_flag_spec='-R$libdir'
13136       hardcode_direct=yes
13137       hardcode_shlibpath_var=no
13138       ;;
13139
13140     hpux9*)
13141       if test yes = "$GCC"; then
13142         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib'
13143       else
13144         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib'
13145       fi
13146       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13147       hardcode_libdir_separator=:
13148       hardcode_direct=yes
13149
13150       # hardcode_minus_L: Not really in the search PATH,
13151       # but as the default location of the library.
13152       hardcode_minus_L=yes
13153       export_dynamic_flag_spec='$wl-E'
13154       ;;
13155
13156     hpux10*)
13157       if test yes,no = "$GCC,$with_gnu_ld"; then
13158         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13159       else
13160         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13161       fi
13162       if test no = "$with_gnu_ld"; then
13163         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13164         hardcode_libdir_separator=:
13165         hardcode_direct=yes
13166         hardcode_direct_absolute=yes
13167         export_dynamic_flag_spec='$wl-E'
13168         # hardcode_minus_L: Not really in the search PATH,
13169         # but as the default location of the library.
13170         hardcode_minus_L=yes
13171       fi
13172       ;;
13173
13174     hpux11*)
13175       if test yes,no = "$GCC,$with_gnu_ld"; then
13176         case $host_cpu in
13177         hppa*64*)
13178           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13179           ;;
13180         ia64*)
13181           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13182           ;;
13183         *)
13184           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13185           ;;
13186         esac
13187       else
13188         case $host_cpu in
13189         hppa*64*)
13190           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13191           ;;
13192         ia64*)
13193           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13194           ;;
13195         *)
13196
13197           # Older versions of the 11.00 compiler do not understand -b yet
13198           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13199           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13200 $as_echo_n "checking if $CC understands -b... " >&6; }
13201 if ${lt_cv_prog_compiler__b+:} false; then :
13202   $as_echo_n "(cached) " >&6
13203 else
13204   lt_cv_prog_compiler__b=no
13205    save_LDFLAGS=$LDFLAGS
13206    LDFLAGS="$LDFLAGS -b"
13207    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13208    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13209      # The linker can only warn and ignore the option if not recognized
13210      # So say no if there are warnings
13211      if test -s conftest.err; then
13212        # Append any errors to the config.log.
13213        cat conftest.err 1>&5
13214        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13215        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13216        if diff conftest.exp conftest.er2 >/dev/null; then
13217          lt_cv_prog_compiler__b=yes
13218        fi
13219      else
13220        lt_cv_prog_compiler__b=yes
13221      fi
13222    fi
13223    $RM -r conftest*
13224    LDFLAGS=$save_LDFLAGS
13225
13226 fi
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13228 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13229
13230 if test yes = "$lt_cv_prog_compiler__b"; then
13231     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13232 else
13233     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13234 fi
13235
13236           ;;
13237         esac
13238       fi
13239       if test no = "$with_gnu_ld"; then
13240         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13241         hardcode_libdir_separator=:
13242
13243         case $host_cpu in
13244         hppa*64*|ia64*)
13245           hardcode_direct=no
13246           hardcode_shlibpath_var=no
13247           ;;
13248         *)
13249           hardcode_direct=yes
13250           hardcode_direct_absolute=yes
13251           export_dynamic_flag_spec='$wl-E'
13252
13253           # hardcode_minus_L: Not really in the search PATH,
13254           # but as the default location of the library.
13255           hardcode_minus_L=yes
13256           ;;
13257         esac
13258       fi
13259       ;;
13260
13261     irix5* | irix6* | nonstopux*)
13262       if test yes = "$GCC"; then
13263         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13264         # Try to use the -exported_symbol ld option, if it does not
13265         # work, assume that -exports_file does not work either and
13266         # implicitly export all symbols.
13267         # This should be the same for all languages, so no per-tag cache variable.
13268         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13269 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13270 if ${lt_cv_irix_exported_symbol+:} false; then :
13271   $as_echo_n "(cached) " >&6
13272 else
13273   save_LDFLAGS=$LDFLAGS
13274            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13275            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13276 /* end confdefs.h.  */
13277 int foo (void) { return 0; }
13278 _ACEOF
13279 if ac_fn_c_try_link "$LINENO"; then :
13280   lt_cv_irix_exported_symbol=yes
13281 else
13282   lt_cv_irix_exported_symbol=no
13283 fi
13284 rm -f core conftest.err conftest.$ac_objext \
13285     conftest$ac_exeext conftest.$ac_ext
13286            LDFLAGS=$save_LDFLAGS
13287 fi
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13289 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13290         if test yes = "$lt_cv_irix_exported_symbol"; then
13291           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
13292         fi
13293         link_all_deplibs=no
13294       else
13295         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13296         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
13297       fi
13298       archive_cmds_need_lc='no'
13299       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13300       hardcode_libdir_separator=:
13301       inherit_rpath=yes
13302       link_all_deplibs=yes
13303       ;;
13304
13305     linux*)
13306       case $cc_basename in
13307       tcc*)
13308         # Fabrice Bellard et al's Tiny C Compiler
13309         ld_shlibs=yes
13310         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13311         ;;
13312       esac
13313       ;;
13314
13315     netbsd* | netbsdelf*-gnu)
13316       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13317         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13318       else
13319         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13320       fi
13321       hardcode_libdir_flag_spec='-R$libdir'
13322       hardcode_direct=yes
13323       hardcode_shlibpath_var=no
13324       ;;
13325
13326     newsos6)
13327       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13328       hardcode_direct=yes
13329       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13330       hardcode_libdir_separator=:
13331       hardcode_shlibpath_var=no
13332       ;;
13333
13334     *nto* | *qnx*)
13335       ;;
13336
13337     openbsd* | bitrig*)
13338       if test -f /usr/libexec/ld.so; then
13339         hardcode_direct=yes
13340         hardcode_shlibpath_var=no
13341         hardcode_direct_absolute=yes
13342         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13343           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13344           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13345           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13346           export_dynamic_flag_spec='$wl-E'
13347         else
13348           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13349           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13350         fi
13351       else
13352         ld_shlibs=no
13353       fi
13354       ;;
13355
13356     os2*)
13357       hardcode_libdir_flag_spec='-L$libdir'
13358       hardcode_minus_L=yes
13359       allow_undefined_flag=unsupported
13360       shrext_cmds=.dll
13361       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13362         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13363         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13364         $ECHO EXPORTS >> $output_objdir/$libname.def~
13365         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13366         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13367         emximp -o $lib $output_objdir/$libname.def'
13368       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13369         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13370         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13371         $ECHO EXPORTS >> $output_objdir/$libname.def~
13372         prefix_cmds="$SED"~
13373         if test EXPORTS = "`$SED 1q $export_symbols`"; then
13374           prefix_cmds="$prefix_cmds -e 1d";
13375         fi~
13376         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13377         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13378         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13379         emximp -o $lib $output_objdir/$libname.def'
13380       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13381       enable_shared_with_static_runtimes=yes
13382       ;;
13383
13384     osf3*)
13385       if test yes = "$GCC"; then
13386         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13387         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13388       else
13389         allow_undefined_flag=' -expect_unresolved \*'
13390         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13391       fi
13392       archive_cmds_need_lc='no'
13393       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13394       hardcode_libdir_separator=:
13395       ;;
13396
13397     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13398       if test yes = "$GCC"; then
13399         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13400         archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13401         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13402       else
13403         allow_undefined_flag=' -expect_unresolved \*'
13404         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13405         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~
13406           $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
13407
13408         # Both c and cxx compiler support -rpath directly
13409         hardcode_libdir_flag_spec='-rpath $libdir'
13410       fi
13411       archive_cmds_need_lc='no'
13412       hardcode_libdir_separator=:
13413       ;;
13414
13415     solaris*)
13416       no_undefined_flag=' -z defs'
13417       if test yes = "$GCC"; then
13418         wlarc='$wl'
13419         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13420         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13421           $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13422       else
13423         case `$CC -V 2>&1` in
13424         *"Compilers 5.0"*)
13425           wlarc=''
13426           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13427           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13428             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13429           ;;
13430         *)
13431           wlarc='$wl'
13432           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13433           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13434             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13435           ;;
13436         esac
13437       fi
13438       hardcode_libdir_flag_spec='-R$libdir'
13439       hardcode_shlibpath_var=no
13440       case $host_os in
13441       solaris2.[0-5] | solaris2.[0-5].*) ;;
13442       *)
13443         # The compiler driver will combine and reorder linker options,
13444         # but understands '-z linker_flag'.  GCC discards it without '$wl',
13445         # but is careful enough not to reorder.
13446         # Supported since Solaris 2.6 (maybe 2.5.1?)
13447         if test yes = "$GCC"; then
13448           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13449         else
13450           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13451         fi
13452         ;;
13453       esac
13454       link_all_deplibs=yes
13455       ;;
13456
13457     sunos4*)
13458       if test sequent = "$host_vendor"; then
13459         # Use $CC to link under sequent, because it throws in some extra .o
13460         # files that make .init and .fini sections work.
13461         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13462       else
13463         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13464       fi
13465       hardcode_libdir_flag_spec='-L$libdir'
13466       hardcode_direct=yes
13467       hardcode_minus_L=yes
13468       hardcode_shlibpath_var=no
13469       ;;
13470
13471     sysv4)
13472       case $host_vendor in
13473         sni)
13474           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13475           hardcode_direct=yes # is this really true???
13476         ;;
13477         siemens)
13478           ## LD is ld it makes a PLAMLIB
13479           ## CC just makes a GrossModule.
13480           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13481           reload_cmds='$CC -r -o $output$reload_objs'
13482           hardcode_direct=no
13483         ;;
13484         motorola)
13485           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13486           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13487         ;;
13488       esac
13489       runpath_var='LD_RUN_PATH'
13490       hardcode_shlibpath_var=no
13491       ;;
13492
13493     sysv4.3*)
13494       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13495       hardcode_shlibpath_var=no
13496       export_dynamic_flag_spec='-Bexport'
13497       ;;
13498
13499     sysv4*MP*)
13500       if test -d /usr/nec; then
13501         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13502         hardcode_shlibpath_var=no
13503         runpath_var=LD_RUN_PATH
13504         hardcode_runpath_var=yes
13505         ld_shlibs=yes
13506       fi
13507       ;;
13508
13509     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13510       no_undefined_flag='$wl-z,text'
13511       archive_cmds_need_lc=no
13512       hardcode_shlibpath_var=no
13513       runpath_var='LD_RUN_PATH'
13514
13515       if test yes = "$GCC"; then
13516         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13517         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13518       else
13519         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13520         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13521       fi
13522       ;;
13523
13524     sysv5* | sco3.2v5* | sco5v6*)
13525       # Note: We CANNOT use -z defs as we might desire, because we do not
13526       # link with -lc, and that would cause any symbols used from libc to
13527       # always be unresolved, which means just about no library would
13528       # ever link correctly.  If we're not using GNU ld we use -z text
13529       # though, which does catch some bad symbols but isn't as heavy-handed
13530       # as -z defs.
13531       no_undefined_flag='$wl-z,text'
13532       allow_undefined_flag='$wl-z,nodefs'
13533       archive_cmds_need_lc=no
13534       hardcode_shlibpath_var=no
13535       hardcode_libdir_flag_spec='$wl-R,$libdir'
13536       hardcode_libdir_separator=':'
13537       link_all_deplibs=yes
13538       export_dynamic_flag_spec='$wl-Bexport'
13539       runpath_var='LD_RUN_PATH'
13540
13541       if test yes = "$GCC"; then
13542         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13543         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13544       else
13545         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13546         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13547       fi
13548       ;;
13549
13550     uts4*)
13551       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13552       hardcode_libdir_flag_spec='-L$libdir'
13553       hardcode_shlibpath_var=no
13554       ;;
13555
13556     *)
13557       ld_shlibs=no
13558       ;;
13559     esac
13560
13561     if test sni = "$host_vendor"; then
13562       case $host in
13563       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13564         export_dynamic_flag_spec='$wl-Blargedynsym'
13565         ;;
13566       esac
13567     fi
13568   fi
13569
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13571 $as_echo "$ld_shlibs" >&6; }
13572 test no = "$ld_shlibs" && can_build_shared=no
13573
13574 with_gnu_ld=$with_gnu_ld
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590 #
13591 # Do we need to explicitly link libc?
13592 #
13593 case "x$archive_cmds_need_lc" in
13594 x|xyes)
13595   # Assume -lc should be added
13596   archive_cmds_need_lc=yes
13597
13598   if test yes,yes = "$GCC,$enable_shared"; then
13599     case $archive_cmds in
13600     *'~'*)
13601       # FIXME: we may have to deal with multi-command sequences.
13602       ;;
13603     '$CC '*)
13604       # Test whether the compiler implicitly links with -lc since on some
13605       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13606       # to ld, don't add -lc before -lgcc.
13607       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13608 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13609 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13610   $as_echo_n "(cached) " >&6
13611 else
13612   $RM conftest*
13613         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13614
13615         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13616   (eval $ac_compile) 2>&5
13617   ac_status=$?
13618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13619   test $ac_status = 0; } 2>conftest.err; then
13620           soname=conftest
13621           lib=conftest
13622           libobjs=conftest.$ac_objext
13623           deplibs=
13624           wl=$lt_prog_compiler_wl
13625           pic_flag=$lt_prog_compiler_pic
13626           compiler_flags=-v
13627           linker_flags=-v
13628           verstring=
13629           output_objdir=.
13630           libname=conftest
13631           lt_save_allow_undefined_flag=$allow_undefined_flag
13632           allow_undefined_flag=
13633           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13634   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13635   ac_status=$?
13636   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13637   test $ac_status = 0; }
13638           then
13639             lt_cv_archive_cmds_need_lc=no
13640           else
13641             lt_cv_archive_cmds_need_lc=yes
13642           fi
13643           allow_undefined_flag=$lt_save_allow_undefined_flag
13644         else
13645           cat conftest.err 1>&5
13646         fi
13647         $RM conftest*
13648
13649 fi
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13651 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13652       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13653       ;;
13654     esac
13655   fi
13656   ;;
13657 esac
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13811 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13812
13813 if test yes = "$GCC"; then
13814   case $host_os in
13815     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13816     *) lt_awk_arg='/^libraries:/' ;;
13817   esac
13818   case $host_os in
13819     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13820     *) lt_sed_strip_eq='s|=/|/|g' ;;
13821   esac
13822   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13823   case $lt_search_path_spec in
13824   *\;*)
13825     # if the path contains ";" then we assume it to be the separator
13826     # otherwise default to the standard path separator (i.e. ":") - it is
13827     # assumed that no part of a normal pathname contains ";" but that should
13828     # okay in the real world where ";" in dirpaths is itself problematic.
13829     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13830     ;;
13831   *)
13832     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13833     ;;
13834   esac
13835   # Ok, now we have the path, separated by spaces, we can step through it
13836   # and add multilib dir if necessary...
13837   lt_tmp_lt_search_path_spec=
13838   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13839   # ...but if some path component already ends with the multilib dir we assume
13840   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13841   case "$lt_multi_os_dir; $lt_search_path_spec " in
13842   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13843     lt_multi_os_dir=
13844     ;;
13845   esac
13846   for lt_sys_path in $lt_search_path_spec; do
13847     if test -d "$lt_sys_path$lt_multi_os_dir"; then
13848       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13849     elif test -n "$lt_multi_os_dir"; then
13850       test -d "$lt_sys_path" && \
13851         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13852     fi
13853   done
13854   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13855 BEGIN {RS = " "; FS = "/|\n";} {
13856   lt_foo = "";
13857   lt_count = 0;
13858   for (lt_i = NF; lt_i > 0; lt_i--) {
13859     if ($lt_i != "" && $lt_i != ".") {
13860       if ($lt_i == "..") {
13861         lt_count++;
13862       } else {
13863         if (lt_count == 0) {
13864           lt_foo = "/" $lt_i lt_foo;
13865         } else {
13866           lt_count--;
13867         }
13868       }
13869     }
13870   }
13871   if (lt_foo != "") { lt_freq[lt_foo]++; }
13872   if (lt_freq[lt_foo] == 1) { print lt_foo; }
13873 }'`
13874   # AWK program above erroneously prepends '/' to C:/dos/paths
13875   # for these hosts.
13876   case $host_os in
13877     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13878       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13879   esac
13880   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13881 else
13882   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13883 fi
13884 library_names_spec=
13885 libname_spec='lib$name'
13886 soname_spec=
13887 shrext_cmds=.so
13888 postinstall_cmds=
13889 postuninstall_cmds=
13890 finish_cmds=
13891 finish_eval=
13892 shlibpath_var=
13893 shlibpath_overrides_runpath=unknown
13894 version_type=none
13895 dynamic_linker="$host_os ld.so"
13896 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13897 need_lib_prefix=unknown
13898 hardcode_into_libs=no
13899
13900 # when you set need_version to no, make sure it does not cause -set_version
13901 # flags to be left without arguments
13902 need_version=unknown
13903
13904
13905
13906 case $host_os in
13907 aix3*)
13908   version_type=linux # correct to gnu/linux during the next big refactor
13909   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13910   shlibpath_var=LIBPATH
13911
13912   # AIX 3 has no versioning support, so we append a major version to the name.
13913   soname_spec='$libname$release$shared_ext$major'
13914   ;;
13915
13916 aix[4-9]*)
13917   version_type=linux # correct to gnu/linux during the next big refactor
13918   need_lib_prefix=no
13919   need_version=no
13920   hardcode_into_libs=yes
13921   if test ia64 = "$host_cpu"; then
13922     # AIX 5 supports IA64
13923     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13924     shlibpath_var=LD_LIBRARY_PATH
13925   else
13926     # With GCC up to 2.95.x, collect2 would create an import file
13927     # for dependence libraries.  The import file would start with
13928     # the line '#! .'.  This would cause the generated library to
13929     # depend on '.', always an invalid library.  This was fixed in
13930     # development snapshots of GCC prior to 3.0.
13931     case $host_os in
13932       aix4 | aix4.[01] | aix4.[01].*)
13933       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13934            echo ' yes '
13935            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13936         :
13937       else
13938         can_build_shared=no
13939       fi
13940       ;;
13941     esac
13942     # Using Import Files as archive members, it is possible to support
13943     # filename-based versioning of shared library archives on AIX. While
13944     # this would work for both with and without runtime linking, it will
13945     # prevent static linking of such archives. So we do filename-based
13946     # shared library versioning with .so extension only, which is used
13947     # when both runtime linking and shared linking is enabled.
13948     # Unfortunately, runtime linking may impact performance, so we do
13949     # not want this to be the default eventually. Also, we use the
13950     # versioned .so libs for executables only if there is the -brtl
13951     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13952     # To allow for filename-based versioning support, we need to create
13953     # libNAME.so.V as an archive file, containing:
13954     # *) an Import File, referring to the versioned filename of the
13955     #    archive as well as the shared archive member, telling the
13956     #    bitwidth (32 or 64) of that shared object, and providing the
13957     #    list of exported symbols of that shared object, eventually
13958     #    decorated with the 'weak' keyword
13959     # *) the shared object with the F_LOADONLY flag set, to really avoid
13960     #    it being seen by the linker.
13961     # At run time we better use the real file rather than another symlink,
13962     # but for link time we create the symlink libNAME.so -> libNAME.so.V
13963
13964     case $with_aix_soname,$aix_use_runtimelinking in
13965     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13966     # soname into executable. Probably we can add versioning support to
13967     # collect2, so additional links can be useful in future.
13968     aix,yes) # traditional libtool
13969       dynamic_linker='AIX unversionable lib.so'
13970       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13971       # instead of lib<name>.a to let people know that these are not
13972       # typical AIX shared libraries.
13973       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13974       ;;
13975     aix,no) # traditional AIX only
13976       dynamic_linker='AIX lib.a(lib.so.V)'
13977       # We preserve .a as extension for shared libraries through AIX4.2
13978       # and later when we are not doing run time linking.
13979       library_names_spec='$libname$release.a $libname.a'
13980       soname_spec='$libname$release$shared_ext$major'
13981       ;;
13982     svr4,*) # full svr4 only
13983       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13984       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13985       # We do not specify a path in Import Files, so LIBPATH fires.
13986       shlibpath_overrides_runpath=yes
13987       ;;
13988     *,yes) # both, prefer svr4
13989       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13990       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13991       # unpreferred sharedlib libNAME.a needs extra handling
13992       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13993       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13994       # We do not specify a path in Import Files, so LIBPATH fires.
13995       shlibpath_overrides_runpath=yes
13996       ;;
13997     *,no) # both, prefer aix
13998       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13999       library_names_spec='$libname$release.a $libname.a'
14000       soname_spec='$libname$release$shared_ext$major'
14001       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14002       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
14003       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
14004       ;;
14005     esac
14006     shlibpath_var=LIBPATH
14007   fi
14008   ;;
14009
14010 amigaos*)
14011   case $host_cpu in
14012   powerpc)
14013     # Since July 2007 AmigaOS4 officially supports .so libraries.
14014     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14015     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14016     ;;
14017   m68k)
14018     library_names_spec='$libname.ixlibrary $libname.a'
14019     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14020     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14021     ;;
14022   esac
14023   ;;
14024
14025 beos*)
14026   library_names_spec='$libname$shared_ext'
14027   dynamic_linker="$host_os ld.so"
14028   shlibpath_var=LIBRARY_PATH
14029   ;;
14030
14031 bsdi[45]*)
14032   version_type=linux # correct to gnu/linux during the next big refactor
14033   need_version=no
14034   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14035   soname_spec='$libname$release$shared_ext$major'
14036   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14037   shlibpath_var=LD_LIBRARY_PATH
14038   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14039   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14040   # the default ld.so.conf also contains /usr/contrib/lib and
14041   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14042   # libtool to hard-code these into programs
14043   ;;
14044
14045 cygwin* | mingw* | pw32* | cegcc*)
14046   version_type=windows
14047   shrext_cmds=.dll
14048   need_version=no
14049   need_lib_prefix=no
14050
14051   case $GCC,$cc_basename in
14052   yes,*)
14053     # gcc
14054     library_names_spec='$libname.dll.a'
14055     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14056     postinstall_cmds='base_file=`basename \$file`~
14057       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14058       dldir=$destdir/`dirname \$dlpath`~
14059       test -d \$dldir || mkdir -p \$dldir~
14060       $install_prog $dir/$dlname \$dldir/$dlname~
14061       chmod a+x \$dldir/$dlname~
14062       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14063         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14064       fi'
14065     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14066       dlpath=$dir/\$dldll~
14067        $RM \$dlpath'
14068     shlibpath_overrides_runpath=yes
14069
14070     case $host_os in
14071     cygwin*)
14072       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14073       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14074
14075       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14076       ;;
14077     mingw* | cegcc*)
14078       # MinGW DLLs use traditional 'lib' prefix
14079       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14080       ;;
14081     pw32*)
14082       # pw32 DLLs use 'pw' prefix rather than 'lib'
14083       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14084       ;;
14085     esac
14086     dynamic_linker='Win32 ld.exe'
14087     ;;
14088
14089   *,cl*)
14090     # Native MSVC
14091     libname_spec='$name'
14092     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14093     library_names_spec='$libname.dll.lib'
14094
14095     case $build_os in
14096     mingw*)
14097       sys_lib_search_path_spec=
14098       lt_save_ifs=$IFS
14099       IFS=';'
14100       for lt_path in $LIB
14101       do
14102         IFS=$lt_save_ifs
14103         # Let DOS variable expansion print the short 8.3 style file name.
14104         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14105         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14106       done
14107       IFS=$lt_save_ifs
14108       # Convert to MSYS style.
14109       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14110       ;;
14111     cygwin*)
14112       # Convert to unix form, then to dos form, then back to unix form
14113       # but this time dos style (no spaces!) so that the unix form looks
14114       # like /cygdrive/c/PROGRA~1:/cygdr...
14115       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14116       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14117       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14118       ;;
14119     *)
14120       sys_lib_search_path_spec=$LIB
14121       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14122         # It is most probably a Windows format PATH.
14123         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14124       else
14125         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14126       fi
14127       # FIXME: find the short name or the path components, as spaces are
14128       # common. (e.g. "Program Files" -> "PROGRA~1")
14129       ;;
14130     esac
14131
14132     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14133     postinstall_cmds='base_file=`basename \$file`~
14134       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14135       dldir=$destdir/`dirname \$dlpath`~
14136       test -d \$dldir || mkdir -p \$dldir~
14137       $install_prog $dir/$dlname \$dldir/$dlname'
14138     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14139       dlpath=$dir/\$dldll~
14140        $RM \$dlpath'
14141     shlibpath_overrides_runpath=yes
14142     dynamic_linker='Win32 link.exe'
14143     ;;
14144
14145   *)
14146     # Assume MSVC wrapper
14147     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14148     dynamic_linker='Win32 ld.exe'
14149     ;;
14150   esac
14151   # FIXME: first we should search . and the directory the executable is in
14152   shlibpath_var=PATH
14153   ;;
14154
14155 darwin* | rhapsody*)
14156   dynamic_linker="$host_os dyld"
14157   version_type=darwin
14158   need_lib_prefix=no
14159   need_version=no
14160   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14161   soname_spec='$libname$release$major$shared_ext'
14162   shlibpath_overrides_runpath=yes
14163   shlibpath_var=DYLD_LIBRARY_PATH
14164   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14165
14166   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14167   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14168   ;;
14169
14170 dgux*)
14171   version_type=linux # correct to gnu/linux during the next big refactor
14172   need_lib_prefix=no
14173   need_version=no
14174   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14175   soname_spec='$libname$release$shared_ext$major'
14176   shlibpath_var=LD_LIBRARY_PATH
14177   ;;
14178
14179 freebsd* | dragonfly*)
14180   # DragonFly does not have aout.  When/if they implement a new
14181   # versioning mechanism, adjust this.
14182   if test -x /usr/bin/objformat; then
14183     objformat=`/usr/bin/objformat`
14184   else
14185     case $host_os in
14186     freebsd[23].*) objformat=aout ;;
14187     *) objformat=elf ;;
14188     esac
14189   fi
14190   version_type=freebsd-$objformat
14191   case $version_type in
14192     freebsd-elf*)
14193       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14194       soname_spec='$libname$release$shared_ext$major'
14195       need_version=no
14196       need_lib_prefix=no
14197       ;;
14198     freebsd-*)
14199       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14200       need_version=yes
14201       ;;
14202   esac
14203   shlibpath_var=LD_LIBRARY_PATH
14204   case $host_os in
14205   freebsd2.*)
14206     shlibpath_overrides_runpath=yes
14207     ;;
14208   freebsd3.[01]* | freebsdelf3.[01]*)
14209     shlibpath_overrides_runpath=yes
14210     hardcode_into_libs=yes
14211     ;;
14212   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14213   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14214     shlibpath_overrides_runpath=no
14215     hardcode_into_libs=yes
14216     ;;
14217   *) # from 4.6 on, and DragonFly
14218     shlibpath_overrides_runpath=yes
14219     hardcode_into_libs=yes
14220     ;;
14221   esac
14222   ;;
14223
14224 haiku*)
14225   version_type=linux # correct to gnu/linux during the next big refactor
14226   need_lib_prefix=no
14227   need_version=no
14228   dynamic_linker="$host_os runtime_loader"
14229   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14230   soname_spec='$libname$release$shared_ext$major'
14231   shlibpath_var=LIBRARY_PATH
14232   shlibpath_overrides_runpath=no
14233   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14234   hardcode_into_libs=yes
14235   ;;
14236
14237 hpux9* | hpux10* | hpux11*)
14238   # Give a soname corresponding to the major version so that dld.sl refuses to
14239   # link against other versions.
14240   version_type=sunos
14241   need_lib_prefix=no
14242   need_version=no
14243   case $host_cpu in
14244   ia64*)
14245     shrext_cmds='.so'
14246     hardcode_into_libs=yes
14247     dynamic_linker="$host_os dld.so"
14248     shlibpath_var=LD_LIBRARY_PATH
14249     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14250     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14251     soname_spec='$libname$release$shared_ext$major'
14252     if test 32 = "$HPUX_IA64_MODE"; then
14253       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14254       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14255     else
14256       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14257       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14258     fi
14259     ;;
14260   hppa*64*)
14261     shrext_cmds='.sl'
14262     hardcode_into_libs=yes
14263     dynamic_linker="$host_os dld.sl"
14264     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14265     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14266     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14267     soname_spec='$libname$release$shared_ext$major'
14268     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14269     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14270     ;;
14271   *)
14272     shrext_cmds='.sl'
14273     dynamic_linker="$host_os dld.sl"
14274     shlibpath_var=SHLIB_PATH
14275     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14276     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14277     soname_spec='$libname$release$shared_ext$major'
14278     ;;
14279   esac
14280   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14281   postinstall_cmds='chmod 555 $lib'
14282   # or fails outright, so override atomically:
14283   install_override_mode=555
14284   ;;
14285
14286 interix[3-9]*)
14287   version_type=linux # correct to gnu/linux during the next big refactor
14288   need_lib_prefix=no
14289   need_version=no
14290   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14291   soname_spec='$libname$release$shared_ext$major'
14292   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14293   shlibpath_var=LD_LIBRARY_PATH
14294   shlibpath_overrides_runpath=no
14295   hardcode_into_libs=yes
14296   ;;
14297
14298 irix5* | irix6* | nonstopux*)
14299   case $host_os in
14300     nonstopux*) version_type=nonstopux ;;
14301     *)
14302         if test yes = "$lt_cv_prog_gnu_ld"; then
14303                 version_type=linux # correct to gnu/linux during the next big refactor
14304         else
14305                 version_type=irix
14306         fi ;;
14307   esac
14308   need_lib_prefix=no
14309   need_version=no
14310   soname_spec='$libname$release$shared_ext$major'
14311   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14312   case $host_os in
14313   irix5* | nonstopux*)
14314     libsuff= shlibsuff=
14315     ;;
14316   *)
14317     case $LD in # libtool.m4 will add one of these switches to LD
14318     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14319       libsuff= shlibsuff= libmagic=32-bit;;
14320     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14321       libsuff=32 shlibsuff=N32 libmagic=N32;;
14322     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14323       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14324     *) libsuff= shlibsuff= libmagic=never-match;;
14325     esac
14326     ;;
14327   esac
14328   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14329   shlibpath_overrides_runpath=no
14330   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14331   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14332   hardcode_into_libs=yes
14333   ;;
14334
14335 # No shared lib support for Linux oldld, aout, or coff.
14336 linux*oldld* | linux*aout* | linux*coff*)
14337   dynamic_linker=no
14338   ;;
14339
14340 linux*android*)
14341   version_type=none # Android doesn't support versioned libraries.
14342   need_lib_prefix=no
14343   need_version=no
14344   library_names_spec='$libname$release$shared_ext'
14345   soname_spec='$libname$release$shared_ext'
14346   finish_cmds=
14347   shlibpath_var=LD_LIBRARY_PATH
14348   shlibpath_overrides_runpath=yes
14349
14350   # This implies no fast_install, which is unacceptable.
14351   # Some rework will be needed to allow for fast_install
14352   # before this can be enabled.
14353   hardcode_into_libs=yes
14354
14355   dynamic_linker='Android linker'
14356   # Don't embed -rpath directories since the linker doesn't support them.
14357   hardcode_libdir_flag_spec='-L$libdir'
14358   ;;
14359
14360 # This must be glibc/ELF.
14361 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14362   version_type=linux # correct to gnu/linux during the next big refactor
14363   need_lib_prefix=no
14364   need_version=no
14365   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14366   soname_spec='$libname$release$shared_ext$major'
14367   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14368   shlibpath_var=LD_LIBRARY_PATH
14369   shlibpath_overrides_runpath=no
14370
14371   # Some binutils ld are patched to set DT_RUNPATH
14372   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14373   $as_echo_n "(cached) " >&6
14374 else
14375   lt_cv_shlibpath_overrides_runpath=no
14376     save_LDFLAGS=$LDFLAGS
14377     save_libdir=$libdir
14378     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14379          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14380     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14381 /* end confdefs.h.  */
14382
14383 int main (void)
14384 {
14385
14386  ;
14387  return 0;
14388 }
14389 _ACEOF
14390 if ac_fn_c_try_link "$LINENO"; then :
14391   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14392   lt_cv_shlibpath_overrides_runpath=yes
14393 fi
14394 fi
14395 rm -f core conftest.err conftest.$ac_objext \
14396     conftest$ac_exeext conftest.$ac_ext
14397     LDFLAGS=$save_LDFLAGS
14398     libdir=$save_libdir
14399
14400 fi
14401
14402   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14403
14404   # This implies no fast_install, which is unacceptable.
14405   # Some rework will be needed to allow for fast_install
14406   # before this can be enabled.
14407   hardcode_into_libs=yes
14408
14409   # Ideally, we could use ldconfig to report *all* directores which are
14410   # searched for libraries, however this is still not possible.  Aside from not
14411   # being certain /sbin/ldconfig is available, command
14412   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14413   # even though it is searched at run-time.  Try to do the best guess by
14414   # appending ld.so.conf contents (and includes) to the search path.
14415   if test -f /etc/ld.so.conf; then
14416     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
14417     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14418   fi
14419
14420   # We used to test for /lib/ld.so.1 and disable shared libraries on
14421   # powerpc, because MkLinux only supported shared libraries with the
14422   # GNU dynamic linker.  Since this was broken with cross compilers,
14423   # most powerpc-linux boxes support dynamic linking these days and
14424   # people can always --disable-shared, the test was removed, and we
14425   # assume the GNU/Linux dynamic linker is in use.
14426   dynamic_linker='GNU/Linux ld.so'
14427   ;;
14428
14429 netbsdelf*-gnu)
14430   version_type=linux
14431   need_lib_prefix=no
14432   need_version=no
14433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14434   soname_spec='${libname}${release}${shared_ext}$major'
14435   shlibpath_var=LD_LIBRARY_PATH
14436   shlibpath_overrides_runpath=no
14437   hardcode_into_libs=yes
14438   dynamic_linker='NetBSD ld.elf_so'
14439   ;;
14440
14441 netbsd*)
14442   version_type=sunos
14443   need_lib_prefix=no
14444   need_version=no
14445   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14446     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14447     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14448     dynamic_linker='NetBSD (a.out) ld.so'
14449   else
14450     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14451     soname_spec='$libname$release$shared_ext$major'
14452     dynamic_linker='NetBSD ld.elf_so'
14453   fi
14454   shlibpath_var=LD_LIBRARY_PATH
14455   shlibpath_overrides_runpath=yes
14456   hardcode_into_libs=yes
14457   ;;
14458
14459 newsos6)
14460   version_type=linux # correct to gnu/linux during the next big refactor
14461   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14462   shlibpath_var=LD_LIBRARY_PATH
14463   shlibpath_overrides_runpath=yes
14464   ;;
14465
14466 *nto* | *qnx*)
14467   version_type=qnx
14468   need_lib_prefix=no
14469   need_version=no
14470   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14471   soname_spec='$libname$release$shared_ext$major'
14472   shlibpath_var=LD_LIBRARY_PATH
14473   shlibpath_overrides_runpath=no
14474   hardcode_into_libs=yes
14475   dynamic_linker='ldqnx.so'
14476   ;;
14477
14478 openbsd* | bitrig*)
14479   version_type=sunos
14480   sys_lib_dlsearch_path_spec=/usr/lib
14481   need_lib_prefix=no
14482   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14483     need_version=no
14484   else
14485     need_version=yes
14486   fi
14487   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14488   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14489   shlibpath_var=LD_LIBRARY_PATH
14490   shlibpath_overrides_runpath=yes
14491   ;;
14492
14493 os2*)
14494   libname_spec='$name'
14495   version_type=windows
14496   shrext_cmds=.dll
14497   need_version=no
14498   need_lib_prefix=no
14499   # OS/2 can only load a DLL with a base name of 8 characters or less.
14500   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14501     v=$($ECHO $release$versuffix | tr -d .-);
14502     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14503     $ECHO $n$v`$shared_ext'
14504   library_names_spec='${libname}_dll.$libext'
14505   dynamic_linker='OS/2 ld.exe'
14506   shlibpath_var=BEGINLIBPATH
14507   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14508   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14509   postinstall_cmds='base_file=`basename \$file`~
14510     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14511     dldir=$destdir/`dirname \$dlpath`~
14512     test -d \$dldir || mkdir -p \$dldir~
14513     $install_prog $dir/$dlname \$dldir/$dlname~
14514     chmod a+x \$dldir/$dlname~
14515     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14516       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14517     fi'
14518   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14519     dlpath=$dir/\$dldll~
14520     $RM \$dlpath'
14521   ;;
14522
14523 osf3* | osf4* | osf5*)
14524   version_type=osf
14525   need_lib_prefix=no
14526   need_version=no
14527   soname_spec='$libname$release$shared_ext$major'
14528   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14529   shlibpath_var=LD_LIBRARY_PATH
14530   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14531   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14532   ;;
14533
14534 rdos*)
14535   dynamic_linker=no
14536   ;;
14537
14538 solaris*)
14539   version_type=linux # correct to gnu/linux during the next big refactor
14540   need_lib_prefix=no
14541   need_version=no
14542   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14543   soname_spec='$libname$release$shared_ext$major'
14544   shlibpath_var=LD_LIBRARY_PATH
14545   shlibpath_overrides_runpath=yes
14546   hardcode_into_libs=yes
14547   # ldd complains unless libraries are executable
14548   postinstall_cmds='chmod +x $lib'
14549   ;;
14550
14551 sunos4*)
14552   version_type=sunos
14553   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14554   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14555   shlibpath_var=LD_LIBRARY_PATH
14556   shlibpath_overrides_runpath=yes
14557   if test yes = "$with_gnu_ld"; then
14558     need_lib_prefix=no
14559   fi
14560   need_version=yes
14561   ;;
14562
14563 sysv4 | sysv4.3*)
14564   version_type=linux # correct to gnu/linux during the next big refactor
14565   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14566   soname_spec='$libname$release$shared_ext$major'
14567   shlibpath_var=LD_LIBRARY_PATH
14568   case $host_vendor in
14569     sni)
14570       shlibpath_overrides_runpath=no
14571       need_lib_prefix=no
14572       runpath_var=LD_RUN_PATH
14573       ;;
14574     siemens)
14575       need_lib_prefix=no
14576       ;;
14577     motorola)
14578       need_lib_prefix=no
14579       need_version=no
14580       shlibpath_overrides_runpath=no
14581       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14582       ;;
14583   esac
14584   ;;
14585
14586 sysv4*MP*)
14587   if test -d /usr/nec; then
14588     version_type=linux # correct to gnu/linux during the next big refactor
14589     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14590     soname_spec='$libname$shared_ext.$major'
14591     shlibpath_var=LD_LIBRARY_PATH
14592   fi
14593   ;;
14594
14595 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14596   version_type=sco
14597   need_lib_prefix=no
14598   need_version=no
14599   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14600   soname_spec='$libname$release$shared_ext$major'
14601   shlibpath_var=LD_LIBRARY_PATH
14602   shlibpath_overrides_runpath=yes
14603   hardcode_into_libs=yes
14604   if test yes = "$with_gnu_ld"; then
14605     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14606   else
14607     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14608     case $host_os in
14609       sco3.2v5*)
14610         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14611         ;;
14612     esac
14613   fi
14614   sys_lib_dlsearch_path_spec='/usr/lib'
14615   ;;
14616
14617 tpf*)
14618   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14619   version_type=linux # correct to gnu/linux during the next big refactor
14620   need_lib_prefix=no
14621   need_version=no
14622   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14623   shlibpath_var=LD_LIBRARY_PATH
14624   shlibpath_overrides_runpath=no
14625   hardcode_into_libs=yes
14626   ;;
14627
14628 uts4*)
14629   version_type=linux # correct to gnu/linux during the next big refactor
14630   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14631   soname_spec='$libname$release$shared_ext$major'
14632   shlibpath_var=LD_LIBRARY_PATH
14633   ;;
14634
14635 *)
14636   dynamic_linker=no
14637   ;;
14638 esac
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14640 $as_echo "$dynamic_linker" >&6; }
14641 test no = "$dynamic_linker" && can_build_shared=no
14642
14643 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14644 if test yes = "$GCC"; then
14645   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14646 fi
14647
14648 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14649   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14650 fi
14651
14652 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14653   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14654 fi
14655
14656 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14657 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14658
14659 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14660 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14661
14662 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14663 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14762 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14763 hardcode_action=
14764 if test -n "$hardcode_libdir_flag_spec" ||
14765    test -n "$runpath_var" ||
14766    test yes = "$hardcode_automatic"; then
14767
14768   # We can hardcode non-existent directories.
14769   if test no != "$hardcode_direct" &&
14770      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14771      # have to relink, otherwise we might link with an installed library
14772      # when we should be linking with a yet-to-be-installed one
14773      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14774      test no != "$hardcode_minus_L"; then
14775     # Linking always hardcodes the temporary library directory.
14776     hardcode_action=relink
14777   else
14778     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14779     hardcode_action=immediate
14780   fi
14781 else
14782   # We cannot hardcode anything, or else we can only hardcode existing
14783   # directories.
14784   hardcode_action=unsupported
14785 fi
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14787 $as_echo "$hardcode_action" >&6; }
14788
14789 if test relink = "$hardcode_action" ||
14790    test yes = "$inherit_rpath"; then
14791   # Fast installation is not supported
14792   enable_fast_install=no
14793 elif test yes = "$shlibpath_overrides_runpath" ||
14794      test no = "$enable_shared"; then
14795   # Fast installation is not necessary
14796   enable_fast_install=needless
14797 fi
14798
14799
14800
14801
14802
14803
14804   if test yes != "$enable_dlopen"; then
14805   enable_dlopen=unknown
14806   enable_dlopen_self=unknown
14807   enable_dlopen_self_static=unknown
14808 else
14809   lt_cv_dlopen=no
14810   lt_cv_dlopen_libs=
14811
14812   case $host_os in
14813   beos*)
14814     lt_cv_dlopen=load_add_on
14815     lt_cv_dlopen_libs=
14816     lt_cv_dlopen_self=yes
14817     ;;
14818
14819   mingw* | pw32* | cegcc*)
14820     lt_cv_dlopen=LoadLibrary
14821     lt_cv_dlopen_libs=
14822     ;;
14823
14824   cygwin*)
14825     lt_cv_dlopen=dlopen
14826     lt_cv_dlopen_libs=
14827     ;;
14828
14829   darwin*)
14830     # if libdl is installed we need to link against it
14831     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14832 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14833 if ${ac_cv_lib_dl_dlopen+:} false; then :
14834   $as_echo_n "(cached) " >&6
14835 else
14836   ac_check_lib_save_LIBS=$LIBS
14837 LIBS="-ldl  $LIBS"
14838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14839 /* end confdefs.h.  */
14840
14841
14842 #ifdef __cplusplus
14843 extern "C"
14844 #endif
14845 char dlopen ();
14846 int main (void)
14847 {
14848 return dlopen ();
14849  ;
14850  return 0;
14851 }
14852 _ACEOF
14853 if ac_fn_c_try_link "$LINENO"; then :
14854   ac_cv_lib_dl_dlopen=yes
14855 else
14856   ac_cv_lib_dl_dlopen=no
14857 fi
14858 rm -f core conftest.err conftest.$ac_objext \
14859     conftest$ac_exeext conftest.$ac_ext
14860 LIBS=$ac_check_lib_save_LIBS
14861 fi
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14863 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14864 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14865   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14866 else
14867
14868     lt_cv_dlopen=dyld
14869     lt_cv_dlopen_libs=
14870     lt_cv_dlopen_self=yes
14871
14872 fi
14873
14874     ;;
14875
14876   tpf*)
14877     # Don't try to run any link tests for TPF.  We know it's impossible
14878     # because TPF is a cross-compiler, and we know how we open DSOs.
14879     lt_cv_dlopen=dlopen
14880     lt_cv_dlopen_libs=
14881     lt_cv_dlopen_self=no
14882     ;;
14883
14884   *)
14885     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14886 if test "x$ac_cv_func_shl_load" = xyes; then :
14887   lt_cv_dlopen=shl_load
14888 else
14889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14890 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14891 if ${ac_cv_lib_dld_shl_load+:} false; then :
14892   $as_echo_n "(cached) " >&6
14893 else
14894   ac_check_lib_save_LIBS=$LIBS
14895 LIBS="-ldld  $LIBS"
14896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14897 /* end confdefs.h.  */
14898
14899
14900 #ifdef __cplusplus
14901 extern "C"
14902 #endif
14903 char shl_load ();
14904 int main (void)
14905 {
14906 return shl_load ();
14907  ;
14908  return 0;
14909 }
14910 _ACEOF
14911 if ac_fn_c_try_link "$LINENO"; then :
14912   ac_cv_lib_dld_shl_load=yes
14913 else
14914   ac_cv_lib_dld_shl_load=no
14915 fi
14916 rm -f core conftest.err conftest.$ac_objext \
14917     conftest$ac_exeext conftest.$ac_ext
14918 LIBS=$ac_check_lib_save_LIBS
14919 fi
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14921 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14922 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14923   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14924 else
14925   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14926 if test "x$ac_cv_func_dlopen" = xyes; then :
14927   lt_cv_dlopen=dlopen
14928 else
14929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14930 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14931 if ${ac_cv_lib_dl_dlopen+:} false; then :
14932   $as_echo_n "(cached) " >&6
14933 else
14934   ac_check_lib_save_LIBS=$LIBS
14935 LIBS="-ldl  $LIBS"
14936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14937 /* end confdefs.h.  */
14938
14939
14940 #ifdef __cplusplus
14941 extern "C"
14942 #endif
14943 char dlopen ();
14944 int main (void)
14945 {
14946 return dlopen ();
14947  ;
14948  return 0;
14949 }
14950 _ACEOF
14951 if ac_fn_c_try_link "$LINENO"; then :
14952   ac_cv_lib_dl_dlopen=yes
14953 else
14954   ac_cv_lib_dl_dlopen=no
14955 fi
14956 rm -f core conftest.err conftest.$ac_objext \
14957     conftest$ac_exeext conftest.$ac_ext
14958 LIBS=$ac_check_lib_save_LIBS
14959 fi
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14961 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14962 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14963   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14964 else
14965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14966 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14967 if ${ac_cv_lib_svld_dlopen+:} false; then :
14968   $as_echo_n "(cached) " >&6
14969 else
14970   ac_check_lib_save_LIBS=$LIBS
14971 LIBS="-lsvld  $LIBS"
14972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14973 /* end confdefs.h.  */
14974
14975
14976 #ifdef __cplusplus
14977 extern "C"
14978 #endif
14979 char dlopen ();
14980 int main (void)
14981 {
14982 return dlopen ();
14983  ;
14984  return 0;
14985 }
14986 _ACEOF
14987 if ac_fn_c_try_link "$LINENO"; then :
14988   ac_cv_lib_svld_dlopen=yes
14989 else
14990   ac_cv_lib_svld_dlopen=no
14991 fi
14992 rm -f core conftest.err conftest.$ac_objext \
14993     conftest$ac_exeext conftest.$ac_ext
14994 LIBS=$ac_check_lib_save_LIBS
14995 fi
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14997 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14998 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14999   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15000 else
15001   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15002 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15003 if ${ac_cv_lib_dld_dld_link+:} false; then :
15004   $as_echo_n "(cached) " >&6
15005 else
15006   ac_check_lib_save_LIBS=$LIBS
15007 LIBS="-ldld  $LIBS"
15008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15009 /* end confdefs.h.  */
15010
15011
15012 #ifdef __cplusplus
15013 extern "C"
15014 #endif
15015 char dld_link ();
15016 int main (void)
15017 {
15018 return dld_link ();
15019  ;
15020  return 0;
15021 }
15022 _ACEOF
15023 if ac_fn_c_try_link "$LINENO"; then :
15024   ac_cv_lib_dld_dld_link=yes
15025 else
15026   ac_cv_lib_dld_dld_link=no
15027 fi
15028 rm -f core conftest.err conftest.$ac_objext \
15029     conftest$ac_exeext conftest.$ac_ext
15030 LIBS=$ac_check_lib_save_LIBS
15031 fi
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15033 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15034 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15035   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15036 fi
15037
15038
15039 fi
15040
15041
15042 fi
15043
15044
15045 fi
15046
15047
15048 fi
15049
15050
15051 fi
15052
15053     ;;
15054   esac
15055
15056   if test no = "$lt_cv_dlopen"; then
15057     enable_dlopen=no
15058   else
15059     enable_dlopen=yes
15060   fi
15061
15062   case $lt_cv_dlopen in
15063   dlopen)
15064     save_CPPFLAGS=$CPPFLAGS
15065     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15066
15067     save_LDFLAGS=$LDFLAGS
15068     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15069
15070     save_LIBS=$LIBS
15071     LIBS="$lt_cv_dlopen_libs $LIBS"
15072
15073     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15074 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15075 if ${lt_cv_dlopen_self+:} false; then :
15076   $as_echo_n "(cached) " >&6
15077 else
15078           if test yes = "$cross_compiling"; then :
15079   lt_cv_dlopen_self=cross
15080 else
15081   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15082   lt_status=$lt_dlunknown
15083   cat > conftest.$ac_ext <<_LT_EOF
15084 #line $LINENO "configure"
15085 #include "confdefs.h"
15086
15087 #if HAVE_DLFCN_H
15088 #include <dlfcn.h>
15089 #endif
15090
15091 #include <stdio.h>
15092
15093 #ifdef RTLD_GLOBAL
15094 #  define LT_DLGLOBAL           RTLD_GLOBAL
15095 #else
15096 #  ifdef DL_GLOBAL
15097 #    define LT_DLGLOBAL         DL_GLOBAL
15098 #  else
15099 #    define LT_DLGLOBAL         0
15100 #  endif
15101 #endif
15102
15103 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15104    find out it does not work in some platform. */
15105 #ifndef LT_DLLAZY_OR_NOW
15106 #  ifdef RTLD_LAZY
15107 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15108 #  else
15109 #    ifdef DL_LAZY
15110 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15111 #    else
15112 #      ifdef RTLD_NOW
15113 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15114 #      else
15115 #        ifdef DL_NOW
15116 #          define LT_DLLAZY_OR_NOW      DL_NOW
15117 #        else
15118 #          define LT_DLLAZY_OR_NOW      0
15119 #        endif
15120 #      endif
15121 #    endif
15122 #  endif
15123 #endif
15124
15125 /* When -fvisibility=hidden is used, assume the code has been annotated
15126    correspondingly for the symbols needed.  */
15127 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15128 int fnord () __attribute__((visibility("default")));
15129 #endif
15130
15131 int fnord () { return 42; }
15132 int main ()
15133 {
15134   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15135   int status = $lt_dlunknown;
15136
15137   if (self)
15138     {
15139       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15140       else
15141         {
15142           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15143           else puts (dlerror ());
15144         }
15145       /* dlclose (self); */
15146     }
15147   else
15148     puts (dlerror ());
15149
15150   return status;
15151 }
15152 _LT_EOF
15153   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15154   (eval $ac_link) 2>&5
15155   ac_status=$?
15156   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15157   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15158     (./conftest; exit; ) >&5 2>/dev/null
15159     lt_status=$?
15160     case x$lt_status in
15161       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15162       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15163       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15164     esac
15165   else :
15166     # compilation failed
15167     lt_cv_dlopen_self=no
15168   fi
15169 fi
15170 rm -fr conftest*
15171
15172
15173 fi
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15175 $as_echo "$lt_cv_dlopen_self" >&6; }
15176
15177     if test yes = "$lt_cv_dlopen_self"; then
15178       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15179       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15180 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15181 if ${lt_cv_dlopen_self_static+:} false; then :
15182   $as_echo_n "(cached) " >&6
15183 else
15184           if test yes = "$cross_compiling"; then :
15185   lt_cv_dlopen_self_static=cross
15186 else
15187   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15188   lt_status=$lt_dlunknown
15189   cat > conftest.$ac_ext <<_LT_EOF
15190 #line $LINENO "configure"
15191 #include "confdefs.h"
15192
15193 #if HAVE_DLFCN_H
15194 #include <dlfcn.h>
15195 #endif
15196
15197 #include <stdio.h>
15198
15199 #ifdef RTLD_GLOBAL
15200 #  define LT_DLGLOBAL           RTLD_GLOBAL
15201 #else
15202 #  ifdef DL_GLOBAL
15203 #    define LT_DLGLOBAL         DL_GLOBAL
15204 #  else
15205 #    define LT_DLGLOBAL         0
15206 #  endif
15207 #endif
15208
15209 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15210    find out it does not work in some platform. */
15211 #ifndef LT_DLLAZY_OR_NOW
15212 #  ifdef RTLD_LAZY
15213 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15214 #  else
15215 #    ifdef DL_LAZY
15216 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15217 #    else
15218 #      ifdef RTLD_NOW
15219 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15220 #      else
15221 #        ifdef DL_NOW
15222 #          define LT_DLLAZY_OR_NOW      DL_NOW
15223 #        else
15224 #          define LT_DLLAZY_OR_NOW      0
15225 #        endif
15226 #      endif
15227 #    endif
15228 #  endif
15229 #endif
15230
15231 /* When -fvisibility=hidden is used, assume the code has been annotated
15232    correspondingly for the symbols needed.  */
15233 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15234 int fnord () __attribute__((visibility("default")));
15235 #endif
15236
15237 int fnord () { return 42; }
15238 int main ()
15239 {
15240   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15241   int status = $lt_dlunknown;
15242
15243   if (self)
15244     {
15245       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15246       else
15247         {
15248           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15249           else puts (dlerror ());
15250         }
15251       /* dlclose (self); */
15252     }
15253   else
15254     puts (dlerror ());
15255
15256   return status;
15257 }
15258 _LT_EOF
15259   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15260   (eval $ac_link) 2>&5
15261   ac_status=$?
15262   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15263   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15264     (./conftest; exit; ) >&5 2>/dev/null
15265     lt_status=$?
15266     case x$lt_status in
15267       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15268       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15269       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15270     esac
15271   else :
15272     # compilation failed
15273     lt_cv_dlopen_self_static=no
15274   fi
15275 fi
15276 rm -fr conftest*
15277
15278
15279 fi
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15281 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15282     fi
15283
15284     CPPFLAGS=$save_CPPFLAGS
15285     LDFLAGS=$save_LDFLAGS
15286     LIBS=$save_LIBS
15287     ;;
15288   esac
15289
15290   case $lt_cv_dlopen_self in
15291   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15292   *) enable_dlopen_self=unknown ;;
15293   esac
15294
15295   case $lt_cv_dlopen_self_static in
15296   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15297   *) enable_dlopen_self_static=unknown ;;
15298   esac
15299 fi
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317 striplib=
15318 old_striplib=
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15320 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15321 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15322   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15323   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15325 $as_echo "yes" >&6; }
15326 else
15327 # FIXME - insert some real tests, host_os isn't really good enough
15328   case $host_os in
15329   darwin*)
15330     if test -n "$STRIP"; then
15331       striplib="$STRIP -x"
15332       old_striplib="$STRIP -S"
15333       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15334 $as_echo "yes" >&6; }
15335     else
15336       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15337 $as_echo "no" >&6; }
15338     fi
15339     ;;
15340   *)
15341     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15342 $as_echo "no" >&6; }
15343     ;;
15344   esac
15345 fi
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358   # Report what library types will actually be built
15359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15360 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15362 $as_echo "$can_build_shared" >&6; }
15363
15364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15365 $as_echo_n "checking whether to build shared libraries... " >&6; }
15366   test no = "$can_build_shared" && enable_shared=no
15367
15368   # On AIX, shared libraries and static libraries use the same namespace, and
15369   # are all built from PIC.
15370   case $host_os in
15371   aix3*)
15372     test yes = "$enable_shared" && enable_static=no
15373     if test -n "$RANLIB"; then
15374       archive_cmds="$archive_cmds~\$RANLIB \$lib"
15375       postinstall_cmds='$RANLIB $lib'
15376     fi
15377     ;;
15378
15379   aix[4-9]*)
15380     if test ia64 != "$host_cpu"; then
15381       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15382       yes,aix,yes) ;;                   # shared object as lib.so file only
15383       yes,svr4,*) ;;                    # shared object as lib.so archive member only
15384       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
15385       esac
15386     fi
15387     ;;
15388   esac
15389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15390 $as_echo "$enable_shared" >&6; }
15391
15392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15393 $as_echo_n "checking whether to build static libraries... " >&6; }
15394   # Make sure either enable_shared or enable_static is yes.
15395   test yes = "$enable_shared" || enable_static=yes
15396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15397 $as_echo "$enable_static" >&6; }
15398
15399
15400
15401
15402 fi
15403 ac_ext=c
15404 ac_cpp='$CPP $CPPFLAGS'
15405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15408
15409 CC=$lt_save_CC
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425         ac_config_commands="$ac_config_commands libtool"
15426
15427
15428
15429
15430 # Only expand once:
15431
15432
15433 ## --------------------- ##
15434 ##  End of libtool code  ##
15435 ## --------------------- ##
15436
15437 #
15438 # Verify if finally libtool shared libraries will be built
15439 #
15440
15441 case "x$enable_shared" in # ((
15442   xyes | xno)
15443     xc_lt_build_shared=$enable_shared
15444     ;;
15445   *)
15446     as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15447     ;;
15448 esac
15449
15450 #
15451 # Verify if finally libtool static libraries will be built
15452 #
15453
15454 case "x$enable_static" in # ((
15455   xyes | xno)
15456     xc_lt_build_static=$enable_static
15457     ;;
15458   *)
15459     as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15460     ;;
15461 esac
15462
15463 #
15464 # Verify if libtool shared libraries should be linked using flag -version-info
15465 #
15466
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15468 $as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15469 xc_lt_shlib_use_version_info='yes'
15470 if test "x$version_type" = 'xnone'; then
15471   xc_lt_shlib_use_version_info='no'
15472 fi
15473 case $host_os in # (
15474   amigaos*)
15475     xc_lt_shlib_use_version_info='yes'
15476     ;;
15477 esac
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15479 $as_echo "$xc_lt_shlib_use_version_info" >&6; }
15480
15481 #
15482 # Verify if libtool shared libraries should be linked using flag -no-undefined
15483 #
15484
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15486 $as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15487 xc_lt_shlib_use_no_undefined='no'
15488 if test "x$allow_undefined" = 'xno'; then
15489   xc_lt_shlib_use_no_undefined='yes'
15490 elif test "x$allow_undefined_flag" = 'xunsupported'; then
15491   xc_lt_shlib_use_no_undefined='yes'
15492 fi
15493 case $host_os in # (
15494   cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15495     xc_lt_shlib_use_no_undefined='yes'
15496     ;;
15497 esac
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15499 $as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15500
15501 #
15502 # Verify if libtool shared libraries should be linked using flag -mimpure-text
15503 #
15504
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15506 $as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15507 xc_lt_shlib_use_mimpure_text='no'
15508 case $host_os in # (
15509   solaris2*)
15510     if test "x$GCC" = 'xyes'; then
15511       xc_lt_shlib_use_mimpure_text='yes'
15512     fi
15513     ;;
15514 esac
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15516 $as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15517
15518 #
15519 # Find out whether libtool libraries would be built wit PIC
15520 #
15521
15522 case "x$pic_mode" in # ((((
15523   xdefault)
15524     xc_lt_build_shared_with_pic='yes'
15525     xc_lt_build_static_with_pic='no'
15526     ;;
15527   xyes)
15528     xc_lt_build_shared_with_pic='yes'
15529     xc_lt_build_static_with_pic='yes'
15530     ;;
15531   xno)
15532     xc_lt_build_shared_with_pic='no'
15533     xc_lt_build_static_with_pic='no'
15534     ;;
15535   *)
15536     xc_lt_build_shared_with_pic='unknown'
15537     xc_lt_build_static_with_pic='unknown'
15538     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15539 $as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15540     ;;
15541 esac
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15543 $as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15545 $as_echo "$xc_lt_build_shared_with_pic" >&6; }
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15547 $as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15549 $as_echo "$xc_lt_build_static_with_pic" >&6; }
15550
15551 #
15552 # Verify if libtool shared libraries will be built while static not built
15553 #
15554
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15556 $as_echo_n "checking whether to build shared libraries only... " >&6; }
15557 if test "$xc_lt_build_shared" = 'yes' &&
15558   test "$xc_lt_build_static" = 'no'; then
15559   xc_lt_build_shared_only='yes'
15560 else
15561   xc_lt_build_shared_only='no'
15562 fi
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15564 $as_echo "$xc_lt_build_shared_only" >&6; }
15565
15566 #
15567 # Verify if libtool static libraries will be built while shared not built
15568 #
15569
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15571 $as_echo_n "checking whether to build static libraries only... " >&6; }
15572 if test "$xc_lt_build_static" = 'yes' &&
15573   test "$xc_lt_build_shared" = 'no'; then
15574   xc_lt_build_static_only='yes'
15575 else
15576   xc_lt_build_static_only='no'
15577 fi
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15579 $as_echo "$xc_lt_build_static_only" >&6; }
15580
15581
15582
15583
15584 #
15585 # Automake conditionals based on libtool related checks
15586 #
15587
15588  if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15589   CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
15590   CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15591 else
15592   CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
15593   CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
15594 fi
15595
15596  if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
15597   CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
15598   CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
15599 else
15600   CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
15601   CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
15602 fi
15603
15604  if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
15605   CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
15606   CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
15607 else
15608   CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
15609   CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
15610 fi
15611
15612
15613 #
15614 # Due to libtool and automake machinery limitations of not allowing
15615 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
15616 # inclusion of these in shared or static libraries, we are forced to
15617 # build using separate configure runs for shared and static libraries
15618 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
15619 # to compile objects for each kind of library. Notice that relying on
15620 # the '-DPIC' CFLAG that libtool provides is not valid given that the
15621 # user might for example choose to build static libraries with PIC.
15622 #
15623
15624 #
15625 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
15626 # targeting a static library and not building its shared counterpart.
15627 #
15628
15629  if test "x$xc_lt_build_static_only" = 'xyes'; then
15630   USE_CPPFLAG_CURL_STATICLIB_TRUE=
15631   USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
15632 else
15633   USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
15634   USE_CPPFLAG_CURL_STATICLIB_FALSE=
15635 fi
15636
15637
15638 #
15639 # Make staticlib CPPFLAG variable and its definition visible in output
15640 # files unconditionally, providing an empty definition unless strictly
15641 # targeting a static library and not building its shared counterpart.
15642 #
15643
15644 CPPFLAG_CURL_STATICLIB=
15645 if test "x$xc_lt_build_static_only" = 'xyes'; then
15646   CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
15647 fi
15648
15649
15650
15651 # Determine whether all dependent libraries must be specified when linking
15652 if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
15653 then
15654     REQUIRE_LIB_DEPS=no
15655 else
15656     REQUIRE_LIB_DEPS=yes
15657 fi
15658
15659  if test x$REQUIRE_LIB_DEPS = xyes; then
15660   USE_EXPLICIT_LIB_DEPS_TRUE=
15661   USE_EXPLICIT_LIB_DEPS_FALSE='#'
15662 else
15663   USE_EXPLICIT_LIB_DEPS_TRUE='#'
15664   USE_EXPLICIT_LIB_DEPS_FALSE=
15665 fi
15666
15667
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15669 $as_echo_n "checking for inline... " >&6; }
15670 if ${ac_cv_c_inline+:} false; then :
15671   $as_echo_n "(cached) " >&6
15672 else
15673   ac_cv_c_inline=no
15674 for ac_kw in inline __inline__ __inline; do
15675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15676 /* end confdefs.h.  */
15677 #ifndef __cplusplus
15678 typedef int foo_t;
15679 static $ac_kw foo_t static_foo () {return 0; }
15680 $ac_kw foo_t foo () {return 0; }
15681 #endif
15682
15683 _ACEOF
15684 if ac_fn_c_try_compile "$LINENO"; then :
15685   ac_cv_c_inline=$ac_kw
15686 fi
15687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15688   test "$ac_cv_c_inline" != no && break
15689 done
15690
15691 fi
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15693 $as_echo "$ac_cv_c_inline" >&6; }
15694
15695 case $ac_cv_c_inline in
15696   inline | yes) ;;
15697   *)
15698     case $ac_cv_c_inline in
15699       no) ac_val=;;
15700       *) ac_val=$ac_cv_c_inline;;
15701     esac
15702     cat >>confdefs.h <<_ACEOF
15703 #ifndef __cplusplus
15704 #define inline $ac_val
15705 #endif
15706 _ACEOF
15707     ;;
15708 esac
15709
15710
15711
15712
15713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
15714 $as_echo_n "checking if cpp -P is needed... " >&6; }
15715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15716 /* end confdefs.h.  */
15717
15718  #include <errno.h>
15719 TEST EINVAL TEST
15720
15721 _ACEOF
15722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15723   $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15724   cpp=no
15725 else
15726   cpp=yes
15727 fi
15728 rm -f conftest*
15729
15730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
15731 $as_echo "$cpp" >&6; }
15732
15733     if test "x$cpp" = "xyes"; then
15734     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
15735 $as_echo_n "checking if cpp -P works... " >&6; }
15736     OLDCPPFLAGS=$CPPFLAGS
15737     CPPFLAGS="$CPPFLAGS -P"
15738     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15739 /* end confdefs.h.  */
15740
15741  #include <errno.h>
15742 TEST EINVAL TEST
15743
15744 _ACEOF
15745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15746   $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15747   cpp_p=yes
15748 else
15749   cpp_p=no
15750 fi
15751 rm -f conftest*
15752
15753     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
15754 $as_echo "$cpp_p" >&6; }
15755
15756     if test "x$cpp_p" = "xno"; then
15757       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
15758 $as_echo "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
15759       # without -P
15760       CPPPFLAG=""
15761     else
15762       # with -P
15763       CPPPFLAG="-P"
15764     fi
15765         CPPFLAGS=$OLDCPPFLAGS
15766   else
15767     # without -P
15768     CPPPFLAG=""
15769   fi
15770
15771
15772   #
15773   compiler_id="unknown"
15774   compiler_num="0"
15775   #
15776   flags_dbg_all="unknown"
15777   flags_dbg_yes="unknown"
15778   flags_dbg_off="unknown"
15779   flags_opt_all="unknown"
15780   flags_opt_yes="unknown"
15781   flags_opt_off="unknown"
15782   #
15783   flags_prefer_cppflags="no"
15784   #
15785
15786   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
15787 $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
15788
15789     OLDCPPFLAGS=$CPPFLAGS
15790   # CPPPFLAG comes from CURL_CPP_P
15791   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15792       if test -z "$SED"; then
15793     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15794   fi
15795   if test -z "$GREP"; then
15796     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15797   fi
15798
15799   tmp_exp=""
15800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15801 /* end confdefs.h.  */
15802
15803
15804 #ifdef __DECC
15805 CURL_DEF_TOKEN __DECC
15806 #endif
15807
15808
15809 _ACEOF
15810 if ac_fn_c_try_cpp "$LINENO"; then :
15811
15812     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15813       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15814       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15815       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15816     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
15817       tmp_exp=""
15818     fi
15819
15820 fi
15821 rm -f conftest.err conftest.i conftest.$ac_ext
15822   if test -z "$tmp_exp"; then
15823     curl_cv_have_def___DECC=no
15824
15825   else
15826     curl_cv_have_def___DECC=yes
15827     curl_cv_def___DECC=$tmp_exp
15828
15829   fi
15830       CPPFLAGS=$OLDCPPFLAGS
15831
15832
15833     OLDCPPFLAGS=$CPPFLAGS
15834   # CPPPFLAG comes from CURL_CPP_P
15835   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15836       if test -z "$SED"; then
15837     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15838   fi
15839   if test -z "$GREP"; then
15840     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15841   fi
15842
15843   tmp_exp=""
15844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15845 /* end confdefs.h.  */
15846
15847
15848 #ifdef __DECC_VER
15849 CURL_DEF_TOKEN __DECC_VER
15850 #endif
15851
15852
15853 _ACEOF
15854 if ac_fn_c_try_cpp "$LINENO"; then :
15855
15856     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15857       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15858       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15859       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15860     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
15861       tmp_exp=""
15862     fi
15863
15864 fi
15865 rm -f conftest.err conftest.i conftest.$ac_ext
15866   if test -z "$tmp_exp"; then
15867     curl_cv_have_def___DECC_VER=no
15868
15869   else
15870     curl_cv_have_def___DECC_VER=yes
15871     curl_cv_def___DECC_VER=$tmp_exp
15872
15873   fi
15874       CPPFLAGS=$OLDCPPFLAGS
15875
15876   if test "$curl_cv_have_def___DECC" = "yes" &&
15877     test "$curl_cv_have_def___DECC_VER" = "yes"; then
15878     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15879 $as_echo "yes" >&6; }
15880     compiler_id="DEC_C"
15881     flags_dbg_all="-g -g0 -g1 -g2 -g3"
15882     flags_dbg_yes="-g2"
15883     flags_dbg_off=""
15884     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
15885     flags_opt_yes="-O1"
15886     flags_opt_off="-O0"
15887   else
15888     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15889 $as_echo "no" >&6; }
15890   fi
15891
15892
15893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
15894 $as_echo_n "checking if compiler is HP-UX C... " >&6; }
15895
15896     OLDCPPFLAGS=$CPPFLAGS
15897   # CPPPFLAG comes from CURL_CPP_P
15898   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15899       if test -z "$SED"; then
15900     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15901   fi
15902   if test -z "$GREP"; then
15903     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15904   fi
15905
15906   tmp_exp=""
15907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15908 /* end confdefs.h.  */
15909
15910
15911 #ifdef __HP_cc
15912 CURL_DEF_TOKEN __HP_cc
15913 #endif
15914
15915
15916 _ACEOF
15917 if ac_fn_c_try_cpp "$LINENO"; then :
15918
15919     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15920       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15921       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15922       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15923     if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
15924       tmp_exp=""
15925     fi
15926
15927 fi
15928 rm -f conftest.err conftest.i conftest.$ac_ext
15929   if test -z "$tmp_exp"; then
15930     curl_cv_have_def___HP_cc=no
15931
15932   else
15933     curl_cv_have_def___HP_cc=yes
15934     curl_cv_def___HP_cc=$tmp_exp
15935
15936   fi
15937       CPPFLAGS=$OLDCPPFLAGS
15938
15939   if test "$curl_cv_have_def___HP_cc" = "yes"; then
15940     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15941 $as_echo "yes" >&6; }
15942     compiler_id="HP_UX_C"
15943     flags_dbg_all="-g -s"
15944     flags_dbg_yes="-g"
15945     flags_dbg_off="-s"
15946     flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
15947     flags_opt_yes="+O2"
15948     flags_opt_off="+O0"
15949   else
15950     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15951 $as_echo "no" >&6; }
15952   fi
15953
15954
15955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
15956 $as_echo_n "checking if compiler is IBM C... " >&6; }
15957
15958     OLDCPPFLAGS=$CPPFLAGS
15959   # CPPPFLAG comes from CURL_CPP_P
15960   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15961       if test -z "$SED"; then
15962     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15963   fi
15964   if test -z "$GREP"; then
15965     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15966   fi
15967
15968   tmp_exp=""
15969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15970 /* end confdefs.h.  */
15971
15972
15973 #ifdef __IBMC__
15974 CURL_DEF_TOKEN __IBMC__
15975 #endif
15976
15977
15978 _ACEOF
15979 if ac_fn_c_try_cpp "$LINENO"; then :
15980
15981     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15982       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15983       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15984       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15985     if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
15986       tmp_exp=""
15987     fi
15988
15989 fi
15990 rm -f conftest.err conftest.i conftest.$ac_ext
15991   if test -z "$tmp_exp"; then
15992     curl_cv_have_def___IBMC__=no
15993
15994   else
15995     curl_cv_have_def___IBMC__=yes
15996     curl_cv_def___IBMC__=$tmp_exp
15997
15998   fi
15999       CPPFLAGS=$OLDCPPFLAGS
16000
16001   if test "$curl_cv_have_def___IBMC__" = "yes"; then
16002     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16003 $as_echo "yes" >&6; }
16004     compiler_id="IBM_C"
16005     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16006     flags_dbg_yes="-g"
16007     flags_dbg_off=""
16008     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
16009     flags_opt_all="$flags_opt_all -qnooptimize"
16010     flags_opt_all="$flags_opt_all -qoptimize=0"
16011     flags_opt_all="$flags_opt_all -qoptimize=1"
16012     flags_opt_all="$flags_opt_all -qoptimize=2"
16013     flags_opt_all="$flags_opt_all -qoptimize=3"
16014     flags_opt_all="$flags_opt_all -qoptimize=4"
16015     flags_opt_all="$flags_opt_all -qoptimize=5"
16016     flags_opt_yes="-O2"
16017     flags_opt_off="-qnooptimize"
16018     flags_prefer_cppflags="yes"
16019   else
16020     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16021 $as_echo "no" >&6; }
16022   fi
16023
16024
16025     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
16026 $as_echo_n "checking if compiler is Intel C... " >&6; }
16027
16028     OLDCPPFLAGS=$CPPFLAGS
16029   # CPPPFLAG comes from CURL_CPP_P
16030   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16031       if test -z "$SED"; then
16032     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16033   fi
16034   if test -z "$GREP"; then
16035     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16036   fi
16037
16038   tmp_exp=""
16039   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16040 /* end confdefs.h.  */
16041
16042
16043 #ifdef __INTEL_COMPILER
16044 CURL_DEF_TOKEN __INTEL_COMPILER
16045 #endif
16046
16047
16048 _ACEOF
16049 if ac_fn_c_try_cpp "$LINENO"; then :
16050
16051     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16052       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16053       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16054       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16055     if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
16056       tmp_exp=""
16057     fi
16058
16059 fi
16060 rm -f conftest.err conftest.i conftest.$ac_ext
16061   if test -z "$tmp_exp"; then
16062     curl_cv_have_def___INTEL_COMPILER=no
16063
16064   else
16065     curl_cv_have_def___INTEL_COMPILER=yes
16066     curl_cv_def___INTEL_COMPILER=$tmp_exp
16067
16068   fi
16069       CPPFLAGS=$OLDCPPFLAGS
16070
16071   if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
16072     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16073 $as_echo "yes" >&6; }
16074     compiler_num="$curl_cv_def___INTEL_COMPILER"
16075
16076     OLDCPPFLAGS=$CPPFLAGS
16077   # CPPPFLAG comes from CURL_CPP_P
16078   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16079       if test -z "$SED"; then
16080     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16081   fi
16082   if test -z "$GREP"; then
16083     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16084   fi
16085
16086   tmp_exp=""
16087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16088 /* end confdefs.h.  */
16089
16090
16091 #ifdef __unix__
16092 CURL_DEF_TOKEN __unix__
16093 #endif
16094
16095
16096 _ACEOF
16097 if ac_fn_c_try_cpp "$LINENO"; then :
16098
16099     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16100       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16101       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16102       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16103     if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
16104       tmp_exp=""
16105     fi
16106
16107 fi
16108 rm -f conftest.err conftest.i conftest.$ac_ext
16109   if test -z "$tmp_exp"; then
16110     curl_cv_have_def___unix__=no
16111
16112   else
16113     curl_cv_have_def___unix__=yes
16114     curl_cv_def___unix__=$tmp_exp
16115
16116   fi
16117       CPPFLAGS=$OLDCPPFLAGS
16118
16119     if test "$curl_cv_have_def___unix__" = "yes"; then
16120       compiler_id="INTEL_UNIX_C"
16121       flags_dbg_all="-g -g0"
16122       flags_dbg_yes="-g"
16123       flags_dbg_off=""
16124       flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16125       flags_opt_yes="-O2"
16126       flags_opt_off="-O0"
16127     else
16128       compiler_id="INTEL_WINDOWS_C"
16129       flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
16130       flags_dbg_all="$flags_dbg_all /debug"
16131       flags_dbg_all="$flags_dbg_all /debug:none"
16132       flags_dbg_all="$flags_dbg_all /debug:minimal"
16133       flags_dbg_all="$flags_dbg_all /debug:partial"
16134       flags_dbg_all="$flags_dbg_all /debug:full"
16135       flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
16136       flags_dbg_all="$flags_dbg_all /debug:extended"
16137       flags_dbg_yes="/Zi /Oy-"
16138       flags_dbg_off="/debug:none /Oy-"
16139       flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
16140       flags_opt_yes="/O2"
16141       flags_opt_off="/Od"
16142     fi
16143   else
16144     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16145 $as_echo "no" >&6; }
16146   fi
16147
16148
16149     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
16150 $as_echo_n "checking if compiler is clang... " >&6; }
16151
16152     OLDCPPFLAGS=$CPPFLAGS
16153   # CPPPFLAG comes from CURL_CPP_P
16154   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16155       if test -z "$SED"; then
16156     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16157   fi
16158   if test -z "$GREP"; then
16159     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16160   fi
16161
16162   tmp_exp=""
16163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16164 /* end confdefs.h.  */
16165
16166
16167 #ifdef __clang__
16168 CURL_DEF_TOKEN __clang__
16169 #endif
16170
16171
16172 _ACEOF
16173 if ac_fn_c_try_cpp "$LINENO"; then :
16174
16175     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16176       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16177       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16178       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16179     if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
16180       tmp_exp=""
16181     fi
16182
16183 fi
16184 rm -f conftest.err conftest.i conftest.$ac_ext
16185   if test -z "$tmp_exp"; then
16186     curl_cv_have_def___clang__=no
16187
16188   else
16189     curl_cv_have_def___clang__=yes
16190     curl_cv_def___clang__=$tmp_exp
16191
16192   fi
16193       CPPFLAGS=$OLDCPPFLAGS
16194
16195   if test "$curl_cv_have_def___clang__" = "yes"; then
16196     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16197 $as_echo "yes" >&6; }
16198     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is xlclang" >&5
16199 $as_echo_n "checking if compiler is xlclang... " >&6; }
16200
16201     OLDCPPFLAGS=$CPPFLAGS
16202   # CPPPFLAG comes from CURL_CPP_P
16203   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16204       if test -z "$SED"; then
16205     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16206   fi
16207   if test -z "$GREP"; then
16208     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16209   fi
16210
16211   tmp_exp=""
16212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16213 /* end confdefs.h.  */
16214
16215
16216 #ifdef __ibmxl__
16217 CURL_DEF_TOKEN __ibmxl__
16218 #endif
16219
16220
16221 _ACEOF
16222 if ac_fn_c_try_cpp "$LINENO"; then :
16223
16224     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16225       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16226       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16227       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16228     if test -z "$tmp_exp" || test "$tmp_exp" = "__ibmxl__"; then
16229       tmp_exp=""
16230     fi
16231
16232 fi
16233 rm -f conftest.err conftest.i conftest.$ac_ext
16234   if test -z "$tmp_exp"; then
16235     curl_cv_have_def___ibmxl__=no
16236
16237   else
16238     curl_cv_have_def___ibmxl__=yes
16239     curl_cv_def___ibmxl__=$tmp_exp
16240
16241   fi
16242       CPPFLAGS=$OLDCPPFLAGS
16243
16244     if test "$curl_cv_have_def___ibmxl__" = "yes" ; then
16245             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16246 $as_echo "yes" >&6; }
16247       compiler_id="XLCLANG"
16248     else
16249       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16250 $as_echo "no" >&6; }
16251       compiler_id="CLANG"
16252     fi
16253     fullclangver=`$CC -v 2>&1 | grep version`
16254     clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
16255     if test -z "$clangver"; then
16256       if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then
16257                 clangver="3.7"
16258       else
16259         clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
16260       fi
16261     fi
16262     clangvhi=`echo $clangver | cut -d . -f1`
16263     clangvlo=`echo $clangver | cut -d . -f2`
16264     compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
16265     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16266     flags_dbg_all="$flags_dbg_all -ggdb"
16267     flags_dbg_all="$flags_dbg_all -gstabs"
16268     flags_dbg_all="$flags_dbg_all -gstabs+"
16269     flags_dbg_all="$flags_dbg_all -gcoff"
16270     flags_dbg_all="$flags_dbg_all -gxcoff"
16271     flags_dbg_all="$flags_dbg_all -gdwarf-2"
16272     flags_dbg_all="$flags_dbg_all -gvms"
16273     flags_dbg_yes="-g"
16274     flags_dbg_off=""
16275     flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
16276     flags_opt_yes="-Os"
16277     flags_opt_off="-O0"
16278   else
16279     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16280 $as_echo "no" >&6; }
16281   fi
16282
16283
16284       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
16285 $as_echo_n "checking if compiler is GNU C... " >&6; }
16286
16287     OLDCPPFLAGS=$CPPFLAGS
16288   # CPPPFLAG comes from CURL_CPP_P
16289   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16290       if test -z "$SED"; then
16291     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16292   fi
16293   if test -z "$GREP"; then
16294     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16295   fi
16296
16297   tmp_exp=""
16298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16299 /* end confdefs.h.  */
16300
16301
16302 #ifdef __GNUC__
16303 CURL_DEF_TOKEN __GNUC__
16304 #endif
16305
16306
16307 _ACEOF
16308 if ac_fn_c_try_cpp "$LINENO"; then :
16309
16310     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16311       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16312       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16313       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16314     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16315       tmp_exp=""
16316     fi
16317
16318 fi
16319 rm -f conftest.err conftest.i conftest.$ac_ext
16320   if test -z "$tmp_exp"; then
16321     curl_cv_have_def___GNUC__=no
16322
16323   else
16324     curl_cv_have_def___GNUC__=yes
16325     curl_cv_def___GNUC__=$tmp_exp
16326
16327   fi
16328       CPPFLAGS=$OLDCPPFLAGS
16329
16330   if test "$curl_cv_have_def___GNUC__" = "yes" &&
16331     test "$compiler_id" = "unknown"; then
16332     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16333 $as_echo "yes" >&6; }
16334     compiler_id="GNU_C"
16335     gccver=`$CC -dumpversion`
16336     gccvhi=`echo $gccver | cut -d . -f1`
16337     gccvlo=`echo $gccver | cut -d . -f2`
16338     compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
16339     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16340     flags_dbg_all="$flags_dbg_all -ggdb"
16341     flags_dbg_all="$flags_dbg_all -gstabs"
16342     flags_dbg_all="$flags_dbg_all -gstabs+"
16343     flags_dbg_all="$flags_dbg_all -gcoff"
16344     flags_dbg_all="$flags_dbg_all -gxcoff"
16345     flags_dbg_all="$flags_dbg_all -gdwarf-2"
16346     flags_dbg_all="$flags_dbg_all -gvms"
16347     flags_dbg_yes="-g"
16348     flags_dbg_off=""
16349     flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
16350     flags_opt_yes="-O2"
16351     flags_opt_off="-O0"
16352
16353     OLDCPPFLAGS=$CPPFLAGS
16354   # CPPPFLAG comes from CURL_CPP_P
16355   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16356       if test -z "$SED"; then
16357     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16358   fi
16359   if test -z "$GREP"; then
16360     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16361   fi
16362
16363   tmp_exp=""
16364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16365 /* end confdefs.h.  */
16366
16367
16368 #ifdef _WIN32
16369 CURL_DEF_TOKEN _WIN32
16370 #endif
16371
16372
16373 _ACEOF
16374 if ac_fn_c_try_cpp "$LINENO"; then :
16375
16376     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16377       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16378       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16379       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16380     if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
16381       tmp_exp=""
16382     fi
16383
16384 fi
16385 rm -f conftest.err conftest.i conftest.$ac_ext
16386   if test -z "$tmp_exp"; then
16387     curl_cv_have_def__WIN32=no
16388
16389   else
16390     curl_cv_have_def__WIN32=yes
16391     curl_cv_def__WIN32=$tmp_exp
16392
16393   fi
16394       CPPFLAGS=$OLDCPPFLAGS
16395
16396   else
16397     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16398 $as_echo "no" >&6; }
16399   fi
16400
16401
16402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
16403 $as_echo_n "checking if compiler is LCC... " >&6; }
16404
16405     OLDCPPFLAGS=$CPPFLAGS
16406   # CPPPFLAG comes from CURL_CPP_P
16407   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16408       if test -z "$SED"; then
16409     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16410   fi
16411   if test -z "$GREP"; then
16412     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16413   fi
16414
16415   tmp_exp=""
16416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16417 /* end confdefs.h.  */
16418
16419
16420 #ifdef __LCC__
16421 CURL_DEF_TOKEN __LCC__
16422 #endif
16423
16424
16425 _ACEOF
16426 if ac_fn_c_try_cpp "$LINENO"; then :
16427
16428     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16429       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16430       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16431       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16432     if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16433       tmp_exp=""
16434     fi
16435
16436 fi
16437 rm -f conftest.err conftest.i conftest.$ac_ext
16438   if test -z "$tmp_exp"; then
16439     curl_cv_have_def___LCC__=no
16440
16441   else
16442     curl_cv_have_def___LCC__=yes
16443     curl_cv_def___LCC__=$tmp_exp
16444
16445   fi
16446       CPPFLAGS=$OLDCPPFLAGS
16447
16448   if test "$curl_cv_have_def___LCC__" = "yes"; then
16449     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16450 $as_echo "yes" >&6; }
16451     compiler_id="LCC"
16452     flags_dbg_all="-g"
16453     flags_dbg_yes="-g"
16454     flags_dbg_off=""
16455     flags_opt_all=""
16456     flags_opt_yes=""
16457     flags_opt_off=""
16458   else
16459     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16460 $as_echo "no" >&6; }
16461   fi
16462
16463
16464     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16465 $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16466
16467     OLDCPPFLAGS=$CPPFLAGS
16468   # CPPPFLAG comes from CURL_CPP_P
16469   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16470       if test -z "$SED"; then
16471     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16472   fi
16473   if test -z "$GREP"; then
16474     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16475   fi
16476
16477   tmp_exp=""
16478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16479 /* end confdefs.h.  */
16480
16481
16482 #ifdef __GNUC__
16483 CURL_DEF_TOKEN __GNUC__
16484 #endif
16485
16486
16487 _ACEOF
16488 if ac_fn_c_try_cpp "$LINENO"; then :
16489
16490     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16491       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16492       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16493       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16494     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16495       tmp_exp=""
16496     fi
16497
16498 fi
16499 rm -f conftest.err conftest.i conftest.$ac_ext
16500   if test -z "$tmp_exp"; then
16501     curl_cv_have_def___GNUC__=no
16502
16503   else
16504     curl_cv_have_def___GNUC__=yes
16505     curl_cv_def___GNUC__=$tmp_exp
16506
16507   fi
16508       CPPFLAGS=$OLDCPPFLAGS
16509
16510
16511     OLDCPPFLAGS=$CPPFLAGS
16512   # CPPPFLAG comes from CURL_CPP_P
16513   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16514       if test -z "$SED"; then
16515     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16516   fi
16517   if test -z "$GREP"; then
16518     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16519   fi
16520
16521   tmp_exp=""
16522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16523 /* end confdefs.h.  */
16524
16525
16526 #ifdef _COMPILER_VERSION
16527 CURL_DEF_TOKEN _COMPILER_VERSION
16528 #endif
16529
16530
16531 _ACEOF
16532 if ac_fn_c_try_cpp "$LINENO"; then :
16533
16534     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16535       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16536       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16537       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16538     if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16539       tmp_exp=""
16540     fi
16541
16542 fi
16543 rm -f conftest.err conftest.i conftest.$ac_ext
16544   if test -z "$tmp_exp"; then
16545     curl_cv_have_def__COMPILER_VERSION=no
16546
16547   else
16548     curl_cv_have_def__COMPILER_VERSION=yes
16549     curl_cv_def__COMPILER_VERSION=$tmp_exp
16550
16551   fi
16552       CPPFLAGS=$OLDCPPFLAGS
16553
16554
16555     OLDCPPFLAGS=$CPPFLAGS
16556   # CPPPFLAG comes from CURL_CPP_P
16557   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16558       if test -z "$SED"; then
16559     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16560   fi
16561   if test -z "$GREP"; then
16562     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16563   fi
16564
16565   tmp_exp=""
16566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16567 /* end confdefs.h.  */
16568
16569
16570 #ifdef _SGI_COMPILER_VERSION
16571 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16572 #endif
16573
16574
16575 _ACEOF
16576 if ac_fn_c_try_cpp "$LINENO"; then :
16577
16578     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16579       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16580       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16581       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16582     if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16583       tmp_exp=""
16584     fi
16585
16586 fi
16587 rm -f conftest.err conftest.i conftest.$ac_ext
16588   if test -z "$tmp_exp"; then
16589     curl_cv_have_def__SGI_COMPILER_VERSION=no
16590
16591   else
16592     curl_cv_have_def__SGI_COMPILER_VERSION=yes
16593     curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16594
16595   fi
16596       CPPFLAGS=$OLDCPPFLAGS
16597
16598   if test "$curl_cv_have_def___GNUC__" = "no" &&
16599     (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16600      test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16601     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16602 $as_echo "yes" >&6; }
16603     compiler_id="SGI_MIPSPRO_C"
16604     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16605     flags_dbg_yes="-g"
16606     flags_dbg_off=""
16607     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16608     flags_opt_yes="-O2"
16609     flags_opt_off="-O0"
16610   else
16611     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16612 $as_echo "no" >&6; }
16613   fi
16614
16615
16616     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16617 $as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16618
16619     OLDCPPFLAGS=$CPPFLAGS
16620   # CPPPFLAG comes from CURL_CPP_P
16621   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16622       if test -z "$SED"; then
16623     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16624   fi
16625   if test -z "$GREP"; then
16626     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16627   fi
16628
16629   tmp_exp=""
16630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16631 /* end confdefs.h.  */
16632
16633
16634 #ifdef __GNUC__
16635 CURL_DEF_TOKEN __GNUC__
16636 #endif
16637
16638
16639 _ACEOF
16640 if ac_fn_c_try_cpp "$LINENO"; then :
16641
16642     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16643       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16644       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16645       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16646     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16647       tmp_exp=""
16648     fi
16649
16650 fi
16651 rm -f conftest.err conftest.i conftest.$ac_ext
16652   if test -z "$tmp_exp"; then
16653     curl_cv_have_def___GNUC__=no
16654
16655   else
16656     curl_cv_have_def___GNUC__=yes
16657     curl_cv_def___GNUC__=$tmp_exp
16658
16659   fi
16660       CPPFLAGS=$OLDCPPFLAGS
16661
16662
16663     OLDCPPFLAGS=$CPPFLAGS
16664   # CPPPFLAG comes from CURL_CPP_P
16665   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16666       if test -z "$SED"; then
16667     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16668   fi
16669   if test -z "$GREP"; then
16670     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16671   fi
16672
16673   tmp_exp=""
16674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16675 /* end confdefs.h.  */
16676
16677
16678 #ifdef __sgi
16679 CURL_DEF_TOKEN __sgi
16680 #endif
16681
16682
16683 _ACEOF
16684 if ac_fn_c_try_cpp "$LINENO"; then :
16685
16686     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16687       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16688       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16689       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16690     if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16691       tmp_exp=""
16692     fi
16693
16694 fi
16695 rm -f conftest.err conftest.i conftest.$ac_ext
16696   if test -z "$tmp_exp"; then
16697     curl_cv_have_def___sgi=no
16698
16699   else
16700     curl_cv_have_def___sgi=yes
16701     curl_cv_def___sgi=$tmp_exp
16702
16703   fi
16704       CPPFLAGS=$OLDCPPFLAGS
16705
16706   if test "$curl_cv_have_def___GNUC__" = "no" &&
16707     test "$curl_cv_have_def___sgi" = "yes" &&
16708     test "$compiler_id" = "unknown"; then
16709     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16710 $as_echo "yes" >&6; }
16711     compiler_id="SGI_MIPS_C"
16712     flags_dbg_all="-g -g0 -g1 -g2 -g3"
16713     flags_dbg_yes="-g"
16714     flags_dbg_off=""
16715     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16716     flags_opt_yes="-O2"
16717     flags_opt_off="-O0"
16718   else
16719     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16720 $as_echo "no" >&6; }
16721   fi
16722
16723
16724   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
16725 $as_echo_n "checking if compiler is SunPro C... " >&6; }
16726
16727     OLDCPPFLAGS=$CPPFLAGS
16728   # CPPPFLAG comes from CURL_CPP_P
16729   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16730       if test -z "$SED"; then
16731     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16732   fi
16733   if test -z "$GREP"; then
16734     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16735   fi
16736
16737   tmp_exp=""
16738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16739 /* end confdefs.h.  */
16740
16741
16742 #ifdef __SUNPRO_C
16743 CURL_DEF_TOKEN __SUNPRO_C
16744 #endif
16745
16746
16747 _ACEOF
16748 if ac_fn_c_try_cpp "$LINENO"; then :
16749
16750     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16751       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16752       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16753       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16754     if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
16755       tmp_exp=""
16756     fi
16757
16758 fi
16759 rm -f conftest.err conftest.i conftest.$ac_ext
16760   if test -z "$tmp_exp"; then
16761     curl_cv_have_def___SUNPRO_C=no
16762
16763   else
16764     curl_cv_have_def___SUNPRO_C=yes
16765     curl_cv_def___SUNPRO_C=$tmp_exp
16766
16767   fi
16768       CPPFLAGS=$OLDCPPFLAGS
16769
16770   if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
16771     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16772 $as_echo "yes" >&6; }
16773     compiler_id="SUNPRO_C"
16774     flags_dbg_all="-g -s"
16775     flags_dbg_yes="-g"
16776     flags_dbg_off="-s"
16777     flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
16778     flags_opt_yes="-xO2"
16779     flags_opt_off=""
16780   else
16781     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16782 $as_echo "no" >&6; }
16783   fi
16784
16785
16786   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
16787 $as_echo_n "checking if compiler is Tiny C... " >&6; }
16788
16789     OLDCPPFLAGS=$CPPFLAGS
16790   # CPPPFLAG comes from CURL_CPP_P
16791   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16792       if test -z "$SED"; then
16793     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16794   fi
16795   if test -z "$GREP"; then
16796     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16797   fi
16798
16799   tmp_exp=""
16800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16801 /* end confdefs.h.  */
16802
16803
16804 #ifdef __TINYC__
16805 CURL_DEF_TOKEN __TINYC__
16806 #endif
16807
16808
16809 _ACEOF
16810 if ac_fn_c_try_cpp "$LINENO"; then :
16811
16812     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16813       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16814       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16815       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16816     if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
16817       tmp_exp=""
16818     fi
16819
16820 fi
16821 rm -f conftest.err conftest.i conftest.$ac_ext
16822   if test -z "$tmp_exp"; then
16823     curl_cv_have_def___TINYC__=no
16824
16825   else
16826     curl_cv_have_def___TINYC__=yes
16827     curl_cv_def___TINYC__=$tmp_exp
16828
16829   fi
16830       CPPFLAGS=$OLDCPPFLAGS
16831
16832   if test "$curl_cv_have_def___TINYC__" = "yes"; then
16833     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16834 $as_echo "yes" >&6; }
16835     compiler_id="TINY_C"
16836     flags_dbg_all="-g -b"
16837     flags_dbg_yes="-g"
16838     flags_dbg_off=""
16839     flags_opt_all=""
16840     flags_opt_yes=""
16841     flags_opt_off=""
16842   else
16843     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16844 $as_echo "no" >&6; }
16845   fi
16846
16847
16848   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
16849 $as_echo_n "checking if compiler is Watcom C... " >&6; }
16850
16851     OLDCPPFLAGS=$CPPFLAGS
16852   # CPPPFLAG comes from CURL_CPP_P
16853   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16854       if test -z "$SED"; then
16855     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16856   fi
16857   if test -z "$GREP"; then
16858     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16859   fi
16860
16861   tmp_exp=""
16862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16863 /* end confdefs.h.  */
16864
16865
16866 #ifdef __WATCOMC__
16867 CURL_DEF_TOKEN __WATCOMC__
16868 #endif
16869
16870
16871 _ACEOF
16872 if ac_fn_c_try_cpp "$LINENO"; then :
16873
16874     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16875       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16876       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16877       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16878     if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
16879       tmp_exp=""
16880     fi
16881
16882 fi
16883 rm -f conftest.err conftest.i conftest.$ac_ext
16884   if test -z "$tmp_exp"; then
16885     curl_cv_have_def___WATCOMC__=no
16886
16887   else
16888     curl_cv_have_def___WATCOMC__=yes
16889     curl_cv_def___WATCOMC__=$tmp_exp
16890
16891   fi
16892       CPPFLAGS=$OLDCPPFLAGS
16893
16894   if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
16895     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16896 $as_echo "yes" >&6; }
16897
16898     OLDCPPFLAGS=$CPPFLAGS
16899   # CPPPFLAG comes from CURL_CPP_P
16900   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16901       if test -z "$SED"; then
16902     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16903   fi
16904   if test -z "$GREP"; then
16905     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16906   fi
16907
16908   tmp_exp=""
16909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16910 /* end confdefs.h.  */
16911
16912
16913 #ifdef __UNIX__
16914 CURL_DEF_TOKEN __UNIX__
16915 #endif
16916
16917
16918 _ACEOF
16919 if ac_fn_c_try_cpp "$LINENO"; then :
16920
16921     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16922       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16923       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16924       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16925     if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
16926       tmp_exp=""
16927     fi
16928
16929 fi
16930 rm -f conftest.err conftest.i conftest.$ac_ext
16931   if test -z "$tmp_exp"; then
16932     curl_cv_have_def___UNIX__=no
16933
16934   else
16935     curl_cv_have_def___UNIX__=yes
16936     curl_cv_def___UNIX__=$tmp_exp
16937
16938   fi
16939       CPPFLAGS=$OLDCPPFLAGS
16940
16941     if test "$curl_cv_have_def___UNIX__" = "yes"; then
16942       compiler_id="WATCOM_UNIX_C"
16943       flags_dbg_all="-g1 -g1+ -g2 -g3"
16944       flags_dbg_yes="-g2"
16945       flags_dbg_off=""
16946       flags_opt_all="-O0 -O1 -O2 -O3"
16947       flags_opt_yes="-O2"
16948       flags_opt_off="-O0"
16949     else
16950       compiler_id="WATCOM_WINDOWS_C"
16951       flags_dbg_all=""
16952       flags_dbg_yes=""
16953       flags_dbg_off=""
16954       flags_opt_all=""
16955       flags_opt_yes=""
16956       flags_opt_off=""
16957     fi
16958   else
16959     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16960 $as_echo "no" >&6; }
16961   fi
16962
16963   #
16964   if test "$compiler_id" = "unknown"; then
16965   cat <<_EOF 1>&2
16966 ***
16967 *** Warning: This configure script does not have information about the
16968 *** compiler you are using, relative to the flags required to enable or
16969 *** disable generation of debug info, optimization options or warnings.
16970 ***
16971 *** Whatever settings are present in CFLAGS will be used for this run.
16972 ***
16973 *** If you wish to help the curl project to better support your compiler
16974 *** you can report this and the required info on the libcurl development
16975 *** mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/
16976 ***
16977 _EOF
16978   fi
16979
16980
16981 squeeze() {
16982   _sqz_result=""
16983   eval _sqz_input=\$$1
16984   for _sqz_token in $_sqz_input; do
16985     if test -z "$_sqz_result"; then
16986       _sqz_result="$_sqz_token"
16987     else
16988       _sqz_result="$_sqz_result $_sqz_token"
16989     fi
16990   done
16991   eval $1=\$_sqz_result
16992   return 0
16993 }
16994
16995
16996       #
16997   if test "$compiler_id" != "unknown"; then
16998     #
16999     if test "$compiler_id" = "GNU_C" ||
17000       test "$compiler_id" = "CLANG"; then
17001
17002       if test "$compiler_id" = "GNU_C" ||
17003     test "$compiler_id" = "CLANG"; then
17004     tmp_has_include="no"
17005     tmp_chg_FLAGS="$CFLAGS"
17006     for word1 in $tmp_chg_FLAGS; do
17007       case "$word1" in
17008         -I*)
17009           tmp_has_include="yes"
17010           ;;
17011       esac
17012     done
17013     if test "$tmp_has_include" = "yes"; then
17014       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17015       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17016       CFLAGS="$tmp_chg_FLAGS"
17017       squeeze CFLAGS
17018     fi
17019     tmp_has_include="no"
17020     tmp_chg_FLAGS="$CPPFLAGS"
17021     for word1 in $tmp_chg_FLAGS; do
17022       case "$word1" in
17023         -I*)
17024           tmp_has_include="yes"
17025           ;;
17026       esac
17027     done
17028     if test "$tmp_has_include" = "yes"; then
17029       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17030       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17031       CPPFLAGS="$tmp_chg_FLAGS"
17032       squeeze CPPFLAGS
17033     fi
17034   fi
17035
17036     fi
17037     #
17038     tmp_save_CPPFLAGS="$CPPFLAGS"
17039     tmp_save_CFLAGS="$CFLAGS"
17040     tmp_CPPFLAGS=""
17041     tmp_CFLAGS=""
17042     #
17043     case "$compiler_id" in
17044         #
17045       CLANG)
17046         #
17047                                 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
17048         ;;
17049         #
17050       DEC_C)
17051         #
17052                 tmp_CFLAGS="$tmp_CFLAGS -std1"
17053                 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
17054                 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
17055                 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
17056         ;;
17057         #
17058       GNU_C)
17059         #
17060                         if test "$compiler_num" -ge "295"; then
17061           tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
17062         fi
17063         ;;
17064         #
17065       HP_UX_C)
17066         #
17067                 tmp_CFLAGS="$tmp_CFLAGS -z"
17068                                 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
17069         ;;
17070         #
17071       IBM_C)
17072         #
17073                 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
17074                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
17075                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
17076         ;;
17077         #
17078       INTEL_UNIX_C)
17079         #
17080                         tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
17081                                                 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
17082                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
17083         ;;
17084         #
17085       INTEL_WINDOWS_C)
17086         #
17087                 tmp_CFLAGS="$tmp_CFLAGS"
17088         ;;
17089         #
17090       LCC)
17091         #
17092                 tmp_CFLAGS="$tmp_CFLAGS -n"
17093         ;;
17094         #
17095       SGI_MIPS_C)
17096         #
17097                 tmp_CFLAGS="$tmp_CFLAGS"
17098         ;;
17099         #
17100       SGI_MIPSPRO_C)
17101         #
17102                 tmp_CFLAGS="$tmp_CFLAGS"
17103         ;;
17104         #
17105       SUNPRO_C)
17106         #
17107                 tmp_CFLAGS="$tmp_CFLAGS"
17108         ;;
17109         #
17110       TINY_C)
17111         #
17112                 tmp_CFLAGS="$tmp_CFLAGS"
17113         ;;
17114         #
17115       WATCOM_UNIX_C)
17116         #
17117                 tmp_CFLAGS="$tmp_CFLAGS"
17118         ;;
17119         #
17120       WATCOM_WINDOWS_C)
17121         #
17122                 tmp_CFLAGS="$tmp_CFLAGS"
17123         ;;
17124         #
17125     esac
17126     #
17127     squeeze tmp_CPPFLAGS
17128     squeeze tmp_CFLAGS
17129     #
17130     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17131       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
17132 $as_echo_n "checking if compiler accepts some basic options... " >&6; }
17133       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17134       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17135       squeeze CPPFLAGS
17136       squeeze CFLAGS
17137
17138     tmp_compiler_works="unknown"
17139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17140 /* end confdefs.h.  */
17141
17142
17143
17144 int main (void)
17145 {
17146
17147       int i = 1;
17148       return i;
17149
17150  ;
17151  return 0;
17152 }
17153
17154 _ACEOF
17155 if ac_fn_c_try_compile "$LINENO"; then :
17156
17157     tmp_compiler_works="yes"
17158
17159 else
17160
17161     tmp_compiler_works="no"
17162     echo " " >&6
17163     sed 's/^/cc-fail: /' conftest.err >&6
17164     echo " " >&6
17165
17166 fi
17167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17168     if test "$tmp_compiler_works" = "yes"; then
17169     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17170 /* end confdefs.h.  */
17171
17172
17173
17174 int main (void)
17175 {
17176
17177         int i = 1;
17178         return i;
17179
17180  ;
17181  return 0;
17182 }
17183
17184 _ACEOF
17185 if ac_fn_c_try_link "$LINENO"; then :
17186
17187       tmp_compiler_works="yes"
17188
17189 else
17190
17191       tmp_compiler_works="no"
17192       echo " " >&6
17193       sed 's/^/link-fail: /' conftest.err >&6
17194       echo " " >&6
17195
17196 fi
17197 rm -f core conftest.err conftest.$ac_objext \
17198     conftest$ac_exeext conftest.$ac_ext
17199   fi
17200     if test "x$cross_compiling" != "xyes" &&
17201     test "$tmp_compiler_works" = "yes"; then
17202
17203
17204    old=$LD_LIBRARY_PATH
17205    LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17206    export LD_LIBRARY_PATH
17207    if test "$cross_compiling" = yes; then :
17208   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17210 as_fn_error $? "cannot run test program while cross compiling
17211 See \`config.log' for more details" "$LINENO" 5; }
17212 else
17213   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17214 /* end confdefs.h.  */
17215
17216
17217 #       ifdef __STDC__
17218 #         include <stdlib.h>
17219 #       endif
17220
17221 int main (void)
17222 {
17223
17224         int i = 0;
17225         exit(i);
17226
17227  ;
17228  return 0;
17229 }
17230
17231 _ACEOF
17232 if ac_fn_c_try_run "$LINENO"; then :
17233   tmp_compiler_works="yes"
17234
17235 else
17236   tmp_compiler_works="no"
17237       echo " " >&6
17238       echo "run-fail: test program exited with status $ac_status" >&6
17239       echo " " >&6
17240
17241 fi
17242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17243   conftest.$ac_objext conftest.beam conftest.$ac_ext
17244 fi
17245
17246    LD_LIBRARY_PATH=$old # restore
17247
17248   fi
17249     if test "$tmp_compiler_works" = "yes"; then
17250
17251         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17252 $as_echo "yes" >&6; }
17253         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17254 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17255
17256   else
17257
17258         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17259 $as_echo "no" >&6; }
17260         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17261 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17262                 CPPFLAGS="$tmp_save_CPPFLAGS"
17263         CFLAGS="$tmp_save_CFLAGS"
17264
17265   fi
17266
17267     fi
17268     #
17269   fi
17270
17271
17272         #
17273   if test "$compiler_id" != "unknown"; then
17274     #
17275     tmp_save_CFLAGS="$CFLAGS"
17276     tmp_save_CPPFLAGS="$CPPFLAGS"
17277     #
17278     tmp_options=""
17279     tmp_CFLAGS="$CFLAGS"
17280     tmp_CPPFLAGS="$CPPFLAGS"
17281
17282     ac_var_stripped=""
17283   for word1 in $tmp_CFLAGS; do
17284     ac_var_strip_word="no"
17285     for word2 in $flags_dbg_all; do
17286       if test "$word1" = "$word2"; then
17287         ac_var_strip_word="yes"
17288       fi
17289     done
17290     if test "$ac_var_strip_word" = "no"; then
17291       ac_var_stripped="$ac_var_stripped $word1"
17292     fi
17293   done
17294     tmp_CFLAGS="$ac_var_stripped"
17295   squeeze tmp_CFLAGS
17296
17297
17298     ac_var_stripped=""
17299   for word1 in $tmp_CPPFLAGS; do
17300     ac_var_strip_word="no"
17301     for word2 in $flags_dbg_all; do
17302       if test "$word1" = "$word2"; then
17303         ac_var_strip_word="yes"
17304       fi
17305     done
17306     if test "$ac_var_strip_word" = "no"; then
17307       ac_var_stripped="$ac_var_stripped $word1"
17308     fi
17309   done
17310     tmp_CPPFLAGS="$ac_var_stripped"
17311   squeeze tmp_CPPFLAGS
17312
17313     #
17314     if test "$want_debug" = "yes"; then
17315       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
17316 $as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
17317       tmp_options="$flags_dbg_yes"
17318     fi
17319     if test "$want_debug" = "no"; then
17320       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
17321 $as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
17322       tmp_options="$flags_dbg_off"
17323     fi
17324     #
17325     if test "$flags_prefer_cppflags" = "yes"; then
17326       CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17327       CFLAGS="$tmp_CFLAGS"
17328     else
17329       CPPFLAGS="$tmp_CPPFLAGS"
17330       CFLAGS="$tmp_CFLAGS $tmp_options"
17331     fi
17332     squeeze CPPFLAGS
17333     squeeze CFLAGS
17334
17335     tmp_compiler_works="unknown"
17336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17337 /* end confdefs.h.  */
17338
17339
17340
17341 int main (void)
17342 {
17343
17344       int i = 1;
17345       return i;
17346
17347  ;
17348  return 0;
17349 }
17350
17351 _ACEOF
17352 if ac_fn_c_try_compile "$LINENO"; then :
17353
17354     tmp_compiler_works="yes"
17355
17356 else
17357
17358     tmp_compiler_works="no"
17359     echo " " >&6
17360     sed 's/^/cc-fail: /' conftest.err >&6
17361     echo " " >&6
17362
17363 fi
17364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17365     if test "$tmp_compiler_works" = "yes"; then
17366     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17367 /* end confdefs.h.  */
17368
17369
17370
17371 int main (void)
17372 {
17373
17374         int i = 1;
17375         return i;
17376
17377  ;
17378  return 0;
17379 }
17380
17381 _ACEOF
17382 if ac_fn_c_try_link "$LINENO"; then :
17383
17384       tmp_compiler_works="yes"
17385
17386 else
17387
17388       tmp_compiler_works="no"
17389       echo " " >&6
17390       sed 's/^/link-fail: /' conftest.err >&6
17391       echo " " >&6
17392
17393 fi
17394 rm -f core conftest.err conftest.$ac_objext \
17395     conftest$ac_exeext conftest.$ac_ext
17396   fi
17397     if test "x$cross_compiling" != "xyes" &&
17398     test "$tmp_compiler_works" = "yes"; then
17399
17400
17401    old=$LD_LIBRARY_PATH
17402    LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17403    export LD_LIBRARY_PATH
17404    if test "$cross_compiling" = yes; then :
17405   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17407 as_fn_error $? "cannot run test program while cross compiling
17408 See \`config.log' for more details" "$LINENO" 5; }
17409 else
17410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17411 /* end confdefs.h.  */
17412
17413
17414 #       ifdef __STDC__
17415 #         include <stdlib.h>
17416 #       endif
17417
17418 int main (void)
17419 {
17420
17421         int i = 0;
17422         exit(i);
17423
17424  ;
17425  return 0;
17426 }
17427
17428 _ACEOF
17429 if ac_fn_c_try_run "$LINENO"; then :
17430   tmp_compiler_works="yes"
17431
17432 else
17433   tmp_compiler_works="no"
17434       echo " " >&6
17435       echo "run-fail: test program exited with status $ac_status" >&6
17436       echo " " >&6
17437
17438 fi
17439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17440   conftest.$ac_objext conftest.beam conftest.$ac_ext
17441 fi
17442
17443    LD_LIBRARY_PATH=$old # restore
17444
17445   fi
17446     if test "$tmp_compiler_works" = "yes"; then
17447
17448       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17449 $as_echo "yes" >&6; }
17450       { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17451 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17452
17453   else
17454
17455       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17456 $as_echo "no" >&6; }
17457       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17458 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17459             CPPFLAGS="$tmp_save_CPPFLAGS"
17460       CFLAGS="$tmp_save_CFLAGS"
17461
17462   fi
17463
17464     #
17465   fi
17466
17467
17468         #
17469   if test "$compiler_id" != "unknown"; then
17470     #
17471     tmp_save_CFLAGS="$CFLAGS"
17472     tmp_save_CPPFLAGS="$CPPFLAGS"
17473     #
17474     tmp_options=""
17475     tmp_CFLAGS="$CFLAGS"
17476     tmp_CPPFLAGS="$CPPFLAGS"
17477     honor_optimize_option="yes"
17478     #
17479                         #
17480     if test "$want_optimize" = "assume_no" ||
17481        test "$want_optimize" = "assume_yes"; then
17482       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17483 $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17484
17485
17486   ac_var_match_word="no"
17487   for word1 in $tmp_CFLAGS; do
17488     for word2 in $flags_opt_all; do
17489       if test "$word1" = "$word2"; then
17490         ac_var_match_word="yes"
17491       fi
17492     done
17493   done
17494
17495   if test "$ac_var_match_word" = "yes"; then
17496
17497         honor_optimize_option="no"
17498
17499
17500   fi
17501
17502
17503
17504   ac_var_match_word="no"
17505   for word1 in $tmp_CPPFLAGS; do
17506     for word2 in $flags_opt_all; do
17507       if test "$word1" = "$word2"; then
17508         ac_var_match_word="yes"
17509       fi
17510     done
17511   done
17512
17513   if test "$ac_var_match_word" = "yes"; then
17514
17515         honor_optimize_option="no"
17516
17517
17518   fi
17519
17520       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17521 $as_echo "$honor_optimize_option" >&6; }
17522       if test "$honor_optimize_option" = "yes"; then
17523         if test "$want_optimize" = "assume_yes"; then
17524           want_optimize="yes"
17525         fi
17526         if test "$want_optimize" = "assume_no"; then
17527           want_optimize="no"
17528         fi
17529       fi
17530     fi
17531     #
17532     if test "$honor_optimize_option" = "yes"; then
17533
17534     ac_var_stripped=""
17535   for word1 in $tmp_CFLAGS; do
17536     ac_var_strip_word="no"
17537     for word2 in $flags_opt_all; do
17538       if test "$word1" = "$word2"; then
17539         ac_var_strip_word="yes"
17540       fi
17541     done
17542     if test "$ac_var_strip_word" = "no"; then
17543       ac_var_stripped="$ac_var_stripped $word1"
17544     fi
17545   done
17546     tmp_CFLAGS="$ac_var_stripped"
17547   squeeze tmp_CFLAGS
17548
17549
17550     ac_var_stripped=""
17551   for word1 in $tmp_CPPFLAGS; do
17552     ac_var_strip_word="no"
17553     for word2 in $flags_opt_all; do
17554       if test "$word1" = "$word2"; then
17555         ac_var_strip_word="yes"
17556       fi
17557     done
17558     if test "$ac_var_strip_word" = "no"; then
17559       ac_var_stripped="$ac_var_stripped $word1"
17560     fi
17561   done
17562     tmp_CPPFLAGS="$ac_var_stripped"
17563   squeeze tmp_CPPFLAGS
17564
17565       if test "$want_optimize" = "yes"; then
17566         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17567 $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17568         tmp_options="$flags_opt_yes"
17569       fi
17570       if test "$want_optimize" = "no"; then
17571         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17572 $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17573         tmp_options="$flags_opt_off"
17574       fi
17575       if test "$flags_prefer_cppflags" = "yes"; then
17576         CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17577         CFLAGS="$tmp_CFLAGS"
17578       else
17579         CPPFLAGS="$tmp_CPPFLAGS"
17580         CFLAGS="$tmp_CFLAGS $tmp_options"
17581       fi
17582       squeeze CPPFLAGS
17583       squeeze CFLAGS
17584
17585     tmp_compiler_works="unknown"
17586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17587 /* end confdefs.h.  */
17588
17589
17590
17591 int main (void)
17592 {
17593
17594       int i = 1;
17595       return i;
17596
17597  ;
17598  return 0;
17599 }
17600
17601 _ACEOF
17602 if ac_fn_c_try_compile "$LINENO"; then :
17603
17604     tmp_compiler_works="yes"
17605
17606 else
17607
17608     tmp_compiler_works="no"
17609     echo " " >&6
17610     sed 's/^/cc-fail: /' conftest.err >&6
17611     echo " " >&6
17612
17613 fi
17614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17615     if test "$tmp_compiler_works" = "yes"; then
17616     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17617 /* end confdefs.h.  */
17618
17619
17620
17621 int main (void)
17622 {
17623
17624         int i = 1;
17625         return i;
17626
17627  ;
17628  return 0;
17629 }
17630
17631 _ACEOF
17632 if ac_fn_c_try_link "$LINENO"; then :
17633
17634       tmp_compiler_works="yes"
17635
17636 else
17637
17638       tmp_compiler_works="no"
17639       echo " " >&6
17640       sed 's/^/link-fail: /' conftest.err >&6
17641       echo " " >&6
17642
17643 fi
17644 rm -f core conftest.err conftest.$ac_objext \
17645     conftest$ac_exeext conftest.$ac_ext
17646   fi
17647     if test "x$cross_compiling" != "xyes" &&
17648     test "$tmp_compiler_works" = "yes"; then
17649
17650
17651    old=$LD_LIBRARY_PATH
17652    LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17653    export LD_LIBRARY_PATH
17654    if test "$cross_compiling" = yes; then :
17655   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17657 as_fn_error $? "cannot run test program while cross compiling
17658 See \`config.log' for more details" "$LINENO" 5; }
17659 else
17660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17661 /* end confdefs.h.  */
17662
17663
17664 #       ifdef __STDC__
17665 #         include <stdlib.h>
17666 #       endif
17667
17668 int main (void)
17669 {
17670
17671         int i = 0;
17672         exit(i);
17673
17674  ;
17675  return 0;
17676 }
17677
17678 _ACEOF
17679 if ac_fn_c_try_run "$LINENO"; then :
17680   tmp_compiler_works="yes"
17681
17682 else
17683   tmp_compiler_works="no"
17684       echo " " >&6
17685       echo "run-fail: test program exited with status $ac_status" >&6
17686       echo " " >&6
17687
17688 fi
17689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17690   conftest.$ac_objext conftest.beam conftest.$ac_ext
17691 fi
17692
17693    LD_LIBRARY_PATH=$old # restore
17694
17695   fi
17696     if test "$tmp_compiler_works" = "yes"; then
17697
17698         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17699 $as_echo "yes" >&6; }
17700         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17701 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17702
17703   else
17704
17705         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17706 $as_echo "no" >&6; }
17707         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17708 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17709                 CPPFLAGS="$tmp_save_CPPFLAGS"
17710         CFLAGS="$tmp_save_CFLAGS"
17711
17712   fi
17713
17714     fi
17715     #
17716   fi
17717
17718
17719         #
17720   if test "$compiler_id" != "unknown"; then
17721     #
17722     tmp_save_CPPFLAGS="$CPPFLAGS"
17723     tmp_save_CFLAGS="$CFLAGS"
17724     tmp_CPPFLAGS=""
17725     tmp_CFLAGS=""
17726     #
17727     case "$compiler_id" in
17728         #
17729       CLANG)
17730         #
17731         if test "$want_warnings" = "yes"; then
17732           tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17733           tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17734           tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17735           tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
17736           tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17737           tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17738           tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17739           tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17740           tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17741           tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17742           tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17743           tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17744           tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17745           tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17746           tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17747           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17748           tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
17749           #
17750                     if test "$compiler_num" -ge "101"; then
17751             tmp_CFLAGS="$tmp_CFLAGS -Wunused"
17752           fi
17753           #
17754                     if test "$compiler_num" -ge "208"; then
17755             tmp_CFLAGS="$tmp_CFLAGS -Wvla"
17756           fi
17757           #
17758                     if test "$compiler_num" -ge "209"; then
17759             tmp_CFLAGS="$tmp_CFLAGS -Wshift-sign-overflow"
17760           fi
17761           #
17762                     if test "$compiler_num" -ge "302"; then
17763             case $host_os in
17764             cygwin* | mingw*)
17765                                           ;;
17766             *)
17767               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-variable-declarations"
17768               ;;
17769             esac
17770           fi
17771           #
17772                     if test "$compiler_num" -ge "306"; then
17773             tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
17774           fi
17775           #
17776                     if test "$compiler_num" -ge "309"; then
17777             tmp_CFLAGS="$tmp_CFLAGS -Wcomma"
17778             # avoid the varargs warning, fixed in 4.0
17779             # https://bugs.llvm.org/show_bug.cgi?id=29140
17780             if test "$compiler_num" -lt "400"; then
17781               tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
17782             fi
17783           fi
17784         fi
17785         ;;
17786         #
17787       DEC_C)
17788         #
17789         if test "$want_warnings" = "yes"; then
17790                     tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
17791         fi
17792         ;;
17793         #
17794       GNU_C)
17795         #
17796         if test "$want_warnings" = "yes"; then
17797           #
17798                               if test "x$cross_compiling" != "xyes" ||
17799             test "$compiler_num" -ge "300"; then
17800             tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17801           fi
17802           #
17803                     tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
17804           #
17805                     if test "$compiler_num" -ge "104"; then
17806             tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17807                         if test "x$cross_compiling" != "xyes" ||
17808               test "$compiler_num" -ge "300"; then
17809               tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
17810             fi
17811           fi
17812           #
17813                     if test "$compiler_num" -ge "207"; then
17814             tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17815                         if test "x$cross_compiling" != "xyes" ||
17816               test "$compiler_num" -ge "300"; then
17817               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17818               tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17819             fi
17820           fi
17821           #
17822                     if test "$compiler_num" -ge "295"; then
17823             tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17824             tmp_CFLAGS="$tmp_CFLAGS -Wbad-function-cast"
17825           fi
17826           #
17827                     if test "$compiler_num" -ge "296"; then
17828             tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17829             tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17830                                                 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17831           fi
17832           #
17833                     if test "$compiler_num" -ge "297"; then
17834             tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17835           fi
17836           #
17837                     if test "$compiler_num" -ge "300"; then
17838                                                             tmp_CFLAGS="$tmp_CFLAGS"
17839           fi
17840           #
17841                     if test "$compiler_num" -ge "303"; then
17842             tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17843           fi
17844           #
17845                     if test "$compiler_num" -ge "304"; then
17846             tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17847             tmp_CFLAGS="$tmp_CFLAGS -Wold-style-definition"
17848           fi
17849           #
17850                     if test "$compiler_num" -ge "400"; then
17851             tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
17852           fi
17853           #
17854                     if test "$compiler_num" -ge "402"; then
17855             tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17856           fi
17857           #
17858                     if test "$compiler_num" -ge "403"; then
17859             tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
17860             tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
17861             tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
17862             tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
17863                         tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp"
17864           fi
17865           #
17866                     if test "$compiler_num" -ge "405"; then
17867                         if test "$curl_cv_have_def__WIN32" = "yes"; then
17868               tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
17869             fi
17870           fi
17871           #
17872                     if test "$compiler_num" -ge "406"; then
17873             tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
17874           fi
17875           #
17876                     if test "$compiler_num" -ge "408"; then
17877             tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
17878           fi
17879           #
17880                     if test "$compiler_num" -ge "500"; then
17881             tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2"
17882           fi
17883           #
17884                     if test "$compiler_num" -ge "600"; then
17885             tmp_CFLAGS="$tmp_CFLAGS -Wshift-negative-value"
17886             tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2"
17887             tmp_CFLAGS="$tmp_CFLAGS -Wnull-dereference -fdelete-null-pointer-checks"
17888             tmp_CFLAGS="$tmp_CFLAGS -Wduplicated-cond"
17889             tmp_CFLAGS="$tmp_CFLAGS -Wunused-const-variable"
17890           fi
17891           #
17892                     if test "$compiler_num" -ge "700"; then
17893             tmp_CFLAGS="$tmp_CFLAGS -Wduplicated-branches"
17894             tmp_CFLAGS="$tmp_CFLAGS -Wrestrict"
17895             tmp_CFLAGS="$tmp_CFLAGS -Walloc-zero"
17896             tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2"
17897             tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2"
17898             tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough=4"
17899           fi
17900           #
17901         fi
17902         #
17903                 if test "$compiler_num" -ge "300"; then
17904           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17905         else
17906                               if test "x$cross_compiling" = "xyes"; then
17907             if test "$compiler_num" -ge "104"; then
17908                             tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
17909             fi
17910             if test "$compiler_num" -ge "207"; then
17911                             tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
17912               tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
17913             fi
17914           fi
17915         fi
17916         ;;
17917         #
17918       HP_UX_C)
17919         #
17920         if test "$want_warnings" = "yes"; then
17921                     tmp_CFLAGS="$tmp_CFLAGS +w1"
17922         fi
17923         ;;
17924         #
17925       IBM_C)
17926         #
17927                 tmp_CFLAGS="$tmp_CFLAGS"
17928         ;;
17929         #
17930       INTEL_UNIX_C)
17931         #
17932         if test "$want_warnings" = "yes"; then
17933           if test "$compiler_num" -gt "600"; then
17934                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
17935                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
17936                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
17937                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
17938                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
17939                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
17940                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
17941                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
17942                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
17943                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
17944                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
17945           fi
17946         fi
17947                 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
17948                 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
17949                 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
17950                 if test "$compiler_num" -ge "1000"; then
17951                     tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
17952         fi
17953         ;;
17954         #
17955       INTEL_WINDOWS_C)
17956         #
17957                 tmp_CFLAGS="$tmp_CFLAGS"
17958         ;;
17959         #
17960       LCC)
17961         #
17962         if test "$want_warnings" = "yes"; then
17963                                                   tmp_CFLAGS="$tmp_CFLAGS"
17964         fi
17965         ;;
17966         #
17967       SGI_MIPS_C)
17968         #
17969         if test "$want_warnings" = "yes"; then
17970                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
17971         fi
17972         ;;
17973         #
17974       SGI_MIPSPRO_C)
17975         #
17976         if test "$want_warnings" = "yes"; then
17977                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
17978                               tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
17979         fi
17980         ;;
17981         #
17982       SUNPRO_C)
17983         #
17984         if test "$want_warnings" = "yes"; then
17985                     tmp_CFLAGS="$tmp_CFLAGS -v"
17986         fi
17987         ;;
17988         #
17989       TINY_C)
17990         #
17991         if test "$want_warnings" = "yes"; then
17992                     tmp_CFLAGS="$tmp_CFLAGS -Wall"
17993                     tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
17994                     tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
17995         fi
17996         ;;
17997         #
17998       WATCOM_UNIX_C)
17999         #
18000         if test "$want_warnings" = "yes"; then
18001                     tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
18002         fi
18003         ;;
18004         #
18005       WATCOM_WINDOWS_C)
18006         #
18007                 tmp_CFLAGS="$tmp_CFLAGS"
18008         ;;
18009         #
18010     esac
18011     #
18012     squeeze tmp_CPPFLAGS
18013     squeeze tmp_CFLAGS
18014     #
18015     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
18016       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
18017 $as_echo_n "checking if compiler accepts strict warning options... " >&6; }
18018       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
18019       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18020       squeeze CPPFLAGS
18021       squeeze CFLAGS
18022
18023     tmp_compiler_works="unknown"
18024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18025 /* end confdefs.h.  */
18026
18027
18028
18029 int main (void)
18030 {
18031
18032       int i = 1;
18033       return i;
18034
18035  ;
18036  return 0;
18037 }
18038
18039 _ACEOF
18040 if ac_fn_c_try_compile "$LINENO"; then :
18041
18042     tmp_compiler_works="yes"
18043
18044 else
18045
18046     tmp_compiler_works="no"
18047     echo " " >&6
18048     sed 's/^/cc-fail: /' conftest.err >&6
18049     echo " " >&6
18050
18051 fi
18052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18053     if test "$tmp_compiler_works" = "yes"; then
18054     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18055 /* end confdefs.h.  */
18056
18057
18058
18059 int main (void)
18060 {
18061
18062         int i = 1;
18063         return i;
18064
18065  ;
18066  return 0;
18067 }
18068
18069 _ACEOF
18070 if ac_fn_c_try_link "$LINENO"; then :
18071
18072       tmp_compiler_works="yes"
18073
18074 else
18075
18076       tmp_compiler_works="no"
18077       echo " " >&6
18078       sed 's/^/link-fail: /' conftest.err >&6
18079       echo " " >&6
18080
18081 fi
18082 rm -f core conftest.err conftest.$ac_objext \
18083     conftest$ac_exeext conftest.$ac_ext
18084   fi
18085     if test "x$cross_compiling" != "xyes" &&
18086     test "$tmp_compiler_works" = "yes"; then
18087
18088
18089    old=$LD_LIBRARY_PATH
18090    LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
18091    export LD_LIBRARY_PATH
18092    if test "$cross_compiling" = yes; then :
18093   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18095 as_fn_error $? "cannot run test program while cross compiling
18096 See \`config.log' for more details" "$LINENO" 5; }
18097 else
18098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18099 /* end confdefs.h.  */
18100
18101
18102 #       ifdef __STDC__
18103 #         include <stdlib.h>
18104 #       endif
18105
18106 int main (void)
18107 {
18108
18109         int i = 0;
18110         exit(i);
18111
18112  ;
18113  return 0;
18114 }
18115
18116 _ACEOF
18117 if ac_fn_c_try_run "$LINENO"; then :
18118   tmp_compiler_works="yes"
18119
18120 else
18121   tmp_compiler_works="no"
18122       echo " " >&6
18123       echo "run-fail: test program exited with status $ac_status" >&6
18124       echo " " >&6
18125
18126 fi
18127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18128   conftest.$ac_objext conftest.beam conftest.$ac_ext
18129 fi
18130
18131    LD_LIBRARY_PATH=$old # restore
18132
18133   fi
18134     if test "$tmp_compiler_works" = "yes"; then
18135
18136         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18137 $as_echo "yes" >&6; }
18138         { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18139 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18140
18141   else
18142
18143         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18144 $as_echo "no" >&6; }
18145         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18146 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18147                 CPPFLAGS="$tmp_save_CPPFLAGS"
18148         CFLAGS="$tmp_save_CFLAGS"
18149
18150   fi
18151
18152     fi
18153     #
18154   fi
18155
18156
18157 if test "$compiler_id" = "INTEL_UNIX_C"; then
18158   #
18159   if test "$compiler_num" -ge "1000"; then
18160         CFLAGS="$CFLAGS -shared-intel"
18161   elif test "$compiler_num" -ge "900"; then
18162         CFLAGS="$CFLAGS -i-dynamic"
18163   fi
18164   #
18165 fi
18166
18167
18168   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
18169 $as_echo_n "checking if compiler halts on compilation errors... " >&6; }
18170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18171 /* end confdefs.h.  */
18172
18173
18174
18175 int main (void)
18176 {
18177
18178       force compilation error
18179
18180  ;
18181  return 0;
18182 }
18183
18184 _ACEOF
18185 if ac_fn_c_try_compile "$LINENO"; then :
18186
18187     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18188 $as_echo "no" >&6; }
18189     as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
18190
18191 else
18192
18193     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18194 $as_echo "yes" >&6; }
18195
18196 fi
18197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18198
18199
18200     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
18201 $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
18202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18203 /* end confdefs.h.  */
18204
18205
18206       typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
18207
18208 int main (void)
18209 {
18210
18211       bad_t dummy;
18212
18213  ;
18214  return 0;
18215 }
18216
18217 _ACEOF
18218 if ac_fn_c_try_compile "$LINENO"; then :
18219
18220     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18221 $as_echo "no" >&6; }
18222     as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
18223
18224 else
18225
18226     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18227 $as_echo "yes" >&6; }
18228
18229 fi
18230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18231
18232
18233     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
18234 $as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
18235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18236 /* end confdefs.h.  */
18237
18238
18239 #     include <stdlib.h>
18240       int rand(int n);
18241       int rand(int n)
18242       {
18243         if(n)
18244           return ++n;
18245         else
18246           return n;
18247       }
18248
18249 int main (void)
18250 {
18251
18252       int i[2]={0,0};
18253       int j = rand(i[0]);
18254       if(j)
18255         return j;
18256
18257  ;
18258  return 0;
18259 }
18260
18261 _ACEOF
18262 if ac_fn_c_try_compile "$LINENO"; then :
18263
18264     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18265 $as_echo "no" >&6; }
18266     as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
18267
18268 else
18269
18270     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18271 $as_echo "yes" >&6; }
18272
18273 fi
18274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18275
18276
18277       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
18278 $as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
18279   supports_symbol_hiding="no"
18280   symbol_hiding_CFLAGS=""
18281   symbol_hiding_EXTERN=""
18282   tmp_CFLAGS=""
18283   tmp_EXTERN=""
18284   case "$compiler_id" in
18285     CLANG)
18286             tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18287       tmp_CFLAGS="-fvisibility=hidden"
18288       supports_symbol_hiding="yes"
18289       ;;
18290     GNU_C)
18291             if test "$compiler_num" -ge "304"; then
18292         if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
18293           tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18294           tmp_CFLAGS="-fvisibility=hidden"
18295           supports_symbol_hiding="yes"
18296         fi
18297       fi
18298       ;;
18299     INTEL_UNIX_C)
18300             if test "$compiler_num" -ge "900"; then
18301         if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
18302           tmp_save_CFLAGS="$CFLAGS"
18303           CFLAGS="$CFLAGS -fvisibility=hidden"
18304           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18305 /* end confdefs.h.  */
18306
18307
18308 #             include <stdio.h>
18309
18310 int main (void)
18311 {
18312
18313               printf("icc fvisibility bug test");
18314
18315  ;
18316  return 0;
18317 }
18318
18319 _ACEOF
18320 if ac_fn_c_try_link "$LINENO"; then :
18321
18322             tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18323             tmp_CFLAGS="-fvisibility=hidden"
18324             supports_symbol_hiding="yes"
18325
18326 fi
18327 rm -f core conftest.err conftest.$ac_objext \
18328     conftest$ac_exeext conftest.$ac_ext
18329           CFLAGS="$tmp_save_CFLAGS"
18330         fi
18331       fi
18332       ;;
18333     SUNPRO_C)
18334       if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
18335         tmp_EXTERN="__global"
18336         tmp_CFLAGS="-xldscope=hidden"
18337         supports_symbol_hiding="yes"
18338       fi
18339       ;;
18340   esac
18341   if test "$supports_symbol_hiding" = "yes"; then
18342     tmp_save_CFLAGS="$CFLAGS"
18343     CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18344     squeeze CFLAGS
18345     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18346 /* end confdefs.h.  */
18347
18348
18349         $tmp_EXTERN char *dummy(char *buff);
18350         char *dummy(char *buff)
18351         {
18352          if(buff)
18353            return ++buff;
18354          else
18355            return buff;
18356         }
18357
18358 int main (void)
18359 {
18360
18361         char b[16];
18362         char *r = dummy(&b[0]);
18363         if(r)
18364           return (int)*r;
18365
18366  ;
18367  return 0;
18368 }
18369
18370 _ACEOF
18371 if ac_fn_c_try_compile "$LINENO"; then :
18372
18373       supports_symbol_hiding="yes"
18374       if test -f conftest.err; then
18375         grep 'visibility' conftest.err >/dev/null
18376         if test "$?" -eq "0"; then
18377           supports_symbol_hiding="no"
18378         fi
18379       fi
18380
18381 else
18382
18383       supports_symbol_hiding="no"
18384       echo " " >&6
18385       sed 's/^/cc-src: /' conftest.$ac_ext >&6
18386       sed 's/^/cc-err: /' conftest.err >&6
18387       echo " " >&6
18388
18389 fi
18390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18391     CFLAGS="$tmp_save_CFLAGS"
18392   fi
18393   if test "$supports_symbol_hiding" = "yes"; then
18394     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18395 $as_echo "yes" >&6; }
18396     symbol_hiding_CFLAGS="$tmp_CFLAGS"
18397     symbol_hiding_EXTERN="$tmp_EXTERN"
18398   else
18399     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18400 $as_echo "no" >&6; }
18401   fi
18402
18403
18404
18405       supports_curldebug="unknown"
18406   if test "$want_curldebug" = "yes"; then
18407     if test "x$enable_shared" != "xno" &&
18408       test "x$enable_shared" != "xyes"; then
18409       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
18410 $as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
18411       supports_curldebug="no"
18412     fi
18413     if test "x$enable_static" != "xno" &&
18414       test "x$enable_static" != "xyes"; then
18415       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
18416 $as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
18417       supports_curldebug="no"
18418     fi
18419     if test "$supports_curldebug" != "no"; then
18420       if test "$enable_shared" = "yes" &&
18421         test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
18422         supports_curldebug="no"
18423         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
18424 $as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
18425       fi
18426     fi
18427   fi
18428   #
18429   if test "$want_curldebug" = "yes"; then
18430     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
18431 $as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
18432     test "$supports_curldebug" = "no" || supports_curldebug="yes"
18433     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
18434 $as_echo "$supports_curldebug" >&6; }
18435     if test "$supports_curldebug" = "no"; then
18436       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
18437 $as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
18438       want_curldebug="no"
18439     fi
18440   fi
18441
18442  if test x$want_curldebug = xyes; then
18443   CURLDEBUG_TRUE=
18444   CURLDEBUG_FALSE='#'
18445 else
18446   CURLDEBUG_TRUE='#'
18447   CURLDEBUG_FALSE=
18448 fi
18449
18450
18451 supports_unittests=yes
18452 # cross-compilation of unit tests static library/programs fails when
18453 # libcurl shared library is built. This might be due to a libtool or
18454 # automake issue. In this case we disable unit tests.
18455 if test "x$cross_compiling" != "xno" &&
18456    test "x$enable_shared" != "xno"; then
18457   supports_unittests=no
18458 fi
18459
18460 # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
18461 # a problem related with OpenSSL headers and library versions not matching.
18462 # Disable unit tests while time to further investigate this is found.
18463 case $host in
18464   mips-sgi-irix6.5)
18465     if test "$compiler_id" = "GNU_C"; then
18466       supports_unittests=no
18467     fi
18468     ;;
18469 esac
18470
18471 # All AIX autobuilds fails unit tests linking against unittests library
18472 # due to unittests library being built with no symbols or members. Libtool ?
18473 # Disable unit tests while time to further investigate this is found.
18474 case $host_os in
18475   aix*)
18476     supports_unittests=no
18477     ;;
18478 esac
18479
18480 if test "x$want_debug" = "xyes" &&
18481    test "x$supports_unittests" = "xyes"; then
18482   want_unittests=yes
18483 else
18484   want_unittests=no
18485 fi
18486  if test x$want_unittests = xyes; then
18487   BUILD_UNITTESTS_TRUE=
18488   BUILD_UNITTESTS_FALSE='#'
18489 else
18490   BUILD_UNITTESTS_TRUE='#'
18491   BUILD_UNITTESTS_FALSE=
18492 fi
18493
18494
18495
18496
18497
18498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18499 $as_echo_n "checking for windows.h... " >&6; }
18500 if ${curl_cv_header_windows_h+:} false; then :
18501   $as_echo_n "(cached) " >&6
18502 else
18503
18504     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18505 /* end confdefs.h.  */
18506
18507
18508 #undef inline
18509 #ifndef WIN32_LEAN_AND_MEAN
18510 #define WIN32_LEAN_AND_MEAN
18511 #endif
18512 #include <windows.h>
18513
18514 int main (void)
18515 {
18516
18517 #if defined(__CYGWIN__) || defined(__CEGCC__)
18518         HAVE_WINDOWS_H shall not be defined.
18519 #else
18520         int dummy=2*WINVER;
18521 #endif
18522
18523  ;
18524  return 0;
18525 }
18526
18527 _ACEOF
18528 if ac_fn_c_try_compile "$LINENO"; then :
18529
18530       curl_cv_header_windows_h="yes"
18531
18532 else
18533
18534       curl_cv_header_windows_h="no"
18535
18536 fi
18537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18538
18539 fi
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
18541 $as_echo "$curl_cv_header_windows_h" >&6; }
18542   case "$curl_cv_header_windows_h" in
18543     yes)
18544
18545 cat >>confdefs.h <<_ACEOF
18546 #define HAVE_WINDOWS_H 1
18547 _ACEOF
18548
18549       ;;
18550   esac
18551
18552
18553     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18554 $as_echo_n "checking whether build target is a native Windows one... " >&6; }
18555 if ${curl_cv_native_windows+:} false; then :
18556   $as_echo_n "(cached) " >&6
18557 else
18558
18559     if test "$curl_cv_header_windows_h" = "no"; then
18560       curl_cv_native_windows="no"
18561     else
18562       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18563 /* end confdefs.h.  */
18564
18565
18566
18567 int main (void)
18568 {
18569
18570 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
18571    (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
18572           int dummy=1;
18573 #else
18574           Not a native Windows build target.
18575 #endif
18576
18577  ;
18578  return 0;
18579 }
18580
18581 _ACEOF
18582 if ac_fn_c_try_compile "$LINENO"; then :
18583
18584         curl_cv_native_windows="yes"
18585
18586 else
18587
18588         curl_cv_native_windows="no"
18589
18590 fi
18591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18592     fi
18593
18594 fi
18595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
18596 $as_echo "$curl_cv_native_windows" >&6; }
18597    if test "x$curl_cv_native_windows" = xyes; then
18598   DOING_NATIVE_WINDOWS_TRUE=
18599   DOING_NATIVE_WINDOWS_FALSE='#'
18600 else
18601   DOING_NATIVE_WINDOWS_TRUE='#'
18602   DOING_NATIVE_WINDOWS_FALSE=
18603 fi
18604
18605
18606 case X-"$curl_cv_native_windows" in
18607   X-yes)
18608
18609     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18610 $as_echo_n "checking for winsock.h... " >&6; }
18611 if ${curl_cv_header_winsock_h+:} false; then :
18612   $as_echo_n "(cached) " >&6
18613 else
18614
18615     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18616 /* end confdefs.h.  */
18617
18618
18619 #undef inline
18620 #ifndef WIN32_LEAN_AND_MEAN
18621 #define WIN32_LEAN_AND_MEAN
18622 #endif
18623 #include <windows.h>
18624 #include <winsock.h>
18625
18626 int main (void)
18627 {
18628
18629 #if defined(__CYGWIN__) || defined(__CEGCC__)
18630         HAVE_WINSOCK_H shall not be defined.
18631 #else
18632         int dummy=WSACleanup();
18633 #endif
18634
18635  ;
18636  return 0;
18637 }
18638
18639 _ACEOF
18640 if ac_fn_c_try_compile "$LINENO"; then :
18641
18642       curl_cv_header_winsock_h="yes"
18643
18644 else
18645
18646       curl_cv_header_winsock_h="no"
18647
18648 fi
18649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18650
18651 fi
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
18653 $as_echo "$curl_cv_header_winsock_h" >&6; }
18654   case "$curl_cv_header_winsock_h" in
18655     yes)
18656
18657 cat >>confdefs.h <<_ACEOF
18658 #define HAVE_WINSOCK_H 1
18659 _ACEOF
18660
18661       ;;
18662   esac
18663
18664
18665     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18666 $as_echo_n "checking for winsock2.h... " >&6; }
18667 if ${curl_cv_header_winsock2_h+:} false; then :
18668   $as_echo_n "(cached) " >&6
18669 else
18670
18671     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18672 /* end confdefs.h.  */
18673
18674
18675 #undef inline
18676 #ifndef WIN32_LEAN_AND_MEAN
18677 #define WIN32_LEAN_AND_MEAN
18678 #endif
18679 #include <windows.h>
18680 #include <winsock2.h>
18681
18682 int main (void)
18683 {
18684
18685 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18686         HAVE_WINSOCK2_H shall not be defined.
18687 #else
18688         int dummy=2*IPPROTO_ESP;
18689 #endif
18690
18691  ;
18692  return 0;
18693 }
18694
18695 _ACEOF
18696 if ac_fn_c_try_compile "$LINENO"; then :
18697
18698       curl_cv_header_winsock2_h="yes"
18699
18700 else
18701
18702       curl_cv_header_winsock2_h="no"
18703
18704 fi
18705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18706
18707 fi
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
18709 $as_echo "$curl_cv_header_winsock2_h" >&6; }
18710   case "$curl_cv_header_winsock2_h" in
18711     yes)
18712
18713 cat >>confdefs.h <<_ACEOF
18714 #define HAVE_WINSOCK2_H 1
18715 _ACEOF
18716
18717       ;;
18718   esac
18719
18720
18721     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18722 $as_echo_n "checking for ws2tcpip.h... " >&6; }
18723 if ${curl_cv_header_ws2tcpip_h+:} false; then :
18724   $as_echo_n "(cached) " >&6
18725 else
18726
18727     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18728 /* end confdefs.h.  */
18729
18730
18731 #undef inline
18732 #ifndef WIN32_LEAN_AND_MEAN
18733 #define WIN32_LEAN_AND_MEAN
18734 #endif
18735 #include <windows.h>
18736 #include <winsock2.h>
18737 #include <ws2tcpip.h>
18738
18739 int main (void)
18740 {
18741
18742 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18743         HAVE_WS2TCPIP_H shall not be defined.
18744 #else
18745         int dummy=2*IP_PKTINFO;
18746 #endif
18747
18748  ;
18749  return 0;
18750 }
18751
18752 _ACEOF
18753 if ac_fn_c_try_compile "$LINENO"; then :
18754
18755       curl_cv_header_ws2tcpip_h="yes"
18756
18757 else
18758
18759       curl_cv_header_ws2tcpip_h="no"
18760
18761 fi
18762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18763
18764 fi
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
18766 $as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
18767   case "$curl_cv_header_ws2tcpip_h" in
18768     yes)
18769
18770 cat >>confdefs.h <<_ACEOF
18771 #define HAVE_WS2TCPIP_H 1
18772 _ACEOF
18773
18774       ;;
18775   esac
18776
18777
18778     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
18779 $as_echo_n "checking for winldap.h... " >&6; }
18780 if ${curl_cv_header_winldap_h+:} false; then :
18781   $as_echo_n "(cached) " >&6
18782 else
18783
18784     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18785 /* end confdefs.h.  */
18786
18787
18788 #undef inline
18789 #ifdef HAVE_WINDOWS_H
18790 #ifndef WIN32_LEAN_AND_MEAN
18791 #define WIN32_LEAN_AND_MEAN
18792 #endif
18793 #include <windows.h>
18794 #endif
18795 #include <winldap.h>
18796
18797 int main (void)
18798 {
18799
18800 #if defined(__CYGWIN__) || defined(__CEGCC__)
18801         HAVE_WINLDAP_H shall not be defined.
18802 #else
18803         LDAP *ldp = ldap_init("dummy", LDAP_PORT);
18804         ULONG res = ldap_unbind(ldp);
18805 #endif
18806
18807  ;
18808  return 0;
18809 }
18810
18811 _ACEOF
18812 if ac_fn_c_try_compile "$LINENO"; then :
18813
18814       curl_cv_header_winldap_h="yes"
18815
18816 else
18817
18818       curl_cv_header_winldap_h="no"
18819
18820 fi
18821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18822
18823 fi
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
18825 $as_echo "$curl_cv_header_winldap_h" >&6; }
18826   case "$curl_cv_header_winldap_h" in
18827     yes)
18828
18829 cat >>confdefs.h <<_ACEOF
18830 #define HAVE_WINLDAP_H 1
18831 _ACEOF
18832
18833       ;;
18834   esac
18835
18836
18837     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
18838 $as_echo_n "checking for winber.h... " >&6; }
18839 if ${curl_cv_header_winber_h+:} false; then :
18840   $as_echo_n "(cached) " >&6
18841 else
18842
18843     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18844 /* end confdefs.h.  */
18845
18846
18847 #undef inline
18848 #ifdef HAVE_WINDOWS_H
18849 #ifndef WIN32_LEAN_AND_MEAN
18850 #define WIN32_LEAN_AND_MEAN
18851 #endif
18852 #include <windows.h>
18853 #endif
18854 #include <winldap.h>
18855 #include <winber.h>
18856
18857 int main (void)
18858 {
18859
18860 #if defined(__CYGWIN__) || defined(__CEGCC__)
18861         HAVE_WINBER_H shall not be defined.
18862 #else
18863         BERVAL *bvp = NULL;
18864         BerElement *bep = ber_init(bvp);
18865         ber_free(bep, 1);
18866 #endif
18867
18868  ;
18869  return 0;
18870 }
18871
18872 _ACEOF
18873 if ac_fn_c_try_compile "$LINENO"; then :
18874
18875       curl_cv_header_winber_h="yes"
18876
18877 else
18878
18879       curl_cv_header_winber_h="no"
18880
18881 fi
18882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18883
18884 fi
18885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winber_h" >&5
18886 $as_echo "$curl_cv_header_winber_h" >&6; }
18887   case "$curl_cv_header_winber_h" in
18888     yes)
18889
18890 cat >>confdefs.h <<_ACEOF
18891 #define HAVE_WINBER_H 1
18892 _ACEOF
18893
18894       ;;
18895   esac
18896
18897     ;;
18898   *)
18899     curl_cv_header_winsock_h="no"
18900     curl_cv_header_winsock2_h="no"
18901     curl_cv_header_ws2tcpip_h="no"
18902     curl_cv_header_winldap_h="no"
18903     curl_cv_header_winber_h="no"
18904     ;;
18905 esac
18906
18907     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
18908 $as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
18909   curl_win32_file_api="no"
18910   if test "$curl_cv_header_windows_h" = "yes"; then
18911     if test x"$enable_largefile" != "xno"; then
18912       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18913 /* end confdefs.h.  */
18914
18915
18916
18917 int main (void)
18918 {
18919
18920 #if !defined(_WIN32_WCE) && \
18921     (defined(__MINGW32__) || \
18922     (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
18923           int dummy=1;
18924 #else
18925           WIN32 large file API not supported.
18926 #endif
18927
18928  ;
18929  return 0;
18930 }
18931
18932 _ACEOF
18933 if ac_fn_c_try_compile "$LINENO"; then :
18934
18935         curl_win32_file_api="win32_large_files"
18936
18937 fi
18938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18939     fi
18940     if test "$curl_win32_file_api" = "no"; then
18941       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18942 /* end confdefs.h.  */
18943
18944
18945
18946 int main (void)
18947 {
18948
18949 #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
18950           int dummy=1;
18951 #else
18952           WIN32 small file API not supported.
18953 #endif
18954
18955  ;
18956  return 0;
18957 }
18958
18959 _ACEOF
18960 if ac_fn_c_try_compile "$LINENO"; then :
18961
18962         curl_win32_file_api="win32_small_files"
18963
18964 fi
18965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18966     fi
18967   fi
18968   case "$curl_win32_file_api" in
18969     win32_large_files)
18970       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
18971 $as_echo "yes (large file enabled)" >&6; }
18972
18973 cat >>confdefs.h <<_ACEOF
18974 #define USE_WIN32_LARGE_FILES 1
18975 _ACEOF
18976
18977       ;;
18978     win32_small_files)
18979       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
18980 $as_echo "yes (large file disabled)" >&6; }
18981
18982 cat >>confdefs.h <<_ACEOF
18983 #define USE_WIN32_SMALL_FILES 1
18984 _ACEOF
18985
18986       ;;
18987     *)
18988       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18989 $as_echo "no" >&6; }
18990       ;;
18991   esac
18992
18993
18994
18995
18996   tst_cflags="no"
18997   case $host_os in
18998     darwin*)
18999       tst_cflags="yes"
19000       ;;
19001   esac
19002
19003   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good-to-use Mac CFLAGS" >&5
19004 $as_echo_n "checking for good-to-use Mac CFLAGS... " >&6; }
19005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
19006 $as_echo "$tst_cflags" >&6; };
19007
19008   if test "$tst_cflags" = "yes"; then
19009     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for *version-min in CFLAGS" >&5
19010 $as_echo_n "checking for *version-min in CFLAGS... " >&6; }
19011     min=""
19012     if test -z "$(echo $CFLAGS | grep m.*os.*-version-min)"; then
19013       min="-mmacosx-version-min=10.8"
19014       CFLAGS="$CFLAGS $min"
19015     fi
19016     if test -z "$min"; then
19017       { $as_echo "$as_me:${as_lineno-$LINENO}: result: set by user" >&5
19018 $as_echo "set by user" >&6; }
19019     else
19020       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $min set" >&5
19021 $as_echo "$min set" >&6; }
19022     fi
19023
19024     old_CFLAGS=$CFLAGS
19025     CFLAGS="$CFLAGS -Werror=partial-availability"
19026     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
19027 $as_echo_n "checking whether $CC accepts -Werror=partial-availability... " >&6; }
19028     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19029 /* end confdefs.h.  */
19030
19031 int main (void)
19032 {
19033
19034  ;
19035  return 0;
19036 }
19037 _ACEOF
19038 if ac_fn_c_try_compile "$LINENO"; then :
19039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19040 $as_echo "yes" >&6; }
19041 else
19042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19043 $as_echo "no" >&6; }
19044       CFLAGS=$old_CFLAGS
19045 fi
19046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19047   fi
19048
19049
19050
19051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
19052 $as_echo_n "checking to see if the compiler supports __builtin_available()... " >&6; }
19053   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19054 /* end confdefs.h.  */
19055
19056
19057 #include <stdlib.h>
19058
19059 int main (void)
19060 {
19061
19062       if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
19063
19064  ;
19065  return 0;
19066 }
19067
19068 _ACEOF
19069 if ac_fn_c_try_compile "$LINENO"; then :
19070
19071     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19072 $as_echo "yes" >&6; }
19073
19074 cat >>confdefs.h <<_ACEOF
19075 #define HAVE_BUILTIN_AVAILABLE 1
19076 _ACEOF
19077
19078
19079 else
19080
19081     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19082 $as_echo "no" >&6; }
19083
19084 fi
19085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19086
19087
19088
19089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
19090 $as_echo_n "checking whether to support http... " >&6; }
19091 # Check whether --enable-http was given.
19092 if test "${enable_http+set}" = set; then :
19093   enableval=$enable_http;  case "$enableval" in
19094   no)
19095        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19096 $as_echo "no" >&6; }
19097
19098 $as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
19099
19100        disable_http="yes"
19101        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
19102 $as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
19103        CURL_DISABLE_HTTP=1
19104
19105
19106 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19107
19108        CURL_DISABLE_RTSP=1
19109
19110        ;;
19111   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19112 $as_echo "yes" >&6; }
19113        ;;
19114   esac
19115 else
19116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19117 $as_echo "yes" >&6; }
19118
19119 fi
19120
19121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
19122 $as_echo_n "checking whether to support ftp... " >&6; }
19123 # Check whether --enable-ftp was given.
19124 if test "${enable_ftp+set}" = set; then :
19125   enableval=$enable_ftp;  case "$enableval" in
19126   no)
19127        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19128 $as_echo "no" >&6; }
19129
19130 $as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
19131
19132        CURL_DISABLE_FTP=1
19133
19134        ;;
19135   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19136 $as_echo "yes" >&6; }
19137        ;;
19138   esac
19139 else
19140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19141 $as_echo "yes" >&6; }
19142
19143 fi
19144
19145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
19146 $as_echo_n "checking whether to support file... " >&6; }
19147 # Check whether --enable-file was given.
19148 if test "${enable_file+set}" = set; then :
19149   enableval=$enable_file;  case "$enableval" in
19150   no)
19151        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19152 $as_echo "no" >&6; }
19153
19154 $as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
19155
19156        CURL_DISABLE_FILE=1
19157
19158        ;;
19159   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19160 $as_echo "yes" >&6; }
19161        ;;
19162   esac
19163 else
19164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19165 $as_echo "yes" >&6; }
19166
19167 fi
19168
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
19170 $as_echo_n "checking whether to support ldap... " >&6; }
19171 # Check whether --enable-ldap was given.
19172 if test "${enable_ldap+set}" = set; then :
19173   enableval=$enable_ldap;  case "$enableval" in
19174   no)
19175        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19176 $as_echo "no" >&6; }
19177
19178 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
19179
19180        CURL_DISABLE_LDAP=1
19181
19182        ;;
19183   *)
19184        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19185 $as_echo "yes" >&6; }
19186        ;;
19187   esac
19188 else
19189
19190        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19191 $as_echo "yes" >&6; }
19192
19193 fi
19194
19195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
19196 $as_echo_n "checking whether to support ldaps... " >&6; }
19197 # Check whether --enable-ldaps was given.
19198 if test "${enable_ldaps+set}" = set; then :
19199   enableval=$enable_ldaps;  case "$enableval" in
19200   no)
19201        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19202 $as_echo "no" >&6; }
19203
19204 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19205
19206        CURL_DISABLE_LDAPS=1
19207
19208        ;;
19209   *)   if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19210          { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
19211 $as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
19212
19213 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19214
19215          CURL_DISABLE_LDAPS=1
19216
19217        else
19218          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19219 $as_echo "yes" >&6; }
19220
19221 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19222
19223          HAVE_LDAP_SSL=1
19224
19225        fi
19226        ;;
19227   esac
19228 else
19229
19230        if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19231          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19232 $as_echo "no" >&6; }
19233
19234 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19235
19236          CURL_DISABLE_LDAPS=1
19237
19238        else
19239          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19240 $as_echo "yes" >&6; }
19241
19242 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19243
19244          HAVE_LDAP_SSL=1
19245
19246        fi
19247
19248 fi
19249
19250
19251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
19252 $as_echo_n "checking whether to support rtsp... " >&6; }
19253 # Check whether --enable-rtsp was given.
19254 if test "${enable_rtsp+set}" = set; then :
19255   enableval=$enable_rtsp;  case "$enableval" in
19256   no)
19257        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19258 $as_echo "no" >&6; }
19259
19260 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19261
19262        CURL_DISABLE_RTSP=1
19263
19264        ;;
19265   *)   if test x$CURL_DISABLE_HTTP = x1 ; then
19266           as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
19267        else
19268           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19269 $as_echo "yes" >&6; }
19270           curl_rtsp_msg="enabled"
19271        fi
19272        ;;
19273   esac
19274 else
19275   if test "x$CURL_DISABLE_HTTP" != "x1"; then
19276           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19277 $as_echo "yes" >&6; }
19278           curl_rtsp_msg="enabled"
19279        else
19280           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19281 $as_echo "no" >&6; }
19282        fi
19283
19284 fi
19285
19286
19287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
19288 $as_echo_n "checking whether to support proxies... " >&6; }
19289 # Check whether --enable-proxy was given.
19290 if test "${enable_proxy+set}" = set; then :
19291   enableval=$enable_proxy;  case "$enableval" in
19292   no)
19293        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19294 $as_echo "no" >&6; }
19295
19296 $as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
19297
19298        CURL_DISABLE_PROXY=1
19299
19300        ;;
19301   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19302 $as_echo "yes" >&6; }
19303        ;;
19304   esac
19305 else
19306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19307 $as_echo "yes" >&6; }
19308
19309 fi
19310
19311
19312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
19313 $as_echo_n "checking whether to support dict... " >&6; }
19314 # Check whether --enable-dict was given.
19315 if test "${enable_dict+set}" = set; then :
19316   enableval=$enable_dict;  case "$enableval" in
19317   no)
19318        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19319 $as_echo "no" >&6; }
19320
19321 $as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
19322
19323        CURL_DISABLE_DICT=1
19324
19325        ;;
19326   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19327 $as_echo "yes" >&6; }
19328        ;;
19329   esac
19330 else
19331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19332 $as_echo "yes" >&6; }
19333
19334 fi
19335
19336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
19337 $as_echo_n "checking whether to support telnet... " >&6; }
19338 # Check whether --enable-telnet was given.
19339 if test "${enable_telnet+set}" = set; then :
19340   enableval=$enable_telnet;  case "$enableval" in
19341   no)
19342        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19343 $as_echo "no" >&6; }
19344
19345 $as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
19346
19347        CURL_DISABLE_TELNET=1
19348
19349        ;;
19350   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19351 $as_echo "yes" >&6; }
19352        ;;
19353   esac
19354 else
19355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19356 $as_echo "yes" >&6; }
19357
19358 fi
19359
19360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
19361 $as_echo_n "checking whether to support tftp... " >&6; }
19362 # Check whether --enable-tftp was given.
19363 if test "${enable_tftp+set}" = set; then :
19364   enableval=$enable_tftp;  case "$enableval" in
19365   no)
19366        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19367 $as_echo "no" >&6; }
19368
19369 $as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
19370
19371        CURL_DISABLE_TFTP=1
19372
19373        ;;
19374   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19375 $as_echo "yes" >&6; }
19376        ;;
19377   esac
19378 else
19379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19380 $as_echo "yes" >&6; }
19381
19382 fi
19383
19384
19385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
19386 $as_echo_n "checking whether to support pop3... " >&6; }
19387 # Check whether --enable-pop3 was given.
19388 if test "${enable_pop3+set}" = set; then :
19389   enableval=$enable_pop3;  case "$enableval" in
19390   no)
19391        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19392 $as_echo "no" >&6; }
19393
19394 $as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
19395
19396        CURL_DISABLE_POP3=1
19397
19398        ;;
19399   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19400 $as_echo "yes" >&6; }
19401        ;;
19402   esac
19403 else
19404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19405 $as_echo "yes" >&6; }
19406
19407 fi
19408
19409
19410
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
19412 $as_echo_n "checking whether to support imap... " >&6; }
19413 # Check whether --enable-imap was given.
19414 if test "${enable_imap+set}" = set; then :
19415   enableval=$enable_imap;  case "$enableval" in
19416   no)
19417        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19418 $as_echo "no" >&6; }
19419
19420 $as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
19421
19422        CURL_DISABLE_IMAP=1
19423
19424        ;;
19425   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19426 $as_echo "yes" >&6; }
19427        ;;
19428   esac
19429 else
19430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19431 $as_echo "yes" >&6; }
19432
19433 fi
19434
19435
19436
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
19438 $as_echo_n "checking whether to support smb... " >&6; }
19439 # Check whether --enable-smb was given.
19440 if test "${enable_smb+set}" = set; then :
19441   enableval=$enable_smb;  case "$enableval" in
19442   no)
19443        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19444 $as_echo "no" >&6; }
19445
19446 $as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h
19447
19448        CURL_DISABLE_SMB=1
19449
19450        ;;
19451   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19452 $as_echo "yes" >&6; }
19453        ;;
19454   esac
19455 else
19456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19457 $as_echo "yes" >&6; }
19458
19459 fi
19460
19461
19462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
19463 $as_echo_n "checking whether to support smtp... " >&6; }
19464 # Check whether --enable-smtp was given.
19465 if test "${enable_smtp+set}" = set; then :
19466   enableval=$enable_smtp;  case "$enableval" in
19467   no)
19468        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19469 $as_echo "no" >&6; }
19470
19471 $as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
19472
19473        CURL_DISABLE_SMTP=1
19474
19475        ;;
19476   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19477 $as_echo "yes" >&6; }
19478        ;;
19479   esac
19480 else
19481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19482 $as_echo "yes" >&6; }
19483
19484 fi
19485
19486
19487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
19488 $as_echo_n "checking whether to support gopher... " >&6; }
19489 # Check whether --enable-gopher was given.
19490 if test "${enable_gopher+set}" = set; then :
19491   enableval=$enable_gopher;  case "$enableval" in
19492   no)
19493        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19494 $as_echo "no" >&6; }
19495
19496 $as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
19497
19498        CURL_DISABLE_GOPHER=1
19499
19500        ;;
19501   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19502 $as_echo "yes" >&6; }
19503        ;;
19504   esac
19505 else
19506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19507 $as_echo "yes" >&6; }
19508
19509 fi
19510
19511
19512
19513
19514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
19515 $as_echo_n "checking whether to provide built-in manual... " >&6; }
19516 # Check whether --enable-manual was given.
19517 if test "${enable_manual+set}" = set; then :
19518   enableval=$enable_manual;  case "$enableval" in
19519   no)
19520        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19521 $as_echo "no" >&6; }
19522        ;;
19523   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19524 $as_echo "yes" >&6; }
19525        USE_MANUAL="1"
19526        ;;
19527   esac
19528 else
19529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19530 $as_echo "yes" >&6; }
19531        USE_MANUAL="1"
19532
19533 fi
19534
19535
19536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
19537 $as_echo_n "checking whether to enable generation of C code... " >&6; }
19538 # Check whether --enable-libcurl_option was given.
19539 if test "${enable_libcurl_option+set}" = set; then :
19540   enableval=$enable_libcurl_option;  case "$enableval" in
19541   no)
19542        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19543 $as_echo "no" >&6; }
19544
19545 $as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
19546
19547        curl_libcurl_msg="no"
19548        ;;
19549   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19550 $as_echo "yes" >&6; }
19551        ;;
19552   esac
19553 else
19554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19555 $as_echo "yes" >&6; }
19556
19557 fi
19558
19559
19560
19561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
19562 $as_echo_n "checking whether to use libgcc... " >&6; }
19563 # Check whether --enable-libgcc was given.
19564 if test "${enable_libgcc+set}" = set; then :
19565   enableval=$enable_libgcc;  case "$enableval" in
19566   yes)
19567        LIBS="-lgcc $LIBS"
19568        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19569 $as_echo "yes" >&6; }
19570        ;;
19571   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19572 $as_echo "no" >&6; }
19573        ;;
19574   esac
19575 else
19576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19577 $as_echo "no" >&6; }
19578
19579 fi
19580
19581
19582
19583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
19584 $as_echo_n "checking if X/Open network library is required... " >&6; }
19585   tst_lib_xnet_required="no"
19586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19587 /* end confdefs.h.  */
19588
19589
19590 int main (void)
19591 {
19592 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
19593   return 0;
19594 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
19595   return 0;
19596 #else
19597   force compilation error
19598 #endif
19599 }
19600
19601
19602 _ACEOF
19603 if ac_fn_c_try_compile "$LINENO"; then :
19604
19605     tst_lib_xnet_required="yes"
19606     LIBS="-lxnet $LIBS"
19607
19608 fi
19609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
19611 $as_echo "$tst_lib_xnet_required" >&6; }
19612
19613
19614 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19615 if test "x$ac_cv_func_gethostbyname" = xyes; then :
19616   HAVE_GETHOSTBYNAME="1"
19617
19618 else
19619    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19620 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19621 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19622   $as_echo_n "(cached) " >&6
19623 else
19624   ac_check_lib_save_LIBS=$LIBS
19625 LIBS="-lnsl  $LIBS"
19626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19627 /* end confdefs.h.  */
19628
19629
19630 #ifdef __cplusplus
19631 extern "C"
19632 #endif
19633 char gethostbyname ();
19634 int main (void)
19635 {
19636 return gethostbyname ();
19637  ;
19638  return 0;
19639 }
19640 _ACEOF
19641 if ac_fn_c_try_link "$LINENO"; then :
19642   ac_cv_lib_nsl_gethostbyname=yes
19643 else
19644   ac_cv_lib_nsl_gethostbyname=no
19645 fi
19646 rm -f core conftest.err conftest.$ac_objext \
19647     conftest$ac_exeext conftest.$ac_ext
19648 LIBS=$ac_check_lib_save_LIBS
19649 fi
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19651 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19652 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19653   HAVE_GETHOSTBYNAME="1"
19654                              LIBS="-lnsl $LIBS"
19655
19656 fi
19657
19658
19659 fi
19660
19661
19662 if test "$HAVE_GETHOSTBYNAME" != "1"
19663 then
19664     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
19665 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
19666 if ${ac_cv_lib_socket_gethostbyname+:} false; then :
19667   $as_echo_n "(cached) " >&6
19668 else
19669   ac_check_lib_save_LIBS=$LIBS
19670 LIBS="-lsocket  $LIBS"
19671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19672 /* end confdefs.h.  */
19673
19674
19675 #ifdef __cplusplus
19676 extern "C"
19677 #endif
19678 char gethostbyname ();
19679 int main (void)
19680 {
19681 return gethostbyname ();
19682  ;
19683  return 0;
19684 }
19685 _ACEOF
19686 if ac_fn_c_try_link "$LINENO"; then :
19687   ac_cv_lib_socket_gethostbyname=yes
19688 else
19689   ac_cv_lib_socket_gethostbyname=no
19690 fi
19691 rm -f core conftest.err conftest.$ac_objext \
19692     conftest$ac_exeext conftest.$ac_ext
19693 LIBS=$ac_check_lib_save_LIBS
19694 fi
19695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
19696 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
19697 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
19698   HAVE_GETHOSTBYNAME="1"
19699                LIBS="-lsocket $LIBS"
19700
19701 fi
19702
19703 fi
19704
19705 if test "$HAVE_GETHOSTBYNAME" != "1"
19706 then
19707     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
19708 $as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
19709 if ${ac_cv_lib_watt_gethostbyname+:} false; then :
19710   $as_echo_n "(cached) " >&6
19711 else
19712   ac_check_lib_save_LIBS=$LIBS
19713 LIBS="-lwatt  $LIBS"
19714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19715 /* end confdefs.h.  */
19716
19717
19718 #ifdef __cplusplus
19719 extern "C"
19720 #endif
19721 char gethostbyname ();
19722 int main (void)
19723 {
19724 return gethostbyname ();
19725  ;
19726  return 0;
19727 }
19728 _ACEOF
19729 if ac_fn_c_try_link "$LINENO"; then :
19730   ac_cv_lib_watt_gethostbyname=yes
19731 else
19732   ac_cv_lib_watt_gethostbyname=no
19733 fi
19734 rm -f core conftest.err conftest.$ac_objext \
19735     conftest$ac_exeext conftest.$ac_ext
19736 LIBS=$ac_check_lib_save_LIBS
19737 fi
19738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
19739 $as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
19740 if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
19741   HAVE_GETHOSTBYNAME="1"
19742                CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
19743                LDFLAGS="-L/dev/env/WATT_ROOT/lib"
19744                LIBS="-lwatt $LIBS"
19745
19746 fi
19747
19748 fi
19749
19750 if test "$HAVE_GETHOSTBYNAME" != "1"
19751 then
19752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
19753 $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
19754   my_ac_save_LIBS=$LIBS
19755   LIBS="-lnsl -lsocket $LIBS"
19756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19757 /* end confdefs.h.  */
19758
19759
19760
19761 int main (void)
19762 {
19763
19764       gethostbyname();
19765
19766  ;
19767  return 0;
19768 }
19769
19770 _ACEOF
19771 if ac_fn_c_try_link "$LINENO"; then :
19772
19773     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19774 $as_echo "yes" >&6; }
19775     HAVE_GETHOSTBYNAME="1"
19776
19777 else
19778
19779     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19780 $as_echo "no" >&6; }
19781     LIBS=$my_ac_save_LIBS
19782
19783 fi
19784 rm -f core conftest.err conftest.$ac_objext \
19785     conftest$ac_exeext conftest.$ac_ext
19786 fi
19787
19788 if test "$HAVE_GETHOSTBYNAME" != "1"
19789 then
19790     if test "$curl_cv_header_windows_h" = "yes"; then
19791     if test "$curl_cv_header_winsock_h" = "yes"; then
19792       case $host in
19793         *-*-mingw32ce*)
19794           winsock_LIB="-lwinsock"
19795           ;;
19796         *)
19797           winsock_LIB="-lwsock32"
19798           ;;
19799       esac
19800     fi
19801     if test "$curl_cv_header_winsock2_h" = "yes"; then
19802       winsock_LIB="-lws2_32"
19803     fi
19804     if test ! -z "$winsock_LIB"; then
19805       my_ac_save_LIBS=$LIBS
19806       LIBS="$winsock_LIB $LIBS"
19807       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
19808 $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
19809       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19810 /* end confdefs.h.  */
19811
19812
19813 #ifdef HAVE_WINDOWS_H
19814 #ifndef WIN32_LEAN_AND_MEAN
19815 #define WIN32_LEAN_AND_MEAN
19816 #endif
19817 #include <windows.h>
19818 #ifdef HAVE_WINSOCK2_H
19819 #include <winsock2.h>
19820 #else
19821 #ifdef HAVE_WINSOCK_H
19822 #include <winsock.h>
19823 #endif
19824 #endif
19825 #endif
19826
19827 int main (void)
19828 {
19829
19830           gethostbyname("www.dummysite.com");
19831
19832  ;
19833  return 0;
19834 }
19835
19836 _ACEOF
19837 if ac_fn_c_try_link "$LINENO"; then :
19838
19839         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19840 $as_echo "yes" >&6; }
19841         HAVE_GETHOSTBYNAME="1"
19842
19843 else
19844
19845         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19846 $as_echo "no" >&6; }
19847         winsock_LIB=""
19848         LIBS=$my_ac_save_LIBS
19849
19850 fi
19851 rm -f core conftest.err conftest.$ac_objext \
19852     conftest$ac_exeext conftest.$ac_ext
19853     fi
19854   fi
19855 fi
19856
19857 if test "$HAVE_GETHOSTBYNAME" != "1"
19858 then
19859     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
19860 $as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
19861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19862 /* end confdefs.h.  */
19863
19864
19865 /* Older Minix versions may need <net/gen/netdb.h> here instead */
19866 #include <netdb.h>
19867
19868 int main (void)
19869 {
19870
19871       gethostbyname("www.dummysite.com");
19872
19873  ;
19874  return 0;
19875 }
19876
19877 _ACEOF
19878 if ac_fn_c_try_link "$LINENO"; then :
19879
19880     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19881 $as_echo "yes" >&6; }
19882     HAVE_GETHOSTBYNAME="1"
19883
19884 else
19885
19886     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19887 $as_echo "no" >&6; }
19888
19889 fi
19890 rm -f core conftest.err conftest.$ac_objext \
19891     conftest$ac_exeext conftest.$ac_ext
19892 fi
19893
19894 if test "$HAVE_GETHOSTBYNAME" != "1"
19895 then
19896     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
19897 $as_echo_n "checking for gethostbyname for eCos... " >&6; }
19898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19899 /* end confdefs.h.  */
19900
19901
19902 #include <stdio.h>
19903 #include <netdb.h>
19904
19905 int main (void)
19906 {
19907
19908       gethostbyname("www.dummysite.com");
19909
19910  ;
19911  return 0;
19912 }
19913
19914 _ACEOF
19915 if ac_fn_c_try_link "$LINENO"; then :
19916
19917     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19918 $as_echo "yes" >&6; }
19919     HAVE_GETHOSTBYNAME="1"
19920
19921 else
19922
19923     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19924 $as_echo "no" >&6; }
19925
19926 fi
19927 rm -f core conftest.err conftest.$ac_objext \
19928     conftest$ac_exeext conftest.$ac_ext
19929 fi
19930
19931 if test "$HAVE_GETHOSTBYNAME" != "1"
19932 then
19933     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for AmigaOS bsdsocket.library" >&5
19934 $as_echo_n "checking for gethostbyname for AmigaOS bsdsocket.library... " >&6; }
19935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19936 /* end confdefs.h.  */
19937
19938
19939 #include <proto/bsdsocket.h>
19940 struct Library *SocketBase = NULL;
19941
19942 int main (void)
19943 {
19944
19945       gethostbyname("www.dummysite.com");
19946
19947  ;
19948  return 0;
19949 }
19950
19951 _ACEOF
19952 if ac_fn_c_try_link "$LINENO"; then :
19953
19954     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19955 $as_echo "yes" >&6; }
19956     HAVE_GETHOSTBYNAME="1"
19957     HAVE_PROTO_BSDSOCKET_H="1"
19958
19959 $as_echo "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h
19960
19961     HAVE_PROTO_BSDSOCKET_H=1
19962
19963
19964 else
19965
19966     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19967 $as_echo "no" >&6; }
19968
19969 fi
19970 rm -f core conftest.err conftest.$ac_objext \
19971     conftest$ac_exeext conftest.$ac_ext
19972 fi
19973
19974 if test "$HAVE_GETHOSTBYNAME" != "1"
19975 then
19976     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
19977 $as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
19978 if ${ac_cv_lib_network_gethostbyname+:} false; then :
19979   $as_echo_n "(cached) " >&6
19980 else
19981   ac_check_lib_save_LIBS=$LIBS
19982 LIBS="-lnetwork  $LIBS"
19983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19984 /* end confdefs.h.  */
19985
19986
19987 #ifdef __cplusplus
19988 extern "C"
19989 #endif
19990 char gethostbyname ();
19991 int main (void)
19992 {
19993 return gethostbyname ();
19994  ;
19995  return 0;
19996 }
19997 _ACEOF
19998 if ac_fn_c_try_link "$LINENO"; then :
19999   ac_cv_lib_network_gethostbyname=yes
20000 else
20001   ac_cv_lib_network_gethostbyname=no
20002 fi
20003 rm -f core conftest.err conftest.$ac_objext \
20004     conftest$ac_exeext conftest.$ac_ext
20005 LIBS=$ac_check_lib_save_LIBS
20006 fi
20007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
20008 $as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
20009 if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
20010   HAVE_GETHOSTBYNAME="1"
20011                LIBS="-lnetwork $LIBS"
20012
20013 fi
20014
20015 fi
20016
20017 if test "$HAVE_GETHOSTBYNAME" != "1"
20018 then
20019     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
20020 $as_echo_n "checking for gethostbyname in -lnet... " >&6; }
20021 if ${ac_cv_lib_net_gethostbyname+:} false; then :
20022   $as_echo_n "(cached) " >&6
20023 else
20024   ac_check_lib_save_LIBS=$LIBS
20025 LIBS="-lnet  $LIBS"
20026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20027 /* end confdefs.h.  */
20028
20029
20030 #ifdef __cplusplus
20031 extern "C"
20032 #endif
20033 char gethostbyname ();
20034 int main (void)
20035 {
20036 return gethostbyname ();
20037  ;
20038  return 0;
20039 }
20040 _ACEOF
20041 if ac_fn_c_try_link "$LINENO"; then :
20042   ac_cv_lib_net_gethostbyname=yes
20043 else
20044   ac_cv_lib_net_gethostbyname=no
20045 fi
20046 rm -f core conftest.err conftest.$ac_objext \
20047     conftest$ac_exeext conftest.$ac_ext
20048 LIBS=$ac_check_lib_save_LIBS
20049 fi
20050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
20051 $as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
20052 if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
20053   HAVE_GETHOSTBYNAME="1"
20054                LIBS="-lnet $LIBS"
20055
20056 fi
20057
20058 fi
20059
20060
20061 if test "$HAVE_GETHOSTBYNAME" != "1"; then
20062   as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
20063 fi
20064
20065
20066 curl_includes_winsock2="\
20067 /* includes start */
20068 #ifdef HAVE_WINDOWS_H
20069 #  ifndef WIN32_LEAN_AND_MEAN
20070 #    define WIN32_LEAN_AND_MEAN
20071 #  endif
20072 #  include <windows.h>
20073 #  ifdef HAVE_WINSOCK2_H
20074 #    include <winsock2.h>
20075 #  else
20076 #    ifdef HAVE_WINSOCK_H
20077 #      include <winsock.h>
20078 #    endif
20079 #  endif
20080 #endif
20081 /* includes end */"
20082
20083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
20084 $as_echo_n "checking for windows.h... " >&6; }
20085 if ${curl_cv_header_windows_h+:} false; then :
20086   $as_echo_n "(cached) " >&6
20087 else
20088
20089     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20090 /* end confdefs.h.  */
20091
20092
20093 #undef inline
20094 #ifndef WIN32_LEAN_AND_MEAN
20095 #define WIN32_LEAN_AND_MEAN
20096 #endif
20097 #include <windows.h>
20098
20099 int main (void)
20100 {
20101
20102 #if defined(__CYGWIN__) || defined(__CEGCC__)
20103         HAVE_WINDOWS_H shall not be defined.
20104 #else
20105         int dummy=2*WINVER;
20106 #endif
20107
20108  ;
20109  return 0;
20110 }
20111
20112 _ACEOF
20113 if ac_fn_c_try_compile "$LINENO"; then :
20114
20115       curl_cv_header_windows_h="yes"
20116
20117 else
20118
20119       curl_cv_header_windows_h="no"
20120
20121 fi
20122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20123
20124 fi
20125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
20126 $as_echo "$curl_cv_header_windows_h" >&6; }
20127   case "$curl_cv_header_windows_h" in
20128     yes)
20129
20130 cat >>confdefs.h <<_ACEOF
20131 #define HAVE_WINDOWS_H 1
20132 _ACEOF
20133
20134       ;;
20135   esac
20136
20137
20138     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
20139 $as_echo_n "checking for winsock.h... " >&6; }
20140 if ${curl_cv_header_winsock_h+:} false; then :
20141   $as_echo_n "(cached) " >&6
20142 else
20143
20144     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20145 /* end confdefs.h.  */
20146
20147
20148 #undef inline
20149 #ifndef WIN32_LEAN_AND_MEAN
20150 #define WIN32_LEAN_AND_MEAN
20151 #endif
20152 #include <windows.h>
20153 #include <winsock.h>
20154
20155 int main (void)
20156 {
20157
20158 #if defined(__CYGWIN__) || defined(__CEGCC__)
20159         HAVE_WINSOCK_H shall not be defined.
20160 #else
20161         int dummy=WSACleanup();
20162 #endif
20163
20164  ;
20165  return 0;
20166 }
20167
20168 _ACEOF
20169 if ac_fn_c_try_compile "$LINENO"; then :
20170
20171       curl_cv_header_winsock_h="yes"
20172
20173 else
20174
20175       curl_cv_header_winsock_h="no"
20176
20177 fi
20178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20179
20180 fi
20181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
20182 $as_echo "$curl_cv_header_winsock_h" >&6; }
20183   case "$curl_cv_header_winsock_h" in
20184     yes)
20185
20186 cat >>confdefs.h <<_ACEOF
20187 #define HAVE_WINSOCK_H 1
20188 _ACEOF
20189
20190       ;;
20191   esac
20192
20193
20194     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
20195 $as_echo_n "checking for winsock2.h... " >&6; }
20196 if ${curl_cv_header_winsock2_h+:} false; then :
20197   $as_echo_n "(cached) " >&6
20198 else
20199
20200     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20201 /* end confdefs.h.  */
20202
20203
20204 #undef inline
20205 #ifndef WIN32_LEAN_AND_MEAN
20206 #define WIN32_LEAN_AND_MEAN
20207 #endif
20208 #include <windows.h>
20209 #include <winsock2.h>
20210
20211 int main (void)
20212 {
20213
20214 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20215         HAVE_WINSOCK2_H shall not be defined.
20216 #else
20217         int dummy=2*IPPROTO_ESP;
20218 #endif
20219
20220  ;
20221  return 0;
20222 }
20223
20224 _ACEOF
20225 if ac_fn_c_try_compile "$LINENO"; then :
20226
20227       curl_cv_header_winsock2_h="yes"
20228
20229 else
20230
20231       curl_cv_header_winsock2_h="no"
20232
20233 fi
20234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20235
20236 fi
20237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
20238 $as_echo "$curl_cv_header_winsock2_h" >&6; }
20239   case "$curl_cv_header_winsock2_h" in
20240     yes)
20241
20242 cat >>confdefs.h <<_ACEOF
20243 #define HAVE_WINSOCK2_H 1
20244 _ACEOF
20245
20246       ;;
20247   esac
20248
20249
20250
20251 curl_includes_bsdsocket="\
20252 /* includes start */
20253 #ifdef HAVE_PROTO_BSDSOCKET_H
20254 #  include <proto/bsdsocket.h>
20255   struct Library *SocketBase = NULL;
20256 #endif
20257 /* includes end */"
20258   for ac_header in proto/bsdsocket.h
20259 do :
20260   ac_fn_c_check_header_compile "$LINENO" "proto/bsdsocket.h" "ac_cv_header_proto_bsdsocket_h" "      $curl_includes_bsdsocket
20261 "
20262 if test "x$ac_cv_header_proto_bsdsocket_h" = xyes; then :
20263   cat >>confdefs.h <<_ACEOF
20264 #define HAVE_PROTO_BSDSOCKET_H 1
20265 _ACEOF
20266
20267 fi
20268
20269 done
20270
20271
20272
20273       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
20274 $as_echo_n "checking for connect in libraries... " >&6; }
20275   tst_connect_save_LIBS="$LIBS"
20276   tst_connect_need_LIBS="unknown"
20277   for tst_lib in '' '-lsocket' ; do
20278     if test "$tst_connect_need_LIBS" = "unknown"; then
20279       LIBS="$tst_lib $tst_connect_save_LIBS"
20280       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20281 /* end confdefs.h.  */
20282
20283
20284           $curl_includes_winsock2
20285           $curl_includes_bsdsocket
20286           #if !defined(HAVE_WINDOWS_H) && !defined(HAVE_PROTO_BSDSOCKET_H)
20287             int connect(int, void*, int);
20288           #endif
20289
20290 int main (void)
20291 {
20292
20293           if(0 != connect(0, 0, 0))
20294             return 1;
20295
20296  ;
20297  return 0;
20298 }
20299
20300 _ACEOF
20301 if ac_fn_c_try_link "$LINENO"; then :
20302
20303         tst_connect_need_LIBS="$tst_lib"
20304
20305 fi
20306 rm -f core conftest.err conftest.$ac_objext \
20307     conftest$ac_exeext conftest.$ac_ext
20308     fi
20309   done
20310   LIBS="$tst_connect_save_LIBS"
20311   #
20312   case X-"$tst_connect_need_LIBS" in
20313     X-unknown)
20314       { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
20315 $as_echo "cannot find connect" >&6; }
20316       as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
20317       ;;
20318     X-)
20319       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20320 $as_echo "yes" >&6; }
20321       ;;
20322     *)
20323       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
20324 $as_echo "$tst_connect_need_LIBS" >&6; }
20325       LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
20326       ;;
20327   esac
20328
20329
20330 CURL_NETWORK_LIBS=$LIBS
20331
20332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20333 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20334 if ${ac_cv_header_time+:} false; then :
20335   $as_echo_n "(cached) " >&6
20336 else
20337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20338 /* end confdefs.h.  */
20339 #include <sys/types.h>
20340 #include <sys/time.h>
20341 #include <time.h>
20342
20343 int main (void)
20344 {
20345 if ((struct tm *) 0)
20346 return 0;
20347  ;
20348  return 0;
20349 }
20350 _ACEOF
20351 if ac_fn_c_try_compile "$LINENO"; then :
20352   ac_cv_header_time=yes
20353 else
20354   ac_cv_header_time=no
20355 fi
20356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20357 fi
20358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20359 $as_echo "$ac_cv_header_time" >&6; }
20360 if test $ac_cv_header_time = yes; then
20361
20362 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20363
20364 fi
20365
20366
20367     for ac_header in sys/types.h sys/time.h time.h
20368 do :
20369   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20370 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20371 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20372   cat >>confdefs.h <<_ACEOF
20373 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20374 _ACEOF
20375
20376 fi
20377
20378 done
20379
20380   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
20381 $as_echo_n "checking for monotonic clock_gettime... " >&6; }
20382   #
20383   if test "x$dontwant_rt" = "xno" ; then
20384     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20385 /* end confdefs.h.  */
20386
20387
20388 #ifdef HAVE_SYS_TYPES_H
20389 #include <sys/types.h>
20390 #endif
20391 #ifdef HAVE_SYS_TIME_H
20392 #include <sys/time.h>
20393 #ifdef TIME_WITH_SYS_TIME
20394 #include <time.h>
20395 #endif
20396 #else
20397 #ifdef HAVE_TIME_H
20398 #include <time.h>
20399 #endif
20400 #endif
20401
20402 int main (void)
20403 {
20404
20405         struct timespec ts;
20406         (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20407
20408  ;
20409  return 0;
20410 }
20411
20412 _ACEOF
20413 if ac_fn_c_try_compile "$LINENO"; then :
20414
20415       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20416 $as_echo "yes" >&6; }
20417       curl_func_clock_gettime="yes"
20418
20419 else
20420
20421       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20422 $as_echo "no" >&6; }
20423       curl_func_clock_gettime="no"
20424
20425 fi
20426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20427   fi
20428
20429
20430     #
20431   if test "$curl_func_clock_gettime" = "yes"; then
20432     #
20433     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
20434 $as_echo_n "checking for clock_gettime in libraries... " >&6; }
20435     #
20436     curl_cv_save_LIBS="$LIBS"
20437     curl_cv_gclk_LIBS="unknown"
20438     #
20439     for x_xlibs in '' '-lrt' '-lposix4' ; do
20440       if test "$curl_cv_gclk_LIBS" = "unknown"; then
20441         if test -z "$x_xlibs"; then
20442           LIBS="$curl_cv_save_LIBS"
20443         else
20444           LIBS="$x_xlibs $curl_cv_save_LIBS"
20445         fi
20446         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20447 /* end confdefs.h.  */
20448
20449
20450 #ifdef HAVE_SYS_TYPES_H
20451 #include <sys/types.h>
20452 #endif
20453 #ifdef HAVE_SYS_TIME_H
20454 #include <sys/time.h>
20455 #ifdef TIME_WITH_SYS_TIME
20456 #include <time.h>
20457 #endif
20458 #else
20459 #ifdef HAVE_TIME_H
20460 #include <time.h>
20461 #endif
20462 #endif
20463
20464 int main (void)
20465 {
20466
20467             struct timespec ts;
20468             (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20469
20470  ;
20471  return 0;
20472 }
20473
20474 _ACEOF
20475 if ac_fn_c_try_link "$LINENO"; then :
20476
20477           curl_cv_gclk_LIBS="$x_xlibs"
20478
20479 fi
20480 rm -f core conftest.err conftest.$ac_objext \
20481     conftest$ac_exeext conftest.$ac_ext
20482       fi
20483     done
20484     #
20485     LIBS="$curl_cv_save_LIBS"
20486     #
20487     case X-"$curl_cv_gclk_LIBS" in
20488       X-unknown)
20489         { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
20490 $as_echo "cannot find clock_gettime" >&6; }
20491         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20492 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20493         curl_func_clock_gettime="no"
20494         ;;
20495       X-)
20496         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20497 $as_echo "no additional lib required" >&6; }
20498         curl_func_clock_gettime="yes"
20499         ;;
20500       *)
20501         if test -z "$curl_cv_save_LIBS"; then
20502           LIBS="$curl_cv_gclk_LIBS"
20503         else
20504           LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
20505         fi
20506         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
20507 $as_echo "$curl_cv_gclk_LIBS" >&6; }
20508         curl_func_clock_gettime="yes"
20509         ;;
20510     esac
20511     #
20512         if test "x$cross_compiling" != "xyes" &&
20513       test "$curl_func_clock_gettime" = "yes"; then
20514       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
20515 $as_echo_n "checking if monotonic clock_gettime works... " >&6; }
20516
20517
20518    old=$LD_LIBRARY_PATH
20519    LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
20520    export LD_LIBRARY_PATH
20521    if test "$cross_compiling" = yes; then :
20522   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20524 as_fn_error $? "cannot run test program while cross compiling
20525 See \`config.log' for more details" "$LINENO" 5; }
20526 else
20527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20528 /* end confdefs.h.  */
20529
20530
20531 #ifdef HAVE_STDLIB_H
20532 #include <stdlib.h>
20533 #endif
20534 #ifdef HAVE_SYS_TYPES_H
20535 #include <sys/types.h>
20536 #endif
20537 #ifdef HAVE_SYS_TIME_H
20538 #include <sys/time.h>
20539 #ifdef TIME_WITH_SYS_TIME
20540 #include <time.h>
20541 #endif
20542 #else
20543 #ifdef HAVE_TIME_H
20544 #include <time.h>
20545 #endif
20546 #endif
20547
20548 int main (void)
20549 {
20550
20551           struct timespec ts;
20552           if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
20553             exit(0);
20554           else
20555             exit(1);
20556
20557  ;
20558  return 0;
20559 }
20560
20561 _ACEOF
20562 if ac_fn_c_try_run "$LINENO"; then :
20563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20564 $as_echo "yes" >&6; }
20565
20566 else
20567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20568 $as_echo "no" >&6; }
20569         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20570 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20571         curl_func_clock_gettime="no"
20572         LIBS="$curl_cv_save_LIBS"
20573
20574 fi
20575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20576   conftest.$ac_objext conftest.beam conftest.$ac_ext
20577 fi
20578
20579    LD_LIBRARY_PATH=$old # restore
20580
20581     fi
20582     #
20583     case "$curl_func_clock_gettime" in
20584       yes)
20585
20586 cat >>confdefs.h <<_ACEOF
20587 #define HAVE_CLOCK_GETTIME_MONOTONIC 1
20588 _ACEOF
20589
20590         ;;
20591     esac
20592     #
20593   fi
20594   #
20595
20596
20597 CURL_NETWORK_AND_TIME_LIBS=$LIBS
20598
20599
20600
20601 clean_CPPFLAGS=$CPPFLAGS
20602 clean_LDFLAGS=$LDFLAGS
20603 clean_LIBS=$LIBS
20604 ZLIB_LIBS=""
20605
20606 # Check whether --with-zlib was given.
20607 if test "${with_zlib+set}" = set; then :
20608   withval=$with_zlib; OPT_ZLIB="$withval"
20609 fi
20610
20611
20612 if test "$OPT_ZLIB" = "no" ; then
20613     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
20614 $as_echo "$as_me: WARNING: zlib disabled" >&2;}
20615 else
20616   if test "$OPT_ZLIB" = "yes" ; then
20617     OPT_ZLIB=""
20618   fi
20619
20620   if test -z "$OPT_ZLIB" ; then
20621
20622     if test -n "$PKG_CONFIG"; then
20623       PKGCONFIG="$PKG_CONFIG"
20624     else
20625       if test -n "$ac_tool_prefix"; then
20626   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20627 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20629 $as_echo_n "checking for $ac_word... " >&6; }
20630 if ${ac_cv_path_PKGCONFIG+:} false; then :
20631   $as_echo_n "(cached) " >&6
20632 else
20633   case $PKGCONFIG in
20634   [\\/]* | ?:[\\/]*)
20635   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20636   ;;
20637   *)
20638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20639 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20640 for as_dir in $as_dummy
20641 do
20642   IFS=$as_save_IFS
20643   test -z "$as_dir" && as_dir=.
20644     for ac_exec_ext in '' $ac_executable_extensions; do
20645   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20646     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20648     break 2
20649   fi
20650 done
20651   done
20652 IFS=$as_save_IFS
20653
20654   ;;
20655 esac
20656 fi
20657 PKGCONFIG=$ac_cv_path_PKGCONFIG
20658 if test -n "$PKGCONFIG"; then
20659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20660 $as_echo "$PKGCONFIG" >&6; }
20661 else
20662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20663 $as_echo "no" >&6; }
20664 fi
20665
20666
20667 fi
20668 if test -z "$ac_cv_path_PKGCONFIG"; then
20669   ac_pt_PKGCONFIG=$PKGCONFIG
20670   # Extract the first word of "pkg-config", so it can be a program name with args.
20671 set dummy pkg-config; ac_word=$2
20672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20673 $as_echo_n "checking for $ac_word... " >&6; }
20674 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
20675   $as_echo_n "(cached) " >&6
20676 else
20677   case $ac_pt_PKGCONFIG in
20678   [\\/]* | ?:[\\/]*)
20679   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
20680   ;;
20681   *)
20682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20683 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20684 for as_dir in $as_dummy
20685 do
20686   IFS=$as_save_IFS
20687   test -z "$as_dir" && as_dir=.
20688     for ac_exec_ext in '' $ac_executable_extensions; do
20689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20690     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20692     break 2
20693   fi
20694 done
20695   done
20696 IFS=$as_save_IFS
20697
20698   ;;
20699 esac
20700 fi
20701 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
20702 if test -n "$ac_pt_PKGCONFIG"; then
20703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
20704 $as_echo "$ac_pt_PKGCONFIG" >&6; }
20705 else
20706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20707 $as_echo "no" >&6; }
20708 fi
20709
20710   if test "x$ac_pt_PKGCONFIG" = x; then
20711     PKGCONFIG="no"
20712   else
20713     case $cross_compiling:$ac_tool_warned in
20714 yes:)
20715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20717 ac_tool_warned=yes ;;
20718 esac
20719     PKGCONFIG=$ac_pt_PKGCONFIG
20720   fi
20721 else
20722   PKGCONFIG="$ac_cv_path_PKGCONFIG"
20723 fi
20724
20725     fi
20726
20727     if test "x$PKGCONFIG" != "xno"; then
20728       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
20729 $as_echo_n "checking for zlib options with pkg-config... " >&6; }
20730             itexists=`
20731     if test -n ""; then
20732       PKG_CONFIG_LIBDIR=""
20733       export PKG_CONFIG_LIBDIR
20734     fi
20735          $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
20736
20737       if test -z "$itexists"; then
20738                         PKGCONFIG="no"
20739         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20740 $as_echo "no" >&6; }
20741       else
20742         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20743 $as_echo "found" >&6; }
20744       fi
20745     fi
20746
20747
20748     if test "$PKGCONFIG" != "no" ; then
20749       LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
20750       LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
20751       CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`"
20752       OPT_ZLIB=""
20753       HAVE_LIBZ="1"
20754     fi
20755
20756     if test -z "$HAVE_LIBZ"; then
20757
20758
20759       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
20760 $as_echo_n "checking for inflateEnd in -lz... " >&6; }
20761 if ${ac_cv_lib_z_inflateEnd+:} false; then :
20762   $as_echo_n "(cached) " >&6
20763 else
20764   ac_check_lib_save_LIBS=$LIBS
20765 LIBS="-lz  $LIBS"
20766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20767 /* end confdefs.h.  */
20768
20769
20770 #ifdef __cplusplus
20771 extern "C"
20772 #endif
20773 char inflateEnd ();
20774 int main (void)
20775 {
20776 return inflateEnd ();
20777  ;
20778  return 0;
20779 }
20780 _ACEOF
20781 if ac_fn_c_try_link "$LINENO"; then :
20782   ac_cv_lib_z_inflateEnd=yes
20783 else
20784   ac_cv_lib_z_inflateEnd=no
20785 fi
20786 rm -f core conftest.err conftest.$ac_objext \
20787     conftest$ac_exeext conftest.$ac_ext
20788 LIBS=$ac_check_lib_save_LIBS
20789 fi
20790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
20791 $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
20792 if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
20793                      HAVE_LIBZ="1"
20794                     LIBS="-lz $LIBS"
20795 else
20796                      OPT_ZLIB="/usr/local"
20797 fi
20798
20799     fi
20800   fi
20801
20802     if test -n "$OPT_ZLIB"; then
20803      CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
20804      LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
20805   fi
20806
20807   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20808 if test "x$ac_cv_header_zlib_h" = xyes; then :
20809
20810         HAVE_ZLIB_H="1"
20811         if test "$HAVE_LIBZ" != "1"; then
20812       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20813 $as_echo_n "checking for gzread in -lz... " >&6; }
20814 if ${ac_cv_lib_z_gzread+:} false; then :
20815   $as_echo_n "(cached) " >&6
20816 else
20817   ac_check_lib_save_LIBS=$LIBS
20818 LIBS="-lz  $LIBS"
20819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20820 /* end confdefs.h.  */
20821
20822
20823 #ifdef __cplusplus
20824 extern "C"
20825 #endif
20826 char gzread ();
20827 int main (void)
20828 {
20829 return gzread ();
20830  ;
20831  return 0;
20832 }
20833 _ACEOF
20834 if ac_fn_c_try_link "$LINENO"; then :
20835   ac_cv_lib_z_gzread=yes
20836 else
20837   ac_cv_lib_z_gzread=no
20838 fi
20839 rm -f core conftest.err conftest.$ac_objext \
20840     conftest$ac_exeext conftest.$ac_ext
20841 LIBS=$ac_check_lib_save_LIBS
20842 fi
20843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20844 $as_echo "$ac_cv_lib_z_gzread" >&6; }
20845 if test "x$ac_cv_lib_z_gzread" = xyes; then :
20846
20847                                       HAVE_LIBZ="1"
20848                    LIBS="-lz $LIBS"
20849
20850 else
20851    CPPFLAGS=$clean_CPPFLAGS
20852                    LDFLAGS=$clean_LDFLAGS
20853 fi
20854
20855     fi
20856
20857 else
20858
20859             CPPFLAGS=$clean_CPPFLAGS
20860       LDFLAGS=$clean_LDFLAGS
20861
20862 fi
20863
20864
20865
20866   if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
20867   then
20868     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
20869 $as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
20870     HAVE_LIBZ=""
20871     CPPFLAGS=$clean_CPPFLAGS
20872     LDFLAGS=$clean_LDFLAGS
20873     LIBS=$clean_LIBS
20874   elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
20875   then
20876     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
20877 $as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
20878     CPPFLAGS=$clean_CPPFLAGS
20879     LDFLAGS=$clean_LDFLAGS
20880     LIBS=$clean_LIBS
20881   elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
20882   then
20883
20884
20885 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
20886
20887
20888 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
20889
20890
20891     ZLIB_LIBS="-lz"
20892     LIBS="-lz $clean_LIBS"
20893
20894         AMFIXLIB="1"
20895     { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
20896 $as_echo "$as_me: found both libz and libz.h header" >&6;}
20897     curl_zlib_msg="enabled"
20898   fi
20899 fi
20900
20901  if test x"$AMFIXLIB" = x1; then
20902   HAVE_LIBZ_TRUE=
20903   HAVE_LIBZ_FALSE='#'
20904 else
20905   HAVE_LIBZ_TRUE='#'
20906   HAVE_LIBZ_FALSE=
20907 fi
20908
20909
20910
20911
20912
20913 OPT_BROTLI=off
20914
20915 # Check whether --with-brotli was given.
20916 if test "${with_brotli+set}" = set; then :
20917   withval=$with_brotli; OPT_BROTLI=$withval
20918 fi
20919
20920
20921 if test X"$OPT_BROTLI" != Xno; then
20922     CLEANLDFLAGS="$LDFLAGS"
20923   CLEANCPPFLAGS="$CPPFLAGS"
20924   CLEANLIBS="$LIBS"
20925
20926   case "$OPT_BROTLI" in
20927   yes)
20928
20929     if test -n "$PKG_CONFIG"; then
20930       PKGCONFIG="$PKG_CONFIG"
20931     else
20932       if test -n "$ac_tool_prefix"; then
20933   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20934 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20936 $as_echo_n "checking for $ac_word... " >&6; }
20937 if ${ac_cv_path_PKGCONFIG+:} false; then :
20938   $as_echo_n "(cached) " >&6
20939 else
20940   case $PKGCONFIG in
20941   [\\/]* | ?:[\\/]*)
20942   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20943   ;;
20944   *)
20945   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20946 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20947 for as_dir in $as_dummy
20948 do
20949   IFS=$as_save_IFS
20950   test -z "$as_dir" && as_dir=.
20951     for ac_exec_ext in '' $ac_executable_extensions; do
20952   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20953     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20955     break 2
20956   fi
20957 done
20958   done
20959 IFS=$as_save_IFS
20960
20961   ;;
20962 esac
20963 fi
20964 PKGCONFIG=$ac_cv_path_PKGCONFIG
20965 if test -n "$PKGCONFIG"; then
20966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20967 $as_echo "$PKGCONFIG" >&6; }
20968 else
20969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20970 $as_echo "no" >&6; }
20971 fi
20972
20973
20974 fi
20975 if test -z "$ac_cv_path_PKGCONFIG"; then
20976   ac_pt_PKGCONFIG=$PKGCONFIG
20977   # Extract the first word of "pkg-config", so it can be a program name with args.
20978 set dummy pkg-config; ac_word=$2
20979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20980 $as_echo_n "checking for $ac_word... " >&6; }
20981 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
20982   $as_echo_n "(cached) " >&6
20983 else
20984   case $ac_pt_PKGCONFIG in
20985   [\\/]* | ?:[\\/]*)
20986   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
20987   ;;
20988   *)
20989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20990 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20991 for as_dir in $as_dummy
20992 do
20993   IFS=$as_save_IFS
20994   test -z "$as_dir" && as_dir=.
20995     for ac_exec_ext in '' $ac_executable_extensions; do
20996   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20997     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20999     break 2
21000   fi
21001 done
21002   done
21003 IFS=$as_save_IFS
21004
21005   ;;
21006 esac
21007 fi
21008 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
21009 if test -n "$ac_pt_PKGCONFIG"; then
21010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
21011 $as_echo "$ac_pt_PKGCONFIG" >&6; }
21012 else
21013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21014 $as_echo "no" >&6; }
21015 fi
21016
21017   if test "x$ac_pt_PKGCONFIG" = x; then
21018     PKGCONFIG="no"
21019   else
21020     case $cross_compiling:$ac_tool_warned in
21021 yes:)
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21024 ac_tool_warned=yes ;;
21025 esac
21026     PKGCONFIG=$ac_pt_PKGCONFIG
21027   fi
21028 else
21029   PKGCONFIG="$ac_cv_path_PKGCONFIG"
21030 fi
21031
21032     fi
21033
21034     if test "x$PKGCONFIG" != "xno"; then
21035       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5
21036 $as_echo_n "checking for libbrotlidec options with pkg-config... " >&6; }
21037             itexists=`
21038     if test -n ""; then
21039       PKG_CONFIG_LIBDIR=""
21040       export PKG_CONFIG_LIBDIR
21041     fi
21042          $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1`
21043
21044       if test -z "$itexists"; then
21045                         PKGCONFIG="no"
21046         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21047 $as_echo "no" >&6; }
21048       else
21049         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
21050 $as_echo "found" >&6; }
21051       fi
21052     fi
21053
21054
21055     if test "$PKGCONFIG" != "no" ; then
21056       LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
21057       LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
21058       CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
21059       version=`$PKGCONFIG --modversion libbrotlidec`
21060       DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/-L//'`
21061     fi
21062
21063     ;;
21064   off)
21065         ;;
21066   *)
21067         PREFIX_BROTLI=$OPT_BROTLI
21068     ;;
21069   esac
21070
21071     if test -n "$PREFIX_BROTLI"; then
21072     LIB_BROTLI="-lbrotlidec"
21073     LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
21074     CPP_BROTLI=-I${PREFIX_BROTLI}/include
21075     DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
21076   fi
21077
21078   LDFLAGS="$LDFLAGS $LD_BROTLI"
21079   CPPFLAGS="$CPPFLAGS $CPP_BROTLI"
21080   LIBS="$LIB_BROTLI $LIBS"
21081
21082   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5
21083 $as_echo_n "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; }
21084 if ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+:} false; then :
21085   $as_echo_n "(cached) " >&6
21086 else
21087   ac_check_lib_save_LIBS=$LIBS
21088 LIBS="-lbrotlidec  $LIBS"
21089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21090 /* end confdefs.h.  */
21091
21092
21093 #ifdef __cplusplus
21094 extern "C"
21095 #endif
21096 char BrotliDecoderDecompress ();
21097 int main (void)
21098 {
21099 return BrotliDecoderDecompress ();
21100  ;
21101  return 0;
21102 }
21103 _ACEOF
21104 if ac_fn_c_try_link "$LINENO"; then :
21105   ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes
21106 else
21107   ac_cv_lib_brotlidec_BrotliDecoderDecompress=no
21108 fi
21109 rm -f core conftest.err conftest.$ac_objext \
21110     conftest$ac_exeext conftest.$ac_ext
21111 LIBS=$ac_check_lib_save_LIBS
21112 fi
21113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5
21114 $as_echo "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; }
21115 if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes; then :
21116   cat >>confdefs.h <<_ACEOF
21117 #define HAVE_LIBBROTLIDEC 1
21118 _ACEOF
21119
21120   LIBS="-lbrotlidec $LIBS"
21121
21122 fi
21123
21124
21125   for ac_header in brotli/decode.h
21126 do :
21127   ac_fn_c_check_header_mongrel "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default"
21128 if test "x$ac_cv_header_brotli_decode_h" = xyes; then :
21129   cat >>confdefs.h <<_ACEOF
21130 #define HAVE_BROTLI_DECODE_H 1
21131 _ACEOF
21132  curl_brotli_msg="enabled (libbrotlidec)"
21133     HAVE_BROTLI=1
21134
21135 $as_echo "#define HAVE_BROTLI 1" >>confdefs.h
21136
21137     HAVE_BROTLI=1
21138
21139
21140 fi
21141
21142 done
21143
21144
21145   if test X"$OPT_BROTLI" != Xoff &&
21146      test "$HAVE_BROTLI" != "1"; then
21147     as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5
21148   fi
21149
21150   if test "$HAVE_BROTLI" = "1"; then
21151     if test -n "$DIR_BROTLI"; then
21152
21153        if test "x$cross_compiling" != "xyes"; then
21154          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_BROTLI"
21155          export CURL_LIBRARY_PATH
21156          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&5
21157 $as_echo "$as_me: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&6;}
21158        fi
21159     fi
21160   else
21161         LDFLAGS=$CLEANLDFLAGS
21162     CPPFLAGS=$CLEANCPPFLAGS
21163     LIBS=$CLEANLIBS
21164   fi
21165 fi
21166
21167
21168 LDAPLIBNAME=""
21169
21170 # Check whether --with-ldap-lib was given.
21171 if test "${with_ldap_lib+set}" = set; then :
21172   withval=$with_ldap_lib; LDAPLIBNAME="$withval"
21173 fi
21174
21175
21176 LBERLIBNAME=""
21177
21178 # Check whether --with-lber-lib was given.
21179 if test "${with_lber_lib+set}" = set; then :
21180   withval=$with_lber_lib; LBERLIBNAME="$withval"
21181 fi
21182
21183
21184 if test x$CURL_DISABLE_LDAP != x1 ; then
21185
21186
21187     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
21188 $as_echo_n "checking for lber.h... " >&6; }
21189 if ${curl_cv_header_lber_h+:} false; then :
21190   $as_echo_n "(cached) " >&6
21191 else
21192
21193     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21194 /* end confdefs.h.  */
21195
21196
21197 #undef inline
21198 #ifdef HAVE_WINDOWS_H
21199 #ifndef WIN32_LEAN_AND_MEAN
21200 #define WIN32_LEAN_AND_MEAN
21201 #endif
21202 #include <windows.h>
21203 #else
21204 #ifdef HAVE_SYS_TYPES_H
21205 #include <sys/types.h>
21206 #endif
21207 #endif
21208 #ifndef NULL
21209 #define NULL (void *)0
21210 #endif
21211 #include <lber.h>
21212
21213 int main (void)
21214 {
21215
21216         BerValue *bvp = NULL;
21217         BerElement *bep = ber_init(bvp);
21218         ber_free(bep, 1);
21219
21220  ;
21221  return 0;
21222 }
21223
21224 _ACEOF
21225 if ac_fn_c_try_compile "$LINENO"; then :
21226
21227       curl_cv_header_lber_h="yes"
21228
21229 else
21230
21231       curl_cv_header_lber_h="no"
21232
21233 fi
21234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21235
21236 fi
21237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
21238 $as_echo "$curl_cv_header_lber_h" >&6; }
21239   if test "$curl_cv_header_lber_h" = "yes"; then
21240
21241 cat >>confdefs.h <<_ACEOF
21242 #define HAVE_LBER_H 1
21243 _ACEOF
21244
21245     #
21246     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21247 /* end confdefs.h.  */
21248
21249
21250 #undef inline
21251 #ifdef HAVE_WINDOWS_H
21252 #ifndef WIN32_LEAN_AND_MEAN
21253 #define WIN32_LEAN_AND_MEAN
21254 #endif
21255 #include <windows.h>
21256 #else
21257 #ifdef HAVE_SYS_TYPES_H
21258 #include <sys/types.h>
21259 #endif
21260 #endif
21261 #ifndef NULL
21262 #define NULL (void *)0
21263 #endif
21264 #ifndef LDAP_DEPRECATED
21265 #define LDAP_DEPRECATED 1
21266 #endif
21267 #include <ldap.h>
21268
21269 int main (void)
21270 {
21271
21272         BerValue *bvp = NULL;
21273         BerElement *bep = ber_init(bvp);
21274         ber_free(bep, 1);
21275
21276  ;
21277  return 0;
21278 }
21279
21280 _ACEOF
21281 if ac_fn_c_try_compile "$LINENO"; then :
21282
21283       curl_cv_need_header_lber_h="no"
21284
21285 else
21286
21287       curl_cv_need_header_lber_h="yes"
21288
21289 fi
21290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21291     #
21292     case "$curl_cv_need_header_lber_h" in
21293       yes)
21294
21295 cat >>confdefs.h <<_ACEOF
21296 #define NEED_LBER_H 1
21297 _ACEOF
21298
21299         ;;
21300     esac
21301   fi
21302
21303
21304     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
21305 $as_echo_n "checking for ldap.h... " >&6; }
21306 if ${curl_cv_header_ldap_h+:} false; then :
21307   $as_echo_n "(cached) " >&6
21308 else
21309
21310     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21311 /* end confdefs.h.  */
21312
21313
21314 #undef inline
21315 #ifdef HAVE_WINDOWS_H
21316 #ifndef WIN32_LEAN_AND_MEAN
21317 #define WIN32_LEAN_AND_MEAN
21318 #endif
21319 #include <windows.h>
21320 #else
21321 #ifdef HAVE_SYS_TYPES_H
21322 #include <sys/types.h>
21323 #endif
21324 #endif
21325 #ifndef LDAP_DEPRECATED
21326 #define LDAP_DEPRECATED 1
21327 #endif
21328 #ifdef NEED_LBER_H
21329 #include <lber.h>
21330 #endif
21331 #include <ldap.h>
21332
21333 int main (void)
21334 {
21335
21336         LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21337         int res = ldap_unbind(ldp);
21338
21339  ;
21340  return 0;
21341 }
21342
21343 _ACEOF
21344 if ac_fn_c_try_compile "$LINENO"; then :
21345
21346       curl_cv_header_ldap_h="yes"
21347
21348 else
21349
21350       curl_cv_header_ldap_h="no"
21351
21352 fi
21353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21354
21355 fi
21356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
21357 $as_echo "$curl_cv_header_ldap_h" >&6; }
21358   case "$curl_cv_header_ldap_h" in
21359     yes)
21360
21361 cat >>confdefs.h <<_ACEOF
21362 #define HAVE_LDAP_H 1
21363 _ACEOF
21364
21365       ;;
21366   esac
21367
21368
21369     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
21370 $as_echo_n "checking for ldapssl.h... " >&6; }
21371 if ${curl_cv_header_ldapssl_h+:} false; then :
21372   $as_echo_n "(cached) " >&6
21373 else
21374
21375     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21376 /* end confdefs.h.  */
21377
21378
21379 #undef inline
21380 #ifdef HAVE_WINDOWS_H
21381 #ifndef WIN32_LEAN_AND_MEAN
21382 #define WIN32_LEAN_AND_MEAN
21383 #endif
21384 #include <windows.h>
21385 #else
21386 #ifdef HAVE_SYS_TYPES_H
21387 #include <sys/types.h>
21388 #endif
21389 #endif
21390 #ifndef NULL
21391 #define NULL (void *)0
21392 #endif
21393 #ifndef LDAP_DEPRECATED
21394 #define LDAP_DEPRECATED 1
21395 #endif
21396 #ifdef NEED_LBER_H
21397 #include <lber.h>
21398 #endif
21399 #ifdef HAVE_LDAP_H
21400 #include <ldap.h>
21401 #endif
21402 #include <ldapssl.h>
21403
21404 int main (void)
21405 {
21406
21407         char *cert_label = NULL;
21408         LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
21409
21410  ;
21411  return 0;
21412 }
21413
21414 _ACEOF
21415 if ac_fn_c_try_compile "$LINENO"; then :
21416
21417       curl_cv_header_ldapssl_h="yes"
21418
21419 else
21420
21421       curl_cv_header_ldapssl_h="no"
21422
21423 fi
21424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21425
21426 fi
21427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldapssl_h" >&5
21428 $as_echo "$curl_cv_header_ldapssl_h" >&6; }
21429   case "$curl_cv_header_ldapssl_h" in
21430     yes)
21431
21432 cat >>confdefs.h <<_ACEOF
21433 #define HAVE_LDAPSSL_H 1
21434 _ACEOF
21435
21436       ;;
21437   esac
21438
21439
21440     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
21441 $as_echo_n "checking for ldap_ssl.h... " >&6; }
21442 if ${curl_cv_header_ldap_ssl_h+:} false; then :
21443   $as_echo_n "(cached) " >&6
21444 else
21445
21446     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21447 /* end confdefs.h.  */
21448
21449
21450 #undef inline
21451 #ifdef HAVE_WINDOWS_H
21452 #ifndef WIN32_LEAN_AND_MEAN
21453 #define WIN32_LEAN_AND_MEAN
21454 #endif
21455 #include <windows.h>
21456 #else
21457 #ifdef HAVE_SYS_TYPES_H
21458 #include <sys/types.h>
21459 #endif
21460 #endif
21461 #ifndef LDAP_DEPRECATED
21462 #define LDAP_DEPRECATED 1
21463 #endif
21464 #ifdef NEED_LBER_H
21465 #include <lber.h>
21466 #endif
21467 #ifdef HAVE_LDAP_H
21468 #include <ldap.h>
21469 #endif
21470 #include <ldap_ssl.h>
21471
21472 int main (void)
21473 {
21474
21475         LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
21476
21477  ;
21478  return 0;
21479 }
21480
21481 _ACEOF
21482 if ac_fn_c_try_compile "$LINENO"; then :
21483
21484       curl_cv_header_ldap_ssl_h="yes"
21485
21486 else
21487
21488       curl_cv_header_ldap_ssl_h="no"
21489
21490 fi
21491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21492
21493 fi
21494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
21495 $as_echo "$curl_cv_header_ldap_ssl_h" >&6; }
21496   case "$curl_cv_header_ldap_ssl_h" in
21497     yes)
21498
21499 cat >>confdefs.h <<_ACEOF
21500 #define HAVE_LDAP_SSL_H 1
21501 _ACEOF
21502
21503       ;;
21504   esac
21505
21506
21507   if test -z "$LDAPLIBNAME" ; then
21508     if test "$curl_cv_native_windows" = "yes"; then
21509             LDAPLIBNAME="wldap32"
21510       LBERLIBNAME="no"
21511     fi
21512   fi
21513
21514   if test "$LDAPLIBNAME" ; then
21515     as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
21516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
21517 $as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
21518 if eval \${$as_ac_Lib+:} false; then :
21519   $as_echo_n "(cached) " >&6
21520 else
21521   ac_check_lib_save_LIBS=$LIBS
21522 LIBS="-l"$LDAPLIBNAME"  $LIBS"
21523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21524 /* end confdefs.h.  */
21525
21526
21527 #ifdef __cplusplus
21528 extern "C"
21529 #endif
21530 char ldap_init ();
21531 int main (void)
21532 {
21533 return ldap_init ();
21534  ;
21535  return 0;
21536 }
21537 _ACEOF
21538 if ac_fn_c_try_link "$LINENO"; then :
21539   eval "$as_ac_Lib=yes"
21540 else
21541   eval "$as_ac_Lib=no"
21542 fi
21543 rm -f core conftest.err conftest.$ac_objext \
21544     conftest$ac_exeext conftest.$ac_ext
21545 LIBS=$ac_check_lib_save_LIBS
21546 fi
21547 eval ac_res=\$$as_ac_Lib
21548                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21549 $as_echo "$ac_res" >&6; }
21550 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21551   cat >>confdefs.h <<_ACEOF
21552 #define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
21553 _ACEOF
21554
21555   LIBS="-l"$LDAPLIBNAME" $LIBS"
21556
21557 else
21558
21559       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
21560 $as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
21561
21562 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21563
21564       CURL_DISABLE_LDAP=1
21565
21566
21567 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21568
21569       CURL_DISABLE_LDAPS=1
21570
21571 fi
21572
21573   else
21574
21575     #
21576   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
21577 $as_echo_n "checking for LDAP libraries... " >&6; }
21578   #
21579   u_libs=""
21580   #
21581
21582   #
21583   curl_cv_save_LIBS="$LIBS"
21584   curl_cv_ldap_LIBS="unknown"
21585   #
21586   for x_nlibs in '' "$u_libs" \
21587     '-lldap' \
21588     '-lldap -llber' \
21589     '-llber -lldap' \
21590     '-lldapssl -lldapx -lldapsdk' \
21591     '-lldapsdk -lldapx -lldapssl' \
21592     '-lldap -llber -lssl -lcrypto' ; do
21593
21594     if test "$curl_cv_ldap_LIBS" = "unknown"; then
21595       if test -z "$x_nlibs"; then
21596         LIBS="$curl_cv_save_LIBS"
21597       else
21598         LIBS="$x_nlibs $curl_cv_save_LIBS"
21599       fi
21600       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21601 /* end confdefs.h.  */
21602
21603
21604 #undef inline
21605 #ifdef HAVE_WINDOWS_H
21606 #ifndef WIN32_LEAN_AND_MEAN
21607 #define WIN32_LEAN_AND_MEAN
21608 #endif
21609 #include <windows.h>
21610 #else
21611 #ifdef HAVE_SYS_TYPES_H
21612 #include <sys/types.h>
21613 #endif
21614 #endif
21615 #ifndef NULL
21616 #define NULL (void *)0
21617 #endif
21618 #ifndef LDAP_DEPRECATED
21619 #define LDAP_DEPRECATED 1
21620 #endif
21621 #ifdef NEED_LBER_H
21622 #include <lber.h>
21623 #endif
21624 #ifdef HAVE_LDAP_H
21625 #include <ldap.h>
21626 #endif
21627
21628 int main (void)
21629 {
21630
21631           BerValue *bvp = NULL;
21632           BerElement *bep = ber_init(bvp);
21633           LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21634           int res = ldap_unbind(ldp);
21635           ber_free(bep, 1);
21636
21637  ;
21638  return 0;
21639 }
21640
21641 _ACEOF
21642 if ac_fn_c_try_link "$LINENO"; then :
21643
21644         curl_cv_ldap_LIBS="$x_nlibs"
21645
21646 fi
21647 rm -f core conftest.err conftest.$ac_objext \
21648     conftest$ac_exeext conftest.$ac_ext
21649     fi
21650   done
21651   #
21652   LIBS="$curl_cv_save_LIBS"
21653   #
21654   case X-"$curl_cv_ldap_LIBS" in
21655     X-unknown)
21656       { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
21657 $as_echo "cannot find LDAP libraries" >&6; }
21658       ;;
21659     X-)
21660       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
21661 $as_echo "no additional lib required" >&6; }
21662       ;;
21663     *)
21664       if test -z "$curl_cv_save_LIBS"; then
21665         LIBS="$curl_cv_ldap_LIBS"
21666       else
21667         LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
21668       fi
21669       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
21670 $as_echo "$curl_cv_ldap_LIBS" >&6; }
21671       ;;
21672   esac
21673   #
21674
21675     case X-"$curl_cv_ldap_LIBS" in
21676       X-unknown)
21677         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
21678 $as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
21679
21680 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21681
21682         CURL_DISABLE_LDAP=1
21683
21684
21685 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21686
21687         CURL_DISABLE_LDAPS=1
21688
21689         ;;
21690     esac
21691   fi
21692 fi
21693
21694 if test x$CURL_DISABLE_LDAP != x1 ; then
21695
21696   if test "$LBERLIBNAME" ; then
21697             if test "$LBERLIBNAME" != "no" ; then
21698       as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
21699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
21700 $as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
21701 if eval \${$as_ac_Lib+:} false; then :
21702   $as_echo_n "(cached) " >&6
21703 else
21704   ac_check_lib_save_LIBS=$LIBS
21705 LIBS="-l"$LBERLIBNAME"  $LIBS"
21706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21707 /* end confdefs.h.  */
21708
21709
21710 #ifdef __cplusplus
21711 extern "C"
21712 #endif
21713 char ber_free ();
21714 int main (void)
21715 {
21716 return ber_free ();
21717  ;
21718  return 0;
21719 }
21720 _ACEOF
21721 if ac_fn_c_try_link "$LINENO"; then :
21722   eval "$as_ac_Lib=yes"
21723 else
21724   eval "$as_ac_Lib=no"
21725 fi
21726 rm -f core conftest.err conftest.$ac_objext \
21727     conftest$ac_exeext conftest.$ac_ext
21728 LIBS=$ac_check_lib_save_LIBS
21729 fi
21730 eval ac_res=\$$as_ac_Lib
21731                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21732 $as_echo "$ac_res" >&6; }
21733 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21734   cat >>confdefs.h <<_ACEOF
21735 #define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
21736 _ACEOF
21737
21738   LIBS="-l"$LBERLIBNAME" $LIBS"
21739
21740 else
21741
21742         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
21743 $as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
21744
21745 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21746
21747         CURL_DISABLE_LDAP=1
21748
21749
21750 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21751
21752         CURL_DISABLE_LDAPS=1
21753
21754 fi
21755
21756     fi
21757   fi
21758 fi
21759
21760 if test x$CURL_DISABLE_LDAP != x1 ; then
21761   for ac_func in ldap_url_parse ldap_init_fd
21762 do :
21763   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21764 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21765 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21766   cat >>confdefs.h <<_ACEOF
21767 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21768 _ACEOF
21769
21770 fi
21771 done
21772
21773
21774   if test "$LDAPLIBNAME" = "wldap32"; then
21775     curl_ldap_msg="enabled (winldap)"
21776
21777 $as_echo "#define USE_WIN32_LDAP 1" >>confdefs.h
21778
21779   else
21780     curl_ldap_msg="enabled (OpenLDAP)"
21781     if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
21782
21783 $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
21784
21785       USE_OPENLDAP=1
21786
21787     fi
21788   fi
21789 fi
21790
21791 if test x$CURL_DISABLE_LDAPS != x1 ; then
21792     curl_ldaps_msg="enabled"
21793 fi
21794
21795
21796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
21797 $as_echo_n "checking whether to enable IPv6... " >&6; }
21798 # Check whether --enable-ipv6 was given.
21799 if test "${enable_ipv6+set}" = set; then :
21800   enableval=$enable_ipv6;  case "$enableval" in
21801   no)
21802        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21803 $as_echo "no" >&6; }
21804        ipv6=no
21805        ;;
21806   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21807 $as_echo "yes" >&6; }
21808        ipv6=yes
21809        ;;
21810   esac
21811 else
21812   if test "$cross_compiling" = yes; then :
21813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21814 $as_echo "yes" >&6; }
21815   ipv6=yes
21816
21817 else
21818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21819 /* end confdefs.h.  */
21820  /* are AF_INET6 and sockaddr_in6 available? */
21821 #include <sys/types.h>
21822 #ifdef HAVE_WINSOCK2_H
21823 #include <winsock2.h>
21824 #include <ws2tcpip.h>
21825 #else
21826 #include <sys/socket.h>
21827 #include <netinet/in.h>
21828 #if defined (__TANDEM)
21829 # include <netinet/in6.h>
21830 #endif
21831 #endif
21832 #include <stdlib.h> /* for exit() */
21833 main()
21834 {
21835  struct sockaddr_in6 s;
21836  (void)s;
21837  if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
21838    exit(1);
21839  else
21840    exit(0);
21841 }
21842
21843 _ACEOF
21844 if ac_fn_c_try_run "$LINENO"; then :
21845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21846 $as_echo "yes" >&6; }
21847   ipv6=yes
21848 else
21849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21850 $as_echo "no" >&6; }
21851   ipv6=no
21852 fi
21853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21854   conftest.$ac_objext conftest.beam conftest.$ac_ext
21855 fi
21856
21857 fi
21858
21859
21860 if test "$ipv6" = yes; then
21861   curl_ipv6_msg="enabled"
21862
21863 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
21864
21865   IPV6_ENABLED=1
21866
21867
21868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
21869 $as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
21870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21871 /* end confdefs.h.  */
21872
21873 #include <sys/types.h>
21874 #ifdef HAVE_WINSOCK2_H
21875 #include <winsock2.h>
21876 #include <ws2tcpip.h>
21877 #else
21878 #include <netinet/in.h>
21879 #if defined (__TANDEM)
21880 # include <netinet/in6.h>
21881 #endif
21882 #endif
21883 int main (void)
21884 {
21885 struct sockaddr_in6 s; s.sin6_scope_id = 0;
21886  ;
21887  return 0;
21888 }
21889 _ACEOF
21890 if ac_fn_c_try_compile "$LINENO"; then :
21891   have_sin6_scope_id=yes
21892 fi
21893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21894   if test "$have_sin6_scope_id" = yes; then
21895     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21896 $as_echo "yes" >&6; }
21897
21898 $as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
21899
21900   else
21901     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21902 $as_echo "no" >&6; }
21903   fi
21904 fi
21905
21906
21907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
21908 $as_echo_n "checking if argv can be written to... " >&6; }
21909
21910
21911    old=$LD_LIBRARY_PATH
21912    LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
21913    export LD_LIBRARY_PATH
21914    if test "$cross_compiling" = yes; then :
21915   curl_cv_writable_argv=cross
21916
21917 else
21918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21919 /* end confdefs.h.  */
21920
21921 int main(int argc, char ** argv) {
21922     argv00 = ' ';
21923     return (argv00 == ' ')?0:1;
21924 }
21925
21926 _ACEOF
21927 if ac_fn_c_try_run "$LINENO"; then :
21928   curl_cv_writable_argv=yes
21929
21930 else
21931   curl_cv_writable_argv=no
21932
21933 fi
21934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21935   conftest.$ac_objext conftest.beam conftest.$ac_ext
21936 fi
21937
21938    LD_LIBRARY_PATH=$old # restore
21939
21940 case $curl_cv_writable_argv in
21941 yes)
21942
21943 $as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
21944
21945         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21946 $as_echo "yes" >&6; }
21947         ;;
21948 no)
21949         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21950 $as_echo "no" >&6; }
21951         ;;
21952 *)
21953         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21954 $as_echo "no" >&6; }
21955         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
21956 $as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
21957         ;;
21958 esac
21959
21960
21961
21962 GSSAPI_ROOT="/usr"
21963
21964 # Check whether --with-gssapi-includes was given.
21965 if test "${with_gssapi_includes+set}" = set; then :
21966   withval=$with_gssapi_includes;  GSSAPI_INCS="-I$withval"
21967     want_gss="yes"
21968
21969 fi
21970
21971
21972
21973 # Check whether --with-gssapi-libs was given.
21974 if test "${with_gssapi_libs+set}" = set; then :
21975   withval=$with_gssapi_libs;  GSSAPI_LIB_DIR="-L$withval"
21976     want_gss="yes"
21977
21978 fi
21979
21980
21981
21982 # Check whether --with-gssapi was given.
21983 if test "${with_gssapi+set}" = set; then :
21984   withval=$with_gssapi;
21985   GSSAPI_ROOT="$withval"
21986   if test x"$GSSAPI_ROOT" != xno; then
21987     want_gss="yes"
21988     if test x"$GSSAPI_ROOT" = xyes; then
21989             GSSAPI_ROOT="/usr"
21990     fi
21991   fi
21992
21993 fi
21994
21995
21996 : ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
21997
21998 save_CPPFLAGS="$CPPFLAGS"
21999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
22000 $as_echo_n "checking if GSS-API support is requested... " >&6; }
22001 if test x"$want_gss" = xyes; then
22002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22003 $as_echo "yes" >&6; }
22004
22005   if test -z "$GSSAPI_INCS"; then
22006      if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
22007         GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
22008      elif test -f "$KRB5CONFIG"; then
22009         GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
22010      elif test "$GSSAPI_ROOT" != "yes"; then
22011         GSSAPI_INCS="-I$GSSAPI_ROOT/include"
22012      fi
22013   fi
22014
22015   CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
22016
22017   ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
22018 if test "x$ac_cv_header_gss_h" = xyes; then :
22019
22020
22021 $as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
22022
22023       gnu_gss=yes
22024
22025 else
22026
22027             for ac_header in gssapi/gssapi.h
22028 do :
22029   ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
22030 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
22031   cat >>confdefs.h <<_ACEOF
22032 #define HAVE_GSSAPI_GSSAPI_H 1
22033 _ACEOF
22034
22035 else
22036   not_mit=1
22037 fi
22038
22039 done
22040
22041       for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
22042 do :
22043   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22044 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
22045 $ac_includes_default
22046 #ifdef HAVE_GSSAPI_GSSAPI_H
22047 #include <gssapi/gssapi.h>
22048 #endif
22049
22050 "
22051 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22052   cat >>confdefs.h <<_ACEOF
22053 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22054 _ACEOF
22055
22056 else
22057   not_mit=1
22058 fi
22059
22060 done
22061
22062       if test "x$not_mit" = "x1"; then
22063                 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
22064 if test "x$ac_cv_header_gssapi_h" = xyes; then :
22065
22066
22067 $as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
22068
22069
22070 else
22071
22072                             want_gss=no
22073               { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
22074 $as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
22075
22076
22077 fi
22078
22079
22080       else
22081
22082 $as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
22083
22084                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
22085 $as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
22086         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22087 /* end confdefs.h.  */
22088
22089
22090 #include <gssapi/gssapi.h>
22091 #include <gssapi/gssapi_generic.h>
22092 #include <gssapi/gssapi_krb5.h>
22093
22094 int main (void)
22095 {
22096
22097             gss_import_name(
22098                             (OM_uint32 *)0,
22099                             (gss_buffer_t)0,
22100                             GSS_C_NT_HOSTBASED_SERVICE,
22101                             (gss_name_t *)0);
22102
22103  ;
22104  return 0;
22105 }
22106
22107 _ACEOF
22108 if ac_fn_c_try_compile "$LINENO"; then :
22109
22110           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22111 $as_echo "yes" >&6; }
22112
22113 else
22114
22115           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22116 $as_echo "no" >&6; }
22117
22118 $as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
22119
22120
22121 fi
22122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22123       fi
22124
22125
22126 fi
22127
22128
22129 else
22130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22131 $as_echo "no" >&6; }
22132 fi
22133 if test x"$want_gss" = xyes; then
22134
22135 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
22136
22137   HAVE_GSSAPI=1
22138   curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
22139
22140   if test -n "$gnu_gss"; then
22141     curl_gss_msg="enabled (GNU GSS)"
22142     LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22143     LIBS="-lgss $LIBS"
22144   elif test -z "$GSSAPI_LIB_DIR"; then
22145      case $host in
22146      *-*-darwin*)
22147         LIBS="-lgssapi_krb5 -lresolv $LIBS"
22148         ;;
22149      *)
22150         if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
22151                                  gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
22152            LIBS="$gss_libs $LIBS"
22153         elif test -f "$KRB5CONFIG"; then
22154                                  gss_libs=`$KRB5CONFIG --libs gssapi`
22155            LIBS="$gss_libs $LIBS"
22156         else
22157            case $host in
22158            *-hp-hpux*)
22159               gss_libname="gss"
22160               ;;
22161            *)
22162               gss_libname="gssapi"
22163               ;;
22164            esac
22165
22166            if test "$GSSAPI_ROOT" != "yes"; then
22167               LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
22168               LIBS="-l$gss_libname $LIBS"
22169            else
22170               LIBS="-l$gss_libname $LIBS"
22171            fi
22172         fi
22173         ;;
22174      esac
22175   else
22176      LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22177      case $host in
22178      *-hp-hpux*)
22179         LIBS="-lgss $LIBS"
22180         ;;
22181      *)
22182         LIBS="-lgssapi $LIBS"
22183         ;;
22184      esac
22185   fi
22186 else
22187   CPPFLAGS="$save_CPPFLAGS"
22188 fi
22189
22190 build_libstubgss=no
22191 if test x"$want_gss" = "xyes"; then
22192   build_libstubgss=yes
22193 fi
22194
22195  if test "x$build_libstubgss" = "xyes"; then
22196   BUILD_STUB_GSS_TRUE=
22197   BUILD_STUB_GSS_FALSE='#'
22198 else
22199   BUILD_STUB_GSS_TRUE='#'
22200   BUILD_STUB_GSS_FALSE=
22201 fi
22202
22203
22204
22205 DEFAULT_SSL_BACKEND=no
22206 VALID_DEFAULT_SSL_BACKEND=
22207
22208 # Check whether --with-default-ssl-backend was given.
22209 if test "${with_default_ssl_backend+set}" = set; then :
22210   withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
22211 fi
22212
22213 case "$DEFAULT_SSL_BACKEND" in
22214   no)
22215         ;;
22216   default|yes)
22217         as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
22218     ;;
22219   *)
22220
22221         VALID_DEFAULT_SSL_BACKEND=no
22222     ;;
22223 esac
22224
22225
22226
22227 OPT_WINSSL=no
22228
22229 # Check whether --with-winssl was given.
22230 if test "${with_winssl+set}" = set; then :
22231   withval=$with_winssl; OPT_WINSSL=$withval
22232 fi
22233
22234
22235
22236 # Check whether --with-schannel was given.
22237 if test "${with_schannel+set}" = set; then :
22238   withval=$with_schannel; OPT_WINSSL=$withval
22239 fi
22240
22241
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
22243 $as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
22244 if test -z "$ssl_backends" -o "x$OPT_WINSSL" != xno; then
22245   ssl_msg=
22246   if test "x$OPT_WINSSL" != "xno"  &&
22247      test "x$curl_cv_native_windows" = "xyes"; then
22248     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22249 $as_echo "yes" >&6; }
22250
22251 $as_echo "#define USE_SCHANNEL 1" >>confdefs.h
22252
22253     USE_SCHANNEL=1
22254
22255     ssl_msg="Windows-native"
22256     test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
22257     WINSSL_ENABLED=1
22258     # --with-winssl implies --enable-sspi
22259
22260 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
22261
22262     USE_WINDOWS_SSPI=1
22263
22264     curl_sspi_msg="enabled"
22265     LIBS="-lcrypt32 $LIBS"
22266   else
22267     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22268 $as_echo "no" >&6; }
22269   fi
22270   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
22271 else
22272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22273 $as_echo "no" >&6; }
22274 fi
22275
22276 OPT_SECURETRANSPORT=no
22277
22278 # Check whether --with-darwinssl was given.
22279 if test "${with_darwinssl+set}" = set; then :
22280   withval=$with_darwinssl; OPT_SECURETRANSPORT=$withval
22281 fi
22282
22283
22284
22285 # Check whether --with-secure-transport was given.
22286 if test "${with_secure_transport+set}" = set; then :
22287   withval=$with_secure_transport; OPT_SECURETRANSPORT=$withval
22288 fi
22289
22290
22291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Secure Transport" >&5
22292 $as_echo_n "checking whether to enable Secure Transport... " >&6; }
22293 if test -z "$ssl_backends" -o "x$OPT_SECURETRANSPORT" != xno; then
22294   if test "x$OPT_SECURETRANSPORT" != "xno" &&
22295      test -d "/System/Library/Frameworks/Security.framework"; then
22296     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22297 $as_echo "yes" >&6; }
22298
22299 $as_echo "#define USE_SECTRANSP 1" >>confdefs.h
22300
22301     USE_SECTRANSP=1
22302
22303     ssl_msg="Secure Transport"
22304     test secure-transport != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
22305     SECURETRANSPORT_ENABLED=1
22306     LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
22307   else
22308     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22309 $as_echo "no" >&6; }
22310   fi
22311   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
22312 else
22313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22314 $as_echo "no" >&6; }
22315 fi
22316
22317 OPT_AMISSL=no
22318
22319 # Check whether --with-amissl was given.
22320 if test "${with_amissl+set}" = set; then :
22321   withval=$with_amissl; OPT_AMISSL=$withval
22322 fi
22323
22324
22325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Amiga native SSL/TLS (AmiSSL)" >&5
22326 $as_echo_n "checking whether to enable Amiga native SSL/TLS (AmiSSL)... " >&6; }
22327 if test "$HAVE_PROTO_BSDSOCKET_H" = "1"; then
22328   if test -z "$ssl_backends" -o "x$OPT_AMISSL" != xno; then
22329     ssl_msg=
22330     if test "x$OPT_AMISSL" != "xno"; then
22331       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22332 $as_echo "yes" >&6; }
22333       ssl_msg="AmiSSL"
22334       test amissl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
22335       AMISSL_ENABLED=1
22336       LIBS="-lamisslauto $LIBS"
22337
22338 $as_echo "#define USE_AMISSL 1" >>confdefs.h
22339
22340
22341 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
22342
22343     else
22344       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22345 $as_echo "no" >&6; }
22346     fi
22347     test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
22348   else
22349     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22350 $as_echo "no" >&6; }
22351   fi
22352 else
22353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22354 $as_echo "no" >&6; }
22355 fi
22356
22357
22358 OPT_SSL=off
22359 ca="no"
22360
22361 # Check whether --with-ssl was given.
22362 if test "${with_ssl+set}" = set; then :
22363   withval=$with_ssl; OPT_SSL=$withval
22364 fi
22365
22366
22367 if test -z "$ssl_backends" -o "x$OPT_SSL" != xno &&
22368    test X"$OPT_SSL" != Xno; then
22369   ssl_msg=
22370
22371     CLEANLDFLAGS="$LDFLAGS"
22372   CLEANCPPFLAGS="$CPPFLAGS"
22373   CLEANLIBS="$LIBS"
22374
22375     case $host in
22376     *-*-msys* | *-*-mingw*)
22377       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
22378 $as_echo_n "checking for gdi32... " >&6; }
22379       my_ac_save_LIBS=$LIBS
22380       LIBS="-lgdi32 $LIBS"
22381       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22382 /* end confdefs.h.  */
22383 #include <windef.h>
22384                    #include <wingdi.h>
22385 int main (void)
22386 {
22387 GdiFlush();
22388  ;
22389  return 0;
22390 }
22391 _ACEOF
22392 if ac_fn_c_try_link "$LINENO"; then :
22393                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22394 $as_echo "yes" >&6; }
22395 else
22396                       LIBS=$my_ac_save_LIBS
22397                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22398 $as_echo "no" >&6; }
22399
22400 fi
22401 rm -f core conftest.err conftest.$ac_objext \
22402     conftest$ac_exeext conftest.$ac_ext
22403       ;;
22404   esac
22405
22406   case "$OPT_SSL" in
22407   yes)
22408         if test x$cross_compiling != xyes; then
22409             PKGTEST="yes"
22410     fi
22411     PREFIX_OPENSSL=/usr/local/ssl
22412     LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22413     ;;
22414   off)
22415         if test x$cross_compiling != xyes; then
22416             PKGTEST="yes"
22417     fi
22418     PREFIX_OPENSSL=
22419     ;;
22420   *)
22421         PKGTEST="no"
22422     PREFIX_OPENSSL=$OPT_SSL
22423
22424                 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
22425     if test -f "$OPENSSL_PCDIR/openssl.pc"; then
22426       { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
22427 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
22428       PKGTEST="yes"
22429     elif test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then
22430       as_fn_error $? "$PREFIX_OPENSSL is a bad --with-ssl prefix!" "$LINENO" 5
22431     fi
22432
22433             LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22434     if test "$PREFIX_OPENSSL" != "/usr" ; then
22435       SSL_LDFLAGS="-L$LIB_OPENSSL"
22436       SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
22437     fi
22438     SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
22439     ;;
22440   esac
22441
22442   if test "$PKGTEST" = "yes"; then
22443
22444
22445     if test -n "$PKG_CONFIG"; then
22446       PKGCONFIG="$PKG_CONFIG"
22447     else
22448       if test -n "$ac_tool_prefix"; then
22449   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22450 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22452 $as_echo_n "checking for $ac_word... " >&6; }
22453 if ${ac_cv_path_PKGCONFIG+:} false; then :
22454   $as_echo_n "(cached) " >&6
22455 else
22456   case $PKGCONFIG in
22457   [\\/]* | ?:[\\/]*)
22458   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22459   ;;
22460   *)
22461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22462 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22463 for as_dir in $as_dummy
22464 do
22465   IFS=$as_save_IFS
22466   test -z "$as_dir" && as_dir=.
22467     for ac_exec_ext in '' $ac_executable_extensions; do
22468   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22469     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22471     break 2
22472   fi
22473 done
22474   done
22475 IFS=$as_save_IFS
22476
22477   ;;
22478 esac
22479 fi
22480 PKGCONFIG=$ac_cv_path_PKGCONFIG
22481 if test -n "$PKGCONFIG"; then
22482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22483 $as_echo "$PKGCONFIG" >&6; }
22484 else
22485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22486 $as_echo "no" >&6; }
22487 fi
22488
22489
22490 fi
22491 if test -z "$ac_cv_path_PKGCONFIG"; then
22492   ac_pt_PKGCONFIG=$PKGCONFIG
22493   # Extract the first word of "pkg-config", so it can be a program name with args.
22494 set dummy pkg-config; ac_word=$2
22495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22496 $as_echo_n "checking for $ac_word... " >&6; }
22497 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22498   $as_echo_n "(cached) " >&6
22499 else
22500   case $ac_pt_PKGCONFIG in
22501   [\\/]* | ?:[\\/]*)
22502   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22503   ;;
22504   *)
22505   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22506 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22507 for as_dir in $as_dummy
22508 do
22509   IFS=$as_save_IFS
22510   test -z "$as_dir" && as_dir=.
22511     for ac_exec_ext in '' $ac_executable_extensions; do
22512   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22513     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22514     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22515     break 2
22516   fi
22517 done
22518   done
22519 IFS=$as_save_IFS
22520
22521   ;;
22522 esac
22523 fi
22524 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22525 if test -n "$ac_pt_PKGCONFIG"; then
22526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22527 $as_echo "$ac_pt_PKGCONFIG" >&6; }
22528 else
22529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22530 $as_echo "no" >&6; }
22531 fi
22532
22533   if test "x$ac_pt_PKGCONFIG" = x; then
22534     PKGCONFIG="no"
22535   else
22536     case $cross_compiling:$ac_tool_warned in
22537 yes:)
22538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22540 ac_tool_warned=yes ;;
22541 esac
22542     PKGCONFIG=$ac_pt_PKGCONFIG
22543   fi
22544 else
22545   PKGCONFIG="$ac_cv_path_PKGCONFIG"
22546 fi
22547
22548     fi
22549
22550     if test "x$PKGCONFIG" != "xno"; then
22551       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
22552 $as_echo_n "checking for openssl options with pkg-config... " >&6; }
22553             itexists=`
22554     if test -n "$OPENSSL_PCDIR"; then
22555       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22556       export PKG_CONFIG_LIBDIR
22557     fi
22558          $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
22559
22560       if test -z "$itexists"; then
22561                         PKGCONFIG="no"
22562         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22563 $as_echo "no" >&6; }
22564       else
22565         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22566 $as_echo "found" >&6; }
22567       fi
22568     fi
22569
22570
22571     if test "$PKGCONFIG" != "no" ; then
22572       SSL_LIBS=`
22573     if test -n "$OPENSSL_PCDIR"; then
22574       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22575       export PKG_CONFIG_LIBDIR
22576     fi
22577          $PKGCONFIG --libs-only-l --libs-only-other openssl 2>/dev/null`
22578
22579       SSL_LDFLAGS=`
22580     if test -n "$OPENSSL_PCDIR"; then
22581       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22582       export PKG_CONFIG_LIBDIR
22583     fi
22584          $PKGCONFIG --libs-only-L openssl 2>/dev/null`
22585
22586       SSL_CPPFLAGS=`
22587     if test -n "$OPENSSL_PCDIR"; then
22588       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22589       export PKG_CONFIG_LIBDIR
22590     fi
22591          $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
22592
22593
22594       { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
22595 $as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
22596       { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
22597 $as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
22598       { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
22599 $as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
22600
22601       LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
22602
22603                                           LIBS="$SSL_LIBS $LIBS"
22604     fi
22605   fi
22606
22607     CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
22608   LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
22609
22610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
22611 $as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
22612 if ${ac_cv_lib_crypto_HMAC_Update+:} false; then :
22613   $as_echo_n "(cached) " >&6
22614 else
22615   ac_check_lib_save_LIBS=$LIBS
22616 LIBS="-lcrypto  $LIBS"
22617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22618 /* end confdefs.h.  */
22619
22620
22621 #ifdef __cplusplus
22622 extern "C"
22623 #endif
22624 char HMAC_Update ();
22625 int main (void)
22626 {
22627 return HMAC_Update ();
22628  ;
22629  return 0;
22630 }
22631 _ACEOF
22632 if ac_fn_c_try_link "$LINENO"; then :
22633   ac_cv_lib_crypto_HMAC_Update=yes
22634 else
22635   ac_cv_lib_crypto_HMAC_Update=no
22636 fi
22637 rm -f core conftest.err conftest.$ac_objext \
22638     conftest$ac_exeext conftest.$ac_ext
22639 LIBS=$ac_check_lib_save_LIBS
22640 fi
22641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
22642 $as_echo "$ac_cv_lib_crypto_HMAC_Update" >&6; }
22643 if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes; then :
22644
22645      HAVECRYPTO="yes"
22646      LIBS="-lcrypto $LIBS"
22647
22648 else
22649
22650      LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
22651      if test "$PKGCONFIG" = "no" ; then
22652        # only set this if pkg-config wasn't used
22653        CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
22654      fi
22655      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
22656 $as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
22657 if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
22658   $as_echo_n "(cached) " >&6
22659 else
22660   ac_check_lib_save_LIBS=$LIBS
22661 LIBS="-lcrypto  $LIBS"
22662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22663 /* end confdefs.h.  */
22664
22665
22666 #ifdef __cplusplus
22667 extern "C"
22668 #endif
22669 char HMAC_Init_ex ();
22670 int main (void)
22671 {
22672 return HMAC_Init_ex ();
22673  ;
22674  return 0;
22675 }
22676 _ACEOF
22677 if ac_fn_c_try_link "$LINENO"; then :
22678   ac_cv_lib_crypto_HMAC_Init_ex=yes
22679 else
22680   ac_cv_lib_crypto_HMAC_Init_ex=no
22681 fi
22682 rm -f core conftest.err conftest.$ac_objext \
22683     conftest$ac_exeext conftest.$ac_ext
22684 LIBS=$ac_check_lib_save_LIBS
22685 fi
22686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
22687 $as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
22688 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
22689
22690        HAVECRYPTO="yes"
22691        LIBS="-lcrypto $LIBS"
22692 else
22693
22694
22695               { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
22696 $as_echo_n "checking OpenSSL linking with -ldl... " >&6; }
22697        LIBS="$CLEANLIBS -lcrypto -ldl"
22698        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22699 /* end confdefs.h.  */
22700
22701          #include <openssl/err.h>
22702
22703 int main (void)
22704 {
22705
22706          ERR_clear_error();
22707
22708  ;
22709  return 0;
22710 }
22711 _ACEOF
22712 if ac_fn_c_try_link "$LINENO"; then :
22713
22714          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22715 $as_echo "yes" >&6; }
22716          HAVECRYPTO="yes"
22717
22718 else
22719
22720          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22721 $as_echo "no" >&6; }
22722
22723          { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
22724 $as_echo_n "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
22725          LIBS="$CLEANLIBS -lcrypto -ldl -lpthread"
22726          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22727 /* end confdefs.h.  */
22728
22729            #include <openssl/err.h>
22730
22731 int main (void)
22732 {
22733
22734            ERR_clear_error();
22735
22736  ;
22737  return 0;
22738 }
22739 _ACEOF
22740 if ac_fn_c_try_link "$LINENO"; then :
22741
22742            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22743 $as_echo "yes" >&6; }
22744            HAVECRYPTO="yes"
22745
22746 else
22747
22748            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22749 $as_echo "no" >&6; }
22750            LDFLAGS="$CLEANLDFLAGS"
22751            CPPFLAGS="$CLEANCPPFLAGS"
22752            LIBS="$CLEANLIBS"
22753
22754
22755 fi
22756 rm -f core conftest.err conftest.$ac_objext \
22757     conftest$ac_exeext conftest.$ac_ext
22758
22759
22760 fi
22761 rm -f core conftest.err conftest.$ac_objext \
22762     conftest$ac_exeext conftest.$ac_ext
22763
22764
22765 fi
22766
22767
22768 fi
22769
22770
22771   if test X"$HAVECRYPTO" = X"yes"; then
22772
22773     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22774 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22775 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22776   $as_echo_n "(cached) " >&6
22777 else
22778   ac_check_lib_save_LIBS=$LIBS
22779 LIBS="-lssl  $LIBS"
22780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22781 /* end confdefs.h.  */
22782
22783
22784 #ifdef __cplusplus
22785 extern "C"
22786 #endif
22787 char SSL_connect ();
22788 int main (void)
22789 {
22790 return SSL_connect ();
22791  ;
22792  return 0;
22793 }
22794 _ACEOF
22795 if ac_fn_c_try_link "$LINENO"; then :
22796   ac_cv_lib_ssl_SSL_connect=yes
22797 else
22798   ac_cv_lib_ssl_SSL_connect=no
22799 fi
22800 rm -f core conftest.err conftest.$ac_objext \
22801     conftest$ac_exeext conftest.$ac_ext
22802 LIBS=$ac_check_lib_save_LIBS
22803 fi
22804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22805 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22806 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22807   cat >>confdefs.h <<_ACEOF
22808 #define HAVE_LIBSSL 1
22809 _ACEOF
22810
22811   LIBS="-lssl $LIBS"
22812
22813 fi
22814
22815
22816     if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22817                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
22818 $as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
22819         OLIBS=$LIBS
22820         LIBS="-lRSAglue -lrsaref $LIBS"
22821         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22822 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22823 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22824   $as_echo_n "(cached) " >&6
22825 else
22826   ac_check_lib_save_LIBS=$LIBS
22827 LIBS="-lssl  $LIBS"
22828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22829 /* end confdefs.h.  */
22830
22831
22832 #ifdef __cplusplus
22833 extern "C"
22834 #endif
22835 char SSL_connect ();
22836 int main (void)
22837 {
22838 return SSL_connect ();
22839  ;
22840  return 0;
22841 }
22842 _ACEOF
22843 if ac_fn_c_try_link "$LINENO"; then :
22844   ac_cv_lib_ssl_SSL_connect=yes
22845 else
22846   ac_cv_lib_ssl_SSL_connect=no
22847 fi
22848 rm -f core conftest.err conftest.$ac_objext \
22849     conftest$ac_exeext conftest.$ac_ext
22850 LIBS=$ac_check_lib_save_LIBS
22851 fi
22852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22853 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22854 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22855   cat >>confdefs.h <<_ACEOF
22856 #define HAVE_LIBSSL 1
22857 _ACEOF
22858
22859   LIBS="-lssl $LIBS"
22860
22861 fi
22862
22863         if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22864                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22865 $as_echo "no" >&6; }
22866             LIBS=$OLIBS
22867         else
22868             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22869 $as_echo "yes" >&6; }
22870         fi
22871
22872     else
22873
22874             for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
22875                        openssl/pem.h openssl/ssl.h openssl/err.h
22876 do :
22877   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22878 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22879 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22880   cat >>confdefs.h <<_ACEOF
22881 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22882 _ACEOF
22883  ssl_msg="OpenSSL"
22884         test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
22885         OPENSSL_ENABLED=1
22886
22887 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
22888
22889 fi
22890
22891 done
22892
22893
22894       if test $ac_cv_header_openssl_x509_h = no; then
22895                                 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
22896 do :
22897   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22898 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22899 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22900   cat >>confdefs.h <<_ACEOF
22901 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22902 _ACEOF
22903
22904 fi
22905
22906 done
22907
22908
22909         if test $ac_cv_header_x509_h = yes &&
22910            test $ac_cv_header_crypto_h = yes &&
22911            test $ac_cv_header_ssl_h = yes; then
22912                     ssl_msg="OpenSSL"
22913           OPENSSL_ENABLED=1
22914         fi
22915       fi
22916     fi
22917
22918     if test X"$OPENSSL_ENABLED" != X"1"; then
22919        LIBS="$CLEANLIBS"
22920     fi
22921
22922     if test X"$OPT_SSL" != Xoff &&
22923        test "$OPENSSL_ENABLED" != "1"; then
22924       as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
22925     fi
22926   fi
22927
22928   if test X"$OPENSSL_ENABLED" = X"1"; then
22929
22930     for ac_func in RAND_egd \
22931                     SSLv2_client_method \
22932                     OpenSSL_version
22933 do :
22934   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22935 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22936 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22937   cat >>confdefs.h <<_ACEOF
22938 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22939 _ACEOF
22940
22941 fi
22942 done
22943
22944
22945     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
22946 $as_echo_n "checking for BoringSSL... " >&6; }
22947     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22948 /* end confdefs.h.  */
22949
22950
22951                 #include <openssl/base.h>
22952
22953 int main (void)
22954 {
22955
22956                 #ifndef OPENSSL_IS_BORINGSSL
22957                 #error not boringssl
22958                 #endif
22959
22960  ;
22961  return 0;
22962 }
22963
22964 _ACEOF
22965 if ac_fn_c_try_compile "$LINENO"; then :
22966
22967         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22968 $as_echo "yes" >&6; }
22969
22970 cat >>confdefs.h <<_ACEOF
22971 #define HAVE_BORINGSSL 1
22972 _ACEOF
22973
22974         ssl_msg="BoringSSL"
22975
22976 else
22977
22978         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22979 $as_echo "no" >&6; }
22980
22981 fi
22982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22983
22984     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
22985 $as_echo_n "checking for libressl... " >&6; }
22986     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22987 /* end confdefs.h.  */
22988
22989
22990 #include <openssl/opensslv.h>
22991
22992 int main (void)
22993 {
22994
22995         int dummy = LIBRESSL_VERSION_NUMBER;
22996
22997  ;
22998  return 0;
22999 }
23000
23001 _ACEOF
23002 if ac_fn_c_try_compile "$LINENO"; then :
23003
23004       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23005 $as_echo "yes" >&6; }
23006
23007 cat >>confdefs.h <<_ACEOF
23008 #define HAVE_LIBRESSL 1
23009 _ACEOF
23010
23011       ssl_msg="libressl"
23012
23013 else
23014
23015       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23016 $as_echo "no" >&6; }
23017
23018 fi
23019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23020   fi
23021
23022   if test "$OPENSSL_ENABLED" = "1"; then
23023     if test -n "$LIB_OPENSSL"; then
23024                             if test "x$cross_compiling" != "xyes"; then
23025          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_OPENSSL"
23026          export CURL_LIBRARY_PATH
23027          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&5
23028 $as_echo "$as_me: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&6;}
23029        fi
23030     fi
23031
23032   #
23033
23034   #
23035   tst_api="unknown"
23036   #
23037   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
23038 $as_echo_n "checking for OpenSSL headers version... " >&6; }
23039
23040     OLDCPPFLAGS=$CPPFLAGS
23041   # CPPPFLAG comes from CURL_CPP_P
23042   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
23043       if test -z "$SED"; then
23044     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
23045   fi
23046   if test -z "$GREP"; then
23047     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
23048   fi
23049
23050   tmp_exp=""
23051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23052 /* end confdefs.h.  */
23053
23054
23055 #   ifdef USE_OPENSSL
23056 #     include <openssl/crypto.h>
23057 #   else
23058 #     include <crypto.h>
23059 #   endif
23060
23061 #ifdef OPENSSL_VERSION_NUMBER
23062 CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
23063 #endif
23064
23065
23066 _ACEOF
23067 if ac_fn_c_try_cpp "$LINENO"; then :
23068
23069     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
23070       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
23071       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
23072       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
23073     if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
23074       tmp_exp=""
23075     fi
23076
23077 fi
23078 rm -f conftest.err conftest.i conftest.$ac_ext
23079   if test -z "$tmp_exp"; then
23080     curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
23081
23082   else
23083     curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
23084     curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
23085
23086   fi
23087       CPPFLAGS=$OLDCPPFLAGS
23088
23089   if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
23090     tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
23091     case "x$tst_verlen" in
23092       x6)
23093         tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
23094         tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
23095         tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
23096         tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
23097         ;;
23098       x11|x10)
23099         tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
23100         tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
23101         tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
23102         tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
23103         ;;
23104       *)
23105         tst_api="unknown"
23106         ;;
23107     esac
23108     case $tst_api in
23109       0x111) tst_show="1.1.1" ;;
23110       0x110) tst_show="1.1.0" ;;
23111       0x102) tst_show="1.0.2" ;;
23112       0x101) tst_show="1.0.1" ;;
23113       0x100) tst_show="1.0.0" ;;
23114       0x099) tst_show="0.9.9" ;;
23115       0x098) tst_show="0.9.8" ;;
23116       0x097) tst_show="0.9.7" ;;
23117       0x096) tst_show="0.9.6" ;;
23118       0x095) tst_show="0.9.5" ;;
23119       0x094) tst_show="0.9.4" ;;
23120       0x093) tst_show="0.9.3" ;;
23121       0x092) tst_show="0.9.2" ;;
23122       0x091) tst_show="0.9.1" ;;
23123       *)     tst_show="unknown" ;;
23124     esac
23125     tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
23126   else
23127     tst_show="unknown"
23128   fi
23129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23130 $as_echo "$tst_show" >&6; }
23131   #
23132   curl_openssl_api_headers=$tst_api
23133
23134
23135   #
23136   tst_api="unknown"
23137   #
23138   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
23139 $as_echo_n "checking for OpenSSL library version... " >&6; }
23140   if test "$tst_api" = "unknown"; then
23141     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23142 /* end confdefs.h.  */
23143
23144
23145 #define ERR_clear_last_mark innocuous_ERR_clear_last_mark
23146 #ifdef __STDC__
23147 # include <limits.h>
23148 #else
23149 # include <assert.h>
23150 #endif
23151 #undef ERR_clear_last_mark
23152 #ifdef __cplusplus
23153 extern "C"
23154 #endif
23155 char ERR_clear_last_mark ();
23156 #if defined __stub_ERR_clear_last_mark || defined __stub___ERR_clear_last_mark
23157 choke me
23158 #endif
23159
23160 int main (void)
23161 {
23162 return ERR_clear_last_mark ();
23163  ;
23164  return 0;
23165 }
23166
23167 _ACEOF
23168 if ac_fn_c_try_link "$LINENO"; then :
23169
23170       tst_api="0x111"
23171
23172 fi
23173 rm -f core conftest.err conftest.$ac_objext \
23174     conftest$ac_exeext conftest.$ac_ext
23175   fi
23176   if test "$tst_api" = "unknown"; then
23177     case $host in
23178       *-*-vms*)
23179         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23180 /* end confdefs.h.  */
23181
23182
23183 #define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
23184 #ifdef __STDC__
23185 # include <limits.h>
23186 #else
23187 # include <assert.h>
23188 #endif
23189 #undef SSL_CTX_set_not_resumbl_sess_cb
23190 #ifdef __cplusplus
23191 extern "C"
23192 #endif
23193 char SSL_CTX_set_not_resumbl_sess_cb ();
23194 #if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
23195 choke me
23196 #endif
23197
23198 int main (void)
23199 {
23200 return SSL_CTX_set_not_resumbl_sess_cb ();
23201  ;
23202  return 0;
23203 }
23204
23205 _ACEOF
23206 if ac_fn_c_try_link "$LINENO"; then :
23207
23208           tst_api="0x110"
23209
23210 fi
23211 rm -f core conftest.err conftest.$ac_objext \
23212     conftest$ac_exeext conftest.$ac_ext
23213         ;;
23214       *)
23215         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23216 /* end confdefs.h.  */
23217
23218
23219 #define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
23220 #ifdef __STDC__
23221 # include <limits.h>
23222 #else
23223 # include <assert.h>
23224 #endif
23225 #undef SSL_CTX_set_not_resumable_session_callback
23226 #ifdef __cplusplus
23227 extern "C"
23228 #endif
23229 char SSL_CTX_set_not_resumable_session_callback ();
23230 #if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
23231 choke me
23232 #endif
23233
23234 int main (void)
23235 {
23236 return SSL_CTX_set_not_resumable_session_callback ();
23237  ;
23238  return 0;
23239 }
23240
23241 _ACEOF
23242 if ac_fn_c_try_link "$LINENO"; then :
23243
23244           tst_api="0x110"
23245
23246 fi
23247 rm -f core conftest.err conftest.$ac_objext \
23248     conftest$ac_exeext conftest.$ac_ext
23249         ;;
23250     esac
23251   fi
23252   if test "$tst_api" = "unknown"; then
23253     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23254 /* end confdefs.h.  */
23255
23256
23257 #define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new
23258 #ifdef __STDC__
23259 # include <limits.h>
23260 #else
23261 # include <assert.h>
23262 #endif
23263 #undef SSL_CONF_CTX_new
23264 #ifdef __cplusplus
23265 extern "C"
23266 #endif
23267 char SSL_CONF_CTX_new ();
23268 #if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new
23269 choke me
23270 #endif
23271
23272 int main (void)
23273 {
23274 return SSL_CONF_CTX_new ();
23275  ;
23276  return 0;
23277 }
23278
23279 _ACEOF
23280 if ac_fn_c_try_link "$LINENO"; then :
23281
23282       tst_api="0x102"
23283
23284 fi
23285 rm -f core conftest.err conftest.$ac_objext \
23286     conftest$ac_exeext conftest.$ac_ext
23287   fi
23288   if test "$tst_api" = "unknown"; then
23289     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23290 /* end confdefs.h.  */
23291
23292
23293 #define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
23294 #ifdef __STDC__
23295 # include <limits.h>
23296 #else
23297 # include <assert.h>
23298 #endif
23299 #undef SSL_renegotiate_abbreviated
23300 #ifdef __cplusplus
23301 extern "C"
23302 #endif
23303 char SSL_renegotiate_abbreviated ();
23304 #if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
23305 choke me
23306 #endif
23307
23308 int main (void)
23309 {
23310 return SSL_renegotiate_abbreviated ();
23311  ;
23312  return 0;
23313 }
23314
23315 _ACEOF
23316 if ac_fn_c_try_link "$LINENO"; then :
23317
23318       tst_api="0x101"
23319
23320 fi
23321 rm -f core conftest.err conftest.$ac_objext \
23322     conftest$ac_exeext conftest.$ac_ext
23323   fi
23324   if test "$tst_api" = "unknown"; then
23325     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23326 /* end confdefs.h.  */
23327
23328
23329 #define OBJ_add_sigid innocuous_OBJ_add_sigid
23330 #ifdef __STDC__
23331 # include <limits.h>
23332 #else
23333 # include <assert.h>
23334 #endif
23335 #undef OBJ_add_sigid
23336 #ifdef __cplusplus
23337 extern "C"
23338 #endif
23339 char OBJ_add_sigid ();
23340 #if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
23341 choke me
23342 #endif
23343
23344 int main (void)
23345 {
23346 return OBJ_add_sigid ();
23347  ;
23348  return 0;
23349 }
23350
23351 _ACEOF
23352 if ac_fn_c_try_link "$LINENO"; then :
23353
23354       tst_api="0x100"
23355
23356 fi
23357 rm -f core conftest.err conftest.$ac_objext \
23358     conftest$ac_exeext conftest.$ac_ext
23359   fi
23360   if test "$tst_api" = "unknown"; then
23361     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23362 /* end confdefs.h.  */
23363
23364
23365 #define ERR_set_mark innocuous_ERR_set_mark
23366 #ifdef __STDC__
23367 # include <limits.h>
23368 #else
23369 # include <assert.h>
23370 #endif
23371 #undef ERR_set_mark
23372 #ifdef __cplusplus
23373 extern "C"
23374 #endif
23375 char ERR_set_mark ();
23376 #if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
23377 choke me
23378 #endif
23379
23380 int main (void)
23381 {
23382 return ERR_set_mark ();
23383  ;
23384  return 0;
23385 }
23386
23387 _ACEOF
23388 if ac_fn_c_try_link "$LINENO"; then :
23389
23390       tst_api="0x098"
23391
23392 fi
23393 rm -f core conftest.err conftest.$ac_objext \
23394     conftest$ac_exeext conftest.$ac_ext
23395   fi
23396   if test "$tst_api" = "unknown"; then
23397     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23398 /* end confdefs.h.  */
23399
23400
23401 #define ERR_peek_last_error innocuous_ERR_peek_last_error
23402 #ifdef __STDC__
23403 # include <limits.h>
23404 #else
23405 # include <assert.h>
23406 #endif
23407 #undef ERR_peek_last_error
23408 #ifdef __cplusplus
23409 extern "C"
23410 #endif
23411 char ERR_peek_last_error ();
23412 #if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
23413 choke me
23414 #endif
23415
23416 int main (void)
23417 {
23418 return ERR_peek_last_error ();
23419  ;
23420  return 0;
23421 }
23422
23423 _ACEOF
23424 if ac_fn_c_try_link "$LINENO"; then :
23425
23426       tst_api="0x097"
23427
23428 fi
23429 rm -f core conftest.err conftest.$ac_objext \
23430     conftest$ac_exeext conftest.$ac_ext
23431   fi
23432   if test "$tst_api" = "unknown"; then
23433     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23434 /* end confdefs.h.  */
23435
23436
23437 #define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
23438 #ifdef __STDC__
23439 # include <limits.h>
23440 #else
23441 # include <assert.h>
23442 #endif
23443 #undef c2i_ASN1_OBJECT
23444 #ifdef __cplusplus
23445 extern "C"
23446 #endif
23447 char c2i_ASN1_OBJECT ();
23448 #if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
23449 choke me
23450 #endif
23451
23452 int main (void)
23453 {
23454 return c2i_ASN1_OBJECT ();
23455  ;
23456  return 0;
23457 }
23458
23459 _ACEOF
23460 if ac_fn_c_try_link "$LINENO"; then :
23461
23462       tst_api="0x096"
23463
23464 fi
23465 rm -f core conftest.err conftest.$ac_objext \
23466     conftest$ac_exeext conftest.$ac_ext
23467   fi
23468   if test "$tst_api" = "unknown"; then
23469     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23470 /* end confdefs.h.  */
23471
23472
23473 #define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
23474 #ifdef __STDC__
23475 # include <limits.h>
23476 #else
23477 # include <assert.h>
23478 #endif
23479 #undef SSL_CTX_set_purpose
23480 #ifdef __cplusplus
23481 extern "C"
23482 #endif
23483 char SSL_CTX_set_purpose ();
23484 #if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
23485 choke me
23486 #endif
23487
23488 int main (void)
23489 {
23490 return SSL_CTX_set_purpose ();
23491  ;
23492  return 0;
23493 }
23494
23495 _ACEOF
23496 if ac_fn_c_try_link "$LINENO"; then :
23497
23498       tst_api="0x095"
23499
23500 fi
23501 rm -f core conftest.err conftest.$ac_objext \
23502     conftest$ac_exeext conftest.$ac_ext
23503   fi
23504   if test "$tst_api" = "unknown"; then
23505     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23506 /* end confdefs.h.  */
23507
23508
23509 #define OBJ_obj2txt innocuous_OBJ_obj2txt
23510 #ifdef __STDC__
23511 # include <limits.h>
23512 #else
23513 # include <assert.h>
23514 #endif
23515 #undef OBJ_obj2txt
23516 #ifdef __cplusplus
23517 extern "C"
23518 #endif
23519 char OBJ_obj2txt ();
23520 #if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
23521 choke me
23522 #endif
23523
23524 int main (void)
23525 {
23526 return OBJ_obj2txt ();
23527  ;
23528  return 0;
23529 }
23530
23531 _ACEOF
23532 if ac_fn_c_try_link "$LINENO"; then :
23533
23534       tst_api="0x094"
23535
23536 fi
23537 rm -f core conftest.err conftest.$ac_objext \
23538     conftest$ac_exeext conftest.$ac_ext
23539   fi
23540   if test "$tst_api" = "unknown"; then
23541     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23542 /* end confdefs.h.  */
23543
23544
23545 #define SSL_get_verify_depth innocuous_SSL_get_verify_depth
23546 #ifdef __STDC__
23547 # include <limits.h>
23548 #else
23549 # include <assert.h>
23550 #endif
23551 #undef SSL_get_verify_depth
23552 #ifdef __cplusplus
23553 extern "C"
23554 #endif
23555 char SSL_get_verify_depth ();
23556 #if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
23557 choke me
23558 #endif
23559
23560 int main (void)
23561 {
23562 return SSL_get_verify_depth ();
23563  ;
23564  return 0;
23565 }
23566
23567 _ACEOF
23568 if ac_fn_c_try_link "$LINENO"; then :
23569
23570       tst_api="0x093"
23571
23572 fi
23573 rm -f core conftest.err conftest.$ac_objext \
23574     conftest$ac_exeext conftest.$ac_ext
23575   fi
23576   if test "$tst_api" = "unknown"; then
23577     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23578 /* end confdefs.h.  */
23579
23580
23581 #define SSL_library_init innocuous_SSL_library_init
23582 #ifdef __STDC__
23583 # include <limits.h>
23584 #else
23585 # include <assert.h>
23586 #endif
23587 #undef SSL_library_init
23588 #ifdef __cplusplus
23589 extern "C"
23590 #endif
23591 char SSL_library_init ();
23592 #if defined __stub_SSL_library_init || defined __stub___SSL_library_init
23593 choke me
23594 #endif
23595
23596 int main (void)
23597 {
23598 return SSL_library_init ();
23599  ;
23600  return 0;
23601 }
23602
23603 _ACEOF
23604 if ac_fn_c_try_link "$LINENO"; then :
23605
23606       tst_api="0x092"
23607
23608 fi
23609 rm -f core conftest.err conftest.$ac_objext \
23610     conftest$ac_exeext conftest.$ac_ext
23611   fi
23612   if test "$tst_api" = "unknown"; then
23613     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23614 /* end confdefs.h.  */
23615
23616
23617 #define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
23618 #ifdef __STDC__
23619 # include <limits.h>
23620 #else
23621 # include <assert.h>
23622 #endif
23623 #undef SSL_CTX_set_cipher_list
23624 #ifdef __cplusplus
23625 extern "C"
23626 #endif
23627 char SSL_CTX_set_cipher_list ();
23628 #if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
23629 choke me
23630 #endif
23631
23632 int main (void)
23633 {
23634 return SSL_CTX_set_cipher_list ();
23635  ;
23636  return 0;
23637 }
23638
23639 _ACEOF
23640 if ac_fn_c_try_link "$LINENO"; then :
23641
23642       tst_api="0x091"
23643
23644 fi
23645 rm -f core conftest.err conftest.$ac_objext \
23646     conftest$ac_exeext conftest.$ac_ext
23647   fi
23648   case $tst_api in
23649     0x111) tst_show="1.1.1" ;;
23650     0x110) tst_show="1.1.0" ;;
23651     0x102) tst_show="1.0.2" ;;
23652     0x101) tst_show="1.0.1" ;;
23653     0x100) tst_show="1.0.0" ;;
23654     0x099) tst_show="0.9.9" ;;
23655     0x098) tst_show="0.9.8" ;;
23656     0x097) tst_show="0.9.7" ;;
23657     0x096) tst_show="0.9.6" ;;
23658     0x095) tst_show="0.9.5" ;;
23659     0x094) tst_show="0.9.4" ;;
23660     0x093) tst_show="0.9.3" ;;
23661     0x092) tst_show="0.9.2" ;;
23662     0x091) tst_show="0.9.1" ;;
23663     *)     tst_show="unknown" ;;
23664   esac
23665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23666 $as_echo "$tst_show" >&6; }
23667   #
23668   curl_openssl_api_library=$tst_api
23669
23670   #
23671   tst_match="yes"
23672   #
23673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
23674 $as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
23675   if test "$curl_openssl_api_headers" = "unknown" ||
23676     test "$curl_openssl_api_library" = "unknown"; then
23677     tst_match="fail"
23678     tst_warns="Can not compare OpenSSL headers and library versions."
23679   elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
23680     tst_match="no"
23681     tst_warns="OpenSSL headers and library versions do not match."
23682   fi
23683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
23684 $as_echo "$tst_match" >&6; }
23685   if test "$tst_match" != "yes"; then
23686     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
23687 $as_echo "$as_me: WARNING: $tst_warns" >&2;}
23688   fi
23689
23690     check_for_ca_bundle=1
23691   fi
23692
23693   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
23694 fi
23695
23696 if test X"$OPT_SSL" != Xoff &&
23697   test X"$OPT_SSL" != Xno &&
23698   test "$OPENSSL_ENABLED" != "1"; then
23699   { $as_echo "$as_me:${as_lineno-$LINENO}: OPT_SSL: $OPT_SSL" >&5
23700 $as_echo "$as_me: OPT_SSL: $OPT_SSL" >&6;}
23701   { $as_echo "$as_me:${as_lineno-$LINENO}: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&5
23702 $as_echo "$as_me: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&6;}
23703   as_fn_error $? "--with-ssl was given but OpenSSL could not be detected" "$LINENO" 5
23704 fi
23705
23706
23707 if test X"$OPENSSL_ENABLED" = X"1"; then
23708
23709 # Check whether --with-egd-socket was given.
23710 if test "${with_egd_socket+set}" = set; then :
23711   withval=$with_egd_socket;  EGD_SOCKET="$withval"
23712
23713 fi
23714
23715   if test -n "$EGD_SOCKET" ; then
23716
23717 cat >>confdefs.h <<_ACEOF
23718 #define EGD_SOCKET "$EGD_SOCKET"
23719 _ACEOF
23720
23721   fi
23722
23723
23724 # Check whether --with-random was given.
23725 if test "${with_random+set}" = set; then :
23726   withval=$with_random;  RANDOM_FILE="$withval"
23727 else
23728
23729           if test x$cross_compiling != xyes; then
23730                         as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
23731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
23732 $as_echo_n "checking for \"/dev/urandom\"... " >&6; }
23733 if eval \${$as_ac_File+:} false; then :
23734   $as_echo_n "(cached) " >&6
23735 else
23736   test "$cross_compiling" = yes &&
23737   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
23738 if test -r ""/dev/urandom""; then
23739   eval "$as_ac_File=yes"
23740 else
23741   eval "$as_ac_File=no"
23742 fi
23743 fi
23744 eval ac_res=\$$as_ac_File
23745                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23746 $as_echo "$ac_res" >&6; }
23747 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
23748    RANDOM_FILE="/dev/urandom"
23749 fi
23750
23751           else
23752             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
23753 $as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
23754           fi
23755
23756
23757 fi
23758
23759   if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
23760
23761
23762 cat >>confdefs.h <<_ACEOF
23763 #define RANDOM_FILE "$RANDOM_FILE"
23764 _ACEOF
23765
23766   fi
23767 fi
23768
23769 if test "$OPENSSL_ENABLED" = "1"; then
23770   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
23771 $as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
23772 if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
23773   $as_echo_n "(cached) " >&6
23774 else
23775   ac_check_lib_save_LIBS=$LIBS
23776 LIBS="-lcrypto  $LIBS"
23777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23778 /* end confdefs.h.  */
23779
23780
23781 #ifdef __cplusplus
23782 extern "C"
23783 #endif
23784 char SRP_Calc_client_key ();
23785 int main (void)
23786 {
23787 return SRP_Calc_client_key ();
23788  ;
23789  return 0;
23790 }
23791 _ACEOF
23792 if ac_fn_c_try_link "$LINENO"; then :
23793   ac_cv_lib_crypto_SRP_Calc_client_key=yes
23794 else
23795   ac_cv_lib_crypto_SRP_Calc_client_key=no
23796 fi
23797 rm -f core conftest.err conftest.$ac_objext \
23798     conftest$ac_exeext conftest.$ac_ext
23799 LIBS=$ac_check_lib_save_LIBS
23800 fi
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
23802 $as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
23803 if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
23804
23805
23806 $as_echo "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
23807
23808      HAVE_OPENSSL_SRP=1
23809
23810
23811 fi
23812
23813 fi
23814
23815 if test X"$OPENSSL_ENABLED" = X"1"; then
23816 # Check whether --enable-openssl-auto-load-config was given.
23817 if test "${enable_openssl_auto_load_config+set}" = set; then :
23818   enableval=$enable_openssl_auto_load_config;  if test X"$enableval" = X"no"; then
23819     { $as_echo "$as_me:${as_lineno-$LINENO}: automatic loading of OpenSSL configuration disabled" >&5
23820 $as_echo "$as_me: automatic loading of OpenSSL configuration disabled" >&6;}
23821
23822 $as_echo "#define CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG 1" >>confdefs.h
23823
23824   fi
23825
23826 fi
23827
23828 fi
23829
23830
23831 OPT_GNUTLS=no
23832
23833
23834 # Check whether --with-gnutls was given.
23835 if test "${with_gnutls+set}" = set; then :
23836   withval=$with_gnutls; OPT_GNUTLS=$withval
23837 fi
23838
23839
23840 if test -z "$ssl_backends" -o "x$OPT_GNUTLS" != xno; then
23841   ssl_msg=
23842
23843   if test X"$OPT_GNUTLS" != Xno; then
23844
23845     addld=""
23846     addlib=""
23847     gtlslib=""
23848     version=""
23849     addcflags=""
23850
23851     if test "x$OPT_GNUTLS" = "xyes"; then
23852
23853     if test -n "$PKG_CONFIG"; then
23854       PKGCONFIG="$PKG_CONFIG"
23855     else
23856       if test -n "$ac_tool_prefix"; then
23857   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23858 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23860 $as_echo_n "checking for $ac_word... " >&6; }
23861 if ${ac_cv_path_PKGCONFIG+:} false; then :
23862   $as_echo_n "(cached) " >&6
23863 else
23864   case $PKGCONFIG in
23865   [\\/]* | ?:[\\/]*)
23866   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23867   ;;
23868   *)
23869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23870 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23871 for as_dir in $as_dummy
23872 do
23873   IFS=$as_save_IFS
23874   test -z "$as_dir" && as_dir=.
23875     for ac_exec_ext in '' $ac_executable_extensions; do
23876   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23877     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23879     break 2
23880   fi
23881 done
23882   done
23883 IFS=$as_save_IFS
23884
23885   ;;
23886 esac
23887 fi
23888 PKGCONFIG=$ac_cv_path_PKGCONFIG
23889 if test -n "$PKGCONFIG"; then
23890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23891 $as_echo "$PKGCONFIG" >&6; }
23892 else
23893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23894 $as_echo "no" >&6; }
23895 fi
23896
23897
23898 fi
23899 if test -z "$ac_cv_path_PKGCONFIG"; then
23900   ac_pt_PKGCONFIG=$PKGCONFIG
23901   # Extract the first word of "pkg-config", so it can be a program name with args.
23902 set dummy pkg-config; ac_word=$2
23903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23904 $as_echo_n "checking for $ac_word... " >&6; }
23905 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
23906   $as_echo_n "(cached) " >&6
23907 else
23908   case $ac_pt_PKGCONFIG in
23909   [\\/]* | ?:[\\/]*)
23910   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23911   ;;
23912   *)
23913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23914 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23915 for as_dir in $as_dummy
23916 do
23917   IFS=$as_save_IFS
23918   test -z "$as_dir" && as_dir=.
23919     for ac_exec_ext in '' $ac_executable_extensions; do
23920   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23921     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23923     break 2
23924   fi
23925 done
23926   done
23927 IFS=$as_save_IFS
23928
23929   ;;
23930 esac
23931 fi
23932 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23933 if test -n "$ac_pt_PKGCONFIG"; then
23934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23935 $as_echo "$ac_pt_PKGCONFIG" >&6; }
23936 else
23937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23938 $as_echo "no" >&6; }
23939 fi
23940
23941   if test "x$ac_pt_PKGCONFIG" = x; then
23942     PKGCONFIG="no"
23943   else
23944     case $cross_compiling:$ac_tool_warned in
23945 yes:)
23946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23947 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23948 ac_tool_warned=yes ;;
23949 esac
23950     PKGCONFIG=$ac_pt_PKGCONFIG
23951   fi
23952 else
23953   PKGCONFIG="$ac_cv_path_PKGCONFIG"
23954 fi
23955
23956     fi
23957
23958     if test "x$PKGCONFIG" != "xno"; then
23959       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
23960 $as_echo_n "checking for gnutls options with pkg-config... " >&6; }
23961             itexists=`
23962     if test -n ""; then
23963       PKG_CONFIG_LIBDIR=""
23964       export PKG_CONFIG_LIBDIR
23965     fi
23966          $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
23967
23968       if test -z "$itexists"; then
23969                         PKGCONFIG="no"
23970         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23971 $as_echo "no" >&6; }
23972       else
23973         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23974 $as_echo "found" >&6; }
23975       fi
23976     fi
23977
23978
23979       if test "$PKGCONFIG" != "no" ; then
23980         addlib=`$PKGCONFIG --libs-only-l gnutls`
23981         addld=`$PKGCONFIG --libs-only-L gnutls`
23982         addcflags=`$PKGCONFIG --cflags-only-I gnutls`
23983         version=`$PKGCONFIG --modversion gnutls`
23984         gtlslib=`echo $addld | $SED -e 's/-L//'`
23985       else
23986                         check=`libgnutls-config --version 2>/dev/null`
23987         if test -n "$check"; then
23988           addlib=`libgnutls-config --libs`
23989           addcflags=`libgnutls-config --cflags`
23990           version=`libgnutls-config --version`
23991           gtlslib=`libgnutls-config --prefix`/lib$libsuff
23992         fi
23993       fi
23994     else
23995                   cfg=$OPT_GNUTLS/bin/libgnutls-config
23996       check=`$cfg --version 2>/dev/null`
23997       if test -n "$check"; then
23998         addlib=`$cfg --libs`
23999         addcflags=`$cfg --cflags`
24000         version=`$cfg --version`
24001         gtlslib=`$cfg --prefix`/lib$libsuff
24002       else
24003                 addlib=-lgnutls
24004         addld=-L$OPT_GNUTLS/lib$libsuff
24005         addcflags=-I$OPT_GNUTLS/include
24006         version="" # we just don't know
24007         gtlslib=$OPT_GNUTLS/lib$libsuff
24008       fi
24009     fi
24010
24011     if test -z "$version"; then
24012             version="unknown"
24013     fi
24014
24015     if test -n "$addlib"; then
24016
24017       CLEANLIBS="$LIBS"
24018       CLEANCPPFLAGS="$CPPFLAGS"
24019       CLEANLDFLAGS="$LDFLAGS"
24020
24021       LIBS="$addlib $LIBS"
24022       LDFLAGS="$LDFLAGS $addld"
24023       if test "$addcflags" != "-I/usr/include"; then
24024          CPPFLAGS="$CPPFLAGS $addcflags"
24025       fi
24026
24027       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
24028 $as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
24029 if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
24030   $as_echo_n "(cached) " >&6
24031 else
24032   ac_check_lib_save_LIBS=$LIBS
24033 LIBS="-lgnutls  $LIBS"
24034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24035 /* end confdefs.h.  */
24036
24037
24038 #ifdef __cplusplus
24039 extern "C"
24040 #endif
24041 char gnutls_check_version ();
24042 int main (void)
24043 {
24044 return gnutls_check_version ();
24045  ;
24046  return 0;
24047 }
24048 _ACEOF
24049 if ac_fn_c_try_link "$LINENO"; then :
24050   ac_cv_lib_gnutls_gnutls_check_version=yes
24051 else
24052   ac_cv_lib_gnutls_gnutls_check_version=no
24053 fi
24054 rm -f core conftest.err conftest.$ac_objext \
24055     conftest$ac_exeext conftest.$ac_ext
24056 LIBS=$ac_check_lib_save_LIBS
24057 fi
24058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
24059 $as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
24060 if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
24061
24062
24063 $as_echo "#define USE_GNUTLS 1" >>confdefs.h
24064
24065        USE_GNUTLS=1
24066
24067        GNUTLS_ENABLED=1
24068        USE_GNUTLS="yes"
24069        ssl_msg="GnuTLS"
24070        test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24071
24072 else
24073
24074          LIBS="$CLEANLIBS"
24075          CPPFLAGS="$CLEANCPPFLAGS"
24076
24077 fi
24078
24079
24080       if test "x$USE_GNUTLS" = "xyes"; then
24081         { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
24082 $as_echo "$as_me: detected GnuTLS version $version" >&6;}
24083         check_for_ca_bundle=1
24084         if test -n "$gtlslib"; then
24085                                                   if test "x$cross_compiling" != "xyes"; then
24086             CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$gtlslib"
24087             export CURL_LIBRARY_PATH
24088             { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to CURL_LIBRARY_PATH" >&5
24089 $as_echo "$as_me: Added $gtlslib to CURL_LIBRARY_PATH" >&6;}
24090           fi
24091         fi
24092         for ac_func in gnutls_certificate_set_x509_key_file2 gnutls_alpn_set_protocols gnutls_ocsp_req_init
24093 do :
24094   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24095 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24096 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24097   cat >>confdefs.h <<_ACEOF
24098 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24099 _ACEOF
24100
24101 fi
24102 done
24103
24104       fi
24105
24106     fi
24107
24108   fi
24109   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24110 fi
24111
24112
24113 if test "$GNUTLS_ENABLED" = "1"; then
24114   USE_GNUTLS_NETTLE=
24115   # First check if we can detect either crypto library via transitive linking
24116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
24117 $as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
24118 if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
24119   $as_echo_n "(cached) " >&6
24120 else
24121   ac_check_lib_save_LIBS=$LIBS
24122 LIBS="-lgnutls  $LIBS"
24123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24124 /* end confdefs.h.  */
24125
24126
24127 #ifdef __cplusplus
24128 extern "C"
24129 #endif
24130 char nettle_MD5Init ();
24131 int main (void)
24132 {
24133 return nettle_MD5Init ();
24134  ;
24135  return 0;
24136 }
24137 _ACEOF
24138 if ac_fn_c_try_link "$LINENO"; then :
24139   ac_cv_lib_gnutls_nettle_MD5Init=yes
24140 else
24141   ac_cv_lib_gnutls_nettle_MD5Init=no
24142 fi
24143 rm -f core conftest.err conftest.$ac_objext \
24144     conftest$ac_exeext conftest.$ac_ext
24145 LIBS=$ac_check_lib_save_LIBS
24146 fi
24147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
24148 $as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
24149 if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
24150    USE_GNUTLS_NETTLE=1
24151 fi
24152
24153   if test "$USE_GNUTLS_NETTLE" = ""; then
24154     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
24155 $as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
24156 if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
24157   $as_echo_n "(cached) " >&6
24158 else
24159   ac_check_lib_save_LIBS=$LIBS
24160 LIBS="-lgnutls  $LIBS"
24161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24162 /* end confdefs.h.  */
24163
24164
24165 #ifdef __cplusplus
24166 extern "C"
24167 #endif
24168 char gcry_control ();
24169 int main (void)
24170 {
24171 return gcry_control ();
24172  ;
24173  return 0;
24174 }
24175 _ACEOF
24176 if ac_fn_c_try_link "$LINENO"; then :
24177   ac_cv_lib_gnutls_gcry_control=yes
24178 else
24179   ac_cv_lib_gnutls_gcry_control=no
24180 fi
24181 rm -f core conftest.err conftest.$ac_objext \
24182     conftest$ac_exeext conftest.$ac_ext
24183 LIBS=$ac_check_lib_save_LIBS
24184 fi
24185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
24186 $as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
24187 if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
24188    USE_GNUTLS_NETTLE=0
24189 fi
24190
24191   fi
24192   # If not, try linking directly to both of them to see if they are available
24193   if test "$USE_GNUTLS_NETTLE" = ""; then
24194     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
24195 $as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
24196 if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
24197   $as_echo_n "(cached) " >&6
24198 else
24199   ac_check_lib_save_LIBS=$LIBS
24200 LIBS="-lnettle  $LIBS"
24201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24202 /* end confdefs.h.  */
24203
24204
24205 #ifdef __cplusplus
24206 extern "C"
24207 #endif
24208 char nettle_MD5Init ();
24209 int main (void)
24210 {
24211 return nettle_MD5Init ();
24212  ;
24213  return 0;
24214 }
24215 _ACEOF
24216 if ac_fn_c_try_link "$LINENO"; then :
24217   ac_cv_lib_nettle_nettle_MD5Init=yes
24218 else
24219   ac_cv_lib_nettle_nettle_MD5Init=no
24220 fi
24221 rm -f core conftest.err conftest.$ac_objext \
24222     conftest$ac_exeext conftest.$ac_ext
24223 LIBS=$ac_check_lib_save_LIBS
24224 fi
24225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
24226 $as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
24227 if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
24228    USE_GNUTLS_NETTLE=1
24229 fi
24230
24231   fi
24232   if test "$USE_GNUTLS_NETTLE" = ""; then
24233     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
24234 $as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
24235 if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
24236   $as_echo_n "(cached) " >&6
24237 else
24238   ac_check_lib_save_LIBS=$LIBS
24239 LIBS="-lgcrypt  $LIBS"
24240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24241 /* end confdefs.h.  */
24242
24243
24244 #ifdef __cplusplus
24245 extern "C"
24246 #endif
24247 char gcry_control ();
24248 int main (void)
24249 {
24250 return gcry_control ();
24251  ;
24252  return 0;
24253 }
24254 _ACEOF
24255 if ac_fn_c_try_link "$LINENO"; then :
24256   ac_cv_lib_gcrypt_gcry_control=yes
24257 else
24258   ac_cv_lib_gcrypt_gcry_control=no
24259 fi
24260 rm -f core conftest.err conftest.$ac_objext \
24261     conftest$ac_exeext conftest.$ac_ext
24262 LIBS=$ac_check_lib_save_LIBS
24263 fi
24264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
24265 $as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
24266 if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
24267    USE_GNUTLS_NETTLE=0
24268 fi
24269
24270   fi
24271   if test "$USE_GNUTLS_NETTLE" = ""; then
24272     as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
24273   fi
24274   if test "$USE_GNUTLS_NETTLE" = "1"; then
24275
24276 $as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
24277
24278     USE_GNUTLS_NETTLE=1
24279
24280     LIBS="-lnettle $LIBS"
24281   else
24282     LIBS="-lgcrypt $LIBS"
24283   fi
24284 fi
24285
24286 if test "$GNUTLS_ENABLED" = "1"; then
24287   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
24288 $as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
24289 if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
24290   $as_echo_n "(cached) " >&6
24291 else
24292   ac_check_lib_save_LIBS=$LIBS
24293 LIBS="-lgnutls  $LIBS"
24294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24295 /* end confdefs.h.  */
24296
24297
24298 #ifdef __cplusplus
24299 extern "C"
24300 #endif
24301 char gnutls_srp_verifier ();
24302 int main (void)
24303 {
24304 return gnutls_srp_verifier ();
24305  ;
24306  return 0;
24307 }
24308 _ACEOF
24309 if ac_fn_c_try_link "$LINENO"; then :
24310   ac_cv_lib_gnutls_gnutls_srp_verifier=yes
24311 else
24312   ac_cv_lib_gnutls_gnutls_srp_verifier=no
24313 fi
24314 rm -f core conftest.err conftest.$ac_objext \
24315     conftest$ac_exeext conftest.$ac_ext
24316 LIBS=$ac_check_lib_save_LIBS
24317 fi
24318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
24319 $as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
24320 if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
24321
24322
24323 $as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
24324
24325      HAVE_GNUTLS_SRP=1
24326
24327
24328 fi
24329
24330 fi
24331
24332
24333 OPT_MBEDTLS=no
24334
24335 _cppflags=$CPPFLAGS
24336 _ldflags=$LDFLAGS
24337
24338 # Check whether --with-mbedtls was given.
24339 if test "${with_mbedtls+set}" = set; then :
24340   withval=$with_mbedtls; OPT_MBEDTLS=$withval
24341 fi
24342
24343
24344 if test -z "$ssl_backends" -o "x$OPT_MBEDTLS" != xno; then
24345   ssl_msg=
24346
24347   if test X"$OPT_MBEDTLS" != Xno; then
24348
24349     if test "$OPT_MBEDTLS" = "yes"; then
24350       OPT_MBEDTLS=""
24351     fi
24352
24353     if test -z "$OPT_MBEDTLS" ; then
24354
24355       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
24356 $as_echo_n "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
24357 if ${ac_cv_lib_mbedtls_mbedtls_havege_init+:} false; then :
24358   $as_echo_n "(cached) " >&6
24359 else
24360   ac_check_lib_save_LIBS=$LIBS
24361 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24363 /* end confdefs.h.  */
24364
24365
24366 #ifdef __cplusplus
24367 extern "C"
24368 #endif
24369 char mbedtls_havege_init ();
24370 int main (void)
24371 {
24372 return mbedtls_havege_init ();
24373  ;
24374  return 0;
24375 }
24376 _ACEOF
24377 if ac_fn_c_try_link "$LINENO"; then :
24378   ac_cv_lib_mbedtls_mbedtls_havege_init=yes
24379 else
24380   ac_cv_lib_mbedtls_mbedtls_havege_init=no
24381 fi
24382 rm -f core conftest.err conftest.$ac_objext \
24383     conftest$ac_exeext conftest.$ac_ext
24384 LIBS=$ac_check_lib_save_LIBS
24385 fi
24386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
24387 $as_echo "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
24388 if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes; then :
24389
24390
24391 $as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24392
24393          USE_MBEDTLS=1
24394
24395          MBEDTLS_ENABLED=1
24396          USE_MBEDTLS="yes"
24397          ssl_msg="mbedTLS"
24398          test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24399
24400 fi
24401
24402     fi
24403
24404     addld=""
24405     addlib=""
24406     addcflags=""
24407     mbedtlslib=""
24408
24409     if test "x$USE_MBEDTLS" != "xyes"; then
24410             addld=-L$OPT_MBEDTLS/lib$libsuff
24411       addcflags=-I$OPT_MBEDTLS/include
24412       mbedtlslib=$OPT_MBEDTLS/lib$libsuff
24413
24414       LDFLAGS="$LDFLAGS $addld"
24415       if test "$addcflags" != "-I/usr/include"; then
24416          CPPFLAGS="$CPPFLAGS $addcflags"
24417       fi
24418
24419       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
24420 $as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
24421 if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then :
24422   $as_echo_n "(cached) " >&6
24423 else
24424   ac_check_lib_save_LIBS=$LIBS
24425 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24427 /* end confdefs.h.  */
24428
24429
24430 #ifdef __cplusplus
24431 extern "C"
24432 #endif
24433 char mbedtls_ssl_init ();
24434 int main (void)
24435 {
24436 return mbedtls_ssl_init ();
24437  ;
24438  return 0;
24439 }
24440 _ACEOF
24441 if ac_fn_c_try_link "$LINENO"; then :
24442   ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
24443 else
24444   ac_cv_lib_mbedtls_mbedtls_ssl_init=no
24445 fi
24446 rm -f core conftest.err conftest.$ac_objext \
24447     conftest$ac_exeext conftest.$ac_ext
24448 LIBS=$ac_check_lib_save_LIBS
24449 fi
24450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
24451 $as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
24452 if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then :
24453
24454
24455 $as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24456
24457        USE_MBEDTLS=1
24458
24459        MBEDTLS_ENABLED=1
24460        USE_MBEDTLS="yes"
24461        ssl_msg="mbedTLS"
24462        test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24463
24464 else
24465
24466          CPPFLAGS=$_cppflags
24467          LDFLAGS=$_ldflags
24468
24469 fi
24470
24471     fi
24472
24473     if test "x$USE_MBEDTLS" = "xyes"; then
24474       { $as_echo "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
24475 $as_echo "$as_me: detected mbedTLS" >&6;}
24476       check_for_ca_bundle=1
24477
24478       LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24479
24480       if test -n "$mbedtlslib"; then
24481                                         if test "x$cross_compiling" != "xyes"; then
24482           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$mbedtlslib"
24483           export CURL_LIBRARY_PATH
24484           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to CURL_LIBRARY_PATH" >&5
24485 $as_echo "$as_me: Added $mbedtlslib to CURL_LIBRARY_PATH" >&6;}
24486         fi
24487       fi
24488     fi
24489
24490   fi
24491   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24492 fi
24493
24494
24495 OPT_WOLFSSL=no
24496
24497 _cppflags=$CPPFLAGS
24498 _ldflags=$LDFLAGS
24499
24500
24501 # Check whether --with-wolfssl was given.
24502 if test "${with_wolfssl+set}" = set; then :
24503   withval=$with_wolfssl; OPT_WOLFSSL=$withval
24504 fi
24505
24506
24507 if test -z "$ssl_backends" -o "x$OPT_WOLFSSL" != xno; then
24508   ssl_msg=
24509
24510   if test X"$OPT_WOLFSSL" != Xno; then
24511
24512     if test "$OPT_WOLFSSL" = "yes"; then
24513       OPT_WOLFSSL=""
24514     fi
24515
24516     addld=""
24517     addlib=""
24518     addcflags=""
24519
24520     if test "x$USE_WOLFSSL" != "xyes"; then
24521       addld=-L$OPT_WOLFSSL/lib$libsuff
24522       addcflags=-I$OPT_WOLFSSL/include
24523       wolfssllibpath=$OPT_WOLFSSL/lib$libsuff
24524
24525       LDFLAGS="$LDFLAGS $addld"
24526       if test "$addcflags" != "-I/usr/include"; then
24527          CPPFLAGS="$CPPFLAGS $addcflags"
24528       fi
24529
24530       my_ac_save_LIBS="$LIBS"
24531       LIBS="-lwolfssl -lm $LIBS"
24532
24533       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wolfSSL_Init in -lwolfssl" >&5
24534 $as_echo_n "checking for wolfSSL_Init in -lwolfssl... " >&6; }
24535       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24536 /* end confdefs.h.  */
24537
24538
24539 /* These aren't needed for detection and confuse WolfSSL.
24540    They are set up properly later if it is detected.  */
24541 #undef SIZEOF_LONG
24542 #undef SIZEOF_LONG_LONG
24543 #include <wolfssl/ssl.h>
24544
24545 int main (void)
24546 {
24547
24548           return wolfSSL_Init();
24549
24550  ;
24551  return 0;
24552 }
24553
24554 _ACEOF
24555 if ac_fn_c_try_link "$LINENO"; then :
24556
24557          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24558 $as_echo "yes" >&6; }
24559
24560 $as_echo "#define USE_WOLFSSL 1" >>confdefs.h
24561
24562          USE_WOLFSSL=1
24563
24564          WOLFSSL_ENABLED=1
24565          USE_WOLFSSL="yes"
24566          ssl_msg="WolfSSL"
24567          test wolfssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24568
24569 else
24570
24571          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24572 $as_echo "no" >&6; }
24573          CPPFLAGS=$_cppflags
24574          LDFLAGS=$_ldflags
24575          wolfssllibpath=""
24576
24577 fi
24578 rm -f core conftest.err conftest.$ac_objext \
24579     conftest$ac_exeext conftest.$ac_ext
24580       LIBS="$my_ac_save_LIBS"
24581     fi
24582
24583     if test "x$USE_WOLFSSL" = "xyes"; then
24584       { $as_echo "$as_me:${as_lineno-$LINENO}: detected wolfSSL" >&5
24585 $as_echo "$as_me: detected wolfSSL" >&6;}
24586       check_for_ca_bundle=1
24587
24588             { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
24589 $as_echo_n "checking size of long long... " >&6; }
24590 if ${ac_cv_sizeof_long_long+:} false; then :
24591   $as_echo_n "(cached) " >&6
24592 else
24593   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
24594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24595 /* end confdefs.h.  */
24596
24597 #include <sys/types.h>
24598
24599
24600 int main (void)
24601 {
24602 switch (0) case 0: case (sizeof (long long) == $ac_size):;
24603  ;
24604  return 0;
24605 }
24606 _ACEOF
24607 if ac_fn_c_try_compile "$LINENO"; then :
24608   ac_cv_sizeof_long_long=$ac_size
24609 fi
24610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24611   if test x$ac_cv_sizeof_long_long != x ; then break; fi
24612 done
24613
24614 fi
24615
24616 if test x$ac_cv_sizeof_long_long = x ; then
24617   as_fn_error $? "cannot determine a size for long long" "$LINENO" 5
24618 fi
24619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
24620 $as_echo "$ac_cv_sizeof_long_long" >&6; }
24621
24622 cat >>confdefs.h <<_ACEOF
24623 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24624 _ACEOF
24625
24626
24627
24628       LIBS="-lwolfssl -lm $LIBS"
24629
24630                   for ac_func in wolfSSLv3_client_method \
24631                      wolfSSL_get_peer_certificate \
24632                      wolfSSL_UseALPN
24633 do :
24634   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24635 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24636 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24637   cat >>confdefs.h <<_ACEOF
24638 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24639 _ACEOF
24640
24641 fi
24642 done
24643
24644
24645       if test -n "$wolfssllibpath"; then
24646                                         if test "x$cross_compiling" != "xyes"; then
24647           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$wolfssllibpath"
24648           export CURL_LIBRARY_PATH
24649           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&5
24650 $as_echo "$as_me: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&6;}
24651         fi
24652       fi
24653
24654     fi
24655
24656   fi
24657   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24658 fi
24659
24660
24661 OPT_MESALINK=no
24662
24663 _cppflags=$CPPFLAGS
24664 _ldflags=$LDFLAGS
24665
24666 # Check whether --with-mesalink was given.
24667 if test "${with_mesalink+set}" = set; then :
24668   withval=$with_mesalink; OPT_MESALINK=$withval
24669 fi
24670
24671
24672 if test -z "$ssl_backends" -o "x$OPT_MESALINK" != xno; then
24673   ssl_msg=
24674
24675   if test X"$OPT_MESALINK" != Xno; then
24676
24677     if test "$OPT_MESALINK" = "yes"; then
24678       OPT_MESALINK=""
24679     fi
24680
24681     if test -z "$OPT_MESALINK" ; then
24682
24683       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mesalink_library_init in -lmesalink" >&5
24684 $as_echo_n "checking for mesalink_library_init in -lmesalink... " >&6; }
24685 if ${ac_cv_lib_mesalink_mesalink_library_init+:} false; then :
24686   $as_echo_n "(cached) " >&6
24687 else
24688   ac_check_lib_save_LIBS=$LIBS
24689 LIBS="-lmesalink  $LIBS"
24690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24691 /* end confdefs.h.  */
24692
24693
24694 #ifdef __cplusplus
24695 extern "C"
24696 #endif
24697 char mesalink_library_init ();
24698 int main (void)
24699 {
24700 return mesalink_library_init ();
24701  ;
24702  return 0;
24703 }
24704 _ACEOF
24705 if ac_fn_c_try_link "$LINENO"; then :
24706   ac_cv_lib_mesalink_mesalink_library_init=yes
24707 else
24708   ac_cv_lib_mesalink_mesalink_library_init=no
24709 fi
24710 rm -f core conftest.err conftest.$ac_objext \
24711     conftest$ac_exeext conftest.$ac_ext
24712 LIBS=$ac_check_lib_save_LIBS
24713 fi
24714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mesalink_mesalink_library_init" >&5
24715 $as_echo "$ac_cv_lib_mesalink_mesalink_library_init" >&6; }
24716 if test "x$ac_cv_lib_mesalink_mesalink_library_init" = xyes; then :
24717
24718
24719 $as_echo "#define USE_MESALINK 1" >>confdefs.h
24720
24721          USE_MESALINK=1
24722
24723          MESALINK_ENABLED=1
24724          USE_MESALINK="yes"
24725          ssl_msg="MesaLink"
24726          test mesalink != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24727
24728 fi
24729
24730     fi
24731
24732     addld=""
24733     addlib=""
24734     addcflags=""
24735     mesalinklib=""
24736
24737     if test "x$USE_MESALINK" != "xyes"; then
24738             addld=-L$OPT_MESALINK/lib$libsuff
24739       addcflags=-I$OPT_MESALINK/include
24740       mesalinklib=$OPT_MESALINK/lib$libsuff
24741
24742       LDFLAGS="$LDFLAGS $addld"
24743       if test "$addcflags" != "-I/usr/include"; then
24744          CPPFLAGS="$CPPFLAGS $addcflags"
24745       fi
24746
24747       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mesalink_library_init in -lmesalink" >&5
24748 $as_echo_n "checking for mesalink_library_init in -lmesalink... " >&6; }
24749 if ${ac_cv_lib_mesalink_mesalink_library_init+:} false; then :
24750   $as_echo_n "(cached) " >&6
24751 else
24752   ac_check_lib_save_LIBS=$LIBS
24753 LIBS="-lmesalink  $LIBS"
24754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24755 /* end confdefs.h.  */
24756
24757
24758 #ifdef __cplusplus
24759 extern "C"
24760 #endif
24761 char mesalink_library_init ();
24762 int main (void)
24763 {
24764 return mesalink_library_init ();
24765  ;
24766  return 0;
24767 }
24768 _ACEOF
24769 if ac_fn_c_try_link "$LINENO"; then :
24770   ac_cv_lib_mesalink_mesalink_library_init=yes
24771 else
24772   ac_cv_lib_mesalink_mesalink_library_init=no
24773 fi
24774 rm -f core conftest.err conftest.$ac_objext \
24775     conftest$ac_exeext conftest.$ac_ext
24776 LIBS=$ac_check_lib_save_LIBS
24777 fi
24778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mesalink_mesalink_library_init" >&5
24779 $as_echo "$ac_cv_lib_mesalink_mesalink_library_init" >&6; }
24780 if test "x$ac_cv_lib_mesalink_mesalink_library_init" = xyes; then :
24781
24782
24783 $as_echo "#define USE_MESALINK 1" >>confdefs.h
24784
24785        USE_MESALINK=1
24786
24787        MESALINK_ENABLED=1
24788        USE_MESALINK="yes"
24789        ssl_msg="MesaLink"
24790        test mesalink != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24791
24792 else
24793
24794          CPPFLAGS=$_cppflags
24795          LDFLAGS=$_ldflags
24796
24797 fi
24798
24799     fi
24800
24801     if test "x$USE_MESALINK" = "xyes"; then
24802       { $as_echo "$as_me:${as_lineno-$LINENO}: detected MesaLink" >&5
24803 $as_echo "$as_me: detected MesaLink" >&6;}
24804
24805       LIBS="-lmesalink $LIBS"
24806
24807       if test -n "$mesalinklib"; then
24808                                         if test "x$cross_compiling" != "xyes"; then
24809           LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$mesalinklib"
24810           export LD_LIBRARY_PATH
24811           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mesalinklib to LD_LIBRARY_PATH" >&5
24812 $as_echo "$as_me: Added $mesalinklib to LD_LIBRARY_PATH" >&6;}
24813         fi
24814       fi
24815     fi
24816
24817   fi
24818   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24819 fi
24820
24821
24822 OPT_BEARSSL=no
24823
24824 _cppflags=$CPPFLAGS
24825 _ldflags=$LDFLAGS
24826
24827 # Check whether --with-bearssl was given.
24828 if test "${with_bearssl+set}" = set; then :
24829   withval=$with_bearssl; OPT_BEARSSL=$withval
24830 fi
24831
24832
24833 if test -z "$ssl_backends" -o "x$OPT_BEARSSL" != xno; then
24834   ssl_msg=
24835
24836   if test X"$OPT_BEARSSL" != Xno; then
24837
24838     if test "$OPT_BEARSSL" = "yes"; then
24839       OPT_BEARSSL=""
24840     fi
24841
24842     if test -z "$OPT_BEARSSL" ; then
24843
24844       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5
24845 $as_echo_n "checking for br_ssl_client_init_full in -lbearssl... " >&6; }
24846 if ${ac_cv_lib_bearssl_br_ssl_client_init_full+:} false; then :
24847   $as_echo_n "(cached) " >&6
24848 else
24849   ac_check_lib_save_LIBS=$LIBS
24850 LIBS="-lbearssl -lbearssl $LIBS"
24851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24852 /* end confdefs.h.  */
24853
24854
24855 #ifdef __cplusplus
24856 extern "C"
24857 #endif
24858 char br_ssl_client_init_full ();
24859 int main (void)
24860 {
24861 return br_ssl_client_init_full ();
24862  ;
24863  return 0;
24864 }
24865 _ACEOF
24866 if ac_fn_c_try_link "$LINENO"; then :
24867   ac_cv_lib_bearssl_br_ssl_client_init_full=yes
24868 else
24869   ac_cv_lib_bearssl_br_ssl_client_init_full=no
24870 fi
24871 rm -f core conftest.err conftest.$ac_objext \
24872     conftest$ac_exeext conftest.$ac_ext
24873 LIBS=$ac_check_lib_save_LIBS
24874 fi
24875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5
24876 $as_echo "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; }
24877 if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes; then :
24878
24879
24880 $as_echo "#define USE_BEARSSL 1" >>confdefs.h
24881
24882          USE_BEARSSL=1
24883
24884          BEARSSL_ENABLED=1
24885          USE_BEARSSL="yes"
24886          ssl_msg="BearSSL"
24887          test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24888
24889 fi
24890
24891     fi
24892
24893     addld=""
24894     addlib=""
24895     addcflags=""
24896     bearssllib=""
24897
24898     if test "x$USE_BEARSSL" != "xyes"; then
24899             addld=-L$OPT_BEARSSL/lib$libsuff
24900       addcflags=-I$OPT_BEARSSL/include
24901       bearssllib=$OPT_BEARSSL/lib$libsuff
24902
24903       LDFLAGS="$LDFLAGS $addld"
24904       if test "$addcflags" != "-I/usr/include"; then
24905          CPPFLAGS="$CPPFLAGS $addcflags"
24906       fi
24907
24908       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5
24909 $as_echo_n "checking for br_ssl_client_init_full in -lbearssl... " >&6; }
24910 if ${ac_cv_lib_bearssl_br_ssl_client_init_full+:} false; then :
24911   $as_echo_n "(cached) " >&6
24912 else
24913   ac_check_lib_save_LIBS=$LIBS
24914 LIBS="-lbearssl -lbearssl $LIBS"
24915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24916 /* end confdefs.h.  */
24917
24918
24919 #ifdef __cplusplus
24920 extern "C"
24921 #endif
24922 char br_ssl_client_init_full ();
24923 int main (void)
24924 {
24925 return br_ssl_client_init_full ();
24926  ;
24927  return 0;
24928 }
24929 _ACEOF
24930 if ac_fn_c_try_link "$LINENO"; then :
24931   ac_cv_lib_bearssl_br_ssl_client_init_full=yes
24932 else
24933   ac_cv_lib_bearssl_br_ssl_client_init_full=no
24934 fi
24935 rm -f core conftest.err conftest.$ac_objext \
24936     conftest$ac_exeext conftest.$ac_ext
24937 LIBS=$ac_check_lib_save_LIBS
24938 fi
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5
24940 $as_echo "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; }
24941 if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes; then :
24942
24943
24944 $as_echo "#define USE_BEARSSL 1" >>confdefs.h
24945
24946        USE_BEARSSL=1
24947
24948        BEARSSL_ENABLED=1
24949        USE_BEARSSL="yes"
24950        ssl_msg="BearSSL"
24951        test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24952
24953 else
24954
24955          CPPFLAGS=$_cppflags
24956          LDFLAGS=$_ldflags
24957
24958 fi
24959
24960     fi
24961
24962     if test "x$USE_BEARSSL" = "xyes"; then
24963       { $as_echo "$as_me:${as_lineno-$LINENO}: detected BearSSL" >&5
24964 $as_echo "$as_me: detected BearSSL" >&6;}
24965       check_for_ca_bundle=1
24966
24967       LIBS="-lbearssl $LIBS"
24968
24969       if test -n "$bearssllib"; then
24970                                         if test "x$cross_compiling" != "xyes"; then
24971           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$bearssllib"
24972           export CURL_LIBRARY_PATH
24973           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $bearssllib to CURL_LIBRARY_PATH" >&5
24974 $as_echo "$as_me: Added $bearssllib to CURL_LIBRARY_PATH" >&6;}
24975         fi
24976       fi
24977     fi
24978
24979   fi
24980   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24981 fi
24982
24983
24984 OPT_NSS=no
24985
24986
24987 # Check whether --with-nss was given.
24988 if test "${with_nss+set}" = set; then :
24989   withval=$with_nss; OPT_NSS=$withval
24990 fi
24991
24992
24993 if test -z "$ssl_backends" -o "x$OPT_NSS" != xno; then
24994   ssl_msg=
24995
24996   if test X"$OPT_NSS" != Xno; then
24997
24998     addld=""
24999     addlib=""
25000     addcflags=""
25001     nssprefix=""
25002     version=""
25003
25004     if test "x$OPT_NSS" = "xyes"; then
25005
25006
25007     if test -n "$PKG_CONFIG"; then
25008       PKGCONFIG="$PKG_CONFIG"
25009     else
25010       if test -n "$ac_tool_prefix"; then
25011   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25012 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25014 $as_echo_n "checking for $ac_word... " >&6; }
25015 if ${ac_cv_path_PKGCONFIG+:} false; then :
25016   $as_echo_n "(cached) " >&6
25017 else
25018   case $PKGCONFIG in
25019   [\\/]* | ?:[\\/]*)
25020   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25021   ;;
25022   *)
25023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25024 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25025 for as_dir in $as_dummy
25026 do
25027   IFS=$as_save_IFS
25028   test -z "$as_dir" && as_dir=.
25029     for ac_exec_ext in '' $ac_executable_extensions; do
25030   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25031     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25032     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25033     break 2
25034   fi
25035 done
25036   done
25037 IFS=$as_save_IFS
25038
25039   ;;
25040 esac
25041 fi
25042 PKGCONFIG=$ac_cv_path_PKGCONFIG
25043 if test -n "$PKGCONFIG"; then
25044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25045 $as_echo "$PKGCONFIG" >&6; }
25046 else
25047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25048 $as_echo "no" >&6; }
25049 fi
25050
25051
25052 fi
25053 if test -z "$ac_cv_path_PKGCONFIG"; then
25054   ac_pt_PKGCONFIG=$PKGCONFIG
25055   # Extract the first word of "pkg-config", so it can be a program name with args.
25056 set dummy pkg-config; ac_word=$2
25057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25058 $as_echo_n "checking for $ac_word... " >&6; }
25059 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25060   $as_echo_n "(cached) " >&6
25061 else
25062   case $ac_pt_PKGCONFIG in
25063   [\\/]* | ?:[\\/]*)
25064   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25065   ;;
25066   *)
25067   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25068 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25069 for as_dir in $as_dummy
25070 do
25071   IFS=$as_save_IFS
25072   test -z "$as_dir" && as_dir=.
25073     for ac_exec_ext in '' $ac_executable_extensions; do
25074   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25075     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25076     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25077     break 2
25078   fi
25079 done
25080   done
25081 IFS=$as_save_IFS
25082
25083   ;;
25084 esac
25085 fi
25086 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25087 if test -n "$ac_pt_PKGCONFIG"; then
25088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25089 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25090 else
25091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25092 $as_echo "no" >&6; }
25093 fi
25094
25095   if test "x$ac_pt_PKGCONFIG" = x; then
25096     PKGCONFIG="no"
25097   else
25098     case $cross_compiling:$ac_tool_warned in
25099 yes:)
25100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25102 ac_tool_warned=yes ;;
25103 esac
25104     PKGCONFIG=$ac_pt_PKGCONFIG
25105   fi
25106 else
25107   PKGCONFIG="$ac_cv_path_PKGCONFIG"
25108 fi
25109
25110     fi
25111
25112     if test "x$PKGCONFIG" != "xno"; then
25113       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25114 $as_echo_n "checking for nss options with pkg-config... " >&6; }
25115             itexists=`
25116     if test -n ""; then
25117       PKG_CONFIG_LIBDIR=""
25118       export PKG_CONFIG_LIBDIR
25119     fi
25120          $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25121
25122       if test -z "$itexists"; then
25123                         PKGCONFIG="no"
25124         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25125 $as_echo "no" >&6; }
25126       else
25127         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25128 $as_echo "found" >&6; }
25129       fi
25130     fi
25131
25132
25133       if test "$PKGCONFIG" != "no" ; then
25134         addlib=`$PKGCONFIG --libs nss`
25135         addcflags=`$PKGCONFIG --cflags nss`
25136         version=`$PKGCONFIG --modversion nss`
25137         nssprefix=`$PKGCONFIG --variable=prefix nss`
25138       else
25139
25140         check=`nss-config --version 2>/dev/null`
25141         if test -n "$check"; then
25142           addlib=`nss-config --libs`
25143           addcflags=`nss-config --cflags`
25144           version=`nss-config --version`
25145           nssprefix=`nss-config --prefix`
25146         else
25147           addlib="-lnss3"
25148           addcflags=""
25149           version="unknown"
25150         fi
25151       fi
25152     else
25153       NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
25154       if test -f "$NSS_PCDIR/nss.pc"; then
25155
25156     if test -n "$PKG_CONFIG"; then
25157       PKGCONFIG="$PKG_CONFIG"
25158     else
25159       if test -n "$ac_tool_prefix"; then
25160   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25161 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25163 $as_echo_n "checking for $ac_word... " >&6; }
25164 if ${ac_cv_path_PKGCONFIG+:} false; then :
25165   $as_echo_n "(cached) " >&6
25166 else
25167   case $PKGCONFIG in
25168   [\\/]* | ?:[\\/]*)
25169   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25170   ;;
25171   *)
25172   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25173 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25174 for as_dir in $as_dummy
25175 do
25176   IFS=$as_save_IFS
25177   test -z "$as_dir" && as_dir=.
25178     for ac_exec_ext in '' $ac_executable_extensions; do
25179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25180     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25182     break 2
25183   fi
25184 done
25185   done
25186 IFS=$as_save_IFS
25187
25188   ;;
25189 esac
25190 fi
25191 PKGCONFIG=$ac_cv_path_PKGCONFIG
25192 if test -n "$PKGCONFIG"; then
25193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25194 $as_echo "$PKGCONFIG" >&6; }
25195 else
25196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25197 $as_echo "no" >&6; }
25198 fi
25199
25200
25201 fi
25202 if test -z "$ac_cv_path_PKGCONFIG"; then
25203   ac_pt_PKGCONFIG=$PKGCONFIG
25204   # Extract the first word of "pkg-config", so it can be a program name with args.
25205 set dummy pkg-config; ac_word=$2
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25207 $as_echo_n "checking for $ac_word... " >&6; }
25208 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25209   $as_echo_n "(cached) " >&6
25210 else
25211   case $ac_pt_PKGCONFIG in
25212   [\\/]* | ?:[\\/]*)
25213   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25214   ;;
25215   *)
25216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25217 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25218 for as_dir in $as_dummy
25219 do
25220   IFS=$as_save_IFS
25221   test -z "$as_dir" && as_dir=.
25222     for ac_exec_ext in '' $ac_executable_extensions; do
25223   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25224     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25226     break 2
25227   fi
25228 done
25229   done
25230 IFS=$as_save_IFS
25231
25232   ;;
25233 esac
25234 fi
25235 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25236 if test -n "$ac_pt_PKGCONFIG"; then
25237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25238 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25239 else
25240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25241 $as_echo "no" >&6; }
25242 fi
25243
25244   if test "x$ac_pt_PKGCONFIG" = x; then
25245     PKGCONFIG="no"
25246   else
25247     case $cross_compiling:$ac_tool_warned in
25248 yes:)
25249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25251 ac_tool_warned=yes ;;
25252 esac
25253     PKGCONFIG=$ac_pt_PKGCONFIG
25254   fi
25255 else
25256   PKGCONFIG="$ac_cv_path_PKGCONFIG"
25257 fi
25258
25259     fi
25260
25261     if test "x$PKGCONFIG" != "xno"; then
25262       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25263 $as_echo_n "checking for nss options with pkg-config... " >&6; }
25264             itexists=`
25265     if test -n "$NSS_PCDIR"; then
25266       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25267       export PKG_CONFIG_LIBDIR
25268     fi
25269          $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25270
25271       if test -z "$itexists"; then
25272                         PKGCONFIG="no"
25273         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25274 $as_echo "no" >&6; }
25275       else
25276         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25277 $as_echo "found" >&6; }
25278       fi
25279     fi
25280
25281         if test "$PKGCONFIG" != "no" ; then
25282           addld=`
25283     if test -n "$NSS_PCDIR"; then
25284       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25285       export PKG_CONFIG_LIBDIR
25286     fi
25287  $PKGCONFIG --libs-only-L nss`
25288           addlib=`
25289     if test -n "$NSS_PCDIR"; then
25290       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25291       export PKG_CONFIG_LIBDIR
25292     fi
25293  $PKGCONFIG --libs-only-l nss`
25294           addcflags=`
25295     if test -n "$NSS_PCDIR"; then
25296       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25297       export PKG_CONFIG_LIBDIR
25298     fi
25299  $PKGCONFIG --cflags nss`
25300           version=`
25301     if test -n "$NSS_PCDIR"; then
25302       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25303       export PKG_CONFIG_LIBDIR
25304     fi
25305  $PKGCONFIG --modversion nss`
25306           nssprefix=`
25307     if test -n "$NSS_PCDIR"; then
25308       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25309       export PKG_CONFIG_LIBDIR
25310     fi
25311  $PKGCONFIG --variable=prefix nss`
25312         fi
25313       fi
25314     fi
25315
25316     if test -z "$addlib"; then
25317       # Without pkg-config, we'll kludge in some defaults
25318       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
25319 $as_echo "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
25320       addld="-L$OPT_NSS/lib"
25321       addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
25322       addcflags="-I$OPT_NSS/include"
25323       version="unknown"
25324       nssprefix=$OPT_NSS
25325     fi
25326
25327     CLEANLDFLAGS="$LDFLAGS"
25328     CLEANLIBS="$LIBS"
25329     CLEANCPPFLAGS="$CPPFLAGS"
25330
25331     LDFLAGS="$addld $LDFLAGS"
25332     LIBS="$addlib $LIBS"
25333     if test "$addcflags" != "-I/usr/include"; then
25334        CPPFLAGS="$CPPFLAGS $addcflags"
25335     fi
25336
25337         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
25338 $as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
25339 if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
25340   $as_echo_n "(cached) " >&6
25341 else
25342   ac_check_lib_save_LIBS=$LIBS
25343 LIBS="-lnss3  $LIBS"
25344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25345 /* end confdefs.h.  */
25346
25347
25348 #ifdef __cplusplus
25349 extern "C"
25350 #endif
25351 char SSL_VersionRangeSet ();
25352 int main (void)
25353 {
25354 return SSL_VersionRangeSet ();
25355  ;
25356  return 0;
25357 }
25358 _ACEOF
25359 if ac_fn_c_try_link "$LINENO"; then :
25360   ac_cv_lib_nss3_SSL_VersionRangeSet=yes
25361 else
25362   ac_cv_lib_nss3_SSL_VersionRangeSet=no
25363 fi
25364 rm -f core conftest.err conftest.$ac_objext \
25365     conftest$ac_exeext conftest.$ac_ext
25366 LIBS=$ac_check_lib_save_LIBS
25367 fi
25368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
25369 $as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
25370 if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
25371
25372
25373 $as_echo "#define USE_NSS 1" >>confdefs.h
25374
25375      USE_NSS=1
25376
25377      USE_NSS="yes"
25378      NSS_ENABLED=1
25379      ssl_msg="NSS"
25380      test nss != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25381
25382 else
25383
25384        LDFLAGS="$CLEANLDFLAGS"
25385        LIBS="$CLEANLIBS"
25386        CPPFLAGS="$CLEANCPPFLAGS"
25387
25388 fi
25389
25390
25391     if test "x$USE_NSS" = "xyes"; then
25392       { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
25393 $as_echo "$as_me: detected NSS version $version" >&6;}
25394
25395                         ac_fn_c_check_func "$LINENO" "PK11_CreateManagedGenericObject" "ac_cv_func_PK11_CreateManagedGenericObject"
25396 if test "x$ac_cv_func_PK11_CreateManagedGenericObject" = xyes; then :
25397
25398
25399 $as_echo "#define HAVE_PK11_CREATEMANAGEDGENERICOBJECT 1" >>confdefs.h
25400
25401
25402 fi
25403
25404
25405             NSS_LIBS=$addlib
25406
25407
25408                               if test "x$cross_compiling" != "xyes"; then
25409         CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$nssprefix/lib$libsuff"
25410         export CURL_LIBRARY_PATH
25411         { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&5
25412 $as_echo "$as_me: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&6;}
25413       fi
25414
25415     fi
25416   fi
25417   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
25418 fi
25419
25420 case "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$MBEDTLS_ENABLED$WOLFSSL_ENABLED$WINSSL_ENABLED$SECURETRANSPORT_ENABLED$MESALINK_ENABLED$BEARSSL_ENABLED$AMISSL_ENABLED" in
25421 x)
25422   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
25423 $as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
25424   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --with-ssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-nss, --with-schannel, --with-secure-transport, --with-mesalink, --with-amissl or --with-bearssl to address this." >&5
25425 $as_echo "$as_me: WARNING: Use --with-ssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-nss, --with-schannel, --with-secure-transport, --with-mesalink, --with-amissl or --with-bearssl to address this." >&2;}
25426   ;;
25427 x1)
25428   # one SSL backend is enabled
25429
25430   SSL_ENABLED="1"
25431   { $as_echo "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
25432 $as_echo "$as_me: built with one SSL backend" >&6;}
25433   ;;
25434 *)
25435   # more than one SSL backend is enabled
25436
25437   SSL_ENABLED="1"
25438
25439   CURL_WITH_MULTI_SSL="1"
25440
25441 $as_echo "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
25442
25443   { $as_echo "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
25444 $as_echo "$as_me: built with multiple SSL backends" >&6;}
25445   ;;
25446 esac
25447
25448 if test -n "$ssl_backends"; then
25449   curl_ssl_msg="enabled ($ssl_backends)"
25450 fi
25451
25452 if test no = "$VALID_DEFAULT_SSL_BACKEND"
25453 then
25454   if test -n "$SSL_ENABLED"
25455   then
25456     as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
25457   else
25458     as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
25459   fi
25460 elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
25461 then
25462
25463 cat >>confdefs.h <<_ACEOF
25464 #define CURL_DEFAULT_SSL_BACKEND "$DEFAULT_SSL_BACKEND"
25465 _ACEOF
25466
25467 fi
25468
25469
25470 if test -n "$check_for_ca_bundle"; then
25471
25472
25473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
25474 $as_echo_n "checking default CA cert bundle/path... " >&6; }
25475
25476
25477 # Check whether --with-ca-bundle was given.
25478 if test "${with_ca_bundle+set}" = set; then :
25479   withval=$with_ca_bundle;
25480     want_ca="$withval"
25481     if test "x$want_ca" = "xyes"; then
25482       as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
25483     fi
25484
25485 else
25486    want_ca="unset"
25487 fi
25488
25489
25490 # Check whether --with-ca-path was given.
25491 if test "${with_ca_path+set}" = set; then :
25492   withval=$with_ca_path;
25493     want_capath="$withval"
25494     if test "x$want_capath" = "xyes"; then
25495       as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
25496     fi
25497
25498 else
25499    want_capath="unset"
25500 fi
25501
25502
25503   ca_warning="   (warning: certs not found)"
25504   capath_warning="   (warning: certs not found)"
25505   check_capath=""
25506
25507   if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
25508           "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25509         ca="$want_ca"
25510     capath="$want_capath"
25511   elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
25512         ca="$want_ca"
25513     capath="no"
25514   elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25515         if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then
25516       as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or PolarSSL" "$LINENO" 5
25517     fi
25518     capath="$want_capath"
25519     ca="no"
25520   else
25521             ca="no"
25522     capath="no"
25523     if test "x$cross_compiling" != "xyes"; then
25524                   if test "x$want_ca" = "xunset"; then
25525                                 if test "x$prefix" != xNONE; then
25526           cac="${prefix}/share/curl/curl-ca-bundle.crt"
25527         else
25528           cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
25529         fi
25530
25531         for a in /etc/ssl/certs/ca-certificates.crt \
25532                  /etc/pki/tls/certs/ca-bundle.crt \
25533                  /usr/share/ssl/certs/ca-bundle.crt \
25534                  /usr/local/share/certs/ca-root-nss.crt \
25535                  /etc/ssl/cert.pem \
25536                  "$cac"; do
25537           if test -f "$a"; then
25538             ca="$a"
25539             break
25540           fi
25541         done
25542       fi
25543       if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
25544               "x$OPENSSL_ENABLED" = "x1"; then
25545         check_capath="/etc/ssl/certs/"
25546       fi
25547     else
25548             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
25549 $as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
25550     fi
25551   fi
25552
25553   if test "x$ca" = "xno" || test -f "$ca"; then
25554     ca_warning=""
25555   fi
25556
25557   if test "x$capath" != "xno"; then
25558     check_capath="$capath"
25559   fi
25560
25561   if test ! -z "$check_capath"; then
25562     for a in "$check_capath"; do
25563       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
25564         if test "x$capath" = "xno"; then
25565           capath="$a"
25566         fi
25567         capath_warning=""
25568         break
25569       fi
25570     done
25571   fi
25572
25573   if test "x$capath" = "xno"; then
25574     capath_warning=""
25575   fi
25576
25577   if test "x$ca" != "xno"; then
25578     CURL_CA_BUNDLE='"'$ca'"'
25579
25580 cat >>confdefs.h <<_ACEOF
25581 #define CURL_CA_BUNDLE "$ca"
25582 _ACEOF
25583
25584
25585     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
25586 $as_echo "$ca" >&6; }
25587   fi
25588   if test "x$capath" != "xno"; then
25589     CURL_CA_PATH="\"$capath\""
25590
25591 cat >>confdefs.h <<_ACEOF
25592 #define CURL_CA_PATH "$capath"
25593 _ACEOF
25594
25595     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
25596 $as_echo "$capath (capath)" >&6; }
25597   fi
25598   if test "x$ca" = "xno" && test "x$capath" = "xno"; then
25599     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25600 $as_echo "no" >&6; }
25601   fi
25602
25603   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
25604 $as_echo_n "checking whether to use builtin CA store of SSL library... " >&6; }
25605
25606 # Check whether --with-ca-fallback was given.
25607 if test "${with_ca_fallback+set}" = set; then :
25608   withval=$with_ca_fallback;
25609     if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
25610       as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
25611     fi
25612
25613 else
25614    with_ca_fallback="no"
25615 fi
25616
25617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
25618 $as_echo "$with_ca_fallback" >&6; }
25619   if test "x$with_ca_fallback" = "xyes"; then
25620     if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
25621       as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
25622     fi
25623
25624 cat >>confdefs.h <<_ACEOF
25625 #define CURL_CA_FALLBACK 1
25626 _ACEOF
25627
25628   fi
25629
25630 fi
25631
25632
25633
25634 # Check whether --with-libpsl was given.
25635 if test "${with_libpsl+set}" = set; then :
25636   withval=$with_libpsl; with_libpsl=$withval
25637 else
25638   with_libpsl=yes
25639 fi
25640
25641 if test $with_libpsl != "no"; then
25642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
25643 $as_echo_n "checking for library containing psl_builtin... " >&6; }
25644 if ${ac_cv_search_psl_builtin+:} false; then :
25645   $as_echo_n "(cached) " >&6
25646 else
25647   ac_func_search_save_LIBS=$LIBS
25648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25649 /* end confdefs.h.  */
25650
25651
25652 #ifdef __cplusplus
25653 extern "C"
25654 #endif
25655 char psl_builtin ();
25656 int main (void)
25657 {
25658 return psl_builtin ();
25659  ;
25660  return 0;
25661 }
25662 _ACEOF
25663 for ac_lib in '' psl; do
25664   if test -z "$ac_lib"; then
25665     ac_res="none required"
25666   else
25667     ac_res=-l$ac_lib
25668     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25669   fi
25670   if ac_fn_c_try_link "$LINENO"; then :
25671   ac_cv_search_psl_builtin=$ac_res
25672 fi
25673 rm -f core conftest.err conftest.$ac_objext \
25674     conftest$ac_exeext
25675   if ${ac_cv_search_psl_builtin+:} false; then :
25676   break
25677 fi
25678 done
25679 if ${ac_cv_search_psl_builtin+:} false; then :
25680
25681 else
25682   ac_cv_search_psl_builtin=no
25683 fi
25684 rm conftest.$ac_ext
25685 LIBS=$ac_func_search_save_LIBS
25686 fi
25687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
25688 $as_echo "$ac_cv_search_psl_builtin" >&6; }
25689 ac_res=$ac_cv_search_psl_builtin
25690 if test "$ac_res" != no; then :
25691   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25692   curl_psl_msg="enabled";
25693
25694 $as_echo "#define USE_LIBPSL 1" >>confdefs.h
25695
25696
25697 else
25698   curl_psl_msg="no      (libpsl not found)";
25699      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
25700 $as_echo "$as_me: WARNING: libpsl was not found" >&2;}
25701
25702
25703 fi
25704
25705 fi
25706  if test "$curl_psl_msg" = "enabled"; then
25707   USE_LIBPSL_TRUE=
25708   USE_LIBPSL_FALSE='#'
25709 else
25710   USE_LIBPSL_TRUE='#'
25711   USE_LIBPSL_FALSE=
25712 fi
25713
25714
25715
25716 OPT_LIBMETALINK=no
25717
25718
25719 # Check whether --with-libmetalink was given.
25720 if test "${with_libmetalink+set}" = set; then :
25721   withval=$with_libmetalink; OPT_LIBMETALINK=$withval
25722 fi
25723
25724
25725 if test X"$OPT_LIBMETALINK" != Xno; then
25726
25727   addld=""
25728   addlib=""
25729   addcflags=""
25730   version=""
25731   libmetalinklib=""
25732
25733   PKGTEST="no"
25734   if test "x$OPT_LIBMETALINK" = "xyes"; then
25735         PKGTEST="yes"
25736
25737     if test -n "$PKG_CONFIG"; then
25738       PKGCONFIG="$PKG_CONFIG"
25739     else
25740       if test -n "$ac_tool_prefix"; then
25741   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25742 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25744 $as_echo_n "checking for $ac_word... " >&6; }
25745 if ${ac_cv_path_PKGCONFIG+:} false; then :
25746   $as_echo_n "(cached) " >&6
25747 else
25748   case $PKGCONFIG in
25749   [\\/]* | ?:[\\/]*)
25750   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25751   ;;
25752   *)
25753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25754 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25755 for as_dir in $as_dummy
25756 do
25757   IFS=$as_save_IFS
25758   test -z "$as_dir" && as_dir=.
25759     for ac_exec_ext in '' $ac_executable_extensions; do
25760   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25761     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25763     break 2
25764   fi
25765 done
25766   done
25767 IFS=$as_save_IFS
25768
25769   ;;
25770 esac
25771 fi
25772 PKGCONFIG=$ac_cv_path_PKGCONFIG
25773 if test -n "$PKGCONFIG"; then
25774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25775 $as_echo "$PKGCONFIG" >&6; }
25776 else
25777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25778 $as_echo "no" >&6; }
25779 fi
25780
25781
25782 fi
25783 if test -z "$ac_cv_path_PKGCONFIG"; then
25784   ac_pt_PKGCONFIG=$PKGCONFIG
25785   # Extract the first word of "pkg-config", so it can be a program name with args.
25786 set dummy pkg-config; ac_word=$2
25787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25788 $as_echo_n "checking for $ac_word... " >&6; }
25789 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25790   $as_echo_n "(cached) " >&6
25791 else
25792   case $ac_pt_PKGCONFIG in
25793   [\\/]* | ?:[\\/]*)
25794   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25795   ;;
25796   *)
25797   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25798 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25799 for as_dir in $as_dummy
25800 do
25801   IFS=$as_save_IFS
25802   test -z "$as_dir" && as_dir=.
25803     for ac_exec_ext in '' $ac_executable_extensions; do
25804   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25805     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25807     break 2
25808   fi
25809 done
25810   done
25811 IFS=$as_save_IFS
25812
25813   ;;
25814 esac
25815 fi
25816 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25817 if test -n "$ac_pt_PKGCONFIG"; then
25818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25819 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25820 else
25821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25822 $as_echo "no" >&6; }
25823 fi
25824
25825   if test "x$ac_pt_PKGCONFIG" = x; then
25826     PKGCONFIG="no"
25827   else
25828     case $cross_compiling:$ac_tool_warned in
25829 yes:)
25830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25832 ac_tool_warned=yes ;;
25833 esac
25834     PKGCONFIG=$ac_pt_PKGCONFIG
25835   fi
25836 else
25837   PKGCONFIG="$ac_cv_path_PKGCONFIG"
25838 fi
25839
25840     fi
25841
25842     if test "x$PKGCONFIG" != "xno"; then
25843       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25844 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25845             itexists=`
25846     if test -n ""; then
25847       PKG_CONFIG_LIBDIR=""
25848       export PKG_CONFIG_LIBDIR
25849     fi
25850          $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25851
25852       if test -z "$itexists"; then
25853                         PKGCONFIG="no"
25854         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25855 $as_echo "no" >&6; }
25856       else
25857         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25858 $as_echo "found" >&6; }
25859       fi
25860     fi
25861
25862   else
25863         LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
25864     { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
25865 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
25866     if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
25867       PKGTEST="yes"
25868     fi
25869     if test "$PKGTEST" = "yes"; then
25870
25871     if test -n "$PKG_CONFIG"; then
25872       PKGCONFIG="$PKG_CONFIG"
25873     else
25874       if test -n "$ac_tool_prefix"; then
25875   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25876 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25878 $as_echo_n "checking for $ac_word... " >&6; }
25879 if ${ac_cv_path_PKGCONFIG+:} false; then :
25880   $as_echo_n "(cached) " >&6
25881 else
25882   case $PKGCONFIG in
25883   [\\/]* | ?:[\\/]*)
25884   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25885   ;;
25886   *)
25887   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25888 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25889 for as_dir in $as_dummy
25890 do
25891   IFS=$as_save_IFS
25892   test -z "$as_dir" && as_dir=.
25893     for ac_exec_ext in '' $ac_executable_extensions; do
25894   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25895     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25897     break 2
25898   fi
25899 done
25900   done
25901 IFS=$as_save_IFS
25902
25903   ;;
25904 esac
25905 fi
25906 PKGCONFIG=$ac_cv_path_PKGCONFIG
25907 if test -n "$PKGCONFIG"; then
25908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25909 $as_echo "$PKGCONFIG" >&6; }
25910 else
25911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25912 $as_echo "no" >&6; }
25913 fi
25914
25915
25916 fi
25917 if test -z "$ac_cv_path_PKGCONFIG"; then
25918   ac_pt_PKGCONFIG=$PKGCONFIG
25919   # Extract the first word of "pkg-config", so it can be a program name with args.
25920 set dummy pkg-config; ac_word=$2
25921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25922 $as_echo_n "checking for $ac_word... " >&6; }
25923 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25924   $as_echo_n "(cached) " >&6
25925 else
25926   case $ac_pt_PKGCONFIG in
25927   [\\/]* | ?:[\\/]*)
25928   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25929   ;;
25930   *)
25931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25932 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25933 for as_dir in $as_dummy
25934 do
25935   IFS=$as_save_IFS
25936   test -z "$as_dir" && as_dir=.
25937     for ac_exec_ext in '' $ac_executable_extensions; do
25938   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25939     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25941     break 2
25942   fi
25943 done
25944   done
25945 IFS=$as_save_IFS
25946
25947   ;;
25948 esac
25949 fi
25950 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25951 if test -n "$ac_pt_PKGCONFIG"; then
25952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25953 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25954 else
25955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25956 $as_echo "no" >&6; }
25957 fi
25958
25959   if test "x$ac_pt_PKGCONFIG" = x; then
25960     PKGCONFIG="no"
25961   else
25962     case $cross_compiling:$ac_tool_warned in
25963 yes:)
25964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25966 ac_tool_warned=yes ;;
25967 esac
25968     PKGCONFIG=$ac_pt_PKGCONFIG
25969   fi
25970 else
25971   PKGCONFIG="$ac_cv_path_PKGCONFIG"
25972 fi
25973
25974     fi
25975
25976     if test "x$PKGCONFIG" != "xno"; then
25977       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25978 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25979             itexists=`
25980     if test -n "$LIBMETALINK_PCDIR"; then
25981       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25982       export PKG_CONFIG_LIBDIR
25983     fi
25984          $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25985
25986       if test -z "$itexists"; then
25987                         PKGCONFIG="no"
25988         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25989 $as_echo "no" >&6; }
25990       else
25991         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25992 $as_echo "found" >&6; }
25993       fi
25994     fi
25995
25996     fi
25997   fi
25998   if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
25999     addlib=`
26000     if test -n "$LIBMETALINK_PCDIR"; then
26001       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26002       export PKG_CONFIG_LIBDIR
26003     fi
26004        $PKGCONFIG --libs-only-l libmetalink`
26005     addld=`
26006     if test -n "$LIBMETALINK_PCDIR"; then
26007       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26008       export PKG_CONFIG_LIBDIR
26009     fi
26010        $PKGCONFIG --libs-only-L libmetalink`
26011     addcflags=`
26012     if test -n "$LIBMETALINK_PCDIR"; then
26013       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26014       export PKG_CONFIG_LIBDIR
26015     fi
26016        $PKGCONFIG --cflags-only-I libmetalink`
26017     version=`
26018     if test -n "$LIBMETALINK_PCDIR"; then
26019       PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26020       export PKG_CONFIG_LIBDIR
26021     fi
26022        $PKGCONFIG --modversion libmetalink`
26023     libmetalinklib=`echo $addld | $SED -e 's/-L//'`
26024   fi
26025   if test -n "$addlib"; then
26026
26027     clean_CPPFLAGS="$CPPFLAGS"
26028     clean_LDFLAGS="$LDFLAGS"
26029     clean_LIBS="$LIBS"
26030     CPPFLAGS="$clean_CPPFLAGS $addcflags"
26031     LDFLAGS="$clean_LDFLAGS $addld"
26032     LIBS="$addlib $clean_LIBS"
26033     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
26034 $as_echo_n "checking if libmetalink is recent enough... " >&6; }
26035     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26036 /* end confdefs.h.  */
26037
26038
26039 #       include <metalink/metalink.h>
26040
26041 int main (void)
26042 {
26043
26044         if(0 != metalink_strerror(0)) /* added in 0.1.0 */
26045           return 1;
26046
26047  ;
26048  return 0;
26049 }
26050
26051 _ACEOF
26052 if ac_fn_c_try_link "$LINENO"; then :
26053
26054       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
26055 $as_echo "yes ($version)" >&6; }
26056       want_metalink="yes"
26057
26058 else
26059
26060       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
26061 $as_echo "no ($version)" >&6; }
26062       { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
26063 $as_echo "$as_me: libmetalink library defective or too old" >&6;}
26064       want_metalink="no"
26065
26066 fi
26067 rm -f core conftest.err conftest.$ac_objext \
26068     conftest$ac_exeext conftest.$ac_ext
26069     CPPFLAGS="$clean_CPPFLAGS"
26070     LDFLAGS="$clean_LDFLAGS"
26071     LIBS="$clean_LIBS"
26072     if test "$want_metalink" = "yes"; then
26073
26074 $as_echo "#define USE_METALINK 1" >>confdefs.h
26075
26076       LIBMETALINK_LIBS=$addlib
26077       LIBMETALINK_LDFLAGS=$addld
26078       LIBMETALINK_CPPFLAGS=$addcflags
26079
26080
26081
26082       curl_mtlnk_msg="enabled"
26083     fi
26084
26085   fi
26086 fi
26087
26088
26089 OPT_LIBSSH2=off
26090
26091 # Check whether --with-libssh2 was given.
26092 if test "${with_libssh2+set}" = set; then :
26093   withval=$with_libssh2; OPT_LIBSSH2=$withval
26094 else
26095   OPT_LIBSSH2=no
26096 fi
26097
26098
26099
26100 OPT_LIBSSH=off
26101
26102 # Check whether --with-libssh was given.
26103 if test "${with_libssh+set}" = set; then :
26104   withval=$with_libssh; OPT_LIBSSH=$withval
26105 else
26106   OPT_LIBSSH=no
26107 fi
26108
26109
26110 if test X"$OPT_LIBSSH2" != Xno; then
26111     CLEANLDFLAGS="$LDFLAGS"
26112   CLEANCPPFLAGS="$CPPFLAGS"
26113   CLEANLIBS="$LIBS"
26114
26115   case "$OPT_LIBSSH2" in
26116   yes)
26117
26118     if test -n "$PKG_CONFIG"; then
26119       PKGCONFIG="$PKG_CONFIG"
26120     else
26121       if test -n "$ac_tool_prefix"; then
26122   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26123 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26125 $as_echo_n "checking for $ac_word... " >&6; }
26126 if ${ac_cv_path_PKGCONFIG+:} false; then :
26127   $as_echo_n "(cached) " >&6
26128 else
26129   case $PKGCONFIG in
26130   [\\/]* | ?:[\\/]*)
26131   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26132   ;;
26133   *)
26134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26135 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26136 for as_dir in $as_dummy
26137 do
26138   IFS=$as_save_IFS
26139   test -z "$as_dir" && as_dir=.
26140     for ac_exec_ext in '' $ac_executable_extensions; do
26141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26142     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26144     break 2
26145   fi
26146 done
26147   done
26148 IFS=$as_save_IFS
26149
26150   ;;
26151 esac
26152 fi
26153 PKGCONFIG=$ac_cv_path_PKGCONFIG
26154 if test -n "$PKGCONFIG"; then
26155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26156 $as_echo "$PKGCONFIG" >&6; }
26157 else
26158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26159 $as_echo "no" >&6; }
26160 fi
26161
26162
26163 fi
26164 if test -z "$ac_cv_path_PKGCONFIG"; then
26165   ac_pt_PKGCONFIG=$PKGCONFIG
26166   # Extract the first word of "pkg-config", so it can be a program name with args.
26167 set dummy pkg-config; ac_word=$2
26168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26169 $as_echo_n "checking for $ac_word... " >&6; }
26170 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26171   $as_echo_n "(cached) " >&6
26172 else
26173   case $ac_pt_PKGCONFIG in
26174   [\\/]* | ?:[\\/]*)
26175   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26176   ;;
26177   *)
26178   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26179 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26180 for as_dir in $as_dummy
26181 do
26182   IFS=$as_save_IFS
26183   test -z "$as_dir" && as_dir=.
26184     for ac_exec_ext in '' $ac_executable_extensions; do
26185   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26186     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26188     break 2
26189   fi
26190 done
26191   done
26192 IFS=$as_save_IFS
26193
26194   ;;
26195 esac
26196 fi
26197 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26198 if test -n "$ac_pt_PKGCONFIG"; then
26199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26200 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26201 else
26202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26203 $as_echo "no" >&6; }
26204 fi
26205
26206   if test "x$ac_pt_PKGCONFIG" = x; then
26207     PKGCONFIG="no"
26208   else
26209     case $cross_compiling:$ac_tool_warned in
26210 yes:)
26211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26213 ac_tool_warned=yes ;;
26214 esac
26215     PKGCONFIG=$ac_pt_PKGCONFIG
26216   fi
26217 else
26218   PKGCONFIG="$ac_cv_path_PKGCONFIG"
26219 fi
26220
26221     fi
26222
26223     if test "x$PKGCONFIG" != "xno"; then
26224       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
26225 $as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
26226             itexists=`
26227     if test -n ""; then
26228       PKG_CONFIG_LIBDIR=""
26229       export PKG_CONFIG_LIBDIR
26230     fi
26231          $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
26232
26233       if test -z "$itexists"; then
26234                         PKGCONFIG="no"
26235         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26236 $as_echo "no" >&6; }
26237       else
26238         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26239 $as_echo "found" >&6; }
26240       fi
26241     fi
26242
26243
26244     if test "$PKGCONFIG" != "no" ; then
26245       LIB_SSH2=`$PKGCONFIG --libs libssh2`
26246       LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
26247       CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
26248       version=`$PKGCONFIG --modversion libssh2`
26249       DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
26250     fi
26251
26252     ;;
26253   off)
26254         ;;
26255   *)
26256         PREFIX_SSH2=$OPT_LIBSSH2
26257     ;;
26258   esac
26259
26260     if test -n "$PREFIX_SSH2"; then
26261     LIB_SSH2="-lssh2"
26262     LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
26263     CPP_SSH2=-I${PREFIX_SSH2}/include
26264     DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
26265   fi
26266
26267   LDFLAGS="$LDFLAGS $LD_SSH2"
26268   CPPFLAGS="$CPPFLAGS $CPP_SSH2"
26269   LIBS="$LIB_SSH2 $LIBS"
26270
26271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
26272 $as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
26273 if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
26274   $as_echo_n "(cached) " >&6
26275 else
26276   ac_check_lib_save_LIBS=$LIBS
26277 LIBS="-lssh2  $LIBS"
26278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26279 /* end confdefs.h.  */
26280
26281
26282 #ifdef __cplusplus
26283 extern "C"
26284 #endif
26285 char libssh2_channel_open_ex ();
26286 int main (void)
26287 {
26288 return libssh2_channel_open_ex ();
26289  ;
26290  return 0;
26291 }
26292 _ACEOF
26293 if ac_fn_c_try_link "$LINENO"; then :
26294   ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
26295 else
26296   ac_cv_lib_ssh2_libssh2_channel_open_ex=no
26297 fi
26298 rm -f core conftest.err conftest.$ac_objext \
26299     conftest$ac_exeext conftest.$ac_ext
26300 LIBS=$ac_check_lib_save_LIBS
26301 fi
26302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
26303 $as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
26304 if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
26305   cat >>confdefs.h <<_ACEOF
26306 #define HAVE_LIBSSH2 1
26307 _ACEOF
26308
26309   LIBS="-lssh2 $LIBS"
26310
26311 fi
26312
26313
26314   for ac_header in libssh2.h
26315 do :
26316   ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
26317 if test "x$ac_cv_header_libssh2_h" = xyes; then :
26318   cat >>confdefs.h <<_ACEOF
26319 #define HAVE_LIBSSH2_H 1
26320 _ACEOF
26321  curl_ssh_msg="enabled (libSSH2)"
26322     LIBSSH2_ENABLED=1
26323
26324 $as_echo "#define USE_LIBSSH2 1" >>confdefs.h
26325
26326     USE_LIBSSH2=1
26327
26328
26329 fi
26330
26331 done
26332
26333
26334   if test X"$OPT_LIBSSH2" != Xoff &&
26335      test "$LIBSSH2_ENABLED" != "1"; then
26336     as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
26337   fi
26338
26339   if test "$LIBSSH2_ENABLED" = "1"; then
26340     if test -n "$DIR_SSH2"; then
26341
26342        if test "x$cross_compiling" != "xyes"; then
26343          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH2"
26344          export CURL_LIBRARY_PATH
26345          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&5
26346 $as_echo "$as_me: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&6;}
26347        fi
26348     fi
26349   else
26350         LDFLAGS=$CLEANLDFLAGS
26351     CPPFLAGS=$CLEANCPPFLAGS
26352     LIBS=$CLEANLIBS
26353   fi
26354 elif test X"$OPT_LIBSSH" != Xno; then
26355     CLEANLDFLAGS="$LDFLAGS"
26356   CLEANCPPFLAGS="$CPPFLAGS"
26357   CLEANLIBS="$LIBS"
26358
26359   case "$OPT_LIBSSH" in
26360   yes)
26361
26362     if test -n "$PKG_CONFIG"; then
26363       PKGCONFIG="$PKG_CONFIG"
26364     else
26365       if test -n "$ac_tool_prefix"; then
26366   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26367 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26369 $as_echo_n "checking for $ac_word... " >&6; }
26370 if ${ac_cv_path_PKGCONFIG+:} false; then :
26371   $as_echo_n "(cached) " >&6
26372 else
26373   case $PKGCONFIG in
26374   [\\/]* | ?:[\\/]*)
26375   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26376   ;;
26377   *)
26378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26379 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26380 for as_dir in $as_dummy
26381 do
26382   IFS=$as_save_IFS
26383   test -z "$as_dir" && as_dir=.
26384     for ac_exec_ext in '' $ac_executable_extensions; do
26385   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26386     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26388     break 2
26389   fi
26390 done
26391   done
26392 IFS=$as_save_IFS
26393
26394   ;;
26395 esac
26396 fi
26397 PKGCONFIG=$ac_cv_path_PKGCONFIG
26398 if test -n "$PKGCONFIG"; then
26399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26400 $as_echo "$PKGCONFIG" >&6; }
26401 else
26402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26403 $as_echo "no" >&6; }
26404 fi
26405
26406
26407 fi
26408 if test -z "$ac_cv_path_PKGCONFIG"; then
26409   ac_pt_PKGCONFIG=$PKGCONFIG
26410   # Extract the first word of "pkg-config", so it can be a program name with args.
26411 set dummy pkg-config; ac_word=$2
26412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26413 $as_echo_n "checking for $ac_word... " >&6; }
26414 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26415   $as_echo_n "(cached) " >&6
26416 else
26417   case $ac_pt_PKGCONFIG in
26418   [\\/]* | ?:[\\/]*)
26419   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26420   ;;
26421   *)
26422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26423 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26424 for as_dir in $as_dummy
26425 do
26426   IFS=$as_save_IFS
26427   test -z "$as_dir" && as_dir=.
26428     for ac_exec_ext in '' $ac_executable_extensions; do
26429   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26430     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26432     break 2
26433   fi
26434 done
26435   done
26436 IFS=$as_save_IFS
26437
26438   ;;
26439 esac
26440 fi
26441 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26442 if test -n "$ac_pt_PKGCONFIG"; then
26443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26444 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26445 else
26446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26447 $as_echo "no" >&6; }
26448 fi
26449
26450   if test "x$ac_pt_PKGCONFIG" = x; then
26451     PKGCONFIG="no"
26452   else
26453     case $cross_compiling:$ac_tool_warned in
26454 yes:)
26455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26457 ac_tool_warned=yes ;;
26458 esac
26459     PKGCONFIG=$ac_pt_PKGCONFIG
26460   fi
26461 else
26462   PKGCONFIG="$ac_cv_path_PKGCONFIG"
26463 fi
26464
26465     fi
26466
26467     if test "x$PKGCONFIG" != "xno"; then
26468       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5
26469 $as_echo_n "checking for libssh options with pkg-config... " >&6; }
26470             itexists=`
26471     if test -n ""; then
26472       PKG_CONFIG_LIBDIR=""
26473       export PKG_CONFIG_LIBDIR
26474     fi
26475          $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1`
26476
26477       if test -z "$itexists"; then
26478                         PKGCONFIG="no"
26479         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26480 $as_echo "no" >&6; }
26481       else
26482         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26483 $as_echo "found" >&6; }
26484       fi
26485     fi
26486
26487
26488     if test "$PKGCONFIG" != "no" ; then
26489       LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
26490       LD_SSH=`$PKGCONFIG --libs-only-L libssh`
26491       CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
26492       version=`$PKGCONFIG --modversion libssh`
26493       DIR_SSH=`echo $LD_SSH | $SED -e 's/-L//'`
26494     fi
26495
26496     ;;
26497   off)
26498         ;;
26499   *)
26500         PREFIX_SSH=$OPT_LIBSSH
26501     ;;
26502   esac
26503
26504     if test -n "$PREFIX_SSH"; then
26505     LIB_SSH="-lssh"
26506     LD_SSH=-L${PREFIX_SSH}/lib$libsuff
26507     CPP_SSH=-I${PREFIX_SSH}/include
26508     DIR_SSH=${PREFIX_SSH}/lib$libsuff
26509   fi
26510
26511   LDFLAGS="$LDFLAGS $LD_SSH"
26512   CPPFLAGS="$CPPFLAGS $CPP_SSH"
26513   LIBS="$LIB_SSH $LIBS"
26514
26515   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5
26516 $as_echo_n "checking for ssh_new in -lssh... " >&6; }
26517 if ${ac_cv_lib_ssh_ssh_new+:} false; then :
26518   $as_echo_n "(cached) " >&6
26519 else
26520   ac_check_lib_save_LIBS=$LIBS
26521 LIBS="-lssh  $LIBS"
26522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26523 /* end confdefs.h.  */
26524
26525
26526 #ifdef __cplusplus
26527 extern "C"
26528 #endif
26529 char ssh_new ();
26530 int main (void)
26531 {
26532 return ssh_new ();
26533  ;
26534  return 0;
26535 }
26536 _ACEOF
26537 if ac_fn_c_try_link "$LINENO"; then :
26538   ac_cv_lib_ssh_ssh_new=yes
26539 else
26540   ac_cv_lib_ssh_ssh_new=no
26541 fi
26542 rm -f core conftest.err conftest.$ac_objext \
26543     conftest$ac_exeext conftest.$ac_ext
26544 LIBS=$ac_check_lib_save_LIBS
26545 fi
26546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5
26547 $as_echo "$ac_cv_lib_ssh_ssh_new" >&6; }
26548 if test "x$ac_cv_lib_ssh_ssh_new" = xyes; then :
26549   cat >>confdefs.h <<_ACEOF
26550 #define HAVE_LIBSSH 1
26551 _ACEOF
26552
26553   LIBS="-lssh $LIBS"
26554
26555 fi
26556
26557
26558   for ac_header in libssh/libssh.h
26559 do :
26560   ac_fn_c_check_header_mongrel "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default"
26561 if test "x$ac_cv_header_libssh_libssh_h" = xyes; then :
26562   cat >>confdefs.h <<_ACEOF
26563 #define HAVE_LIBSSH_LIBSSH_H 1
26564 _ACEOF
26565  curl_ssh_msg="enabled (libSSH)"
26566     LIBSSH_ENABLED=1
26567
26568 $as_echo "#define USE_LIBSSH 1" >>confdefs.h
26569
26570     USE_LIBSSH=1
26571
26572
26573 fi
26574
26575 done
26576
26577
26578   if test X"$OPT_LIBSSH" != Xoff &&
26579      test "$LIBSSH_ENABLED" != "1"; then
26580     as_fn_error $? "libSSH libs and/or directories were not found where specified!" "$LINENO" 5
26581   fi
26582
26583   if test "$LIBSSH_ENABLED" = "1"; then
26584     if test -n "$DIR_SSH"; then
26585
26586        if test "x$cross_compiling" != "xyes"; then
26587          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH"
26588          export CURL_LIBRARY_PATH
26589          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to CURL_LIBRARY_PATH" >&5
26590 $as_echo "$as_me: Added $DIR_SSH to CURL_LIBRARY_PATH" >&6;}
26591        fi
26592     fi
26593   else
26594         LDFLAGS=$CLEANLDFLAGS
26595     CPPFLAGS=$CLEANCPPFLAGS
26596     LIBS=$CLEANLIBS
26597   fi
26598 fi
26599
26600
26601 OPT_LIBRTMP=off
26602
26603 # Check whether --with-librtmp was given.
26604 if test "${with_librtmp+set}" = set; then :
26605   withval=$with_librtmp; OPT_LIBRTMP=$withval
26606 fi
26607
26608
26609 if test X"$OPT_LIBRTMP" != Xno; then
26610     CLEANLDFLAGS="$LDFLAGS"
26611   CLEANCPPFLAGS="$CPPFLAGS"
26612   CLEANLIBS="$LIBS"
26613
26614   case "$OPT_LIBRTMP" in
26615   yes)
26616
26617     if test -n "$PKG_CONFIG"; then
26618       PKGCONFIG="$PKG_CONFIG"
26619     else
26620       if test -n "$ac_tool_prefix"; then
26621   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26622 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26624 $as_echo_n "checking for $ac_word... " >&6; }
26625 if ${ac_cv_path_PKGCONFIG+:} false; then :
26626   $as_echo_n "(cached) " >&6
26627 else
26628   case $PKGCONFIG in
26629   [\\/]* | ?:[\\/]*)
26630   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26631   ;;
26632   *)
26633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26634 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26635 for as_dir in $as_dummy
26636 do
26637   IFS=$as_save_IFS
26638   test -z "$as_dir" && as_dir=.
26639     for ac_exec_ext in '' $ac_executable_extensions; do
26640   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26641     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26643     break 2
26644   fi
26645 done
26646   done
26647 IFS=$as_save_IFS
26648
26649   ;;
26650 esac
26651 fi
26652 PKGCONFIG=$ac_cv_path_PKGCONFIG
26653 if test -n "$PKGCONFIG"; then
26654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26655 $as_echo "$PKGCONFIG" >&6; }
26656 else
26657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26658 $as_echo "no" >&6; }
26659 fi
26660
26661
26662 fi
26663 if test -z "$ac_cv_path_PKGCONFIG"; then
26664   ac_pt_PKGCONFIG=$PKGCONFIG
26665   # Extract the first word of "pkg-config", so it can be a program name with args.
26666 set dummy pkg-config; ac_word=$2
26667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26668 $as_echo_n "checking for $ac_word... " >&6; }
26669 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26670   $as_echo_n "(cached) " >&6
26671 else
26672   case $ac_pt_PKGCONFIG in
26673   [\\/]* | ?:[\\/]*)
26674   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26675   ;;
26676   *)
26677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26678 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26679 for as_dir in $as_dummy
26680 do
26681   IFS=$as_save_IFS
26682   test -z "$as_dir" && as_dir=.
26683     for ac_exec_ext in '' $ac_executable_extensions; do
26684   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26685     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26687     break 2
26688   fi
26689 done
26690   done
26691 IFS=$as_save_IFS
26692
26693   ;;
26694 esac
26695 fi
26696 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26697 if test -n "$ac_pt_PKGCONFIG"; then
26698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26699 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26700 else
26701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26702 $as_echo "no" >&6; }
26703 fi
26704
26705   if test "x$ac_pt_PKGCONFIG" = x; then
26706     PKGCONFIG="no"
26707   else
26708     case $cross_compiling:$ac_tool_warned in
26709 yes:)
26710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26712 ac_tool_warned=yes ;;
26713 esac
26714     PKGCONFIG=$ac_pt_PKGCONFIG
26715   fi
26716 else
26717   PKGCONFIG="$ac_cv_path_PKGCONFIG"
26718 fi
26719
26720     fi
26721
26722     if test "x$PKGCONFIG" != "xno"; then
26723       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
26724 $as_echo_n "checking for librtmp options with pkg-config... " >&6; }
26725             itexists=`
26726     if test -n ""; then
26727       PKG_CONFIG_LIBDIR=""
26728       export PKG_CONFIG_LIBDIR
26729     fi
26730          $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
26731
26732       if test -z "$itexists"; then
26733                         PKGCONFIG="no"
26734         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26735 $as_echo "no" >&6; }
26736       else
26737         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26738 $as_echo "found" >&6; }
26739       fi
26740     fi
26741
26742
26743     if test "$PKGCONFIG" != "no" ; then
26744       LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
26745       LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
26746       CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
26747       version=`$PKGCONFIG --modversion librtmp`
26748       DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
26749     else
26750                   as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
26751     fi
26752
26753     ;;
26754   off)
26755         LIB_RTMP="-lrtmp"
26756     ;;
26757   *)
26758         LIB_RTMP="-lrtmp"
26759     PREFIX_RTMP=$OPT_LIBRTMP
26760     ;;
26761   esac
26762
26763     if test -n "$PREFIX_RTMP"; then
26764     LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
26765     CPP_RTMP=-I${PREFIX_RTMP}/include
26766     DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
26767   fi
26768
26769   LDFLAGS="$LDFLAGS $LD_RTMP"
26770   CPPFLAGS="$CPPFLAGS $CPP_RTMP"
26771   LIBS="$LIB_RTMP $LIBS"
26772
26773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
26774 $as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
26775 if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
26776   $as_echo_n "(cached) " >&6
26777 else
26778   ac_check_lib_save_LIBS=$LIBS
26779 LIBS="-lrtmp  $LIBS"
26780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26781 /* end confdefs.h.  */
26782
26783
26784 #ifdef __cplusplus
26785 extern "C"
26786 #endif
26787 char RTMP_Init ();
26788 int main (void)
26789 {
26790 return RTMP_Init ();
26791  ;
26792  return 0;
26793 }
26794 _ACEOF
26795 if ac_fn_c_try_link "$LINENO"; then :
26796   ac_cv_lib_rtmp_RTMP_Init=yes
26797 else
26798   ac_cv_lib_rtmp_RTMP_Init=no
26799 fi
26800 rm -f core conftest.err conftest.$ac_objext \
26801     conftest$ac_exeext conftest.$ac_ext
26802 LIBS=$ac_check_lib_save_LIBS
26803 fi
26804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
26805 $as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
26806 if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
26807
26808      for ac_header in librtmp/rtmp.h
26809 do :
26810   ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
26811 if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
26812   cat >>confdefs.h <<_ACEOF
26813 #define HAVE_LIBRTMP_RTMP_H 1
26814 _ACEOF
26815  curl_rtmp_msg="enabled (librtmp)"
26816         LIBRTMP_ENABLED=1
26817
26818 $as_echo "#define USE_LIBRTMP 1" >>confdefs.h
26819
26820         USE_LIBRTMP=1
26821
26822
26823 fi
26824
26825 done
26826
26827
26828 else
26829         LDFLAGS=$CLEANLDFLAGS
26830       CPPFLAGS=$CLEANCPPFLAGS
26831       LIBS=$CLEANLIBS
26832
26833 fi
26834
26835
26836   if test X"$OPT_LIBRTMP" != Xoff &&
26837      test "$LIBRTMP_ENABLED" != "1"; then
26838     as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
26839   fi
26840
26841 fi
26842
26843
26844 versioned_symbols_flavour=
26845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
26846 $as_echo_n "checking whether versioned symbols are wanted... " >&6; }
26847 # Check whether --enable-versioned-symbols was given.
26848 if test "${enable_versioned_symbols+set}" = set; then :
26849   enableval=$enable_versioned_symbols;  case "$enableval" in
26850   yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26851 $as_echo "yes" >&6; }
26852     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
26853 $as_echo_n "checking if libraries can be versioned... " >&6; }
26854     GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
26855     if test -z "$GLD"; then
26856         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26857 $as_echo "no" >&6; }
26858         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
26859 $as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
26860     else
26861         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26862 $as_echo "yes" >&6; }
26863         if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
26864           versioned_symbols_flavour="MULTISSL_"
26865         elif test "x$OPENSSL_ENABLED" = "x1"; then
26866           versioned_symbols_flavour="OPENSSL_"
26867         elif test "x$GNUTLS_ENABLED" = "x1"; then
26868           versioned_symbols_flavour="GNUTLS_"
26869         elif test "x$NSS_ENABLED" = "x1"; then
26870           versioned_symbols_flavour="NSS_"
26871         elif test "x$WOLFSSL_ENABLED" = "x1"; then
26872           versioned_symbols_flavour="WOLFSSL_"
26873         elif test "x$WINSSL_ENABLED" = "x1"; then
26874           versioned_symbols_flavour="SCHANNEL_"
26875         elif test "x$SECURETRANSPORT_ENABLED" = "x1"; then
26876           versioned_symbols_flavour="SECURE_TRANSPORT_"
26877         else
26878           versioned_symbols_flavour=""
26879         fi
26880         versioned_symbols="yes"
26881     fi
26882     ;;
26883
26884   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26885 $as_echo "no" >&6; }
26886     ;;
26887   esac
26888
26889 else
26890
26891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26892 $as_echo "no" >&6; }
26893
26894
26895 fi
26896
26897
26898 CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
26899
26900  if test "x$versioned_symbols" = 'xyes'; then
26901   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
26902   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
26903 else
26904   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
26905   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
26906 fi
26907
26908
26909
26910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
26911 $as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
26912 OPT_WINIDN="default"
26913
26914 # Check whether --with-winidn was given.
26915 if test "${with_winidn+set}" = set; then :
26916   withval=$with_winidn; OPT_WINIDN=$withval
26917 fi
26918
26919 case "$OPT_WINIDN" in
26920   no|default)
26921         want_winidn="no"
26922     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26923 $as_echo "no" >&6; }
26924     ;;
26925   yes)
26926         want_winidn="yes"
26927     want_winidn_path="default"
26928     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26929 $as_echo "yes" >&6; }
26930     ;;
26931   *)
26932         want_winidn="yes"
26933     want_winidn_path="$withval"
26934     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
26935 $as_echo "yes ($withval)" >&6; }
26936     ;;
26937 esac
26938
26939 if test "$want_winidn" = "yes"; then
26940     clean_CPPFLAGS="$CPPFLAGS"
26941   clean_LDFLAGS="$LDFLAGS"
26942   clean_LIBS="$LIBS"
26943   WINIDN_LIBS="-lnormaliz"
26944   WINIDN_CPPFLAGS="-DWINVER=0x0600"
26945   #
26946   if test "$want_winidn_path" != "default"; then
26947             WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
26948     WINIDN_CPPFLAGS="-I$want_winidn_path/include"
26949     WINIDN_DIR="$want_winidn_path/lib$libsuff"
26950   fi
26951   #
26952   CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
26953   LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
26954   LIBS="$WINIDN_LIBS $LIBS"
26955   #
26956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
26957 $as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
26958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26959 /* end confdefs.h.  */
26960
26961
26962       #include <windows.h>
26963
26964 int main (void)
26965 {
26966
26967       IdnToUnicode(0, NULL, 0, NULL, 0);
26968
26969  ;
26970  return 0;
26971 }
26972
26973 _ACEOF
26974 if ac_fn_c_try_link "$LINENO"; then :
26975
26976     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26977 $as_echo "yes" >&6; }
26978     tst_links_winidn="yes"
26979
26980 else
26981
26982     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26983 $as_echo "no" >&6; }
26984     tst_links_winidn="no"
26985
26986 fi
26987 rm -f core conftest.err conftest.$ac_objext \
26988     conftest$ac_exeext conftest.$ac_ext
26989   #
26990   if test "$tst_links_winidn" = "yes"; then
26991
26992 $as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
26993
26994
26995 $as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
26996
26997     IDN_ENABLED=1
26998
26999     curl_idn_msg="enabled (Windows-native)"
27000   else
27001     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
27002 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
27003     CPPFLAGS="$clean_CPPFLAGS"
27004     LDFLAGS="$clean_LDFLAGS"
27005     LIBS="$clean_LIBS"
27006   fi
27007 fi
27008
27009
27010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
27011 $as_echo_n "checking whether to build with libidn2... " >&6; }
27012 OPT_IDN="default"
27013
27014 # Check whether --with-libidn2 was given.
27015 if test "${with_libidn2+set}" = set; then :
27016   withval=$with_libidn2; OPT_IDN=$withval
27017 fi
27018
27019 case "$OPT_IDN" in
27020   no)
27021         want_idn="no"
27022     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27023 $as_echo "no" >&6; }
27024     ;;
27025   default)
27026         want_idn="yes"
27027     want_idn_path="default"
27028     { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
27029 $as_echo "(assumed) yes" >&6; }
27030     ;;
27031   yes)
27032         want_idn="yes"
27033     want_idn_path="default"
27034     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27035 $as_echo "yes" >&6; }
27036     ;;
27037   *)
27038         want_idn="yes"
27039     want_idn_path="$withval"
27040     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
27041 $as_echo "yes ($withval)" >&6; }
27042     ;;
27043 esac
27044
27045 if test "$want_idn" = "yes"; then
27046     clean_CPPFLAGS="$CPPFLAGS"
27047   clean_LDFLAGS="$LDFLAGS"
27048   clean_LIBS="$LIBS"
27049   PKGCONFIG="no"
27050   #
27051   if test "$want_idn_path" != "default"; then
27052         IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
27053
27054     if test -n "$PKG_CONFIG"; then
27055       PKGCONFIG="$PKG_CONFIG"
27056     else
27057       if test -n "$ac_tool_prefix"; then
27058   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27059 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27061 $as_echo_n "checking for $ac_word... " >&6; }
27062 if ${ac_cv_path_PKGCONFIG+:} false; then :
27063   $as_echo_n "(cached) " >&6
27064 else
27065   case $PKGCONFIG in
27066   [\\/]* | ?:[\\/]*)
27067   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27068   ;;
27069   *)
27070   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27071 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27072 for as_dir in $as_dummy
27073 do
27074   IFS=$as_save_IFS
27075   test -z "$as_dir" && as_dir=.
27076     for ac_exec_ext in '' $ac_executable_extensions; do
27077   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27078     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27080     break 2
27081   fi
27082 done
27083   done
27084 IFS=$as_save_IFS
27085
27086   ;;
27087 esac
27088 fi
27089 PKGCONFIG=$ac_cv_path_PKGCONFIG
27090 if test -n "$PKGCONFIG"; then
27091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27092 $as_echo "$PKGCONFIG" >&6; }
27093 else
27094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27095 $as_echo "no" >&6; }
27096 fi
27097
27098
27099 fi
27100 if test -z "$ac_cv_path_PKGCONFIG"; then
27101   ac_pt_PKGCONFIG=$PKGCONFIG
27102   # Extract the first word of "pkg-config", so it can be a program name with args.
27103 set dummy pkg-config; ac_word=$2
27104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27105 $as_echo_n "checking for $ac_word... " >&6; }
27106 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27107   $as_echo_n "(cached) " >&6
27108 else
27109   case $ac_pt_PKGCONFIG in
27110   [\\/]* | ?:[\\/]*)
27111   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27112   ;;
27113   *)
27114   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27115 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27116 for as_dir in $as_dummy
27117 do
27118   IFS=$as_save_IFS
27119   test -z "$as_dir" && as_dir=.
27120     for ac_exec_ext in '' $ac_executable_extensions; do
27121   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27122     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27124     break 2
27125   fi
27126 done
27127   done
27128 IFS=$as_save_IFS
27129
27130   ;;
27131 esac
27132 fi
27133 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27134 if test -n "$ac_pt_PKGCONFIG"; then
27135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27136 $as_echo "$ac_pt_PKGCONFIG" >&6; }
27137 else
27138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27139 $as_echo "no" >&6; }
27140 fi
27141
27142   if test "x$ac_pt_PKGCONFIG" = x; then
27143     PKGCONFIG="no"
27144   else
27145     case $cross_compiling:$ac_tool_warned in
27146 yes:)
27147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27149 ac_tool_warned=yes ;;
27150 esac
27151     PKGCONFIG=$ac_pt_PKGCONFIG
27152   fi
27153 else
27154   PKGCONFIG="$ac_cv_path_PKGCONFIG"
27155 fi
27156
27157     fi
27158
27159     if test "x$PKGCONFIG" != "xno"; then
27160       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27161 $as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27162             itexists=`
27163     if test -n "$IDN_PCDIR"; then
27164       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27165       export PKG_CONFIG_LIBDIR
27166     fi
27167          $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27168
27169       if test -z "$itexists"; then
27170                         PKGCONFIG="no"
27171         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27172 $as_echo "no" >&6; }
27173       else
27174         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27175 $as_echo "found" >&6; }
27176       fi
27177     fi
27178
27179     if test "$PKGCONFIG" != "no"; then
27180       IDN_LIBS=`
27181     if test -n "$IDN_PCDIR"; then
27182       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27183       export PKG_CONFIG_LIBDIR
27184     fi
27185          $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27186       IDN_LDFLAGS=`
27187     if test -n "$IDN_PCDIR"; then
27188       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27189       export PKG_CONFIG_LIBDIR
27190     fi
27191          $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27192       IDN_CPPFLAGS=`
27193     if test -n "$IDN_PCDIR"; then
27194       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27195       export PKG_CONFIG_LIBDIR
27196     fi
27197          $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27198       IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27199     else
27200             IDN_LIBS="-lidn2"
27201       IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
27202       IDN_CPPFLAGS="-I$want_idn_path/include"
27203       IDN_DIR="$want_idn_path/lib$libsuff"
27204     fi
27205   else
27206
27207     if test -n "$PKG_CONFIG"; then
27208       PKGCONFIG="$PKG_CONFIG"
27209     else
27210       if test -n "$ac_tool_prefix"; then
27211   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27212 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27214 $as_echo_n "checking for $ac_word... " >&6; }
27215 if ${ac_cv_path_PKGCONFIG+:} false; then :
27216   $as_echo_n "(cached) " >&6
27217 else
27218   case $PKGCONFIG in
27219   [\\/]* | ?:[\\/]*)
27220   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27221   ;;
27222   *)
27223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27224 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27225 for as_dir in $as_dummy
27226 do
27227   IFS=$as_save_IFS
27228   test -z "$as_dir" && as_dir=.
27229     for ac_exec_ext in '' $ac_executable_extensions; do
27230   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27231     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27233     break 2
27234   fi
27235 done
27236   done
27237 IFS=$as_save_IFS
27238
27239   ;;
27240 esac
27241 fi
27242 PKGCONFIG=$ac_cv_path_PKGCONFIG
27243 if test -n "$PKGCONFIG"; then
27244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27245 $as_echo "$PKGCONFIG" >&6; }
27246 else
27247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27248 $as_echo "no" >&6; }
27249 fi
27250
27251
27252 fi
27253 if test -z "$ac_cv_path_PKGCONFIG"; then
27254   ac_pt_PKGCONFIG=$PKGCONFIG
27255   # Extract the first word of "pkg-config", so it can be a program name with args.
27256 set dummy pkg-config; ac_word=$2
27257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27258 $as_echo_n "checking for $ac_word... " >&6; }
27259 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27260   $as_echo_n "(cached) " >&6
27261 else
27262   case $ac_pt_PKGCONFIG in
27263   [\\/]* | ?:[\\/]*)
27264   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27265   ;;
27266   *)
27267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27268 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27269 for as_dir in $as_dummy
27270 do
27271   IFS=$as_save_IFS
27272   test -z "$as_dir" && as_dir=.
27273     for ac_exec_ext in '' $ac_executable_extensions; do
27274   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27275     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27277     break 2
27278   fi
27279 done
27280   done
27281 IFS=$as_save_IFS
27282
27283   ;;
27284 esac
27285 fi
27286 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27287 if test -n "$ac_pt_PKGCONFIG"; then
27288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27289 $as_echo "$ac_pt_PKGCONFIG" >&6; }
27290 else
27291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27292 $as_echo "no" >&6; }
27293 fi
27294
27295   if test "x$ac_pt_PKGCONFIG" = x; then
27296     PKGCONFIG="no"
27297   else
27298     case $cross_compiling:$ac_tool_warned in
27299 yes:)
27300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27302 ac_tool_warned=yes ;;
27303 esac
27304     PKGCONFIG=$ac_pt_PKGCONFIG
27305   fi
27306 else
27307   PKGCONFIG="$ac_cv_path_PKGCONFIG"
27308 fi
27309
27310     fi
27311
27312     if test "x$PKGCONFIG" != "xno"; then
27313       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27314 $as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27315             itexists=`
27316     if test -n ""; then
27317       PKG_CONFIG_LIBDIR=""
27318       export PKG_CONFIG_LIBDIR
27319     fi
27320          $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27321
27322       if test -z "$itexists"; then
27323                         PKGCONFIG="no"
27324         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27325 $as_echo "no" >&6; }
27326       else
27327         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27328 $as_echo "found" >&6; }
27329       fi
27330     fi
27331
27332     if test "$PKGCONFIG" != "no"; then
27333       IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27334       IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27335       IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27336       IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27337     else
27338             IDN_LIBS="-lidn2"
27339     fi
27340   fi
27341   #
27342   if test "$PKGCONFIG" != "no"; then
27343     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
27344 $as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27345     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27346 $as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27347     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27348 $as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27349     { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
27350 $as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
27351   else
27352     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
27353 $as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27354     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27355 $as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27356     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27357 $as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27358     { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
27359 $as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
27360   fi
27361   #
27362   CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
27363   LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
27364   LIBS="$IDN_LIBS $LIBS"
27365   #
27366   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
27367 $as_echo_n "checking if idn2_lookup_ul can be linked... " >&6; }
27368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27369 /* end confdefs.h.  */
27370
27371
27372 #define idn2_lookup_ul innocuous_idn2_lookup_ul
27373 #ifdef __STDC__
27374 # include <limits.h>
27375 #else
27376 # include <assert.h>
27377 #endif
27378 #undef idn2_lookup_ul
27379 #ifdef __cplusplus
27380 extern "C"
27381 #endif
27382 char idn2_lookup_ul ();
27383 #if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
27384 choke me
27385 #endif
27386
27387 int main (void)
27388 {
27389 return idn2_lookup_ul ();
27390  ;
27391  return 0;
27392 }
27393
27394 _ACEOF
27395 if ac_fn_c_try_link "$LINENO"; then :
27396
27397     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27398 $as_echo "yes" >&6; }
27399     tst_links_libidn="yes"
27400
27401 else
27402
27403     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27404 $as_echo "no" >&6; }
27405     tst_links_libidn="no"
27406
27407 fi
27408 rm -f core conftest.err conftest.$ac_objext \
27409     conftest$ac_exeext conftest.$ac_ext
27410   #
27411   for ac_header in idn2.h
27412 do :
27413   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27414 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27415 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27416   cat >>confdefs.h <<_ACEOF
27417 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27418 _ACEOF
27419
27420 fi
27421
27422 done
27423
27424
27425   if test "$tst_links_libidn" = "yes"; then
27426
27427 $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
27428
27429
27430     IDN_ENABLED=1
27431
27432     curl_idn_msg="enabled (libidn2)"
27433     if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
27434       CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$IDN_DIR"
27435       export CURL_LIBRARY_PATH
27436       { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to CURL_LIBRARY_PATH" >&5
27437 $as_echo "$as_me: Added $IDN_DIR to CURL_LIBRARY_PATH" >&6;}
27438     fi
27439   else
27440     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
27441 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
27442     CPPFLAGS="$clean_CPPFLAGS"
27443     LDFLAGS="$clean_LDFLAGS"
27444     LIBS="$clean_LIBS"
27445   fi
27446 fi
27447
27448
27449
27450
27451
27452 OPT_H2="yes"
27453
27454 if test "x$disable_http" = "xyes"; then
27455   # without HTTP, nghttp2 is no use
27456   OPT_H2="no"
27457 fi
27458
27459
27460 # Check whether --with-nghttp2 was given.
27461 if test "${with_nghttp2+set}" = set; then :
27462   withval=$with_nghttp2; OPT_H2=$withval
27463 fi
27464
27465 case "$OPT_H2" in
27466   no)
27467         want_h2="no"
27468     ;;
27469   yes)
27470         want_h2="default"
27471     want_h2_path=""
27472     ;;
27473   *)
27474         want_h2="yes"
27475     want_h2_path="$withval/lib/pkgconfig"
27476     ;;
27477 esac
27478
27479 curl_h2_msg="disabled (--with-nghttp2)"
27480 if test X"$want_h2" != Xno; then
27481     CLEANLDFLAGS="$LDFLAGS"
27482   CLEANCPPFLAGS="$CPPFLAGS"
27483   CLEANLIBS="$LIBS"
27484
27485
27486     if test -n "$PKG_CONFIG"; then
27487       PKGCONFIG="$PKG_CONFIG"
27488     else
27489       if test -n "$ac_tool_prefix"; then
27490   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27491 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27493 $as_echo_n "checking for $ac_word... " >&6; }
27494 if ${ac_cv_path_PKGCONFIG+:} false; then :
27495   $as_echo_n "(cached) " >&6
27496 else
27497   case $PKGCONFIG in
27498   [\\/]* | ?:[\\/]*)
27499   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27500   ;;
27501   *)
27502   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27503 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27504 for as_dir in $as_dummy
27505 do
27506   IFS=$as_save_IFS
27507   test -z "$as_dir" && as_dir=.
27508     for ac_exec_ext in '' $ac_executable_extensions; do
27509   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27510     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27512     break 2
27513   fi
27514 done
27515   done
27516 IFS=$as_save_IFS
27517
27518   ;;
27519 esac
27520 fi
27521 PKGCONFIG=$ac_cv_path_PKGCONFIG
27522 if test -n "$PKGCONFIG"; then
27523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27524 $as_echo "$PKGCONFIG" >&6; }
27525 else
27526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27527 $as_echo "no" >&6; }
27528 fi
27529
27530
27531 fi
27532 if test -z "$ac_cv_path_PKGCONFIG"; then
27533   ac_pt_PKGCONFIG=$PKGCONFIG
27534   # Extract the first word of "pkg-config", so it can be a program name with args.
27535 set dummy pkg-config; ac_word=$2
27536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27537 $as_echo_n "checking for $ac_word... " >&6; }
27538 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27539   $as_echo_n "(cached) " >&6
27540 else
27541   case $ac_pt_PKGCONFIG in
27542   [\\/]* | ?:[\\/]*)
27543   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27544   ;;
27545   *)
27546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27547 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27548 for as_dir in $as_dummy
27549 do
27550   IFS=$as_save_IFS
27551   test -z "$as_dir" && as_dir=.
27552     for ac_exec_ext in '' $ac_executable_extensions; do
27553   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27554     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27556     break 2
27557   fi
27558 done
27559   done
27560 IFS=$as_save_IFS
27561
27562   ;;
27563 esac
27564 fi
27565 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27566 if test -n "$ac_pt_PKGCONFIG"; then
27567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27568 $as_echo "$ac_pt_PKGCONFIG" >&6; }
27569 else
27570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27571 $as_echo "no" >&6; }
27572 fi
27573
27574   if test "x$ac_pt_PKGCONFIG" = x; then
27575     PKGCONFIG="no"
27576   else
27577     case $cross_compiling:$ac_tool_warned in
27578 yes:)
27579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27581 ac_tool_warned=yes ;;
27582 esac
27583     PKGCONFIG=$ac_pt_PKGCONFIG
27584   fi
27585 else
27586   PKGCONFIG="$ac_cv_path_PKGCONFIG"
27587 fi
27588
27589     fi
27590
27591     if test "x$PKGCONFIG" != "xno"; then
27592       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
27593 $as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
27594             itexists=`
27595     if test -n "$want_h2_path"; then
27596       PKG_CONFIG_LIBDIR="$want_h2_path"
27597       export PKG_CONFIG_LIBDIR
27598     fi
27599          $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
27600
27601       if test -z "$itexists"; then
27602                         PKGCONFIG="no"
27603         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27604 $as_echo "no" >&6; }
27605       else
27606         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27607 $as_echo "found" >&6; }
27608       fi
27609     fi
27610
27611
27612   if test "$PKGCONFIG" != "no" ; then
27613     LIB_H2=`
27614     if test -n "$want_h2_path"; then
27615       PKG_CONFIG_LIBDIR="$want_h2_path"
27616       export PKG_CONFIG_LIBDIR
27617     fi
27618
27619       $PKGCONFIG --libs-only-l libnghttp2`
27620     { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
27621 $as_echo "$as_me: -l is $LIB_H2" >&6;}
27622
27623     CPP_H2=`
27624     if test -n "$want_h2_path"; then
27625       PKG_CONFIG_LIBDIR="$want_h2_path"
27626       export PKG_CONFIG_LIBDIR
27627     fi
27628        $PKGCONFIG --cflags-only-I libnghttp2`
27629     { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
27630 $as_echo "$as_me: -I is $CPP_H2" >&6;}
27631
27632     LD_H2=`
27633     if test -n "$want_h2_path"; then
27634       PKG_CONFIG_LIBDIR="$want_h2_path"
27635       export PKG_CONFIG_LIBDIR
27636     fi
27637
27638       $PKGCONFIG --libs-only-L libnghttp2`
27639     { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
27640 $as_echo "$as_me: -L is $LD_H2" >&6;}
27641
27642     LDFLAGS="$LDFLAGS $LD_H2"
27643     CPPFLAGS="$CPPFLAGS $CPP_H2"
27644     LIBS="$LIB_H2 $LIBS"
27645
27646     # use nghttp2_option_set_no_recv_client_magic to require nghttp2
27647     # >= 1.0.0
27648     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2" >&5
27649 $as_echo_n "checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2... " >&6; }
27650 if ${ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic+:} false; then :
27651   $as_echo_n "(cached) " >&6
27652 else
27653   ac_check_lib_save_LIBS=$LIBS
27654 LIBS="-lnghttp2  $LIBS"
27655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27656 /* end confdefs.h.  */
27657
27658
27659 #ifdef __cplusplus
27660 extern "C"
27661 #endif
27662 char nghttp2_option_set_no_recv_client_magic ();
27663 int main (void)
27664 {
27665 return nghttp2_option_set_no_recv_client_magic ();
27666  ;
27667  return 0;
27668 }
27669 _ACEOF
27670 if ac_fn_c_try_link "$LINENO"; then :
27671   ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=yes
27672 else
27673   ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=no
27674 fi
27675 rm -f core conftest.err conftest.$ac_objext \
27676     conftest$ac_exeext conftest.$ac_ext
27677 LIBS=$ac_check_lib_save_LIBS
27678 fi
27679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&5
27680 $as_echo "$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&6; }
27681 if test "x$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" = xyes; then :
27682
27683        for ac_header in nghttp2/nghttp2.h
27684 do :
27685   ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
27686 if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
27687   cat >>confdefs.h <<_ACEOF
27688 #define HAVE_NGHTTP2_NGHTTP2_H 1
27689 _ACEOF
27690  curl_h2_msg="enabled (nghttp2)"
27691           NGHTTP2_ENABLED=1
27692
27693 $as_echo "#define USE_NGHTTP2 1" >>confdefs.h
27694
27695           USE_NGHTTP2=1
27696
27697
27698 fi
27699
27700 done
27701
27702
27703 else
27704           LDFLAGS=$CLEANLDFLAGS
27705         CPPFLAGS=$CLEANCPPFLAGS
27706         LIBS=$CLEANLIBS
27707
27708 fi
27709
27710
27711   else
27712         if test X"$want_h2" != Xdefault; then
27713                   as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
27714     fi
27715   fi
27716
27717 fi
27718
27719
27720 OPT_TCP2="yes"
27721 curl_h3_msg="disabled (--with-ngtcp2, --with-quiche)"
27722
27723 if test "x$disable_http" = "xyes"; then
27724   # without HTTP, ngtcp2 is no use
27725   OPT_TCP2="no"
27726 fi
27727
27728
27729 # Check whether --with-ngtcp2 was given.
27730 if test "${with_ngtcp2+set}" = set; then :
27731   withval=$with_ngtcp2; OPT_TCP2=$withval
27732 fi
27733
27734 case "$OPT_TCP2" in
27735   no)
27736         want_tcp2="no"
27737     ;;
27738   yes)
27739         want_tcp2="default"
27740     want_tcp2_path=""
27741     ;;
27742   *)
27743         want_tcp2="yes"
27744     want_tcp2_path="$withval/lib/pkgconfig"
27745     ;;
27746 esac
27747
27748 curl_tcp2_msg="disabled (--with-ngtcp2)"
27749 if test X"$want_tcp2" != Xno; then
27750     CLEANLDFLAGS="$LDFLAGS"
27751   CLEANCPPFLAGS="$CPPFLAGS"
27752   CLEANLIBS="$LIBS"
27753
27754
27755     if test -n "$PKG_CONFIG"; then
27756       PKGCONFIG="$PKG_CONFIG"
27757     else
27758       if test -n "$ac_tool_prefix"; then
27759   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27760 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27762 $as_echo_n "checking for $ac_word... " >&6; }
27763 if ${ac_cv_path_PKGCONFIG+:} false; then :
27764   $as_echo_n "(cached) " >&6
27765 else
27766   case $PKGCONFIG in
27767   [\\/]* | ?:[\\/]*)
27768   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27769   ;;
27770   *)
27771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27772 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27773 for as_dir in $as_dummy
27774 do
27775   IFS=$as_save_IFS
27776   test -z "$as_dir" && as_dir=.
27777     for ac_exec_ext in '' $ac_executable_extensions; do
27778   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27779     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27781     break 2
27782   fi
27783 done
27784   done
27785 IFS=$as_save_IFS
27786
27787   ;;
27788 esac
27789 fi
27790 PKGCONFIG=$ac_cv_path_PKGCONFIG
27791 if test -n "$PKGCONFIG"; then
27792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27793 $as_echo "$PKGCONFIG" >&6; }
27794 else
27795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27796 $as_echo "no" >&6; }
27797 fi
27798
27799
27800 fi
27801 if test -z "$ac_cv_path_PKGCONFIG"; then
27802   ac_pt_PKGCONFIG=$PKGCONFIG
27803   # Extract the first word of "pkg-config", so it can be a program name with args.
27804 set dummy pkg-config; ac_word=$2
27805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27806 $as_echo_n "checking for $ac_word... " >&6; }
27807 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27808   $as_echo_n "(cached) " >&6
27809 else
27810   case $ac_pt_PKGCONFIG in
27811   [\\/]* | ?:[\\/]*)
27812   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27813   ;;
27814   *)
27815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27816 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27817 for as_dir in $as_dummy
27818 do
27819   IFS=$as_save_IFS
27820   test -z "$as_dir" && as_dir=.
27821     for ac_exec_ext in '' $ac_executable_extensions; do
27822   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27823     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27825     break 2
27826   fi
27827 done
27828   done
27829 IFS=$as_save_IFS
27830
27831   ;;
27832 esac
27833 fi
27834 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27835 if test -n "$ac_pt_PKGCONFIG"; then
27836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27837 $as_echo "$ac_pt_PKGCONFIG" >&6; }
27838 else
27839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27840 $as_echo "no" >&6; }
27841 fi
27842
27843   if test "x$ac_pt_PKGCONFIG" = x; then
27844     PKGCONFIG="no"
27845   else
27846     case $cross_compiling:$ac_tool_warned in
27847 yes:)
27848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27850 ac_tool_warned=yes ;;
27851 esac
27852     PKGCONFIG=$ac_pt_PKGCONFIG
27853   fi
27854 else
27855   PKGCONFIG="$ac_cv_path_PKGCONFIG"
27856 fi
27857
27858     fi
27859
27860     if test "x$PKGCONFIG" != "xno"; then
27861       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libngtcp2 options with pkg-config" >&5
27862 $as_echo_n "checking for libngtcp2 options with pkg-config... " >&6; }
27863             itexists=`
27864     if test -n "$want_tcp2_path"; then
27865       PKG_CONFIG_LIBDIR="$want_tcp2_path"
27866       export PKG_CONFIG_LIBDIR
27867     fi
27868          $PKGCONFIG --exists libngtcp2 >/dev/null 2>&1 && echo 1`
27869
27870       if test -z "$itexists"; then
27871                         PKGCONFIG="no"
27872         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27873 $as_echo "no" >&6; }
27874       else
27875         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27876 $as_echo "found" >&6; }
27877       fi
27878     fi
27879
27880
27881   if test "$PKGCONFIG" != "no" ; then
27882     LIB_TCP2=`
27883     if test -n "$want_tcp2_path"; then
27884       PKG_CONFIG_LIBDIR="$want_tcp2_path"
27885       export PKG_CONFIG_LIBDIR
27886     fi
27887
27888       $PKGCONFIG --libs-only-l libngtcp2`
27889     { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_TCP2" >&5
27890 $as_echo "$as_me: -l is $LIB_TCP2" >&6;}
27891
27892     CPP_TCP2=`
27893     if test -n "$want_tcp2_path"; then
27894       PKG_CONFIG_LIBDIR="$want_tcp2_path"
27895       export PKG_CONFIG_LIBDIR
27896     fi
27897        $PKGCONFIG --cflags-only-I libngtcp2`
27898     { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_TCP2" >&5
27899 $as_echo "$as_me: -I is $CPP_TCP2" >&6;}
27900
27901     LD_TCP2=`
27902     if test -n "$want_tcp2_path"; then
27903       PKG_CONFIG_LIBDIR="$want_tcp2_path"
27904       export PKG_CONFIG_LIBDIR
27905     fi
27906
27907       $PKGCONFIG --libs-only-L libngtcp2`
27908     { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_TCP2" >&5
27909 $as_echo "$as_me: -L is $LD_TCP2" >&6;}
27910
27911     LDFLAGS="$LDFLAGS $LD_TCP2"
27912     CPPFLAGS="$CPPFLAGS $CPP_TCP2"
27913     LIBS="$LIB_TCP2 $LIBS"
27914
27915     if test "x$cross_compiling" != "xyes"; then
27916       DIR_TCP2=`echo $LD_TCP2 | $SED -e 's/-L//'`
27917     fi
27918     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_conn_client_new in -lngtcp2" >&5
27919 $as_echo_n "checking for ngtcp2_conn_client_new in -lngtcp2... " >&6; }
27920 if ${ac_cv_lib_ngtcp2_ngtcp2_conn_client_new+:} false; then :
27921   $as_echo_n "(cached) " >&6
27922 else
27923   ac_check_lib_save_LIBS=$LIBS
27924 LIBS="-lngtcp2  $LIBS"
27925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27926 /* end confdefs.h.  */
27927
27928
27929 #ifdef __cplusplus
27930 extern "C"
27931 #endif
27932 char ngtcp2_conn_client_new ();
27933 int main (void)
27934 {
27935 return ngtcp2_conn_client_new ();
27936  ;
27937  return 0;
27938 }
27939 _ACEOF
27940 if ac_fn_c_try_link "$LINENO"; then :
27941   ac_cv_lib_ngtcp2_ngtcp2_conn_client_new=yes
27942 else
27943   ac_cv_lib_ngtcp2_ngtcp2_conn_client_new=no
27944 fi
27945 rm -f core conftest.err conftest.$ac_objext \
27946     conftest$ac_exeext conftest.$ac_ext
27947 LIBS=$ac_check_lib_save_LIBS
27948 fi
27949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_ngtcp2_conn_client_new" >&5
27950 $as_echo "$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new" >&6; }
27951 if test "x$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new" = xyes; then :
27952
27953        for ac_header in ngtcp2/ngtcp2.h
27954 do :
27955   ac_fn_c_check_header_mongrel "$LINENO" "ngtcp2/ngtcp2.h" "ac_cv_header_ngtcp2_ngtcp2_h" "$ac_includes_default"
27956 if test "x$ac_cv_header_ngtcp2_ngtcp2_h" = xyes; then :
27957   cat >>confdefs.h <<_ACEOF
27958 #define HAVE_NGTCP2_NGTCP2_H 1
27959 _ACEOF
27960  NGTCP2_ENABLED=1
27961
27962 $as_echo "#define USE_NGTCP2 1" >>confdefs.h
27963
27964           USE_NGTCP2=1
27965
27966           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_TCP2"
27967           export CURL_LIBRARY_PATH
27968           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&5
27969 $as_echo "$as_me: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&6;}
27970
27971 fi
27972
27973 done
27974
27975
27976 else
27977           LDFLAGS=$CLEANLDFLAGS
27978         CPPFLAGS=$CLEANCPPFLAGS
27979         LIBS=$CLEANLIBS
27980
27981 fi
27982
27983
27984   else
27985         if test X"$want_tcp2" != Xdefault; then
27986                   as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2 pkg-config file." "$LINENO" 5
27987     fi
27988   fi
27989
27990 fi
27991
27992 if test "x$NGTCP2_ENABLED" = "x1"; then
27993     CLEANLDFLAGS="$LDFLAGS"
27994   CLEANCPPFLAGS="$CPPFLAGS"
27995   CLEANLIBS="$LIBS"
27996
27997
27998     if test -n "$PKG_CONFIG"; then
27999       PKGCONFIG="$PKG_CONFIG"
28000     else
28001       if test -n "$ac_tool_prefix"; then
28002   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28003 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28005 $as_echo_n "checking for $ac_word... " >&6; }
28006 if ${ac_cv_path_PKGCONFIG+:} false; then :
28007   $as_echo_n "(cached) " >&6
28008 else
28009   case $PKGCONFIG in
28010   [\\/]* | ?:[\\/]*)
28011   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
28012   ;;
28013   *)
28014   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28015 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28016 for as_dir in $as_dummy
28017 do
28018   IFS=$as_save_IFS
28019   test -z "$as_dir" && as_dir=.
28020     for ac_exec_ext in '' $ac_executable_extensions; do
28021   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28022     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
28023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28024     break 2
28025   fi
28026 done
28027   done
28028 IFS=$as_save_IFS
28029
28030   ;;
28031 esac
28032 fi
28033 PKGCONFIG=$ac_cv_path_PKGCONFIG
28034 if test -n "$PKGCONFIG"; then
28035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
28036 $as_echo "$PKGCONFIG" >&6; }
28037 else
28038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28039 $as_echo "no" >&6; }
28040 fi
28041
28042
28043 fi
28044 if test -z "$ac_cv_path_PKGCONFIG"; then
28045   ac_pt_PKGCONFIG=$PKGCONFIG
28046   # Extract the first word of "pkg-config", so it can be a program name with args.
28047 set dummy pkg-config; ac_word=$2
28048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28049 $as_echo_n "checking for $ac_word... " >&6; }
28050 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
28051   $as_echo_n "(cached) " >&6
28052 else
28053   case $ac_pt_PKGCONFIG in
28054   [\\/]* | ?:[\\/]*)
28055   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
28056   ;;
28057   *)
28058   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28059 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28060 for as_dir in $as_dummy
28061 do
28062   IFS=$as_save_IFS
28063   test -z "$as_dir" && as_dir=.
28064     for ac_exec_ext in '' $ac_executable_extensions; do
28065   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28066     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
28067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28068     break 2
28069   fi
28070 done
28071   done
28072 IFS=$as_save_IFS
28073
28074   ;;
28075 esac
28076 fi
28077 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
28078 if test -n "$ac_pt_PKGCONFIG"; then
28079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
28080 $as_echo "$ac_pt_PKGCONFIG" >&6; }
28081 else
28082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28083 $as_echo "no" >&6; }
28084 fi
28085
28086   if test "x$ac_pt_PKGCONFIG" = x; then
28087     PKGCONFIG="no"
28088   else
28089     case $cross_compiling:$ac_tool_warned in
28090 yes:)
28091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28093 ac_tool_warned=yes ;;
28094 esac
28095     PKGCONFIG=$ac_pt_PKGCONFIG
28096   fi
28097 else
28098   PKGCONFIG="$ac_cv_path_PKGCONFIG"
28099 fi
28100
28101     fi
28102
28103     if test "x$PKGCONFIG" != "xno"; then
28104       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_openssl options with pkg-config" >&5
28105 $as_echo_n "checking for libngtcp2_crypto_openssl options with pkg-config... " >&6; }
28106             itexists=`
28107     if test -n "$want_tcp2_path"; then
28108       PKG_CONFIG_LIBDIR="$want_tcp2_path"
28109       export PKG_CONFIG_LIBDIR
28110     fi
28111          $PKGCONFIG --exists libngtcp2_crypto_openssl >/dev/null 2>&1 && echo 1`
28112
28113       if test -z "$itexists"; then
28114                         PKGCONFIG="no"
28115         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28116 $as_echo "no" >&6; }
28117       else
28118         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
28119 $as_echo "found" >&6; }
28120       fi
28121     fi
28122
28123
28124   if test "$PKGCONFIG" != "no" ; then
28125     LIB_NGTCP2_CRYPTO_OPENSSL=`
28126     if test -n "$want_tcp2_path"; then
28127       PKG_CONFIG_LIBDIR="$want_tcp2_path"
28128       export PKG_CONFIG_LIBDIR
28129     fi
28130
28131       $PKGCONFIG --libs-only-l libngtcp2_crypto_openssl`
28132     { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_OPENSSL" >&5
28133 $as_echo "$as_me: -l is $LIB_NGTCP2_CRYPTO_OPENSSL" >&6;}
28134
28135     CPP_NGTCP2_CRYPTO_OPENSSL=`
28136     if test -n "$want_tcp2_path"; then
28137       PKG_CONFIG_LIBDIR="$want_tcp2_path"
28138       export PKG_CONFIG_LIBDIR
28139     fi
28140        $PKGCONFIG --cflags-only-I libngtcp2_crypto_openssl`
28141     { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_OPENSSL" >&5
28142 $as_echo "$as_me: -I is $CPP_NGTCP2_CRYPTO_OPENSSL" >&6;}
28143
28144     LD_NGTCP2_CRYPTO_OPENSSL=`
28145     if test -n "$want_tcp2_path"; then
28146       PKG_CONFIG_LIBDIR="$want_tcp2_path"
28147       export PKG_CONFIG_LIBDIR
28148     fi
28149
28150       $PKGCONFIG --libs-only-L libngtcp2_crypto_openssl`
28151     { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_OPENSSL" >&5
28152 $as_echo "$as_me: -L is $LD_NGTCP2_CRYPTO_OPENSSL" >&6;}
28153
28154     LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_OPENSSL"
28155     CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_OPENSSL"
28156     LIBS="$LIB_NGTCP2_CRYPTO_OPENSSL $LIBS"
28157
28158     if test "x$cross_compiling" != "xyes"; then
28159       DIR_NGTCP2_CRYPTO_OPENSSL=`echo $LD_NGTCP2_CRYPTO_OPENSSL | $SED -e 's/-L//'`
28160     fi
28161     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_ctx_initial in -lngtcp2_crypto_openssl" >&5
28162 $as_echo_n "checking for ngtcp2_crypto_ctx_initial in -lngtcp2_crypto_openssl... " >&6; }
28163 if ${ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial+:} false; then :
28164   $as_echo_n "(cached) " >&6
28165 else
28166   ac_check_lib_save_LIBS=$LIBS
28167 LIBS="-lngtcp2_crypto_openssl  $LIBS"
28168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28169 /* end confdefs.h.  */
28170
28171
28172 #ifdef __cplusplus
28173 extern "C"
28174 #endif
28175 char ngtcp2_crypto_ctx_initial ();
28176 int main (void)
28177 {
28178 return ngtcp2_crypto_ctx_initial ();
28179  ;
28180  return 0;
28181 }
28182 _ACEOF
28183 if ac_fn_c_try_link "$LINENO"; then :
28184   ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial=yes
28185 else
28186   ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial=no
28187 fi
28188 rm -f core conftest.err conftest.$ac_objext \
28189     conftest$ac_exeext conftest.$ac_ext
28190 LIBS=$ac_check_lib_save_LIBS
28191 fi
28192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial" >&5
28193 $as_echo "$ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial" >&6; }
28194 if test "x$ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial" = xyes; then :
28195
28196        for ac_header in ngtcp2/ngtcp2_crypto.h
28197 do :
28198   ac_fn_c_check_header_mongrel "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
28199 if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes; then :
28200   cat >>confdefs.h <<_ACEOF
28201 #define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1
28202 _ACEOF
28203  NGTCP2_ENABLED=1
28204
28205 $as_echo "#define USE_NGTCP2_CRYPTO_OPENSSL 1" >>confdefs.h
28206
28207           USE_NGTCP2_CRYPTO_OPENSSL=1
28208
28209           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_OPENSSL"
28210           export CURL_LIBRARY_PATH
28211           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_OPENSSL to CURL_LIBRARY_PATH" >&5
28212 $as_echo "$as_me: Added $DIR_NGTCP2_CRYPTO_OPENSSL to CURL_LIBRARY_PATH" >&6;}
28213
28214 fi
28215
28216 done
28217
28218
28219 else
28220           LDFLAGS=$CLEANLDFLAGS
28221         CPPFLAGS=$CLEANCPPFLAGS
28222         LIBS=$CLEANLIBS
28223
28224 fi
28225
28226
28227   else
28228         if test X"$want_tcp2" != Xdefault; then
28229                   as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_openssl pkg-config file." "$LINENO" 5
28230     fi
28231   fi
28232 fi
28233
28234
28235 OPT_NGHTTP3="yes"
28236
28237 if test "x$NGTCP2_ENABLED" = "x"; then
28238   # without ngtcp2, nghttp3 is of no use for us
28239   OPT_NGHTTP3="no"
28240 fi
28241
28242
28243 # Check whether --with-nghttp3 was given.
28244 if test "${with_nghttp3+set}" = set; then :
28245   withval=$with_nghttp3; OPT_NGHTTP3=$withval
28246 fi
28247
28248 case "$OPT_NGHTTP3" in
28249   no)
28250         want_nghttp3="no"
28251     ;;
28252   yes)
28253         want_nghttp3="default"
28254     want_nghttp3_path=""
28255     ;;
28256   *)
28257         want_nghttp3="yes"
28258     want_nghttp3_path="$withval/lib/pkgconfig"
28259     ;;
28260 esac
28261
28262 curl_http3_msg="disabled (--with-nghttp3)"
28263 if test X"$want_nghttp3" != Xno; then
28264     CLEANLDFLAGS="$LDFLAGS"
28265   CLEANCPPFLAGS="$CPPFLAGS"
28266   CLEANLIBS="$LIBS"
28267
28268
28269     if test -n "$PKG_CONFIG"; then
28270       PKGCONFIG="$PKG_CONFIG"
28271     else
28272       if test -n "$ac_tool_prefix"; then
28273   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28274 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28276 $as_echo_n "checking for $ac_word... " >&6; }
28277 if ${ac_cv_path_PKGCONFIG+:} false; then :
28278   $as_echo_n "(cached) " >&6
28279 else
28280   case $PKGCONFIG in
28281   [\\/]* | ?:[\\/]*)
28282   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
28283   ;;
28284   *)
28285   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28286 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28287 for as_dir in $as_dummy
28288 do
28289   IFS=$as_save_IFS
28290   test -z "$as_dir" && as_dir=.
28291     for ac_exec_ext in '' $ac_executable_extensions; do
28292   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28293     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
28294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28295     break 2
28296   fi
28297 done
28298   done
28299 IFS=$as_save_IFS
28300
28301   ;;
28302 esac
28303 fi
28304 PKGCONFIG=$ac_cv_path_PKGCONFIG
28305 if test -n "$PKGCONFIG"; then
28306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
28307 $as_echo "$PKGCONFIG" >&6; }
28308 else
28309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28310 $as_echo "no" >&6; }
28311 fi
28312
28313
28314 fi
28315 if test -z "$ac_cv_path_PKGCONFIG"; then
28316   ac_pt_PKGCONFIG=$PKGCONFIG
28317   # Extract the first word of "pkg-config", so it can be a program name with args.
28318 set dummy pkg-config; ac_word=$2
28319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28320 $as_echo_n "checking for $ac_word... " >&6; }
28321 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
28322   $as_echo_n "(cached) " >&6
28323 else
28324   case $ac_pt_PKGCONFIG in
28325   [\\/]* | ?:[\\/]*)
28326   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
28327   ;;
28328   *)
28329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28330 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28331 for as_dir in $as_dummy
28332 do
28333   IFS=$as_save_IFS
28334   test -z "$as_dir" && as_dir=.
28335     for ac_exec_ext in '' $ac_executable_extensions; do
28336   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28337     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
28338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28339     break 2
28340   fi
28341 done
28342   done
28343 IFS=$as_save_IFS
28344
28345   ;;
28346 esac
28347 fi
28348 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
28349 if test -n "$ac_pt_PKGCONFIG"; then
28350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
28351 $as_echo "$ac_pt_PKGCONFIG" >&6; }
28352 else
28353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28354 $as_echo "no" >&6; }
28355 fi
28356
28357   if test "x$ac_pt_PKGCONFIG" = x; then
28358     PKGCONFIG="no"
28359   else
28360     case $cross_compiling:$ac_tool_warned in
28361 yes:)
28362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28364 ac_tool_warned=yes ;;
28365 esac
28366     PKGCONFIG=$ac_pt_PKGCONFIG
28367   fi
28368 else
28369   PKGCONFIG="$ac_cv_path_PKGCONFIG"
28370 fi
28371
28372     fi
28373
28374     if test "x$PKGCONFIG" != "xno"; then
28375       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp3 options with pkg-config" >&5
28376 $as_echo_n "checking for libnghttp3 options with pkg-config... " >&6; }
28377             itexists=`
28378     if test -n "$want_nghttp3_path"; then
28379       PKG_CONFIG_LIBDIR="$want_nghttp3_path"
28380       export PKG_CONFIG_LIBDIR
28381     fi
28382          $PKGCONFIG --exists libnghttp3 >/dev/null 2>&1 && echo 1`
28383
28384       if test -z "$itexists"; then
28385                         PKGCONFIG="no"
28386         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28387 $as_echo "no" >&6; }
28388       else
28389         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
28390 $as_echo "found" >&6; }
28391       fi
28392     fi
28393
28394
28395   if test "$PKGCONFIG" != "no" ; then
28396     LIB_NGHTTP3=`
28397     if test -n "$want_nghttp3_path"; then
28398       PKG_CONFIG_LIBDIR="$want_nghttp3_path"
28399       export PKG_CONFIG_LIBDIR
28400     fi
28401
28402       $PKGCONFIG --libs-only-l libnghttp3`
28403     { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGHTTP3" >&5
28404 $as_echo "$as_me: -l is $LIB_NGHTTP3" >&6;}
28405
28406     CPP_NGHTTP3=`
28407     if test -n "$want_nghttp3_path"; then
28408       PKG_CONFIG_LIBDIR="$want_nghttp3_path"
28409       export PKG_CONFIG_LIBDIR
28410     fi
28411        $PKGCONFIG --cflags-only-I libnghttp3`
28412     { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGHTTP3" >&5
28413 $as_echo "$as_me: -I is $CPP_NGHTTP3" >&6;}
28414
28415     LD_NGHTTP3=`
28416     if test -n "$want_nghttp3_path"; then
28417       PKG_CONFIG_LIBDIR="$want_nghttp3_path"
28418       export PKG_CONFIG_LIBDIR
28419     fi
28420
28421       $PKGCONFIG --libs-only-L libnghttp3`
28422     { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_NGHTTP3" >&5
28423 $as_echo "$as_me: -L is $LD_NGHTTP3" >&6;}
28424
28425     LDFLAGS="$LDFLAGS $LD_NGHTTP3"
28426     CPPFLAGS="$CPPFLAGS $CPP_NGHTTP3"
28427     LIBS="$LIB_NGHTTP3 $LIBS"
28428
28429     if test "x$cross_compiling" != "xyes"; then
28430       DIR_NGHTTP3=`echo $LD_NGHTTP3 | $SED -e 's/-L//'`
28431     fi
28432     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp3_conn_client_new in -lnghttp3" >&5
28433 $as_echo_n "checking for nghttp3_conn_client_new in -lnghttp3... " >&6; }
28434 if ${ac_cv_lib_nghttp3_nghttp3_conn_client_new+:} false; then :
28435   $as_echo_n "(cached) " >&6
28436 else
28437   ac_check_lib_save_LIBS=$LIBS
28438 LIBS="-lnghttp3  $LIBS"
28439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28440 /* end confdefs.h.  */
28441
28442
28443 #ifdef __cplusplus
28444 extern "C"
28445 #endif
28446 char nghttp3_conn_client_new ();
28447 int main (void)
28448 {
28449 return nghttp3_conn_client_new ();
28450  ;
28451  return 0;
28452 }
28453 _ACEOF
28454 if ac_fn_c_try_link "$LINENO"; then :
28455   ac_cv_lib_nghttp3_nghttp3_conn_client_new=yes
28456 else
28457   ac_cv_lib_nghttp3_nghttp3_conn_client_new=no
28458 fi
28459 rm -f core conftest.err conftest.$ac_objext \
28460     conftest$ac_exeext conftest.$ac_ext
28461 LIBS=$ac_check_lib_save_LIBS
28462 fi
28463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp3_nghttp3_conn_client_new" >&5
28464 $as_echo "$ac_cv_lib_nghttp3_nghttp3_conn_client_new" >&6; }
28465 if test "x$ac_cv_lib_nghttp3_nghttp3_conn_client_new" = xyes; then :
28466
28467        for ac_header in nghttp3/nghttp3.h
28468 do :
28469   ac_fn_c_check_header_mongrel "$LINENO" "nghttp3/nghttp3.h" "ac_cv_header_nghttp3_nghttp3_h" "$ac_includes_default"
28470 if test "x$ac_cv_header_nghttp3_nghttp3_h" = xyes; then :
28471   cat >>confdefs.h <<_ACEOF
28472 #define HAVE_NGHTTP3_NGHTTP3_H 1
28473 _ACEOF
28474  curl_h3_msg="enabled (ngtcp2 + nghttp3)"
28475           NGHTTP3_ENABLED=1
28476
28477 $as_echo "#define USE_NGHTTP3 1" >>confdefs.h
28478
28479           USE_NGHTTP3=1
28480
28481           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGHTTP3"
28482           export CURL_LIBRARY_PATH
28483           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&5
28484 $as_echo "$as_me: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&6;}
28485           experimental="$experimental HTTP3"
28486
28487 fi
28488
28489 done
28490
28491
28492 else
28493           LDFLAGS=$CLEANLDFLAGS
28494         CPPFLAGS=$CLEANCPPFLAGS
28495         LIBS=$CLEANLIBS
28496
28497 fi
28498
28499
28500   else
28501         if test X"$want_nghttp3" != Xdefault; then
28502                   as_fn_error $? "--with-nghttp3 was specified but could not find nghttp3 pkg-config file." "$LINENO" 5
28503     fi
28504   fi
28505
28506 fi
28507
28508
28509 OPT_QUICHE="yes"
28510
28511 if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then
28512   # without HTTP or with ngtcp2, quiche is no use
28513   OPT_QUICHE="no"
28514 fi
28515
28516
28517 # Check whether --with-quiche was given.
28518 if test "${with_quiche+set}" = set; then :
28519   withval=$with_quiche; OPT_QUICHE=$withval
28520 fi
28521
28522 case "$OPT_QUICHE" in
28523   no)
28524         want_quiche="no"
28525     ;;
28526   yes)
28527         want_quiche="default"
28528     want_quiche_path=""
28529     ;;
28530   *)
28531         want_quiche="yes"
28532     want_quiche_path="$withval"
28533     ;;
28534 esac
28535
28536 if test X"$want_quiche" != Xno; then
28537     CLEANLDFLAGS="$LDFLAGS"
28538   CLEANCPPFLAGS="$CPPFLAGS"
28539   CLEANLIBS="$LIBS"
28540
28541
28542     if test -n "$PKG_CONFIG"; then
28543       PKGCONFIG="$PKG_CONFIG"
28544     else
28545       if test -n "$ac_tool_prefix"; then
28546   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28547 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28549 $as_echo_n "checking for $ac_word... " >&6; }
28550 if ${ac_cv_path_PKGCONFIG+:} false; then :
28551   $as_echo_n "(cached) " >&6
28552 else
28553   case $PKGCONFIG in
28554   [\\/]* | ?:[\\/]*)
28555   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
28556   ;;
28557   *)
28558   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28559 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28560 for as_dir in $as_dummy
28561 do
28562   IFS=$as_save_IFS
28563   test -z "$as_dir" && as_dir=.
28564     for ac_exec_ext in '' $ac_executable_extensions; do
28565   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28566     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
28567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28568     break 2
28569   fi
28570 done
28571   done
28572 IFS=$as_save_IFS
28573
28574   ;;
28575 esac
28576 fi
28577 PKGCONFIG=$ac_cv_path_PKGCONFIG
28578 if test -n "$PKGCONFIG"; then
28579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
28580 $as_echo "$PKGCONFIG" >&6; }
28581 else
28582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28583 $as_echo "no" >&6; }
28584 fi
28585
28586
28587 fi
28588 if test -z "$ac_cv_path_PKGCONFIG"; then
28589   ac_pt_PKGCONFIG=$PKGCONFIG
28590   # Extract the first word of "pkg-config", so it can be a program name with args.
28591 set dummy pkg-config; ac_word=$2
28592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28593 $as_echo_n "checking for $ac_word... " >&6; }
28594 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
28595   $as_echo_n "(cached) " >&6
28596 else
28597   case $ac_pt_PKGCONFIG in
28598   [\\/]* | ?:[\\/]*)
28599   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
28600   ;;
28601   *)
28602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28603 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28604 for as_dir in $as_dummy
28605 do
28606   IFS=$as_save_IFS
28607   test -z "$as_dir" && as_dir=.
28608     for ac_exec_ext in '' $ac_executable_extensions; do
28609   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28610     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
28611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28612     break 2
28613   fi
28614 done
28615   done
28616 IFS=$as_save_IFS
28617
28618   ;;
28619 esac
28620 fi
28621 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
28622 if test -n "$ac_pt_PKGCONFIG"; then
28623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
28624 $as_echo "$ac_pt_PKGCONFIG" >&6; }
28625 else
28626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28627 $as_echo "no" >&6; }
28628 fi
28629
28630   if test "x$ac_pt_PKGCONFIG" = x; then
28631     PKGCONFIG="no"
28632   else
28633     case $cross_compiling:$ac_tool_warned in
28634 yes:)
28635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28637 ac_tool_warned=yes ;;
28638 esac
28639     PKGCONFIG=$ac_pt_PKGCONFIG
28640   fi
28641 else
28642   PKGCONFIG="$ac_cv_path_PKGCONFIG"
28643 fi
28644
28645     fi
28646
28647     if test "x$PKGCONFIG" != "xno"; then
28648       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quiche options with pkg-config" >&5
28649 $as_echo_n "checking for quiche options with pkg-config... " >&6; }
28650             itexists=`
28651     if test -n "$want_quiche_path"; then
28652       PKG_CONFIG_LIBDIR="$want_quiche_path"
28653       export PKG_CONFIG_LIBDIR
28654     fi
28655          $PKGCONFIG --exists quiche >/dev/null 2>&1 && echo 1`
28656
28657       if test -z "$itexists"; then
28658                         PKGCONFIG="no"
28659         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28660 $as_echo "no" >&6; }
28661       else
28662         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
28663 $as_echo "found" >&6; }
28664       fi
28665     fi
28666
28667
28668   if test "$PKGCONFIG" != "no" ; then
28669     LIB_QUICHE=`
28670     if test -n "$want_quiche_path"; then
28671       PKG_CONFIG_LIBDIR="$want_quiche_path"
28672       export PKG_CONFIG_LIBDIR
28673     fi
28674
28675       $PKGCONFIG --libs-only-l quiche`
28676     { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_QUICHE" >&5
28677 $as_echo "$as_me: -l is $LIB_QUICHE" >&6;}
28678
28679     CPP_QUICHE=`
28680     if test -n "$want_quiche_path"; then
28681       PKG_CONFIG_LIBDIR="$want_quiche_path"
28682       export PKG_CONFIG_LIBDIR
28683     fi
28684        $PKGCONFIG --cflags-only-I quiche`
28685     { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_QUICHE" >&5
28686 $as_echo "$as_me: -I is $CPP_QUICHE" >&6;}
28687
28688     LD_QUICHE=`
28689     if test -n "$want_quiche_path"; then
28690       PKG_CONFIG_LIBDIR="$want_quiche_path"
28691       export PKG_CONFIG_LIBDIR
28692     fi
28693
28694       $PKGCONFIG --libs-only-L quiche`
28695     { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_QUICHE" >&5
28696 $as_echo "$as_me: -L is $LD_QUICHE" >&6;}
28697
28698     LDFLAGS="$LDFLAGS $LD_QUICHE"
28699     CPPFLAGS="$CPPFLAGS $CPP_QUICHE"
28700     LIBS="$LIB_QUICHE $LIBS"
28701
28702     if test "x$cross_compiling" != "xyes"; then
28703       DIR_QUICHE=`echo $LD_QUICHE | $SED -e 's/-L//'`
28704     fi
28705     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quiche_connect in -lquiche" >&5
28706 $as_echo_n "checking for quiche_connect in -lquiche... " >&6; }
28707 if ${ac_cv_lib_quiche_quiche_connect+:} false; then :
28708   $as_echo_n "(cached) " >&6
28709 else
28710   ac_check_lib_save_LIBS=$LIBS
28711 LIBS="-lquiche  $LIBS"
28712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28713 /* end confdefs.h.  */
28714
28715
28716 #ifdef __cplusplus
28717 extern "C"
28718 #endif
28719 char quiche_connect ();
28720 int main (void)
28721 {
28722 return quiche_connect ();
28723  ;
28724  return 0;
28725 }
28726 _ACEOF
28727 if ac_fn_c_try_link "$LINENO"; then :
28728   ac_cv_lib_quiche_quiche_connect=yes
28729 else
28730   ac_cv_lib_quiche_quiche_connect=no
28731 fi
28732 rm -f core conftest.err conftest.$ac_objext \
28733     conftest$ac_exeext conftest.$ac_ext
28734 LIBS=$ac_check_lib_save_LIBS
28735 fi
28736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quiche_quiche_connect" >&5
28737 $as_echo "$ac_cv_lib_quiche_quiche_connect" >&6; }
28738 if test "x$ac_cv_lib_quiche_quiche_connect" = xyes; then :
28739
28740        for ac_header in quiche.h
28741 do :
28742   ac_fn_c_check_header_mongrel "$LINENO" "quiche.h" "ac_cv_header_quiche_h" "$ac_includes_default"
28743 if test "x$ac_cv_header_quiche_h" = xyes; then :
28744   cat >>confdefs.h <<_ACEOF
28745 #define HAVE_QUICHE_H 1
28746 _ACEOF
28747  experimental="$experimental HTTP3"
28748           { $as_echo "$as_me:${as_lineno-$LINENO}: HTTP3 support is experimental" >&5
28749 $as_echo "$as_me: HTTP3 support is experimental" >&6;}
28750           curl_h3_msg="enabled (quiche)"
28751           QUICHE_ENABLED=1
28752
28753 $as_echo "#define USE_QUICHE 1" >>confdefs.h
28754
28755           USE_QUICHE=1
28756
28757           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_QUICHE"
28758           export CURL_LIBRARY_PATH
28759           { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&5
28760 $as_echo "$as_me: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&6;}
28761 fi
28762
28763 done
28764
28765
28766 else
28767           LDFLAGS=$CLEANLDFLAGS
28768         CPPFLAGS=$CLEANCPPFLAGS
28769         LIBS=$CLEANLIBS
28770
28771 fi
28772
28773   else
28774         if test X"$want_quiche" != Xdefault; then
28775                   as_fn_error $? "--with-quiche was specified but could not find quiche pkg-config file." "$LINENO" 5
28776     fi
28777   fi
28778 fi
28779
28780
28781 OPT_ZSH_FPATH=default
28782
28783 # Check whether --with-zsh-functions-dir was given.
28784 if test "${with_zsh_functions_dir+set}" = set; then :
28785   withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
28786 fi
28787
28788 case "$OPT_ZSH_FPATH" in
28789   no)
28790         ;;
28791   default|yes)
28792         ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
28793
28794     ;;
28795   *)
28796         ZSH_FUNCTIONS_DIR="$withval"
28797
28798     ;;
28799 esac
28800
28801
28802 OPT_FISH_FPATH=default
28803
28804 # Check whether --with-fish-functions-dir was given.
28805 if test "${with_fish_functions_dir+set}" = set; then :
28806   withval=$with_fish_functions_dir; OPT_FISH_FPATH=$withval
28807 fi
28808
28809 case "$OPT_FISH_FPATH" in
28810   no)
28811         ;;
28812   default|yes)
28813
28814     if test -n "$PKG_CONFIG"; then
28815       PKGCONFIG="$PKG_CONFIG"
28816     else
28817       if test -n "$ac_tool_prefix"; then
28818   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28819 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28821 $as_echo_n "checking for $ac_word... " >&6; }
28822 if ${ac_cv_path_PKGCONFIG+:} false; then :
28823   $as_echo_n "(cached) " >&6
28824 else
28825   case $PKGCONFIG in
28826   [\\/]* | ?:[\\/]*)
28827   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
28828   ;;
28829   *)
28830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28831 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28832 for as_dir in $as_dummy
28833 do
28834   IFS=$as_save_IFS
28835   test -z "$as_dir" && as_dir=.
28836     for ac_exec_ext in '' $ac_executable_extensions; do
28837   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28838     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
28839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28840     break 2
28841   fi
28842 done
28843   done
28844 IFS=$as_save_IFS
28845
28846   ;;
28847 esac
28848 fi
28849 PKGCONFIG=$ac_cv_path_PKGCONFIG
28850 if test -n "$PKGCONFIG"; then
28851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
28852 $as_echo "$PKGCONFIG" >&6; }
28853 else
28854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28855 $as_echo "no" >&6; }
28856 fi
28857
28858
28859 fi
28860 if test -z "$ac_cv_path_PKGCONFIG"; then
28861   ac_pt_PKGCONFIG=$PKGCONFIG
28862   # Extract the first word of "pkg-config", so it can be a program name with args.
28863 set dummy pkg-config; ac_word=$2
28864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28865 $as_echo_n "checking for $ac_word... " >&6; }
28866 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
28867   $as_echo_n "(cached) " >&6
28868 else
28869   case $ac_pt_PKGCONFIG in
28870   [\\/]* | ?:[\\/]*)
28871   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
28872   ;;
28873   *)
28874   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28875 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28876 for as_dir in $as_dummy
28877 do
28878   IFS=$as_save_IFS
28879   test -z "$as_dir" && as_dir=.
28880     for ac_exec_ext in '' $ac_executable_extensions; do
28881   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28882     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
28883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28884     break 2
28885   fi
28886 done
28887   done
28888 IFS=$as_save_IFS
28889
28890   ;;
28891 esac
28892 fi
28893 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
28894 if test -n "$ac_pt_PKGCONFIG"; then
28895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
28896 $as_echo "$ac_pt_PKGCONFIG" >&6; }
28897 else
28898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28899 $as_echo "no" >&6; }
28900 fi
28901
28902   if test "x$ac_pt_PKGCONFIG" = x; then
28903     PKGCONFIG="no"
28904   else
28905     case $cross_compiling:$ac_tool_warned in
28906 yes:)
28907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28909 ac_tool_warned=yes ;;
28910 esac
28911     PKGCONFIG=$ac_pt_PKGCONFIG
28912   fi
28913 else
28914   PKGCONFIG="$ac_cv_path_PKGCONFIG"
28915 fi
28916
28917     fi
28918
28919     if test "x$PKGCONFIG" != "xno"; then
28920       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fish options with pkg-config" >&5
28921 $as_echo_n "checking for fish options with pkg-config... " >&6; }
28922             itexists=`
28923     if test -n ""; then
28924       PKG_CONFIG_LIBDIR=""
28925       export PKG_CONFIG_LIBDIR
28926     fi
28927          $PKGCONFIG --exists fish >/dev/null 2>&1 && echo 1`
28928
28929       if test -z "$itexists"; then
28930                         PKGCONFIG="no"
28931         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28932 $as_echo "no" >&6; }
28933       else
28934         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
28935 $as_echo "found" >&6; }
28936       fi
28937     fi
28938
28939     if test "$PKGCONFIG" != "no" ; then
28940       FISH_FUNCTIONS_DIR="$($PKGCONFIG --variable completionsdir fish)"
28941     else
28942       FISH_FUNCTIONS_DIR="$datarootdir/fish/vendor_completions.d"
28943     fi
28944
28945     ;;
28946   *)
28947         FISH_FUNCTIONS_DIR="$withval"
28948
28949     ;;
28950 esac
28951
28952
28953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
28954 $as_echo_n "checking for ANSI C header files... " >&6; }
28955 if ${ac_cv_header_stdc+:} false; then :
28956   $as_echo_n "(cached) " >&6
28957 else
28958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28959 /* end confdefs.h.  */
28960 #include <stdlib.h>
28961 #include <stdarg.h>
28962 #include <string.h>
28963 #include <float.h>
28964
28965 int main (void)
28966 {
28967
28968  ;
28969  return 0;
28970 }
28971 _ACEOF
28972 if ac_fn_c_try_compile "$LINENO"; then :
28973   ac_cv_header_stdc=yes
28974 else
28975   ac_cv_header_stdc=no
28976 fi
28977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28978
28979 if test $ac_cv_header_stdc = yes; then
28980   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28981   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28982 /* end confdefs.h.  */
28983 #include <string.h>
28984
28985 _ACEOF
28986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28987   $EGREP "memchr" >/dev/null 2>&1; then :
28988
28989 else
28990   ac_cv_header_stdc=no
28991 fi
28992 rm -f conftest*
28993
28994 fi
28995
28996 if test $ac_cv_header_stdc = yes; then
28997   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28999 /* end confdefs.h.  */
29000 #include <stdlib.h>
29001
29002 _ACEOF
29003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29004   $EGREP "free" >/dev/null 2>&1; then :
29005
29006 else
29007   ac_cv_header_stdc=no
29008 fi
29009 rm -f conftest*
29010
29011 fi
29012
29013 if test $ac_cv_header_stdc = yes; then
29014   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29015   if test "$cross_compiling" = yes; then :
29016   :
29017 else
29018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29019 /* end confdefs.h.  */
29020 #include <ctype.h>
29021 #include <stdlib.h>
29022 #if ((' ' & 0x0FF) == 0x020)
29023 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29024 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29025 #else
29026 # define ISLOWER(c) \
29027                    (('a' <= (c) && (c) <= 'i') \
29028                      || ('j' <= (c) && (c) <= 'r') \
29029                      || ('s' <= (c) && (c) <= 'z'))
29030 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29031 #endif
29032
29033 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29034 int
29035 main ()
29036 {
29037   int i;
29038   for (i = 0; i < 256; i++)
29039     if (XOR (islower (i), ISLOWER (i))
29040         || toupper (i) != TOUPPER (i))
29041       return 2;
29042   return 0;
29043 }
29044 _ACEOF
29045 if ac_fn_c_try_run "$LINENO"; then :
29046
29047 else
29048   ac_cv_header_stdc=no
29049 fi
29050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29051   conftest.$ac_objext conftest.beam conftest.$ac_ext
29052 fi
29053
29054 fi
29055 fi
29056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
29057 $as_echo "$ac_cv_header_stdc" >&6; }
29058 if test $ac_cv_header_stdc = yes; then
29059
29060 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
29061
29062 fi
29063
29064
29065
29066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
29067 $as_echo_n "checking for malloc.h... " >&6; }
29068 if ${curl_cv_header_malloc_h+:} false; then :
29069   $as_echo_n "(cached) " >&6
29070 else
29071
29072     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29073 /* end confdefs.h.  */
29074
29075
29076 #include <malloc.h>
29077
29078 int main (void)
29079 {
29080
29081         void *p = malloc(10);
29082         void *q = calloc(10,10);
29083         free(p);
29084         free(q);
29085
29086  ;
29087  return 0;
29088 }
29089
29090 _ACEOF
29091 if ac_fn_c_try_compile "$LINENO"; then :
29092
29093       curl_cv_header_malloc_h="yes"
29094
29095 else
29096
29097       curl_cv_header_malloc_h="no"
29098
29099 fi
29100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29101
29102 fi
29103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_malloc_h" >&5
29104 $as_echo "$curl_cv_header_malloc_h" >&6; }
29105   if test "$curl_cv_header_malloc_h" = "yes"; then
29106
29107 cat >>confdefs.h <<_ACEOF
29108 #define HAVE_MALLOC_H 1
29109 _ACEOF
29110
29111     #
29112     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29113 /* end confdefs.h.  */
29114
29115
29116 #include <stdlib.h>
29117
29118 int main (void)
29119 {
29120
29121         void *p = malloc(10);
29122         void *q = calloc(10,10);
29123         free(p);
29124         free(q);
29125
29126  ;
29127  return 0;
29128 }
29129
29130 _ACEOF
29131 if ac_fn_c_try_compile "$LINENO"; then :
29132
29133       curl_cv_need_header_malloc_h="no"
29134
29135 else
29136
29137       curl_cv_need_header_malloc_h="yes"
29138
29139 fi
29140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29141     #
29142     case "$curl_cv_need_header_malloc_h" in
29143       yes)
29144
29145 cat >>confdefs.h <<_ACEOF
29146 #define NEED_MALLOC_H 1
29147 _ACEOF
29148
29149         ;;
29150     esac
29151   fi
29152
29153
29154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
29155 $as_echo_n "checking for memory.h... " >&6; }
29156 if ${curl_cv_header_memory_h+:} false; then :
29157   $as_echo_n "(cached) " >&6
29158 else
29159
29160     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29161 /* end confdefs.h.  */
29162
29163
29164 #include <memory.h>
29165
29166 int main (void)
29167 {
29168
29169         void *p = malloc(10);
29170         void *q = calloc(10,10);
29171         free(p);
29172         free(q);
29173
29174  ;
29175  return 0;
29176 }
29177
29178 _ACEOF
29179 if ac_fn_c_try_compile "$LINENO"; then :
29180
29181       curl_cv_header_memory_h="yes"
29182
29183 else
29184
29185       curl_cv_header_memory_h="no"
29186
29187 fi
29188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29189
29190 fi
29191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_memory_h" >&5
29192 $as_echo "$curl_cv_header_memory_h" >&6; }
29193   if test "$curl_cv_header_memory_h" = "yes"; then
29194
29195 cat >>confdefs.h <<_ACEOF
29196 #define HAVE_MEMORY_H 1
29197 _ACEOF
29198
29199     #
29200     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29201 /* end confdefs.h.  */
29202
29203
29204 #include <stdlib.h>
29205
29206 int main (void)
29207 {
29208
29209         void *p = malloc(10);
29210         void *q = calloc(10,10);
29211         free(p);
29212         free(q);
29213
29214  ;
29215  return 0;
29216 }
29217
29218 _ACEOF
29219 if ac_fn_c_try_compile "$LINENO"; then :
29220
29221       curl_cv_need_header_memory_h="no"
29222
29223 else
29224
29225       curl_cv_need_header_memory_h="yes"
29226
29227 fi
29228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29229     #
29230     case "$curl_cv_need_header_memory_h" in
29231       yes)
29232
29233 cat >>confdefs.h <<_ACEOF
29234 #define NEED_MEMORY_H 1
29235 _ACEOF
29236
29237         ;;
29238     esac
29239   fi
29240
29241
29242 for ac_header in sys/types.h \
29243         sys/time.h \
29244         sys/select.h \
29245         sys/socket.h \
29246         sys/ioctl.h \
29247         sys/uio.h \
29248         assert.h \
29249         unistd.h \
29250         stdlib.h \
29251         arpa/inet.h \
29252         net/if.h \
29253         netinet/in.h \
29254         netinet/in6.h \
29255         sys/un.h \
29256         linux/tcp.h \
29257         netinet/tcp.h \
29258         netdb.h \
29259         sys/sockio.h \
29260         sys/stat.h \
29261         sys/param.h \
29262         termios.h \
29263         termio.h \
29264         sgtty.h \
29265         fcntl.h \
29266         alloca.h \
29267         time.h \
29268         io.h \
29269         pwd.h \
29270         utime.h \
29271         sys/utime.h \
29272         sys/poll.h \
29273         poll.h \
29274         socket.h \
29275         sys/resource.h \
29276         libgen.h \
29277         locale.h \
29278         errno.h \
29279         stdbool.h \
29280         arpa/tftp.h \
29281         sys/filio.h \
29282         sys/wait.h \
29283         setjmp.h
29284 do :
29285   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29286 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
29287 #ifdef HAVE_SYS_TYPES_H
29288 #include <sys/types.h>
29289 #endif
29290 #ifdef HAVE_SYS_TIME_H
29291 #include <sys/time.h>
29292 #endif
29293 #ifdef HAVE_SYS_SELECT_H
29294 #include <sys/select.h>
29295 #endif
29296 #ifdef HAVE_SYS_SOCKET_H
29297 #include <sys/socket.h>
29298 #endif
29299 #ifdef HAVE_NETINET_IN_H
29300 #include <netinet/in.h>
29301 #endif
29302 #ifdef HAVE_NETINET_IN6_H
29303 #include <netinet/in6.h>
29304 #endif
29305 #ifdef HAVE_SYS_UN_H
29306 #include <sys/un.h>
29307 #endif
29308
29309
29310 "
29311 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29312   cat >>confdefs.h <<_ACEOF
29313 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29314 _ACEOF
29315
29316 fi
29317
29318 done
29319
29320
29321
29322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
29323 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
29324 if ${ac_cv_c_const+:} false; then :
29325   $as_echo_n "(cached) " >&6
29326 else
29327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29328 /* end confdefs.h.  */
29329
29330 int main (void)
29331 {
29332
29333 #ifndef __cplusplus
29334   /* Ultrix mips cc rejects this sort of thing.  */
29335   typedef int charset[2];
29336   const charset cs = { 0, 0 };
29337   /* SunOS 4.1.1 cc rejects this.  */
29338   char const *const *pcpcc;
29339   char **ppc;
29340   /* NEC SVR4.0.2 mips cc rejects this.  */
29341   struct point {int x, y;};
29342   static struct point const zero = {0,0};
29343   /* AIX XL C 1.02.0.0 rejects this.
29344      It does not let you subtract one const X* pointer from another in
29345      an arm of an if-expression whose if-part is not a constant
29346      expression */
29347   const char *g = "string";
29348   pcpcc = &g + (g ? g-g : 0);
29349   /* HPUX 7.0 cc rejects these. */
29350   ++pcpcc;
29351   ppc = (char**) pcpcc;
29352   pcpcc = (char const *const *) ppc;
29353   { /* SCO 3.2v4 cc rejects this sort of thing.  */
29354     char tx;
29355     char *t = &tx;
29356     char const *s = 0 ? (char *) 0 : (char const *) 0;
29357
29358     *t++ = 0;
29359     if (s) return 0;
29360   }
29361   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
29362     int x[] = {25, 17};
29363     const int *foo = &x[0];
29364     ++foo;
29365   }
29366   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
29367     typedef const int *iptr;
29368     iptr p = 0;
29369     ++p;
29370   }
29371   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
29372        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
29373     struct s { int j; const int *ap[3]; } bx;
29374     struct s *b = &bx; b->j = 5;
29375   }
29376   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
29377     const int foo = 10;
29378     if (!foo) return 0;
29379   }
29380   return !cs[0] && !zero.x;
29381 #endif
29382
29383  ;
29384  return 0;
29385 }
29386 _ACEOF
29387 if ac_fn_c_try_compile "$LINENO"; then :
29388   ac_cv_c_const=yes
29389 else
29390   ac_cv_c_const=no
29391 fi
29392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29393 fi
29394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
29395 $as_echo "$ac_cv_c_const" >&6; }
29396 if test $ac_cv_c_const = no; then
29397
29398 $as_echo "#define const /**/" >>confdefs.h
29399
29400 fi
29401
29402
29403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
29404 $as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
29405 if ${curl_cv_variadic_macros_c99+:} false; then :
29406   $as_echo_n "(cached) " >&6
29407 else
29408
29409     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29410 /* end confdefs.h.  */
29411
29412
29413 #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
29414 #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
29415         int fun3(int arg1, int arg2, int arg3);
29416         int fun2(int arg1, int arg2);
29417         int fun3(int arg1, int arg2, int arg3)
29418         { return arg1 + arg2 + arg3; }
29419         int fun2(int arg1, int arg2)
29420         { return arg1 + arg2; }
29421
29422 int main (void)
29423 {
29424
29425         int res3 = c99_vmacro3(1, 2, 3);
29426         int res2 = c99_vmacro2(1, 2);
29427
29428  ;
29429  return 0;
29430 }
29431
29432 _ACEOF
29433 if ac_fn_c_try_compile "$LINENO"; then :
29434
29435       curl_cv_variadic_macros_c99="yes"
29436
29437 else
29438
29439       curl_cv_variadic_macros_c99="no"
29440
29441 fi
29442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29443
29444 fi
29445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
29446 $as_echo "$curl_cv_variadic_macros_c99" >&6; }
29447   case "$curl_cv_variadic_macros_c99" in
29448     yes)
29449
29450 cat >>confdefs.h <<_ACEOF
29451 #define HAVE_VARIADIC_MACROS_C99 1
29452 _ACEOF
29453
29454       ;;
29455   esac
29456   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
29457 $as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
29458 if ${curl_cv_variadic_macros_gcc+:} false; then :
29459   $as_echo_n "(cached) " >&6
29460 else
29461
29462     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29463 /* end confdefs.h.  */
29464
29465
29466 #define gcc_vmacro3(first, args...) fun3(first, args)
29467 #define gcc_vmacro2(first, args...) fun2(first, args)
29468         int fun3(int arg1, int arg2, int arg3);
29469         int fun2(int arg1, int arg2);
29470         int fun3(int arg1, int arg2, int arg3)
29471         { return arg1 + arg2 + arg3; }
29472         int fun2(int arg1, int arg2)
29473         { return arg1 + arg2; }
29474
29475 int main (void)
29476 {
29477
29478         int res3 = gcc_vmacro3(1, 2, 3);
29479         int res2 = gcc_vmacro2(1, 2);
29480
29481  ;
29482  return 0;
29483 }
29484
29485 _ACEOF
29486 if ac_fn_c_try_compile "$LINENO"; then :
29487
29488       curl_cv_variadic_macros_gcc="yes"
29489
29490 else
29491
29492       curl_cv_variadic_macros_gcc="no"
29493
29494 fi
29495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29496
29497 fi
29498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
29499 $as_echo "$curl_cv_variadic_macros_gcc" >&6; }
29500   case "$curl_cv_variadic_macros_gcc" in
29501     yes)
29502
29503 cat >>confdefs.h <<_ACEOF
29504 #define HAVE_VARIADIC_MACROS_GCC 1
29505 _ACEOF
29506
29507       ;;
29508   esac
29509
29510 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
29511 if test "x$ac_cv_type_size_t" = xyes; then :
29512
29513 else
29514
29515 cat >>confdefs.h <<_ACEOF
29516 #define size_t unsigned int
29517 _ACEOF
29518
29519 fi
29520
29521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
29522 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
29523 if ${ac_cv_header_time+:} false; then :
29524   $as_echo_n "(cached) " >&6
29525 else
29526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29527 /* end confdefs.h.  */
29528 #include <sys/types.h>
29529 #include <sys/time.h>
29530 #include <time.h>
29531
29532 int main (void)
29533 {
29534 if ((struct tm *) 0)
29535 return 0;
29536  ;
29537  return 0;
29538 }
29539 _ACEOF
29540 if ac_fn_c_try_compile "$LINENO"; then :
29541   ac_cv_header_time=yes
29542 else
29543   ac_cv_header_time=no
29544 fi
29545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29546 fi
29547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
29548 $as_echo "$ac_cv_header_time" >&6; }
29549 if test $ac_cv_header_time = yes; then
29550
29551 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
29552
29553 fi
29554
29555
29556         for ac_header in sys/types.h sys/time.h time.h sys/socket.h
29557 do :
29558   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29559 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29560 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29561   cat >>confdefs.h <<_ACEOF
29562 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29563 _ACEOF
29564
29565 fi
29566
29567 done
29568
29569   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
29570 $as_echo_n "checking for struct timeval... " >&6; }
29571 if ${curl_cv_struct_timeval+:} false; then :
29572   $as_echo_n "(cached) " >&6
29573 else
29574
29575     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29576 /* end confdefs.h.  */
29577
29578
29579 #undef inline
29580 #ifdef HAVE_WINDOWS_H
29581 #ifndef WIN32_LEAN_AND_MEAN
29582 #define WIN32_LEAN_AND_MEAN
29583 #endif
29584 #include <windows.h>
29585 #ifdef HAVE_WINSOCK2_H
29586 #include <winsock2.h>
29587 #else
29588 #ifdef HAVE_WINSOCK_H
29589 #include <winsock.h>
29590 #endif
29591 #endif
29592 #endif
29593 #ifdef HAVE_SYS_TYPES_H
29594 #include <sys/types.h>
29595 #endif
29596 #ifdef HAVE_SYS_TIME_H
29597 #include <sys/time.h>
29598 #ifdef TIME_WITH_SYS_TIME
29599 #include <time.h>
29600 #endif
29601 #else
29602 #ifdef HAVE_TIME_H
29603 #include <time.h>
29604 #endif
29605 #endif
29606 #ifdef HAVE_SYS_SOCKET_H
29607 #include <sys/socket.h>
29608 #endif
29609
29610 int main (void)
29611 {
29612
29613         struct timeval ts;
29614         ts.tv_sec  = 0;
29615         ts.tv_usec = 0;
29616
29617  ;
29618  return 0;
29619 }
29620
29621 _ACEOF
29622 if ac_fn_c_try_compile "$LINENO"; then :
29623
29624       curl_cv_struct_timeval="yes"
29625
29626 else
29627
29628       curl_cv_struct_timeval="no"
29629
29630 fi
29631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29632
29633 fi
29634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
29635 $as_echo "$curl_cv_struct_timeval" >&6; }
29636   case "$curl_cv_struct_timeval" in
29637     yes)
29638
29639 cat >>confdefs.h <<_ACEOF
29640 #define HAVE_STRUCT_TIMEVAL 1
29641 _ACEOF
29642
29643       ;;
29644   esac
29645
29646
29647
29648     if test "x$cross_compiling" != xyes; then
29649
29650             { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
29651 $as_echo_n "checking run-time libs availability... " >&6; }
29652
29653
29654    old=$LD_LIBRARY_PATH
29655    LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
29656    export LD_LIBRARY_PATH
29657    if test "$cross_compiling" = yes; then :
29658   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29660 as_fn_error $? "cannot run test program while cross compiling
29661 See \`config.log' for more details" "$LINENO" 5; }
29662 else
29663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29664 /* end confdefs.h.  */
29665
29666 int main()
29667 {
29668   return 0;
29669 }
29670
29671 _ACEOF
29672 if ac_fn_c_try_run "$LINENO"; then :
29673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
29674 $as_echo "fine" >&6; }
29675 else
29676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
29677 $as_echo "failed" >&6; }
29678     as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
29679
29680 fi
29681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29682   conftest.$ac_objext conftest.beam conftest.$ac_ext
29683 fi
29684
29685    LD_LIBRARY_PATH=$old # restore
29686
29687
29688       fi
29689
29690
29691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
29692 $as_echo_n "checking size of size_t... " >&6; }
29693 if ${ac_cv_sizeof_size_t+:} false; then :
29694   $as_echo_n "(cached) " >&6
29695 else
29696   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
29697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29698 /* end confdefs.h.  */
29699
29700 #include <sys/types.h>
29701
29702
29703 int main (void)
29704 {
29705 switch (0) case 0: case (sizeof (size_t) == $ac_size):;
29706  ;
29707  return 0;
29708 }
29709 _ACEOF
29710 if ac_fn_c_try_compile "$LINENO"; then :
29711   ac_cv_sizeof_size_t=$ac_size
29712 fi
29713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29714   if test x$ac_cv_sizeof_size_t != x ; then break; fi
29715 done
29716
29717 fi
29718
29719 if test x$ac_cv_sizeof_size_t = x ; then
29720   as_fn_error $? "cannot determine a size for size_t" "$LINENO" 5
29721 fi
29722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
29723 $as_echo "$ac_cv_sizeof_size_t" >&6; }
29724
29725 cat >>confdefs.h <<_ACEOF
29726 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
29727 _ACEOF
29728
29729
29730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
29731 $as_echo_n "checking size of long... " >&6; }
29732 if ${ac_cv_sizeof_long+:} false; then :
29733   $as_echo_n "(cached) " >&6
29734 else
29735   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
29736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29737 /* end confdefs.h.  */
29738
29739 #include <sys/types.h>
29740
29741
29742 int main (void)
29743 {
29744 switch (0) case 0: case (sizeof (long) == $ac_size):;
29745  ;
29746  return 0;
29747 }
29748 _ACEOF
29749 if ac_fn_c_try_compile "$LINENO"; then :
29750   ac_cv_sizeof_long=$ac_size
29751 fi
29752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29753   if test x$ac_cv_sizeof_long != x ; then break; fi
29754 done
29755
29756 fi
29757
29758 if test x$ac_cv_sizeof_long = x ; then
29759   as_fn_error $? "cannot determine a size for long" "$LINENO" 5
29760 fi
29761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
29762 $as_echo "$ac_cv_sizeof_long" >&6; }
29763
29764 cat >>confdefs.h <<_ACEOF
29765 #define SIZEOF_LONG $ac_cv_sizeof_long
29766 _ACEOF
29767
29768
29769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
29770 $as_echo_n "checking size of int... " >&6; }
29771 if ${ac_cv_sizeof_int+:} false; then :
29772   $as_echo_n "(cached) " >&6
29773 else
29774   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
29775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29776 /* end confdefs.h.  */
29777
29778 #include <sys/types.h>
29779
29780
29781 int main (void)
29782 {
29783 switch (0) case 0: case (sizeof (int) == $ac_size):;
29784  ;
29785  return 0;
29786 }
29787 _ACEOF
29788 if ac_fn_c_try_compile "$LINENO"; then :
29789   ac_cv_sizeof_int=$ac_size
29790 fi
29791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29792   if test x$ac_cv_sizeof_int != x ; then break; fi
29793 done
29794
29795 fi
29796
29797 if test x$ac_cv_sizeof_int = x ; then
29798   as_fn_error $? "cannot determine a size for int" "$LINENO" 5
29799 fi
29800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
29801 $as_echo "$ac_cv_sizeof_int" >&6; }
29802
29803 cat >>confdefs.h <<_ACEOF
29804 #define SIZEOF_INT $ac_cv_sizeof_int
29805 _ACEOF
29806
29807
29808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
29809 $as_echo_n "checking size of short... " >&6; }
29810 if ${ac_cv_sizeof_short+:} false; then :
29811   $as_echo_n "(cached) " >&6
29812 else
29813   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
29814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29815 /* end confdefs.h.  */
29816
29817 #include <sys/types.h>
29818
29819
29820 int main (void)
29821 {
29822 switch (0) case 0: case (sizeof (short) == $ac_size):;
29823  ;
29824  return 0;
29825 }
29826 _ACEOF
29827 if ac_fn_c_try_compile "$LINENO"; then :
29828   ac_cv_sizeof_short=$ac_size
29829 fi
29830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29831   if test x$ac_cv_sizeof_short != x ; then break; fi
29832 done
29833
29834 fi
29835
29836 if test x$ac_cv_sizeof_short = x ; then
29837   as_fn_error $? "cannot determine a size for short" "$LINENO" 5
29838 fi
29839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
29840 $as_echo "$ac_cv_sizeof_short" >&6; }
29841
29842 cat >>confdefs.h <<_ACEOF
29843 #define SIZEOF_SHORT $ac_cv_sizeof_short
29844 _ACEOF
29845
29846
29847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
29848 $as_echo_n "checking size of time_t... " >&6; }
29849 if ${ac_cv_sizeof_time_t+:} false; then :
29850   $as_echo_n "(cached) " >&6
29851 else
29852   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
29853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29854 /* end confdefs.h.  */
29855
29856 #include <sys/types.h>
29857
29858
29859 int main (void)
29860 {
29861 switch (0) case 0: case (sizeof (time_t) == $ac_size):;
29862  ;
29863  return 0;
29864 }
29865 _ACEOF
29866 if ac_fn_c_try_compile "$LINENO"; then :
29867   ac_cv_sizeof_time_t=$ac_size
29868 fi
29869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29870   if test x$ac_cv_sizeof_time_t != x ; then break; fi
29871 done
29872
29873 fi
29874
29875 if test x$ac_cv_sizeof_time_t = x ; then
29876   as_fn_error $? "cannot determine a size for time_t" "$LINENO" 5
29877 fi
29878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
29879 $as_echo "$ac_cv_sizeof_time_t" >&6; }
29880
29881 cat >>confdefs.h <<_ACEOF
29882 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
29883 _ACEOF
29884
29885
29886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
29887 $as_echo_n "checking size of off_t... " >&6; }
29888 if ${ac_cv_sizeof_off_t+:} false; then :
29889   $as_echo_n "(cached) " >&6
29890 else
29891   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
29892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29893 /* end confdefs.h.  */
29894
29895 #include <sys/types.h>
29896
29897
29898 int main (void)
29899 {
29900 switch (0) case 0: case (sizeof (off_t) == $ac_size):;
29901  ;
29902  return 0;
29903 }
29904 _ACEOF
29905 if ac_fn_c_try_compile "$LINENO"; then :
29906   ac_cv_sizeof_off_t=$ac_size
29907 fi
29908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29909   if test x$ac_cv_sizeof_off_t != x ; then break; fi
29910 done
29911
29912 fi
29913
29914 if test x$ac_cv_sizeof_off_t = x ; then
29915   as_fn_error $? "cannot determine a size for off_t" "$LINENO" 5
29916 fi
29917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
29918 $as_echo "$ac_cv_sizeof_off_t" >&6; }
29919
29920 cat >>confdefs.h <<_ACEOF
29921 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
29922 _ACEOF
29923
29924
29925
29926 o=$CPPFLAGS
29927 CPPFLAGS="-I$srcdir/include $CPPFLAGS"
29928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
29929 $as_echo_n "checking size of curl_off_t... " >&6; }
29930 if ${ac_cv_sizeof_curl_off_t+:} false; then :
29931   $as_echo_n "(cached) " >&6
29932 else
29933   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
29934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29935 /* end confdefs.h.  */
29936
29937 #include <sys/types.h>
29938
29939 #include <curl/system.h>
29940
29941
29942 int main (void)
29943 {
29944 switch (0) case 0: case (sizeof (curl_off_t) == $ac_size):;
29945  ;
29946  return 0;
29947 }
29948 _ACEOF
29949 if ac_fn_c_try_compile "$LINENO"; then :
29950   ac_cv_sizeof_curl_off_t=$ac_size
29951 fi
29952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29953   if test x$ac_cv_sizeof_curl_off_t != x ; then break; fi
29954 done
29955
29956 fi
29957
29958 if test x$ac_cv_sizeof_curl_off_t = x ; then
29959   as_fn_error $? "cannot determine a size for curl_off_t" "$LINENO" 5
29960 fi
29961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_curl_off_t" >&5
29962 $as_echo "$ac_cv_sizeof_curl_off_t" >&6; }
29963
29964 cat >>confdefs.h <<_ACEOF
29965 #define SIZEOF_CURL_OFF_T $ac_cv_sizeof_curl_off_t
29966 _ACEOF
29967
29968
29969 CPPFLAGS=$o
29970
29971 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
29972 if test "x$ac_cv_type_long_long" = xyes; then :
29973
29974 $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
29975
29976    longlong="yes"
29977
29978 fi
29979
29980
29981 if test "xyes" = "x$longlong"; then
29982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
29983 $as_echo_n "checking if numberLL works... " >&6; }
29984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29985 /* end confdefs.h.  */
29986
29987
29988
29989 int main (void)
29990 {
29991
29992       long long val = 1000LL;
29993
29994  ;
29995  return 0;
29996 }
29997
29998 _ACEOF
29999 if ac_fn_c_try_compile "$LINENO"; then :
30000
30001     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30002 $as_echo "yes" >&6; }
30003
30004 $as_echo "#define HAVE_LL 1" >>confdefs.h
30005
30006
30007 else
30008
30009     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30010 $as_echo "no" >&6; }
30011
30012 fi
30013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30014 fi
30015
30016
30017 # check for ssize_t
30018 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
30019 if test "x$ac_cv_type_ssize_t" = xyes; then :
30020
30021 else
30022
30023 $as_echo "#define ssize_t int" >>confdefs.h
30024
30025 fi
30026
30027
30028 # check for bool type
30029 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
30030 #ifdef HAVE_SYS_TYPES_H
30031 #include <sys/types.h>
30032 #endif
30033 #ifdef HAVE_STDBOOL_H
30034 #include <stdbool.h>
30035 #endif
30036
30037 "
30038 if test "x$ac_cv_type_bool" = xyes; then :
30039
30040
30041 $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
30042
30043
30044 fi
30045
30046
30047 # check for sa_family_t
30048 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
30049 #ifdef HAVE_SYS_SOCKET_H
30050 #include <sys/socket.h>
30051 #endif
30052
30053 "
30054 if test "x$ac_cv_type_sa_family_t" = xyes; then :
30055
30056 $as_echo "#define CURL_SA_FAMILY_T sa_family_t" >>confdefs.h
30057
30058 else
30059
30060    # The windows name?
30061    ac_fn_c_check_type "$LINENO" "ADDRESS_FAMILY" "ac_cv_type_ADDRESS_FAMILY" "
30062 #ifdef HAVE_SYS_SOCKET_H
30063 #include <sys/socket.h>
30064 #endif
30065
30066 "
30067 if test "x$ac_cv_type_ADDRESS_FAMILY" = xyes; then :
30068
30069 $as_echo "#define CURL_SA_FAMILY_T ADDRESS_FAMILY" >>confdefs.h
30070
30071 else
30072
30073 $as_echo "#define CURL_SA_FAMILY_T unsigned short" >>confdefs.h
30074
30075 fi
30076
30077
30078 fi
30079
30080
30081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if time_t is unsigned" >&5
30082 $as_echo_n "checking if time_t is unsigned... " >&6; }
30083
30084
30085    old=$LD_LIBRARY_PATH
30086    LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
30087    export LD_LIBRARY_PATH
30088    if test "$cross_compiling" = yes; then :
30089     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30090 $as_echo "no" >&6; }
30091
30092 else
30093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30094 /* end confdefs.h.  */
30095
30096   #include <time.h>
30097   #include <limits.h>
30098   time_t t = -1;
30099   return (t > 0);
30100
30101 _ACEOF
30102 if ac_fn_c_try_run "$LINENO"; then :
30103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30104 $as_echo "yes" >&6; }
30105
30106 $as_echo "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
30107
30108
30109 else
30110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30111 $as_echo "no" >&6; }
30112
30113 fi
30114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30115   conftest.$ac_objext conftest.beam conftest.$ac_ext
30116 fi
30117
30118    LD_LIBRARY_PATH=$old # restore
30119
30120
30121
30122 curl_includes_poll="\
30123 /* includes start */
30124 #ifdef HAVE_SYS_TYPES_H
30125 #  include <sys/types.h>
30126 #endif
30127 #ifdef HAVE_POLL_H
30128 #  include <poll.h>
30129 #endif
30130 #ifdef HAVE_SYS_POLL_H
30131 #  include <sys/poll.h>
30132 #endif
30133 /* includes end */"
30134   for ac_header in sys/types.h poll.h sys/poll.h
30135 do :
30136   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30137 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
30138 "
30139 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30140   cat >>confdefs.h <<_ACEOF
30141 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30142 _ACEOF
30143
30144 fi
30145
30146 done
30147
30148
30149
30150     #
30151   tst_poll_events_macro_defined="unknown"
30152   #
30153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30154 /* end confdefs.h.  */
30155
30156
30157       $curl_includes_poll
30158
30159 int main (void)
30160 {
30161
30162 #if defined(events) || defined(revents)
30163       return 0;
30164 #else
30165       force compilation error
30166 #endif
30167
30168  ;
30169  return 0;
30170 }
30171
30172 _ACEOF
30173 if ac_fn_c_try_compile "$LINENO"; then :
30174
30175     tst_poll_events_macro_defined="yes"
30176
30177 else
30178
30179     tst_poll_events_macro_defined="no"
30180
30181 fi
30182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30183   #
30184   if test "$tst_poll_events_macro_defined" = "yes"; then
30185     if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
30186
30187 cat >>confdefs.h <<_EOF
30188 #define CURL_PULL_SYS_POLL_H 1
30189 _EOF
30190
30191     fi
30192   fi
30193   #
30194
30195
30196
30197   ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
30198 #undef inline
30199 #ifdef HAVE_WINDOWS_H
30200 #ifndef WIN32_LEAN_AND_MEAN
30201 #define WIN32_LEAN_AND_MEAN
30202 #endif
30203 #include <windows.h>
30204 #ifdef HAVE_WINSOCK2_H
30205 #include <winsock2.h>
30206 #else
30207 #ifdef HAVE_WINSOCK_H
30208 #include <winsock.h>
30209 #endif
30210 #endif
30211 #else
30212 #ifdef HAVE_SYS_TYPES_H
30213 #include <sys/types.h>
30214 #endif
30215 #ifdef HAVE_SYS_SOCKET_H
30216 #include <sys/socket.h>
30217 #endif
30218 #ifdef HAVE_NETINET_IN_H
30219 #include <netinet/in.h>
30220 #endif
30221 #ifdef HAVE_ARPA_INET_H
30222 #include <arpa/inet.h>
30223 #endif
30224 #endif
30225
30226 "
30227 if test "x$ac_cv_type_in_addr_t" = xyes; then :
30228
30229 else
30230
30231         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
30232 $as_echo_n "checking for in_addr_t equivalent... " >&6; }
30233 if ${curl_cv_in_addr_t_equiv+:} false; then :
30234   $as_echo_n "(cached) " >&6
30235 else
30236
30237       curl_cv_in_addr_t_equiv="unknown"
30238       for t in "unsigned long" int size_t unsigned long; do
30239         if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
30240           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30241 /* end confdefs.h.  */
30242
30243
30244 #undef inline
30245 #ifdef HAVE_WINDOWS_H
30246 #ifndef WIN32_LEAN_AND_MEAN
30247 #define WIN32_LEAN_AND_MEAN
30248 #endif
30249 #include <windows.h>
30250 #ifdef HAVE_WINSOCK2_H
30251 #include <winsock2.h>
30252 #else
30253 #ifdef HAVE_WINSOCK_H
30254 #include <winsock.h>
30255 #endif
30256 #endif
30257 #else
30258 #ifdef HAVE_SYS_TYPES_H
30259 #include <sys/types.h>
30260 #endif
30261 #ifdef HAVE_SYS_SOCKET_H
30262 #include <sys/socket.h>
30263 #endif
30264 #ifdef HAVE_NETINET_IN_H
30265 #include <netinet/in.h>
30266 #endif
30267 #ifdef HAVE_ARPA_INET_H
30268 #include <arpa/inet.h>
30269 #endif
30270 #endif
30271
30272 int main (void)
30273 {
30274
30275               $t data = inet_addr ("1.2.3.4");
30276
30277  ;
30278  return 0;
30279 }
30280
30281 _ACEOF
30282 if ac_fn_c_try_link "$LINENO"; then :
30283
30284             curl_cv_in_addr_t_equiv="$t"
30285
30286 fi
30287 rm -f core conftest.err conftest.$ac_objext \
30288     conftest$ac_exeext conftest.$ac_ext
30289         fi
30290       done
30291
30292 fi
30293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
30294 $as_echo "$curl_cv_in_addr_t_equiv" >&6; }
30295     case "$curl_cv_in_addr_t_equiv" in
30296       unknown)
30297         as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
30298         ;;
30299       *)
30300
30301 cat >>confdefs.h <<_ACEOF
30302 #define in_addr_t $curl_cv_in_addr_t_equiv
30303 _ACEOF
30304
30305         ;;
30306     esac
30307
30308 fi
30309
30310
30311
30312
30313    ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
30314 #undef inline
30315 #ifdef HAVE_WINDOWS_H
30316 #ifndef WIN32_LEAN_AND_MEAN
30317 #define WIN32_LEAN_AND_MEAN
30318 #endif
30319 #include <windows.h>
30320 #ifdef HAVE_WINSOCK2_H
30321 #include <winsock2.h>
30322 #endif
30323 #else
30324 #ifdef HAVE_SYS_TYPES_H
30325 #include <sys/types.h>
30326 #endif
30327 #ifdef HAVE_SYS_SOCKET_H
30328 #include <sys/socket.h>
30329 #endif
30330 #ifdef HAVE_NETINET_IN_H
30331 #include <netinet/in.h>
30332 #endif
30333 #ifdef HAVE_ARPA_INET_H
30334 #include <arpa/inet.h>
30335 #endif
30336 #endif
30337
30338 "
30339 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
30340
30341 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
30342
30343 fi
30344
30345
30346
30347
30348   for ac_header in signal.h
30349 do :
30350   ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
30351 if test "x$ac_cv_header_signal_h" = xyes; then :
30352   cat >>confdefs.h <<_ACEOF
30353 #define HAVE_SIGNAL_H 1
30354 _ACEOF
30355
30356 fi
30357
30358 done
30359
30360   ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
30361 #ifdef HAVE_SIGNAL_H
30362 #include <signal.h>
30363 #endif
30364
30365 "
30366 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
30367
30368
30369 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
30370
30371
30372 fi
30373
30374   case "$ac_cv_type_sig_atomic_t" in
30375     yes)
30376       #
30377       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
30378 $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
30379       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30380 /* end confdefs.h.  */
30381
30382
30383 #ifdef HAVE_SIGNAL_H
30384 #include <signal.h>
30385 #endif
30386
30387 int main (void)
30388 {
30389
30390           static volatile sig_atomic_t dummy = 0;
30391
30392  ;
30393  return 0;
30394 }
30395
30396 _ACEOF
30397 if ac_fn_c_try_link "$LINENO"; then :
30398
30399         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30400 $as_echo "no" >&6; }
30401         curl_cv_sig_atomic_t_volatile="no"
30402
30403 else
30404
30405         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30406 $as_echo "yes" >&6; }
30407         curl_cv_sig_atomic_t_volatile="yes"
30408
30409 fi
30410 rm -f core conftest.err conftest.$ac_objext \
30411     conftest$ac_exeext conftest.$ac_ext
30412       #
30413       if test "$curl_cv_sig_atomic_t_volatile" = "yes"; then
30414
30415 $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
30416
30417       fi
30418       ;;
30419   esac
30420
30421
30422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
30423 $as_echo_n "checking return type of signal handlers... " >&6; }
30424 if ${ac_cv_type_signal+:} false; then :
30425   $as_echo_n "(cached) " >&6
30426 else
30427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30428 /* end confdefs.h.  */
30429 #include <sys/types.h>
30430 #include <signal.h>
30431
30432 int main (void)
30433 {
30434 return *(signal (0, 0)) (0) == 1;
30435  ;
30436  return 0;
30437 }
30438 _ACEOF
30439 if ac_fn_c_try_compile "$LINENO"; then :
30440   ac_cv_type_signal=int
30441 else
30442   ac_cv_type_signal=void
30443 fi
30444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30445 fi
30446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
30447 $as_echo "$ac_cv_type_signal" >&6; }
30448
30449 cat >>confdefs.h <<_ACEOF
30450 #define RETSIGTYPE $ac_cv_type_signal
30451 _ACEOF
30452
30453
30454
30455
30456     for ac_header in sys/select.h sys/socket.h
30457 do :
30458   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30459 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30460 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30461   cat >>confdefs.h <<_ACEOF
30462 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30463 _ACEOF
30464
30465 fi
30466
30467 done
30468
30469   #
30470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
30471 $as_echo_n "checking for select... " >&6; }
30472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30473 /* end confdefs.h.  */
30474
30475
30476 #undef inline
30477 #ifdef HAVE_WINDOWS_H
30478 #ifndef WIN32_LEAN_AND_MEAN
30479 #define WIN32_LEAN_AND_MEAN
30480 #endif
30481 #include <windows.h>
30482 #ifdef HAVE_WINSOCK2_H
30483 #include <winsock2.h>
30484 #else
30485 #ifdef HAVE_WINSOCK_H
30486 #include <winsock.h>
30487 #endif
30488 #endif
30489 #endif
30490 #ifdef HAVE_SYS_TYPES_H
30491 #include <sys/types.h>
30492 #endif
30493 #ifdef HAVE_SYS_TIME_H
30494 #include <sys/time.h>
30495 #ifdef TIME_WITH_SYS_TIME
30496 #include <time.h>
30497 #endif
30498 #else
30499 #ifdef HAVE_TIME_H
30500 #include <time.h>
30501 #endif
30502 #endif
30503 #ifndef HAVE_WINDOWS_H
30504 #ifdef HAVE_PROTO_BSDSOCKET_H
30505 #include <proto/bsdsocket.h>
30506 struct Library *SocketBase = NULL;
30507 #define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
30508 #endif
30509 #ifdef HAVE_SYS_SELECT_H
30510 #include <sys/select.h>
30511 #endif
30512 #ifdef HAVE_SYS_SOCKET_H
30513 #include <sys/socket.h>
30514 #endif
30515 #endif
30516
30517 int main (void)
30518 {
30519
30520       select(0, 0, 0, 0, 0);
30521
30522  ;
30523  return 0;
30524 }
30525
30526 _ACEOF
30527 if ac_fn_c_try_link "$LINENO"; then :
30528
30529     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30530 $as_echo "yes" >&6; }
30531     curl_cv_select="yes"
30532
30533 else
30534
30535     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30536 $as_echo "no" >&6; }
30537     curl_cv_select="no"
30538
30539 fi
30540 rm -f core conftest.err conftest.$ac_objext \
30541     conftest$ac_exeext conftest.$ac_ext
30542   #
30543   if test "$curl_cv_select" = "yes"; then
30544     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
30545 $as_echo_n "checking types of args and return type for select... " >&6; }
30546 if ${curl_cv_func_select_args+:} false; then :
30547   $as_echo_n "(cached) " >&6
30548 else
30549
30550       curl_cv_func_select_args="unknown"
30551       for sel_retv in 'int' 'ssize_t'; do
30552         for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
30553           for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
30554             for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
30555               if test "$curl_cv_func_select_args" = "unknown"; then
30556                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30557 /* end confdefs.h.  */
30558
30559
30560 #undef inline
30561 #ifdef HAVE_WINDOWS_H
30562 #ifndef WIN32_LEAN_AND_MEAN
30563 #define WIN32_LEAN_AND_MEAN
30564 #endif
30565 #include <windows.h>
30566 #ifdef HAVE_WINSOCK2_H
30567 #include <winsock2.h>
30568 #else
30569 #ifdef HAVE_WINSOCK_H
30570 #include <winsock.h>
30571 #endif
30572 #endif
30573 #define SELECTCALLCONV PASCAL
30574 #endif
30575 #ifdef HAVE_SYS_TYPES_H
30576 #include <sys/types.h>
30577 #endif
30578 #ifdef HAVE_SYS_TIME_H
30579 #include <sys/time.h>
30580 #ifdef TIME_WITH_SYS_TIME
30581 #include <time.h>
30582 #endif
30583 #else
30584 #ifdef HAVE_TIME_H
30585 #include <time.h>
30586 #endif
30587 #endif
30588 #ifndef HAVE_WINDOWS_H
30589 #ifdef HAVE_PROTO_BSDSOCKET_H
30590 #include <proto/bsdsocket.h>
30591 struct Library *SocketBase = NULL;
30592 #define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
30593 #endif
30594 #ifdef HAVE_SYS_SELECT_H
30595 #include <sys/select.h>
30596 #endif
30597 #ifdef HAVE_SYS_SOCKET_H
30598 #include <sys/socket.h>
30599 #endif
30600 #define SELECTCALLCONV
30601 #endif
30602 #ifndef HAVE_STRUCT_TIMEVAL
30603                     struct timeval {
30604                       long tv_sec;
30605                       long tv_usec;
30606                     };
30607 #endif
30608 #ifndef HAVE_PROTO_BSDSOCKET_H
30609                     extern $sel_retv SELECTCALLCONV
30610                                 select($sel_arg1,
30611                                         $sel_arg234,
30612                                         $sel_arg234,
30613                                         $sel_arg234,
30614                                         $sel_arg5);
30615 #endif
30616
30617 int main (void)
30618 {
30619
30620                     $sel_arg1   nfds=0;
30621                     $sel_arg234 rfds=0;
30622                     $sel_arg234 wfds=0;
30623                     $sel_arg234 efds=0;
30624                     $sel_retv res = select(nfds, rfds, wfds, efds, 0);
30625
30626  ;
30627  return 0;
30628 }
30629
30630 _ACEOF
30631 if ac_fn_c_try_compile "$LINENO"; then :
30632
30633                   curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
30634
30635 fi
30636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30637               fi
30638             done
30639           done
30640         done
30641       done
30642
30643 fi
30644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
30645 $as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
30646     if test "$curl_cv_func_select_args" = "unknown"; then
30647       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
30648 $as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
30649       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
30650 $as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
30651     else
30652       select_prev_IFS=$IFS; IFS=','
30653       set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
30654       IFS=$select_prev_IFS
30655       shift
30656       #
30657       sel_qual_type_arg5=$3
30658       #
30659
30660 cat >>confdefs.h <<_ACEOF
30661 #define SELECT_TYPE_ARG1 $1
30662 _ACEOF
30663
30664
30665 cat >>confdefs.h <<_ACEOF
30666 #define SELECT_TYPE_ARG234 $2
30667 _ACEOF
30668
30669
30670 cat >>confdefs.h <<_ACEOF
30671 #define SELECT_TYPE_RETV $4
30672 _ACEOF
30673
30674       #
30675       prev_sh_opts=$-
30676       #
30677       case $prev_sh_opts in
30678         *f*)
30679           ;;
30680         *)
30681           set -f
30682           ;;
30683       esac
30684       #
30685       case "$sel_qual_type_arg5" in
30686         const*)
30687           sel_qual_arg5=const
30688           sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
30689         ;;
30690         *)
30691           sel_qual_arg5=
30692           sel_type_arg5=$sel_qual_type_arg5
30693         ;;
30694       esac
30695       #
30696
30697 cat >>confdefs.h <<_ACEOF
30698 #define SELECT_QUAL_ARG5 $sel_qual_arg5
30699 _ACEOF
30700
30701
30702 cat >>confdefs.h <<_ACEOF
30703 #define SELECT_TYPE_ARG5 $sel_type_arg5
30704 _ACEOF
30705
30706       #
30707       case $prev_sh_opts in
30708         *f*)
30709           ;;
30710         *)
30711           set +f
30712           ;;
30713       esac
30714       #
30715
30716 cat >>confdefs.h <<_ACEOF
30717 #define HAVE_SELECT 1
30718 _ACEOF
30719
30720       curl_cv_func_select="yes"
30721     fi
30722   fi
30723
30724
30725
30726       for ac_header in sys/types.h sys/socket.h
30727 do :
30728   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30729 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30730 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30731   cat >>confdefs.h <<_ACEOF
30732 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30733 _ACEOF
30734
30735 fi
30736
30737 done
30738
30739   #
30740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
30741 $as_echo_n "checking for recv... " >&6; }
30742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30743 /* end confdefs.h.  */
30744
30745
30746 #undef inline
30747 #ifdef HAVE_WINDOWS_H
30748 #ifndef WIN32_LEAN_AND_MEAN
30749 #define WIN32_LEAN_AND_MEAN
30750 #endif
30751 #include <windows.h>
30752 #ifdef HAVE_WINSOCK2_H
30753 #include <winsock2.h>
30754 #else
30755 #ifdef HAVE_WINSOCK_H
30756 #include <winsock.h>
30757 #endif
30758 #endif
30759 #else
30760 #ifdef HAVE_PROTO_BSDSOCKET_H
30761 #include <proto/bsdsocket.h>
30762 struct Library *SocketBase = NULL;
30763 #endif
30764 #ifdef HAVE_SYS_TYPES_H
30765 #include <sys/types.h>
30766 #endif
30767 #ifdef HAVE_SYS_SOCKET_H
30768 #include <sys/socket.h>
30769 #endif
30770 #endif
30771
30772 int main (void)
30773 {
30774
30775       recv(0, 0, 0, 0);
30776
30777  ;
30778  return 0;
30779 }
30780
30781 _ACEOF
30782 if ac_fn_c_try_link "$LINENO"; then :
30783
30784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30785 $as_echo "yes" >&6; }
30786     curl_cv_recv="yes"
30787
30788 else
30789
30790     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30791 $as_echo "no" >&6; }
30792     curl_cv_recv="no"
30793
30794 fi
30795 rm -f core conftest.err conftest.$ac_objext \
30796     conftest$ac_exeext conftest.$ac_ext
30797   #
30798   if test "$curl_cv_recv" = "yes"; then
30799     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
30800 $as_echo_n "checking types of args and return type for recv... " >&6; }
30801 if ${curl_cv_func_recv_args+:} false; then :
30802   $as_echo_n "(cached) " >&6
30803 else
30804
30805       curl_cv_func_recv_args="unknown"
30806       for recv_retv in 'int' 'ssize_t'; do
30807         for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
30808           for recv_arg2 in 'char *' 'void *'; do
30809             for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
30810               for recv_arg4 in 'int' 'unsigned int'; do
30811                 if test "$curl_cv_func_recv_args" = "unknown"; then
30812                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30813 /* end confdefs.h.  */
30814
30815
30816 #undef inline
30817 #ifdef HAVE_WINDOWS_H
30818 #ifndef WIN32_LEAN_AND_MEAN
30819 #define WIN32_LEAN_AND_MEAN
30820 #endif
30821 #include <windows.h>
30822 #ifdef HAVE_WINSOCK2_H
30823 #include <winsock2.h>
30824 #else
30825 #ifdef HAVE_WINSOCK_H
30826 #include <winsock.h>
30827 #endif
30828 #endif
30829 #define RECVCALLCONV PASCAL
30830 #else
30831 #ifdef HAVE_PROTO_BSDSOCKET_H
30832 #include <proto/bsdsocket.h>
30833 struct Library *SocketBase = NULL;
30834 #endif
30835 #ifdef HAVE_SYS_TYPES_H
30836 #include <sys/types.h>
30837 #endif
30838 #ifdef HAVE_SYS_SOCKET_H
30839 #include <sys/socket.h>
30840 #endif
30841 #define RECVCALLCONV
30842 #endif
30843 #ifndef HAVE_PROTO_BSDSOCKET_H
30844                       extern $recv_retv RECVCALLCONV
30845                       recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
30846 #endif
30847
30848 int main (void)
30849 {
30850
30851                       $recv_arg1 s=0;
30852                       $recv_arg2 buf=0;
30853                       $recv_arg3 len=0;
30854                       $recv_arg4 flags=0;
30855                       $recv_retv res = recv(s, buf, len, flags);
30856
30857  ;
30858  return 0;
30859 }
30860
30861 _ACEOF
30862 if ac_fn_c_try_compile "$LINENO"; then :
30863
30864                     curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
30865
30866 fi
30867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30868                 fi
30869               done
30870             done
30871           done
30872         done
30873       done
30874
30875 fi
30876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
30877 $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
30878     if test "$curl_cv_func_recv_args" = "unknown"; then
30879       as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
30880     else
30881       recv_prev_IFS=$IFS; IFS=','
30882       set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
30883       IFS=$recv_prev_IFS
30884       shift
30885       #
30886
30887 cat >>confdefs.h <<_ACEOF
30888 #define RECV_TYPE_ARG1 $1
30889 _ACEOF
30890
30891
30892 cat >>confdefs.h <<_ACEOF
30893 #define RECV_TYPE_ARG2 $2
30894 _ACEOF
30895
30896
30897 cat >>confdefs.h <<_ACEOF
30898 #define RECV_TYPE_ARG3 $3
30899 _ACEOF
30900
30901
30902 cat >>confdefs.h <<_ACEOF
30903 #define RECV_TYPE_ARG4 $4
30904 _ACEOF
30905
30906
30907 cat >>confdefs.h <<_ACEOF
30908 #define RECV_TYPE_RETV $5
30909 _ACEOF
30910
30911       #
30912
30913 cat >>confdefs.h <<_ACEOF
30914 #define HAVE_RECV 1
30915 _ACEOF
30916
30917       curl_cv_func_recv="yes"
30918     fi
30919   else
30920     as_fn_error $? "Unable to link function recv" "$LINENO" 5
30921   fi
30922
30923
30924       for ac_header in sys/types.h sys/socket.h
30925 do :
30926   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30927 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30928 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30929   cat >>confdefs.h <<_ACEOF
30930 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30931 _ACEOF
30932
30933 fi
30934
30935 done
30936
30937   #
30938   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
30939 $as_echo_n "checking for send... " >&6; }
30940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30941 /* end confdefs.h.  */
30942
30943
30944 #undef inline
30945 #ifdef HAVE_WINDOWS_H
30946 #ifndef WIN32_LEAN_AND_MEAN
30947 #define WIN32_LEAN_AND_MEAN
30948 #endif
30949 #include <windows.h>
30950 #ifdef HAVE_WINSOCK2_H
30951 #include <winsock2.h>
30952 #else
30953 #ifdef HAVE_WINSOCK_H
30954 #include <winsock.h>
30955 #endif
30956 #endif
30957 #else
30958 #ifdef HAVE_PROTO_BSDSOCKET_H
30959 #include <proto/bsdsocket.h>
30960 struct Library *SocketBase = NULL;
30961 #endif
30962 #ifdef HAVE_SYS_TYPES_H
30963 #include <sys/types.h>
30964 #endif
30965 #ifdef HAVE_SYS_SOCKET_H
30966 #include <sys/socket.h>
30967 #endif
30968 #endif
30969
30970 int main (void)
30971 {
30972
30973       send(0, 0, 0, 0);
30974
30975  ;
30976  return 0;
30977 }
30978
30979 _ACEOF
30980 if ac_fn_c_try_link "$LINENO"; then :
30981
30982     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30983 $as_echo "yes" >&6; }
30984     curl_cv_send="yes"
30985
30986 else
30987
30988     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30989 $as_echo "no" >&6; }
30990     curl_cv_send="no"
30991
30992 fi
30993 rm -f core conftest.err conftest.$ac_objext \
30994     conftest$ac_exeext conftest.$ac_ext
30995   #
30996   if test "$curl_cv_send" = "yes"; then
30997     { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
30998 $as_echo_n "checking types of args and return type for send... " >&6; }
30999 if ${curl_cv_func_send_args+:} false; then :
31000   $as_echo_n "(cached) " >&6
31001 else
31002
31003       curl_cv_func_send_args="unknown"
31004       for send_retv in 'int' 'ssize_t'; do
31005         for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
31006           for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
31007             for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
31008               for send_arg4 in 'int' 'unsigned int'; do
31009                 if test "$curl_cv_func_send_args" = "unknown"; then
31010                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31011 /* end confdefs.h.  */
31012
31013
31014 #undef inline
31015 #ifdef HAVE_WINDOWS_H
31016 #ifndef WIN32_LEAN_AND_MEAN
31017 #define WIN32_LEAN_AND_MEAN
31018 #endif
31019 #include <windows.h>
31020 #ifdef HAVE_WINSOCK2_H
31021 #include <winsock2.h>
31022 #else
31023 #ifdef HAVE_WINSOCK_H
31024 #include <winsock.h>
31025 #endif
31026 #endif
31027 #define SENDCALLCONV PASCAL
31028 #else
31029 #ifdef HAVE_PROTO_BSDSOCKET_H
31030 #include <proto/bsdsocket.h>
31031 struct Library *SocketBase = NULL;
31032 #endif
31033 #ifdef HAVE_SYS_TYPES_H
31034 #include <sys/types.h>
31035 #endif
31036 #ifdef HAVE_SYS_SOCKET_H
31037 #include <sys/socket.h>
31038 #endif
31039 #define SENDCALLCONV
31040 #endif
31041 #ifndef HAVE_PROTO_BSDSOCKET_H
31042                       extern $send_retv SENDCALLCONV
31043                       send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
31044 #endif
31045
31046 int main (void)
31047 {
31048
31049                       $send_arg1 s=0;
31050                       $send_arg3 len=0;
31051                       $send_arg4 flags=0;
31052                       $send_retv res = send(s, 0, len, flags);
31053
31054  ;
31055  return 0;
31056 }
31057
31058 _ACEOF
31059 if ac_fn_c_try_compile "$LINENO"; then :
31060
31061                     curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
31062
31063 fi
31064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31065                 fi
31066               done
31067             done
31068           done
31069         done
31070       done
31071
31072 fi
31073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
31074 $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
31075     if test "$curl_cv_func_send_args" = "unknown"; then
31076       as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
31077     else
31078       send_prev_IFS=$IFS; IFS=','
31079       set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
31080       IFS=$send_prev_IFS
31081       shift
31082       #
31083       send_qual_type_arg2=$2
31084       #
31085
31086 cat >>confdefs.h <<_ACEOF
31087 #define SEND_TYPE_ARG1 $1
31088 _ACEOF
31089
31090
31091 cat >>confdefs.h <<_ACEOF
31092 #define SEND_TYPE_ARG3 $3
31093 _ACEOF
31094
31095
31096 cat >>confdefs.h <<_ACEOF
31097 #define SEND_TYPE_ARG4 $4
31098 _ACEOF
31099
31100
31101 cat >>confdefs.h <<_ACEOF
31102 #define SEND_TYPE_RETV $5
31103 _ACEOF
31104
31105       #
31106       prev_sh_opts=$-
31107       #
31108       case $prev_sh_opts in
31109         *f*)
31110           ;;
31111         *)
31112           set -f
31113           ;;
31114       esac
31115       #
31116       case "$send_qual_type_arg2" in
31117         const*)
31118           send_qual_arg2=const
31119           send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
31120         ;;
31121         *)
31122           send_qual_arg2=
31123           send_type_arg2=$send_qual_type_arg2
31124         ;;
31125       esac
31126       #
31127
31128 cat >>confdefs.h <<_ACEOF
31129 #define SEND_QUAL_ARG2 $send_qual_arg2
31130 _ACEOF
31131
31132
31133 cat >>confdefs.h <<_ACEOF
31134 #define SEND_TYPE_ARG2 $send_type_arg2
31135 _ACEOF
31136
31137       #
31138       case $prev_sh_opts in
31139         *f*)
31140           ;;
31141         *)
31142           set +f
31143           ;;
31144       esac
31145       #
31146
31147 cat >>confdefs.h <<_ACEOF
31148 #define HAVE_SEND 1
31149 _ACEOF
31150
31151       curl_cv_func_send="yes"
31152     fi
31153   else
31154     as_fn_error $? "Unable to link function send" "$LINENO" 5
31155   fi
31156
31157
31158   for ac_header in sys/types.h sys/socket.h
31159 do :
31160   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31161 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
31162 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31163   cat >>confdefs.h <<_ACEOF
31164 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31165 _ACEOF
31166
31167 fi
31168
31169 done
31170
31171   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
31172 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
31173 if ${curl_cv_msg_nosignal+:} false; then :
31174   $as_echo_n "(cached) " >&6
31175 else
31176
31177     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31178 /* end confdefs.h.  */
31179
31180
31181 #undef inline
31182 #ifdef HAVE_WINDOWS_H
31183 #ifndef WIN32_LEAN_AND_MEAN
31184 #define WIN32_LEAN_AND_MEAN
31185 #endif
31186 #include <windows.h>
31187 #ifdef HAVE_WINSOCK2_H
31188 #include <winsock2.h>
31189 #else
31190 #ifdef HAVE_WINSOCK_H
31191 #include <winsock.h>
31192 #endif
31193 #endif
31194 #else
31195 #ifdef HAVE_PROTO_BSDSOCKET_H
31196 #include <proto/bsdsocket.h>
31197 struct Library *SocketBase = NULL;
31198 #endif
31199 #ifdef HAVE_SYS_TYPES_H
31200 #include <sys/types.h>
31201 #endif
31202 #ifdef HAVE_SYS_SOCKET_H
31203 #include <sys/socket.h>
31204 #endif
31205 #endif
31206
31207 int main (void)
31208 {
31209
31210         int flag=MSG_NOSIGNAL;
31211
31212  ;
31213  return 0;
31214 }
31215
31216 _ACEOF
31217 if ac_fn_c_try_compile "$LINENO"; then :
31218
31219       curl_cv_msg_nosignal="yes"
31220
31221 else
31222
31223       curl_cv_msg_nosignal="no"
31224
31225 fi
31226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31227
31228 fi
31229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
31230 $as_echo "$curl_cv_msg_nosignal" >&6; }
31231   case "$curl_cv_msg_nosignal" in
31232     yes)
31233
31234 cat >>confdefs.h <<_ACEOF
31235 #define HAVE_MSG_NOSIGNAL 1
31236 _ACEOF
31237
31238       ;;
31239   esac
31240
31241
31242
31243 curl_includes_unistd="\
31244 /* includes start */
31245 #ifdef HAVE_SYS_TYPES_H
31246 #  include <sys/types.h>
31247 #endif
31248 #ifdef HAVE_UNISTD_H
31249 #  include <unistd.h>
31250 #endif
31251 /* includes end */"
31252   for ac_header in sys/types.h unistd.h
31253 do :
31254   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31255 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
31256 "
31257 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31258   cat >>confdefs.h <<_ACEOF
31259 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31260 _ACEOF
31261
31262 fi
31263
31264 done
31265
31266
31267
31268     #
31269   tst_links_alarm="unknown"
31270   tst_proto_alarm="unknown"
31271   tst_compi_alarm="unknown"
31272   tst_allow_alarm="unknown"
31273   #
31274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
31275 $as_echo_n "checking if alarm can be linked... " >&6; }
31276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31277 /* end confdefs.h.  */
31278
31279
31280 #define alarm innocuous_alarm
31281 #ifdef __STDC__
31282 # include <limits.h>
31283 #else
31284 # include <assert.h>
31285 #endif
31286 #undef alarm
31287 #ifdef __cplusplus
31288 extern "C"
31289 #endif
31290 char alarm ();
31291 #if defined __stub_alarm || defined __stub___alarm
31292 choke me
31293 #endif
31294
31295 int main (void)
31296 {
31297 return alarm ();
31298  ;
31299  return 0;
31300 }
31301
31302 _ACEOF
31303 if ac_fn_c_try_link "$LINENO"; then :
31304
31305     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31306 $as_echo "yes" >&6; }
31307     tst_links_alarm="yes"
31308
31309 else
31310
31311     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31312 $as_echo "no" >&6; }
31313     tst_links_alarm="no"
31314
31315 fi
31316 rm -f core conftest.err conftest.$ac_objext \
31317     conftest$ac_exeext conftest.$ac_ext
31318   #
31319   if test "$tst_links_alarm" = "yes"; then
31320     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
31321 $as_echo_n "checking if alarm is prototyped... " >&6; }
31322     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31323 /* end confdefs.h.  */
31324
31325       $curl_includes_unistd
31326
31327 _ACEOF
31328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31329   $EGREP "alarm" >/dev/null 2>&1; then :
31330
31331       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31332 $as_echo "yes" >&6; }
31333       tst_proto_alarm="yes"
31334
31335 else
31336
31337       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31338 $as_echo "no" >&6; }
31339       tst_proto_alarm="no"
31340
31341 fi
31342 rm -f conftest*
31343
31344   fi
31345   #
31346   if test "$tst_proto_alarm" = "yes"; then
31347     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
31348 $as_echo_n "checking if alarm is compilable... " >&6; }
31349     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31350 /* end confdefs.h.  */
31351
31352
31353         $curl_includes_unistd
31354
31355 int main (void)
31356 {
31357
31358         if(0 != alarm(0))
31359           return 1;
31360
31361  ;
31362  return 0;
31363 }
31364
31365 _ACEOF
31366 if ac_fn_c_try_compile "$LINENO"; then :
31367
31368       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31369 $as_echo "yes" >&6; }
31370       tst_compi_alarm="yes"
31371
31372 else
31373
31374       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31375 $as_echo "no" >&6; }
31376       tst_compi_alarm="no"
31377
31378 fi
31379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31380   fi
31381   #
31382   if test "$tst_compi_alarm" = "yes"; then
31383     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
31384 $as_echo_n "checking if alarm usage allowed... " >&6; }
31385     if test "x$curl_disallow_alarm" != "xyes"; then
31386       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31387 $as_echo "yes" >&6; }
31388       tst_allow_alarm="yes"
31389     else
31390       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31391 $as_echo "no" >&6; }
31392       tst_allow_alarm="no"
31393     fi
31394   fi
31395   #
31396   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
31397 $as_echo_n "checking if alarm might be used... " >&6; }
31398   if test "$tst_links_alarm" = "yes" &&
31399      test "$tst_proto_alarm" = "yes" &&
31400      test "$tst_compi_alarm" = "yes" &&
31401      test "$tst_allow_alarm" = "yes"; then
31402     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31403 $as_echo "yes" >&6; }
31404
31405 cat >>confdefs.h <<_ACEOF
31406 #define HAVE_ALARM 1
31407 _ACEOF
31408
31409     curl_cv_func_alarm="yes"
31410   else
31411     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31412 $as_echo "no" >&6; }
31413     curl_cv_func_alarm="no"
31414   fi
31415
31416
31417 curl_includes_string="\
31418 /* includes start */
31419 #ifdef HAVE_SYS_TYPES_H
31420 #  include <sys/types.h>
31421 #endif
31422 #ifdef HAVE_STRING_H
31423 #  include <string.h>
31424 #endif
31425 #ifdef HAVE_STRINGS_H
31426 #  include <strings.h>
31427 #endif
31428 /* includes end */"
31429   for ac_header in sys/types.h string.h strings.h
31430 do :
31431   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31432 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
31433 "
31434 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31435   cat >>confdefs.h <<_ACEOF
31436 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31437 _ACEOF
31438
31439 fi
31440
31441 done
31442
31443
31444
31445 curl_includes_libgen="\
31446 /* includes start */
31447 #ifdef HAVE_SYS_TYPES_H
31448 #  include <sys/types.h>
31449 #endif
31450 #ifdef HAVE_LIBGEN_H
31451 #  include <libgen.h>
31452 #endif
31453 /* includes end */"
31454   for ac_header in sys/types.h libgen.h
31455 do :
31456   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31457 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
31458 "
31459 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31460   cat >>confdefs.h <<_ACEOF
31461 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31462 _ACEOF
31463
31464 fi
31465
31466 done
31467
31468
31469
31470         #
31471   tst_links_basename="unknown"
31472   tst_proto_basename="unknown"
31473   tst_compi_basename="unknown"
31474   tst_allow_basename="unknown"
31475   #
31476   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
31477 $as_echo_n "checking if basename can be linked... " >&6; }
31478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31479 /* end confdefs.h.  */
31480
31481
31482 #define basename innocuous_basename
31483 #ifdef __STDC__
31484 # include <limits.h>
31485 #else
31486 # include <assert.h>
31487 #endif
31488 #undef basename
31489 #ifdef __cplusplus
31490 extern "C"
31491 #endif
31492 char basename ();
31493 #if defined __stub_basename || defined __stub___basename
31494 choke me
31495 #endif
31496
31497 int main (void)
31498 {
31499 return basename ();
31500  ;
31501  return 0;
31502 }
31503
31504 _ACEOF
31505 if ac_fn_c_try_link "$LINENO"; then :
31506
31507     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31508 $as_echo "yes" >&6; }
31509     tst_links_basename="yes"
31510
31511 else
31512
31513     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31514 $as_echo "no" >&6; }
31515     tst_links_basename="no"
31516
31517 fi
31518 rm -f core conftest.err conftest.$ac_objext \
31519     conftest$ac_exeext conftest.$ac_ext
31520   #
31521   if test "$tst_links_basename" = "yes"; then
31522     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
31523 $as_echo_n "checking if basename is prototyped... " >&6; }
31524     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31525 /* end confdefs.h.  */
31526
31527       $curl_includes_string
31528       $curl_includes_libgen
31529       $curl_includes_unistd
31530
31531 _ACEOF
31532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31533   $EGREP "basename" >/dev/null 2>&1; then :
31534
31535       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31536 $as_echo "yes" >&6; }
31537       tst_proto_basename="yes"
31538
31539 else
31540
31541       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31542 $as_echo "no" >&6; }
31543       tst_proto_basename="no"
31544
31545 fi
31546 rm -f conftest*
31547
31548   fi
31549   #
31550   if test "$tst_proto_basename" = "yes"; then
31551     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
31552 $as_echo_n "checking if basename is compilable... " >&6; }
31553     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31554 /* end confdefs.h.  */
31555
31556
31557         $curl_includes_string
31558         $curl_includes_libgen
31559         $curl_includes_unistd
31560
31561 int main (void)
31562 {
31563
31564         if(0 != basename(0))
31565           return 1;
31566
31567  ;
31568  return 0;
31569 }
31570
31571 _ACEOF
31572 if ac_fn_c_try_compile "$LINENO"; then :
31573
31574       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31575 $as_echo "yes" >&6; }
31576       tst_compi_basename="yes"
31577
31578 else
31579
31580       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31581 $as_echo "no" >&6; }
31582       tst_compi_basename="no"
31583
31584 fi
31585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31586   fi
31587   #
31588   if test "$tst_compi_basename" = "yes"; then
31589     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
31590 $as_echo_n "checking if basename usage allowed... " >&6; }
31591     if test "x$curl_disallow_basename" != "xyes"; then
31592       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31593 $as_echo "yes" >&6; }
31594       tst_allow_basename="yes"
31595     else
31596       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31597 $as_echo "no" >&6; }
31598       tst_allow_basename="no"
31599     fi
31600   fi
31601   #
31602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
31603 $as_echo_n "checking if basename might be used... " >&6; }
31604   if test "$tst_links_basename" = "yes" &&
31605      test "$tst_proto_basename" = "yes" &&
31606      test "$tst_compi_basename" = "yes" &&
31607      test "$tst_allow_basename" = "yes"; then
31608     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31609 $as_echo "yes" >&6; }
31610
31611 cat >>confdefs.h <<_ACEOF
31612 #define HAVE_BASENAME 1
31613 _ACEOF
31614
31615     curl_cv_func_basename="yes"
31616   else
31617     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31618 $as_echo "no" >&6; }
31619     curl_cv_func_basename="no"
31620   fi
31621
31622
31623 curl_includes_socket="\
31624 /* includes start */
31625 #ifdef HAVE_SYS_TYPES_H
31626 #  include <sys/types.h>
31627 #endif
31628 #ifdef HAVE_SOCKET_H
31629 #  include <socket.h>
31630 #endif
31631 /* includes end */"
31632   for ac_header in sys/types.h socket.h
31633 do :
31634   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31635 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
31636 "
31637 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31638   cat >>confdefs.h <<_ACEOF
31639 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31640 _ACEOF
31641
31642 fi
31643
31644 done
31645
31646
31647
31648       #
31649   tst_links_closesocket="unknown"
31650   tst_proto_closesocket="unknown"
31651   tst_compi_closesocket="unknown"
31652   tst_allow_closesocket="unknown"
31653   #
31654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
31655 $as_echo_n "checking if closesocket can be linked... " >&6; }
31656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31657 /* end confdefs.h.  */
31658
31659
31660       $curl_includes_winsock2
31661       $curl_includes_bsdsocket
31662       $curl_includes_socket
31663
31664 int main (void)
31665 {
31666
31667       if(0 != closesocket(0))
31668         return 1;
31669
31670  ;
31671  return 0;
31672 }
31673
31674 _ACEOF
31675 if ac_fn_c_try_link "$LINENO"; then :
31676
31677     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31678 $as_echo "yes" >&6; }
31679     tst_links_closesocket="yes"
31680
31681 else
31682
31683     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31684 $as_echo "no" >&6; }
31685     tst_links_closesocket="no"
31686
31687 fi
31688 rm -f core conftest.err conftest.$ac_objext \
31689     conftest$ac_exeext conftest.$ac_ext
31690   #
31691   if test "$tst_links_closesocket" = "yes"; then
31692     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
31693 $as_echo_n "checking if closesocket is prototyped... " >&6; }
31694     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31695 /* end confdefs.h.  */
31696
31697       $curl_includes_winsock2
31698       $curl_includes_bsdsocket
31699       $curl_includes_socket
31700
31701 _ACEOF
31702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31703   $EGREP "closesocket" >/dev/null 2>&1; then :
31704
31705       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31706 $as_echo "yes" >&6; }
31707       tst_proto_closesocket="yes"
31708
31709 else
31710
31711       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31712 $as_echo "no" >&6; }
31713       tst_proto_closesocket="no"
31714
31715 fi
31716 rm -f conftest*
31717
31718   fi
31719   #
31720   if test "$tst_proto_closesocket" = "yes"; then
31721     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
31722 $as_echo_n "checking if closesocket is compilable... " >&6; }
31723     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31724 /* end confdefs.h.  */
31725
31726
31727         $curl_includes_winsock2
31728       $curl_includes_bsdsocket
31729         $curl_includes_socket
31730
31731 int main (void)
31732 {
31733
31734         if(0 != closesocket(0))
31735           return 1;
31736
31737  ;
31738  return 0;
31739 }
31740
31741 _ACEOF
31742 if ac_fn_c_try_compile "$LINENO"; then :
31743
31744       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31745 $as_echo "yes" >&6; }
31746       tst_compi_closesocket="yes"
31747
31748 else
31749
31750       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31751 $as_echo "no" >&6; }
31752       tst_compi_closesocket="no"
31753
31754 fi
31755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31756   fi
31757   #
31758   if test "$tst_compi_closesocket" = "yes"; then
31759     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
31760 $as_echo_n "checking if closesocket usage allowed... " >&6; }
31761     if test "x$curl_disallow_closesocket" != "xyes"; then
31762       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31763 $as_echo "yes" >&6; }
31764       tst_allow_closesocket="yes"
31765     else
31766       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31767 $as_echo "no" >&6; }
31768       tst_allow_closesocket="no"
31769     fi
31770   fi
31771   #
31772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
31773 $as_echo_n "checking if closesocket might be used... " >&6; }
31774   if test "$tst_links_closesocket" = "yes" &&
31775      test "$tst_proto_closesocket" = "yes" &&
31776      test "$tst_compi_closesocket" = "yes" &&
31777      test "$tst_allow_closesocket" = "yes"; then
31778     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31779 $as_echo "yes" >&6; }
31780
31781 cat >>confdefs.h <<_ACEOF
31782 #define HAVE_CLOSESOCKET 1
31783 _ACEOF
31784
31785     curl_cv_func_closesocket="yes"
31786   else
31787     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31788 $as_echo "no" >&6; }
31789     curl_cv_func_closesocket="no"
31790   fi
31791
31792
31793 curl_includes_sys_socket="\
31794 /* includes start */
31795 #ifdef HAVE_SYS_TYPES_H
31796 #  include <sys/types.h>
31797 #endif
31798 #ifdef HAVE_SYS_SOCKET_H
31799 #  include <sys/socket.h>
31800 #endif
31801 /* includes end */"
31802   for ac_header in sys/types.h sys/socket.h
31803 do :
31804   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31805 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
31806 "
31807 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31808   cat >>confdefs.h <<_ACEOF
31809 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31810 _ACEOF
31811
31812 fi
31813
31814 done
31815
31816
31817
31818     #
31819   tst_links_closesocket_camel="unknown"
31820   tst_proto_closesocket_camel="unknown"
31821   tst_compi_closesocket_camel="unknown"
31822   tst_allow_closesocket_camel="unknown"
31823   #
31824   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
31825 $as_echo_n "checking if CloseSocket can be linked... " >&6; }
31826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31827 /* end confdefs.h.  */
31828
31829
31830       $curl_includes_sys_socket
31831
31832 int main (void)
31833 {
31834
31835       if(0 != CloseSocket(0))
31836         return 1;
31837
31838  ;
31839  return 0;
31840 }
31841
31842 _ACEOF
31843 if ac_fn_c_try_link "$LINENO"; then :
31844
31845     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31846 $as_echo "yes" >&6; }
31847     tst_links_closesocket_camel="yes"
31848
31849 else
31850
31851     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31852 $as_echo "no" >&6; }
31853     tst_links_closesocket_camel="no"
31854
31855 fi
31856 rm -f core conftest.err conftest.$ac_objext \
31857     conftest$ac_exeext conftest.$ac_ext
31858   #
31859   if test "$tst_links_closesocket_camel" = "yes"; then
31860     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
31861 $as_echo_n "checking if CloseSocket is prototyped... " >&6; }
31862     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31863 /* end confdefs.h.  */
31864
31865       $curl_includes_sys_socket
31866
31867 _ACEOF
31868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31869   $EGREP "CloseSocket" >/dev/null 2>&1; then :
31870
31871       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31872 $as_echo "yes" >&6; }
31873       tst_proto_closesocket_camel="yes"
31874
31875 else
31876
31877       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31878 $as_echo "no" >&6; }
31879       tst_proto_closesocket_camel="no"
31880
31881 fi
31882 rm -f conftest*
31883
31884   fi
31885   #
31886   if test "$tst_proto_closesocket_camel" = "yes"; then
31887     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
31888 $as_echo_n "checking if CloseSocket is compilable... " >&6; }
31889     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31890 /* end confdefs.h.  */
31891
31892
31893         $curl_includes_sys_socket
31894
31895 int main (void)
31896 {
31897
31898         if(0 != CloseSocket(0))
31899           return 1;
31900
31901  ;
31902  return 0;
31903 }
31904
31905 _ACEOF
31906 if ac_fn_c_try_compile "$LINENO"; then :
31907
31908       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31909 $as_echo "yes" >&6; }
31910       tst_compi_closesocket_camel="yes"
31911
31912 else
31913
31914       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31915 $as_echo "no" >&6; }
31916       tst_compi_closesocket_camel="no"
31917
31918 fi
31919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31920   fi
31921   #
31922   if test "$tst_compi_closesocket_camel" = "yes"; then
31923     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
31924 $as_echo_n "checking if CloseSocket usage allowed... " >&6; }
31925     if test "x$curl_disallow_closesocket_camel" != "xyes"; then
31926       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31927 $as_echo "yes" >&6; }
31928       tst_allow_closesocket_camel="yes"
31929     else
31930       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31931 $as_echo "no" >&6; }
31932       tst_allow_closesocket_camel="no"
31933     fi
31934   fi
31935   #
31936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
31937 $as_echo_n "checking if CloseSocket might be used... " >&6; }
31938   if test "$tst_links_closesocket_camel" = "yes" &&
31939      test "$tst_proto_closesocket_camel" = "yes" &&
31940      test "$tst_compi_closesocket_camel" = "yes" &&
31941      test "$tst_allow_closesocket_camel" = "yes"; then
31942     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31943 $as_echo "yes" >&6; }
31944
31945 cat >>confdefs.h <<_ACEOF
31946 #define HAVE_CLOSESOCKET_CAMEL 1
31947 _ACEOF
31948
31949     curl_cv_func_closesocket_camel="yes"
31950   else
31951     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31952 $as_echo "no" >&6; }
31953     curl_cv_func_closesocket_camel="no"
31954   fi
31955
31956
31957         #
31958   tst_links_connect="unknown"
31959   tst_proto_connect="unknown"
31960   tst_compi_connect="unknown"
31961   tst_allow_connect="unknown"
31962   #
31963   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
31964 $as_echo_n "checking if connect can be linked... " >&6; }
31965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31966 /* end confdefs.h.  */
31967
31968
31969       $curl_includes_winsock2
31970       $curl_includes_bsdsocket
31971       $curl_includes_sys_socket
31972       $curl_includes_socket
31973
31974 int main (void)
31975 {
31976
31977       if(0 != connect(0, 0, 0))
31978         return 1;
31979
31980  ;
31981  return 0;
31982 }
31983
31984 _ACEOF
31985 if ac_fn_c_try_link "$LINENO"; then :
31986
31987     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31988 $as_echo "yes" >&6; }
31989     tst_links_connect="yes"
31990
31991 else
31992
31993     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31994 $as_echo "no" >&6; }
31995     tst_links_connect="no"
31996
31997 fi
31998 rm -f core conftest.err conftest.$ac_objext \
31999     conftest$ac_exeext conftest.$ac_ext
32000   #
32001   if test "$tst_links_connect" = "yes"; then
32002     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
32003 $as_echo_n "checking if connect is prototyped... " >&6; }
32004     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32005 /* end confdefs.h.  */
32006
32007       $curl_includes_winsock2
32008       $curl_includes_bsdsocket
32009       $curl_includes_sys_socket
32010       $curl_includes_socket
32011
32012 _ACEOF
32013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32014   $EGREP "connect" >/dev/null 2>&1; then :
32015
32016       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32017 $as_echo "yes" >&6; }
32018       tst_proto_connect="yes"
32019
32020 else
32021
32022       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32023 $as_echo "no" >&6; }
32024       tst_proto_connect="no"
32025
32026 fi
32027 rm -f conftest*
32028
32029   fi
32030   #
32031   if test "$tst_proto_connect" = "yes"; then
32032     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
32033 $as_echo_n "checking if connect is compilable... " >&6; }
32034     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32035 /* end confdefs.h.  */
32036
32037
32038         $curl_includes_winsock2
32039       $curl_includes_bsdsocket
32040         $curl_includes_sys_socket
32041         $curl_includes_socket
32042
32043 int main (void)
32044 {
32045
32046         if(0 != connect(0, 0, 0))
32047           return 1;
32048
32049  ;
32050  return 0;
32051 }
32052
32053 _ACEOF
32054 if ac_fn_c_try_compile "$LINENO"; then :
32055
32056       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32057 $as_echo "yes" >&6; }
32058       tst_compi_connect="yes"
32059
32060 else
32061
32062       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32063 $as_echo "no" >&6; }
32064       tst_compi_connect="no"
32065
32066 fi
32067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32068   fi
32069   #
32070   if test "$tst_compi_connect" = "yes"; then
32071     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
32072 $as_echo_n "checking if connect usage allowed... " >&6; }
32073     if test "x$curl_disallow_connect" != "xyes"; then
32074       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32075 $as_echo "yes" >&6; }
32076       tst_allow_connect="yes"
32077     else
32078       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32079 $as_echo "no" >&6; }
32080       tst_allow_connect="no"
32081     fi
32082   fi
32083   #
32084   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
32085 $as_echo_n "checking if connect might be used... " >&6; }
32086   if test "$tst_links_connect" = "yes" &&
32087      test "$tst_proto_connect" = "yes" &&
32088      test "$tst_compi_connect" = "yes" &&
32089      test "$tst_allow_connect" = "yes"; then
32090     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32091 $as_echo "yes" >&6; }
32092
32093 cat >>confdefs.h <<_ACEOF
32094 #define HAVE_CONNECT 1
32095 _ACEOF
32096
32097     curl_cv_func_connect="yes"
32098   else
32099     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32100 $as_echo "no" >&6; }
32101     curl_cv_func_connect="no"
32102   fi
32103
32104
32105 curl_includes_fcntl="\
32106 /* includes start */
32107 #ifdef HAVE_SYS_TYPES_H
32108 #  include <sys/types.h>
32109 #endif
32110 #ifdef HAVE_UNISTD_H
32111 #  include <unistd.h>
32112 #endif
32113 #ifdef HAVE_FCNTL_H
32114 #  include <fcntl.h>
32115 #endif
32116 /* includes end */"
32117   for ac_header in sys/types.h unistd.h fcntl.h
32118 do :
32119   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32120 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
32121 "
32122 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32123   cat >>confdefs.h <<_ACEOF
32124 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32125 _ACEOF
32126
32127 fi
32128
32129 done
32130
32131
32132
32133     #
32134   tst_links_fcntl="unknown"
32135   tst_proto_fcntl="unknown"
32136   tst_compi_fcntl="unknown"
32137   tst_allow_fcntl="unknown"
32138   #
32139   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
32140 $as_echo_n "checking if fcntl can be linked... " >&6; }
32141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32142 /* end confdefs.h.  */
32143
32144
32145 #define fcntl innocuous_fcntl
32146 #ifdef __STDC__
32147 # include <limits.h>
32148 #else
32149 # include <assert.h>
32150 #endif
32151 #undef fcntl
32152 #ifdef __cplusplus
32153 extern "C"
32154 #endif
32155 char fcntl ();
32156 #if defined __stub_fcntl || defined __stub___fcntl
32157 choke me
32158 #endif
32159
32160 int main (void)
32161 {
32162 return fcntl ();
32163  ;
32164  return 0;
32165 }
32166
32167 _ACEOF
32168 if ac_fn_c_try_link "$LINENO"; then :
32169
32170     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32171 $as_echo "yes" >&6; }
32172     tst_links_fcntl="yes"
32173
32174 else
32175
32176     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32177 $as_echo "no" >&6; }
32178     tst_links_fcntl="no"
32179
32180 fi
32181 rm -f core conftest.err conftest.$ac_objext \
32182     conftest$ac_exeext conftest.$ac_ext
32183   #
32184   if test "$tst_links_fcntl" = "yes"; then
32185     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
32186 $as_echo_n "checking if fcntl is prototyped... " >&6; }
32187     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32188 /* end confdefs.h.  */
32189
32190       $curl_includes_fcntl
32191
32192 _ACEOF
32193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32194   $EGREP "fcntl" >/dev/null 2>&1; then :
32195
32196       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32197 $as_echo "yes" >&6; }
32198       tst_proto_fcntl="yes"
32199
32200 else
32201
32202       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32203 $as_echo "no" >&6; }
32204       tst_proto_fcntl="no"
32205
32206 fi
32207 rm -f conftest*
32208
32209   fi
32210   #
32211   if test "$tst_proto_fcntl" = "yes"; then
32212     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
32213 $as_echo_n "checking if fcntl is compilable... " >&6; }
32214     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32215 /* end confdefs.h.  */
32216
32217
32218         $curl_includes_fcntl
32219
32220 int main (void)
32221 {
32222
32223         if(0 != fcntl(0, 0, 0))
32224           return 1;
32225
32226  ;
32227  return 0;
32228 }
32229
32230 _ACEOF
32231 if ac_fn_c_try_compile "$LINENO"; then :
32232
32233       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32234 $as_echo "yes" >&6; }
32235       tst_compi_fcntl="yes"
32236
32237 else
32238
32239       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32240 $as_echo "no" >&6; }
32241       tst_compi_fcntl="no"
32242
32243 fi
32244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32245   fi
32246   #
32247   if test "$tst_compi_fcntl" = "yes"; then
32248     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
32249 $as_echo_n "checking if fcntl usage allowed... " >&6; }
32250     if test "x$curl_disallow_fcntl" != "xyes"; then
32251       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32252 $as_echo "yes" >&6; }
32253       tst_allow_fcntl="yes"
32254     else
32255       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32256 $as_echo "no" >&6; }
32257       tst_allow_fcntl="no"
32258     fi
32259   fi
32260   #
32261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
32262 $as_echo_n "checking if fcntl might be used... " >&6; }
32263   if test "$tst_links_fcntl" = "yes" &&
32264      test "$tst_proto_fcntl" = "yes" &&
32265      test "$tst_compi_fcntl" = "yes" &&
32266      test "$tst_allow_fcntl" = "yes"; then
32267     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32268 $as_echo "yes" >&6; }
32269
32270 cat >>confdefs.h <<_ACEOF
32271 #define HAVE_FCNTL 1
32272 _ACEOF
32273
32274     curl_cv_func_fcntl="yes"
32275
32276   #
32277   tst_compi_fcntl_o_nonblock="unknown"
32278   tst_allow_fcntl_o_nonblock="unknown"
32279   #
32280   case $host_os in
32281     sunos4* | aix3* | beos*)
32282             curl_disallow_fcntl_o_nonblock="yes"
32283       ;;
32284   esac
32285   #
32286   if test "$curl_cv_func_fcntl" = "yes"; then
32287     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
32288 $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
32289     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32290 /* end confdefs.h.  */
32291
32292
32293         $curl_includes_fcntl
32294
32295 int main (void)
32296 {
32297
32298         int flags = 0;
32299         if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
32300           return 1;
32301
32302  ;
32303  return 0;
32304 }
32305
32306 _ACEOF
32307 if ac_fn_c_try_compile "$LINENO"; then :
32308
32309       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32310 $as_echo "yes" >&6; }
32311       tst_compi_fcntl_o_nonblock="yes"
32312
32313 else
32314
32315       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32316 $as_echo "no" >&6; }
32317       tst_compi_fcntl_o_nonblock="no"
32318
32319 fi
32320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32321   fi
32322   #
32323   if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
32324     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
32325 $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
32326     if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
32327       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32328 $as_echo "yes" >&6; }
32329       tst_allow_fcntl_o_nonblock="yes"
32330     else
32331       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32332 $as_echo "no" >&6; }
32333       tst_allow_fcntl_o_nonblock="no"
32334     fi
32335   fi
32336   #
32337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
32338 $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
32339   if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
32340      test "$tst_allow_fcntl_o_nonblock" = "yes"; then
32341     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32342 $as_echo "yes" >&6; }
32343
32344 cat >>confdefs.h <<_ACEOF
32345 #define HAVE_FCNTL_O_NONBLOCK 1
32346 _ACEOF
32347
32348     curl_cv_func_fcntl_o_nonblock="yes"
32349   else
32350     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32351 $as_echo "no" >&6; }
32352     curl_cv_func_fcntl_o_nonblock="no"
32353   fi
32354
32355   else
32356     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32357 $as_echo "no" >&6; }
32358     curl_cv_func_fcntl="no"
32359   fi
32360
32361
32362 curl_includes_ws2tcpip="\
32363 /* includes start */
32364 #ifdef HAVE_WINDOWS_H
32365 #  ifndef WIN32_LEAN_AND_MEAN
32366 #    define WIN32_LEAN_AND_MEAN
32367 #  endif
32368 #  include <windows.h>
32369 #  ifdef HAVE_WINSOCK2_H
32370 #    include <winsock2.h>
32371 #    ifdef HAVE_WS2TCPIP_H
32372 #       include <ws2tcpip.h>
32373 #    endif
32374 #  endif
32375 #endif
32376 /* includes end */"
32377
32378   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
32379 $as_echo_n "checking for windows.h... " >&6; }
32380 if ${curl_cv_header_windows_h+:} false; then :
32381   $as_echo_n "(cached) " >&6
32382 else
32383
32384     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32385 /* end confdefs.h.  */
32386
32387
32388 #undef inline
32389 #ifndef WIN32_LEAN_AND_MEAN
32390 #define WIN32_LEAN_AND_MEAN
32391 #endif
32392 #include <windows.h>
32393
32394 int main (void)
32395 {
32396
32397 #if defined(__CYGWIN__) || defined(__CEGCC__)
32398         HAVE_WINDOWS_H shall not be defined.
32399 #else
32400         int dummy=2*WINVER;
32401 #endif
32402
32403  ;
32404  return 0;
32405 }
32406
32407 _ACEOF
32408 if ac_fn_c_try_compile "$LINENO"; then :
32409
32410       curl_cv_header_windows_h="yes"
32411
32412 else
32413
32414       curl_cv_header_windows_h="no"
32415
32416 fi
32417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32418
32419 fi
32420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
32421 $as_echo "$curl_cv_header_windows_h" >&6; }
32422   case "$curl_cv_header_windows_h" in
32423     yes)
32424
32425 cat >>confdefs.h <<_ACEOF
32426 #define HAVE_WINDOWS_H 1
32427 _ACEOF
32428
32429       ;;
32430   esac
32431
32432
32433     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
32434 $as_echo_n "checking for winsock2.h... " >&6; }
32435 if ${curl_cv_header_winsock2_h+:} false; then :
32436   $as_echo_n "(cached) " >&6
32437 else
32438
32439     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32440 /* end confdefs.h.  */
32441
32442
32443 #undef inline
32444 #ifndef WIN32_LEAN_AND_MEAN
32445 #define WIN32_LEAN_AND_MEAN
32446 #endif
32447 #include <windows.h>
32448 #include <winsock2.h>
32449
32450 int main (void)
32451 {
32452
32453 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
32454         HAVE_WINSOCK2_H shall not be defined.
32455 #else
32456         int dummy=2*IPPROTO_ESP;
32457 #endif
32458
32459  ;
32460  return 0;
32461 }
32462
32463 _ACEOF
32464 if ac_fn_c_try_compile "$LINENO"; then :
32465
32466       curl_cv_header_winsock2_h="yes"
32467
32468 else
32469
32470       curl_cv_header_winsock2_h="no"
32471
32472 fi
32473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32474
32475 fi
32476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
32477 $as_echo "$curl_cv_header_winsock2_h" >&6; }
32478   case "$curl_cv_header_winsock2_h" in
32479     yes)
32480
32481 cat >>confdefs.h <<_ACEOF
32482 #define HAVE_WINSOCK2_H 1
32483 _ACEOF
32484
32485       ;;
32486   esac
32487
32488
32489     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
32490 $as_echo_n "checking for ws2tcpip.h... " >&6; }
32491 if ${curl_cv_header_ws2tcpip_h+:} false; then :
32492   $as_echo_n "(cached) " >&6
32493 else
32494
32495     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32496 /* end confdefs.h.  */
32497
32498
32499 #undef inline
32500 #ifndef WIN32_LEAN_AND_MEAN
32501 #define WIN32_LEAN_AND_MEAN
32502 #endif
32503 #include <windows.h>
32504 #include <winsock2.h>
32505 #include <ws2tcpip.h>
32506
32507 int main (void)
32508 {
32509
32510 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
32511         HAVE_WS2TCPIP_H shall not be defined.
32512 #else
32513         int dummy=2*IP_PKTINFO;
32514 #endif
32515
32516  ;
32517  return 0;
32518 }
32519
32520 _ACEOF
32521 if ac_fn_c_try_compile "$LINENO"; then :
32522
32523       curl_cv_header_ws2tcpip_h="yes"
32524
32525 else
32526
32527       curl_cv_header_ws2tcpip_h="no"
32528
32529 fi
32530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32531
32532 fi
32533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
32534 $as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
32535   case "$curl_cv_header_ws2tcpip_h" in
32536     yes)
32537
32538 cat >>confdefs.h <<_ACEOF
32539 #define HAVE_WS2TCPIP_H 1
32540 _ACEOF
32541
32542       ;;
32543   esac
32544
32545
32546
32547 curl_includes_netdb="\
32548 /* includes start */
32549 #ifdef HAVE_SYS_TYPES_H
32550 #  include <sys/types.h>
32551 #endif
32552 #ifdef HAVE_NETDB_H
32553 #  include <netdb.h>
32554 #endif
32555 /* includes end */"
32556   for ac_header in sys/types.h netdb.h
32557 do :
32558   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32559 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
32560 "
32561 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32562   cat >>confdefs.h <<_ACEOF
32563 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32564 _ACEOF
32565
32566 fi
32567
32568 done
32569
32570
32571
32572         #
32573   tst_links_freeaddrinfo="unknown"
32574   tst_proto_freeaddrinfo="unknown"
32575   tst_compi_freeaddrinfo="unknown"
32576   tst_allow_freeaddrinfo="unknown"
32577   #
32578   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
32579 $as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
32580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32581 /* end confdefs.h.  */
32582
32583
32584       $curl_includes_ws2tcpip
32585       $curl_includes_sys_socket
32586       $curl_includes_netdb
32587
32588 int main (void)
32589 {
32590
32591       freeaddrinfo(0);
32592
32593  ;
32594  return 0;
32595 }
32596
32597 _ACEOF
32598 if ac_fn_c_try_link "$LINENO"; then :
32599
32600     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32601 $as_echo "yes" >&6; }
32602     tst_links_freeaddrinfo="yes"
32603
32604 else
32605
32606     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32607 $as_echo "no" >&6; }
32608     tst_links_freeaddrinfo="no"
32609
32610 fi
32611 rm -f core conftest.err conftest.$ac_objext \
32612     conftest$ac_exeext conftest.$ac_ext
32613   #
32614   if test "$tst_links_freeaddrinfo" = "yes"; then
32615     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
32616 $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
32617     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32618 /* end confdefs.h.  */
32619
32620       $curl_includes_ws2tcpip
32621       $curl_includes_sys_socket
32622       $curl_includes_netdb
32623
32624 _ACEOF
32625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32626   $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
32627
32628       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32629 $as_echo "yes" >&6; }
32630       tst_proto_freeaddrinfo="yes"
32631
32632 else
32633
32634       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32635 $as_echo "no" >&6; }
32636       tst_proto_freeaddrinfo="no"
32637
32638 fi
32639 rm -f conftest*
32640
32641   fi
32642   #
32643   if test "$tst_proto_freeaddrinfo" = "yes"; then
32644     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
32645 $as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
32646     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32647 /* end confdefs.h.  */
32648
32649
32650         $curl_includes_ws2tcpip
32651         $curl_includes_sys_socket
32652         $curl_includes_netdb
32653
32654 int main (void)
32655 {
32656
32657         freeaddrinfo(0);
32658
32659  ;
32660  return 0;
32661 }
32662
32663 _ACEOF
32664 if ac_fn_c_try_compile "$LINENO"; then :
32665
32666       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32667 $as_echo "yes" >&6; }
32668       tst_compi_freeaddrinfo="yes"
32669
32670 else
32671
32672       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32673 $as_echo "no" >&6; }
32674       tst_compi_freeaddrinfo="no"
32675
32676 fi
32677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32678   fi
32679   #
32680   if test "$tst_compi_freeaddrinfo" = "yes"; then
32681     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
32682 $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
32683     if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
32684       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32685 $as_echo "yes" >&6; }
32686       tst_allow_freeaddrinfo="yes"
32687     else
32688       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32689 $as_echo "no" >&6; }
32690       tst_allow_freeaddrinfo="no"
32691     fi
32692   fi
32693   #
32694   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
32695 $as_echo_n "checking if freeaddrinfo might be used... " >&6; }
32696   if test "$tst_links_freeaddrinfo" = "yes" &&
32697      test "$tst_proto_freeaddrinfo" = "yes" &&
32698      test "$tst_compi_freeaddrinfo" = "yes" &&
32699      test "$tst_allow_freeaddrinfo" = "yes"; then
32700     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32701 $as_echo "yes" >&6; }
32702
32703 cat >>confdefs.h <<_ACEOF
32704 #define HAVE_FREEADDRINFO 1
32705 _ACEOF
32706
32707     curl_cv_func_freeaddrinfo="yes"
32708   else
32709     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32710 $as_echo "no" >&6; }
32711     curl_cv_func_freeaddrinfo="no"
32712   fi
32713
32714
32715 curl_includes_ifaddrs="\
32716 /* includes start */
32717 #ifdef HAVE_SYS_TYPES_H
32718 #  include <sys/types.h>
32719 #endif
32720 #ifdef HAVE_SYS_SOCKET_H
32721 #  include <sys/socket.h>
32722 #endif
32723 #ifdef HAVE_NETINET_IN_H
32724 #  include <netinet/in.h>
32725 #endif
32726 #ifdef HAVE_IFADDRS_H
32727 #  include <ifaddrs.h>
32728 #endif
32729 /* includes end */"
32730   for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
32731 do :
32732   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32733 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
32734 "
32735 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32736   cat >>confdefs.h <<_ACEOF
32737 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32738 _ACEOF
32739
32740 fi
32741
32742 done
32743
32744
32745
32746     #
32747   tst_links_freeifaddrs="unknown"
32748   tst_proto_freeifaddrs="unknown"
32749   tst_compi_freeifaddrs="unknown"
32750   tst_allow_freeifaddrs="unknown"
32751   #
32752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
32753 $as_echo_n "checking if freeifaddrs can be linked... " >&6; }
32754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32755 /* end confdefs.h.  */
32756
32757
32758 #define freeifaddrs innocuous_freeifaddrs
32759 #ifdef __STDC__
32760 # include <limits.h>
32761 #else
32762 # include <assert.h>
32763 #endif
32764 #undef freeifaddrs
32765 #ifdef __cplusplus
32766 extern "C"
32767 #endif
32768 char freeifaddrs ();
32769 #if defined __stub_freeifaddrs || defined __stub___freeifaddrs
32770 choke me
32771 #endif
32772
32773 int main (void)
32774 {
32775 return freeifaddrs ();
32776  ;
32777  return 0;
32778 }
32779
32780 _ACEOF
32781 if ac_fn_c_try_link "$LINENO"; then :
32782
32783     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32784 $as_echo "yes" >&6; }
32785     tst_links_freeifaddrs="yes"
32786
32787 else
32788
32789     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32790 $as_echo "no" >&6; }
32791     tst_links_freeifaddrs="no"
32792
32793 fi
32794 rm -f core conftest.err conftest.$ac_objext \
32795     conftest$ac_exeext conftest.$ac_ext
32796   #
32797   if test "$tst_links_freeifaddrs" = "yes"; then
32798     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
32799 $as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
32800     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32801 /* end confdefs.h.  */
32802
32803       $curl_includes_ifaddrs
32804
32805 _ACEOF
32806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32807   $EGREP "freeifaddrs" >/dev/null 2>&1; then :
32808
32809       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32810 $as_echo "yes" >&6; }
32811       tst_proto_freeifaddrs="yes"
32812
32813 else
32814
32815       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32816 $as_echo "no" >&6; }
32817       tst_proto_freeifaddrs="no"
32818
32819 fi
32820 rm -f conftest*
32821
32822   fi
32823   #
32824   if test "$tst_proto_freeifaddrs" = "yes"; then
32825     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
32826 $as_echo_n "checking if freeifaddrs is compilable... " >&6; }
32827     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32828 /* end confdefs.h.  */
32829
32830
32831         $curl_includes_ifaddrs
32832
32833 int main (void)
32834 {
32835
32836         freeifaddrs(0);
32837
32838  ;
32839  return 0;
32840 }
32841
32842 _ACEOF
32843 if ac_fn_c_try_compile "$LINENO"; then :
32844
32845       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32846 $as_echo "yes" >&6; }
32847       tst_compi_freeifaddrs="yes"
32848
32849 else
32850
32851       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32852 $as_echo "no" >&6; }
32853       tst_compi_freeifaddrs="no"
32854
32855 fi
32856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32857   fi
32858   #
32859   if test "$tst_compi_freeifaddrs" = "yes"; then
32860     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
32861 $as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
32862     if test "x$curl_disallow_freeifaddrs" != "xyes"; then
32863       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32864 $as_echo "yes" >&6; }
32865       tst_allow_freeifaddrs="yes"
32866     else
32867       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32868 $as_echo "no" >&6; }
32869       tst_allow_freeifaddrs="no"
32870     fi
32871   fi
32872   #
32873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
32874 $as_echo_n "checking if freeifaddrs might be used... " >&6; }
32875   if test "$tst_links_freeifaddrs" = "yes" &&
32876      test "$tst_proto_freeifaddrs" = "yes" &&
32877      test "$tst_compi_freeifaddrs" = "yes" &&
32878      test "$tst_allow_freeifaddrs" = "yes"; then
32879     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32880 $as_echo "yes" >&6; }
32881
32882 cat >>confdefs.h <<_ACEOF
32883 #define HAVE_FREEIFADDRS 1
32884 _ACEOF
32885
32886     curl_cv_func_freeifaddrs="yes"
32887   else
32888     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32889 $as_echo "no" >&6; }
32890     curl_cv_func_freeifaddrs="no"
32891   fi
32892
32893
32894 curl_includes_sys_xattr="\
32895 /* includes start */
32896 #ifdef HAVE_SYS_TYPES_H
32897 #  include <sys/types.h>
32898 #endif
32899 #ifdef HAVE_SYS_XATTR_H
32900 #  include <sys/xattr.h>
32901 #endif
32902 /* includes end */"
32903   for ac_header in sys/types.h sys/xattr.h
32904 do :
32905   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32906 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
32907 "
32908 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32909   cat >>confdefs.h <<_ACEOF
32910 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32911 _ACEOF
32912
32913 fi
32914
32915 done
32916
32917
32918
32919     #
32920   tst_links_fsetxattr="unknown"
32921   tst_proto_fsetxattr="unknown"
32922   tst_compi_fsetxattr="unknown"
32923   tst_allow_fsetxattr="unknown"
32924   tst_nargs_fsetxattr="unknown"
32925   #
32926   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
32927 $as_echo_n "checking if fsetxattr can be linked... " >&6; }
32928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32929 /* end confdefs.h.  */
32930
32931
32932 #define fsetxattr innocuous_fsetxattr
32933 #ifdef __STDC__
32934 # include <limits.h>
32935 #else
32936 # include <assert.h>
32937 #endif
32938 #undef fsetxattr
32939 #ifdef __cplusplus
32940 extern "C"
32941 #endif
32942 char fsetxattr ();
32943 #if defined __stub_fsetxattr || defined __stub___fsetxattr
32944 choke me
32945 #endif
32946
32947 int main (void)
32948 {
32949 return fsetxattr ();
32950  ;
32951  return 0;
32952 }
32953
32954 _ACEOF
32955 if ac_fn_c_try_link "$LINENO"; then :
32956
32957     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32958 $as_echo "yes" >&6; }
32959     tst_links_fsetxattr="yes"
32960
32961 else
32962
32963     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32964 $as_echo "no" >&6; }
32965     tst_links_fsetxattr="no"
32966
32967 fi
32968 rm -f core conftest.err conftest.$ac_objext \
32969     conftest$ac_exeext conftest.$ac_ext
32970   #
32971   if test "$tst_links_fsetxattr" = "yes"; then
32972     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
32973 $as_echo_n "checking if fsetxattr is prototyped... " >&6; }
32974     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32975 /* end confdefs.h.  */
32976
32977       $curl_includes_sys_xattr
32978
32979 _ACEOF
32980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32981   $EGREP "fsetxattr" >/dev/null 2>&1; then :
32982
32983       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32984 $as_echo "yes" >&6; }
32985       tst_proto_fsetxattr="yes"
32986
32987 else
32988
32989       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32990 $as_echo "no" >&6; }
32991       tst_proto_fsetxattr="no"
32992
32993 fi
32994 rm -f conftest*
32995
32996   fi
32997   #
32998   if test "$tst_proto_fsetxattr" = "yes"; then
32999     if test "$tst_nargs_fsetxattr" = "unknown"; then
33000       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
33001 $as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
33002       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33003 /* end confdefs.h.  */
33004
33005
33006           $curl_includes_sys_xattr
33007
33008 int main (void)
33009 {
33010
33011           if(0 != fsetxattr(0, 0, 0, 0, 0))
33012             return 1;
33013
33014  ;
33015  return 0;
33016 }
33017
33018 _ACEOF
33019 if ac_fn_c_try_compile "$LINENO"; then :
33020
33021         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33022 $as_echo "yes" >&6; }
33023         tst_compi_fsetxattr="yes"
33024         tst_nargs_fsetxattr="5"
33025
33026 else
33027
33028         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33029 $as_echo "no" >&6; }
33030         tst_compi_fsetxattr="no"
33031
33032 fi
33033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33034     fi
33035     if test "$tst_nargs_fsetxattr" = "unknown"; then
33036       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
33037 $as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
33038       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33039 /* end confdefs.h.  */
33040
33041
33042           $curl_includes_sys_xattr
33043
33044 int main (void)
33045 {
33046
33047           if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
33048             return 1;
33049
33050  ;
33051  return 0;
33052 }
33053
33054 _ACEOF
33055 if ac_fn_c_try_compile "$LINENO"; then :
33056
33057         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33058 $as_echo "yes" >&6; }
33059         tst_compi_fsetxattr="yes"
33060         tst_nargs_fsetxattr="6"
33061
33062 else
33063
33064         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33065 $as_echo "no" >&6; }
33066         tst_compi_fsetxattr="no"
33067
33068 fi
33069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33070     fi
33071     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
33072 $as_echo_n "checking if fsetxattr is compilable... " >&6; }
33073     if test "$tst_compi_fsetxattr" = "yes"; then
33074       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33075 $as_echo "yes" >&6; }
33076     else
33077       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33078 $as_echo "no" >&6; }
33079     fi
33080   fi
33081   #
33082   if test "$tst_compi_fsetxattr" = "yes"; then
33083     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
33084 $as_echo_n "checking if fsetxattr usage allowed... " >&6; }
33085     if test "x$curl_disallow_fsetxattr" != "xyes"; then
33086       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33087 $as_echo "yes" >&6; }
33088       tst_allow_fsetxattr="yes"
33089     else
33090       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33091 $as_echo "no" >&6; }
33092       tst_allow_fsetxattr="no"
33093     fi
33094   fi
33095   #
33096   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
33097 $as_echo_n "checking if fsetxattr might be used... " >&6; }
33098   if test "$tst_links_fsetxattr" = "yes" &&
33099      test "$tst_proto_fsetxattr" = "yes" &&
33100      test "$tst_compi_fsetxattr" = "yes" &&
33101      test "$tst_allow_fsetxattr" = "yes"; then
33102     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33103 $as_echo "yes" >&6; }
33104
33105 cat >>confdefs.h <<_ACEOF
33106 #define HAVE_FSETXATTR 1
33107 _ACEOF
33108
33109             #
33110     if test "$tst_nargs_fsetxattr" -eq "5"; then
33111
33112 $as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
33113
33114     elif test "$tst_nargs_fsetxattr" -eq "6"; then
33115
33116 $as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
33117
33118     fi
33119     #
33120     curl_cv_func_fsetxattr="yes"
33121   else
33122     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33123 $as_echo "no" >&6; }
33124     curl_cv_func_fsetxattr="no"
33125   fi
33126
33127
33128     #
33129   tst_links_ftruncate="unknown"
33130   tst_proto_ftruncate="unknown"
33131   tst_compi_ftruncate="unknown"
33132   tst_allow_ftruncate="unknown"
33133   #
33134   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
33135 $as_echo_n "checking if ftruncate can be linked... " >&6; }
33136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33137 /* end confdefs.h.  */
33138
33139
33140 #define ftruncate innocuous_ftruncate
33141 #ifdef __STDC__
33142 # include <limits.h>
33143 #else
33144 # include <assert.h>
33145 #endif
33146 #undef ftruncate
33147 #ifdef __cplusplus
33148 extern "C"
33149 #endif
33150 char ftruncate ();
33151 #if defined __stub_ftruncate || defined __stub___ftruncate
33152 choke me
33153 #endif
33154
33155 int main (void)
33156 {
33157 return ftruncate ();
33158  ;
33159  return 0;
33160 }
33161
33162 _ACEOF
33163 if ac_fn_c_try_link "$LINENO"; then :
33164
33165     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33166 $as_echo "yes" >&6; }
33167     tst_links_ftruncate="yes"
33168
33169 else
33170
33171     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33172 $as_echo "no" >&6; }
33173     tst_links_ftruncate="no"
33174
33175 fi
33176 rm -f core conftest.err conftest.$ac_objext \
33177     conftest$ac_exeext conftest.$ac_ext
33178   #
33179   if test "$tst_links_ftruncate" = "yes"; then
33180     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
33181 $as_echo_n "checking if ftruncate is prototyped... " >&6; }
33182     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33183 /* end confdefs.h.  */
33184
33185       $curl_includes_unistd
33186
33187 _ACEOF
33188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33189   $EGREP "ftruncate" >/dev/null 2>&1; then :
33190
33191       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33192 $as_echo "yes" >&6; }
33193       tst_proto_ftruncate="yes"
33194
33195 else
33196
33197       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33198 $as_echo "no" >&6; }
33199       tst_proto_ftruncate="no"
33200
33201 fi
33202 rm -f conftest*
33203
33204   fi
33205   #
33206   if test "$tst_proto_ftruncate" = "yes"; then
33207     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
33208 $as_echo_n "checking if ftruncate is compilable... " >&6; }
33209     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33210 /* end confdefs.h.  */
33211
33212
33213         $curl_includes_unistd
33214
33215 int main (void)
33216 {
33217
33218         if(0 != ftruncate(0, 0))
33219           return 1;
33220
33221  ;
33222  return 0;
33223 }
33224
33225 _ACEOF
33226 if ac_fn_c_try_compile "$LINENO"; then :
33227
33228       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33229 $as_echo "yes" >&6; }
33230       tst_compi_ftruncate="yes"
33231
33232 else
33233
33234       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33235 $as_echo "no" >&6; }
33236       tst_compi_ftruncate="no"
33237
33238 fi
33239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33240   fi
33241   #
33242   if test "$tst_compi_ftruncate" = "yes"; then
33243     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
33244 $as_echo_n "checking if ftruncate usage allowed... " >&6; }
33245     if test "x$curl_disallow_ftruncate" != "xyes"; then
33246       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33247 $as_echo "yes" >&6; }
33248       tst_allow_ftruncate="yes"
33249     else
33250       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33251 $as_echo "no" >&6; }
33252       tst_allow_ftruncate="no"
33253     fi
33254   fi
33255   #
33256   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
33257 $as_echo_n "checking if ftruncate might be used... " >&6; }
33258   if test "$tst_links_ftruncate" = "yes" &&
33259      test "$tst_proto_ftruncate" = "yes" &&
33260      test "$tst_compi_ftruncate" = "yes" &&
33261      test "$tst_allow_ftruncate" = "yes"; then
33262     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33263 $as_echo "yes" >&6; }
33264
33265 cat >>confdefs.h <<_ACEOF
33266 #define HAVE_FTRUNCATE 1
33267 _ACEOF
33268
33269     curl_cv_func_ftruncate="yes"
33270   else
33271     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33272 $as_echo "no" >&6; }
33273     curl_cv_func_ftruncate="no"
33274   fi
33275
33276
33277 curl_includes_stdlib="\
33278 /* includes start */
33279 #ifdef HAVE_SYS_TYPES_H
33280 #  include <sys/types.h>
33281 #endif
33282 #ifdef HAVE_STDLIB_H
33283 #  include <stdlib.h>
33284 #endif
33285 /* includes end */"
33286   for ac_header in sys/types.h stdlib.h
33287 do :
33288   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33289 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
33290 "
33291 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33292   cat >>confdefs.h <<_ACEOF
33293 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33294 _ACEOF
33295
33296 fi
33297
33298 done
33299
33300
33301
33302               #
33303   tst_links_getaddrinfo="unknown"
33304   tst_proto_getaddrinfo="unknown"
33305   tst_compi_getaddrinfo="unknown"
33306   tst_works_getaddrinfo="unknown"
33307   tst_allow_getaddrinfo="unknown"
33308   tst_tsafe_getaddrinfo="unknown"
33309   #
33310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
33311 $as_echo_n "checking if getaddrinfo can be linked... " >&6; }
33312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33313 /* end confdefs.h.  */
33314
33315
33316       $curl_includes_ws2tcpip
33317       $curl_includes_sys_socket
33318       $curl_includes_netdb
33319
33320 int main (void)
33321 {
33322
33323       if(0 != getaddrinfo(0, 0, 0, 0))
33324         return 1;
33325
33326  ;
33327  return 0;
33328 }
33329
33330 _ACEOF
33331 if ac_fn_c_try_link "$LINENO"; then :
33332
33333     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33334 $as_echo "yes" >&6; }
33335     tst_links_getaddrinfo="yes"
33336
33337 else
33338
33339     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33340 $as_echo "no" >&6; }
33341     tst_links_getaddrinfo="no"
33342
33343 fi
33344 rm -f core conftest.err conftest.$ac_objext \
33345     conftest$ac_exeext conftest.$ac_ext
33346   #
33347   if test "$tst_links_getaddrinfo" = "yes"; then
33348     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
33349 $as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
33350     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33351 /* end confdefs.h.  */
33352
33353       $curl_includes_ws2tcpip
33354       $curl_includes_sys_socket
33355       $curl_includes_netdb
33356
33357 _ACEOF
33358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33359   $EGREP "getaddrinfo" >/dev/null 2>&1; then :
33360
33361       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33362 $as_echo "yes" >&6; }
33363       tst_proto_getaddrinfo="yes"
33364
33365 else
33366
33367       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33368 $as_echo "no" >&6; }
33369       tst_proto_getaddrinfo="no"
33370
33371 fi
33372 rm -f conftest*
33373
33374   fi
33375   #
33376   if test "$tst_proto_getaddrinfo" = "yes"; then
33377     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
33378 $as_echo_n "checking if getaddrinfo is compilable... " >&6; }
33379     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33380 /* end confdefs.h.  */
33381
33382
33383         $curl_includes_ws2tcpip
33384         $curl_includes_sys_socket
33385         $curl_includes_netdb
33386
33387 int main (void)
33388 {
33389
33390         if(0 != getaddrinfo(0, 0, 0, 0))
33391           return 1;
33392
33393  ;
33394  return 0;
33395 }
33396
33397 _ACEOF
33398 if ac_fn_c_try_compile "$LINENO"; then :
33399
33400       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33401 $as_echo "yes" >&6; }
33402       tst_compi_getaddrinfo="yes"
33403
33404 else
33405
33406       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33407 $as_echo "no" >&6; }
33408       tst_compi_getaddrinfo="no"
33409
33410 fi
33411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33412   fi
33413   #
33414     if test "x$cross_compiling" != "xyes" &&
33415     test "$tst_compi_getaddrinfo" = "yes"; then
33416     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
33417 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
33418
33419
33420    old=$LD_LIBRARY_PATH
33421    LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
33422    export LD_LIBRARY_PATH
33423    if test "$cross_compiling" = yes; then :
33424   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33426 as_fn_error $? "cannot run test program while cross compiling
33427 See \`config.log' for more details" "$LINENO" 5; }
33428 else
33429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33430 /* end confdefs.h.  */
33431
33432
33433         $curl_includes_ws2tcpip
33434         $curl_includes_stdlib
33435         $curl_includes_string
33436         $curl_includes_sys_socket
33437         $curl_includes_netdb
33438
33439 int main (void)
33440 {
33441
33442         struct addrinfo hints;
33443         struct addrinfo *ai = 0;
33444         int error;
33445
33446         #ifdef HAVE_WINSOCK2_H
33447         WSADATA wsa;
33448         if (WSAStartup(MAKEWORD(2,2), &wsa))
33449                 exit(2);
33450         #endif
33451
33452         memset(&hints, 0, sizeof(hints));
33453         hints.ai_flags = AI_NUMERICHOST;
33454         hints.ai_family = AF_UNSPEC;
33455         hints.ai_socktype = SOCK_STREAM;
33456         error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
33457         if(error || !ai)
33458           exit(1); /* fail */
33459         else
33460           exit(0);
33461
33462  ;
33463  return 0;
33464 }
33465
33466 _ACEOF
33467 if ac_fn_c_try_run "$LINENO"; then :
33468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33469 $as_echo "yes" >&6; }
33470       tst_works_getaddrinfo="yes"
33471
33472 else
33473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33474 $as_echo "no" >&6; }
33475       tst_works_getaddrinfo="no"
33476
33477 fi
33478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33479   conftest.$ac_objext conftest.beam conftest.$ac_ext
33480 fi
33481
33482    LD_LIBRARY_PATH=$old # restore
33483
33484   fi
33485   #
33486   if test "$tst_compi_getaddrinfo" = "yes" &&
33487     test "$tst_works_getaddrinfo" != "no"; then
33488     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
33489 $as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
33490     if test "x$curl_disallow_getaddrinfo" != "xyes"; then
33491       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33492 $as_echo "yes" >&6; }
33493       tst_allow_getaddrinfo="yes"
33494     else
33495       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33496 $as_echo "no" >&6; }
33497       tst_allow_getaddrinfo="no"
33498     fi
33499   fi
33500   #
33501   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
33502 $as_echo_n "checking if getaddrinfo might be used... " >&6; }
33503   if test "$tst_links_getaddrinfo" = "yes" &&
33504      test "$tst_proto_getaddrinfo" = "yes" &&
33505      test "$tst_compi_getaddrinfo" = "yes" &&
33506      test "$tst_allow_getaddrinfo" = "yes" &&
33507      test "$tst_works_getaddrinfo" != "no"; then
33508     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33509 $as_echo "yes" >&6; }
33510
33511 cat >>confdefs.h <<_ACEOF
33512 #define HAVE_GETADDRINFO 1
33513 _ACEOF
33514
33515     curl_cv_func_getaddrinfo="yes"
33516   else
33517     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33518 $as_echo "no" >&6; }
33519     curl_cv_func_getaddrinfo="no"
33520     curl_cv_func_getaddrinfo_threadsafe="no"
33521   fi
33522   #
33523   if test "$curl_cv_func_getaddrinfo" = "yes"; then
33524     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
33525 $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
33526     case $host_os in
33527       aix[1234].* | aix5.[01].*)
33528                 tst_tsafe_getaddrinfo="no"
33529         ;;
33530       aix*)
33531                 tst_tsafe_getaddrinfo="yes"
33532         ;;
33533       darwin[12345].*)
33534                 tst_tsafe_getaddrinfo="no"
33535         ;;
33536       darwin*)
33537                 tst_tsafe_getaddrinfo="yes"
33538         ;;
33539       freebsd[1234].* | freebsd5.[1234]*)
33540                 tst_tsafe_getaddrinfo="no"
33541         ;;
33542       freebsd*)
33543                 tst_tsafe_getaddrinfo="yes"
33544         ;;
33545       hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
33546                 tst_tsafe_getaddrinfo="no"
33547         ;;
33548       hpux*)
33549                 tst_tsafe_getaddrinfo="yes"
33550         ;;
33551       netbsd[123].*)
33552                 tst_tsafe_getaddrinfo="no"
33553         ;;
33554       netbsd*)
33555                 tst_tsafe_getaddrinfo="yes"
33556         ;;
33557       *bsd*)
33558                 tst_tsafe_getaddrinfo="no"
33559         ;;
33560       solaris2*)
33561                 tst_tsafe_getaddrinfo="yes"
33562         ;;
33563     esac
33564     if test "$tst_tsafe_getaddrinfo" = "unknown" &&
33565        test "$curl_cv_native_windows" = "yes"; then
33566       tst_tsafe_getaddrinfo="yes"
33567     fi
33568     if test "$tst_tsafe_getaddrinfo" = "unknown"; then
33569
33570
33571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33572 /* end confdefs.h.  */
33573
33574
33575         $curl_includes_sys_socket
33576         $curl_includes_netdb
33577
33578 int main (void)
33579 {
33580 #ifdef h_errno
33581   return 0;
33582 #else
33583   force compilation error
33584 #endif
33585 }
33586
33587
33588 _ACEOF
33589 if ac_fn_c_try_compile "$LINENO"; then :
33590
33591     tst_symbol_defined="yes"
33592
33593 else
33594
33595     tst_symbol_defined="no"
33596
33597 fi
33598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33599   if test "$tst_symbol_defined" = "yes"; then
33600     curl_cv_have_def_h_errno=yes
33601
33602   else
33603     curl_cv_have_def_h_errno=no
33604
33605   fi
33606
33607       if test "$curl_cv_have_def_h_errno" = "yes"; then
33608         tst_h_errno_macro="yes"
33609       else
33610         tst_h_errno_macro="no"
33611       fi
33612       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33613 /* end confdefs.h.  */
33614
33615
33616           $curl_includes_sys_socket
33617           $curl_includes_netdb
33618
33619 int main (void)
33620 {
33621
33622           h_errno = 2;
33623           if(0 != h_errno)
33624             return 1;
33625
33626  ;
33627  return 0;
33628 }
33629
33630 _ACEOF
33631 if ac_fn_c_try_compile "$LINENO"; then :
33632
33633         tst_h_errno_modifiable_lvalue="yes"
33634
33635 else
33636
33637         tst_h_errno_modifiable_lvalue="no"
33638
33639 fi
33640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33641       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33642 /* end confdefs.h.  */
33643
33644
33645
33646 int main (void)
33647 {
33648
33649 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
33650           return 0;
33651 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
33652           return 0;
33653 #else
33654           force compilation error
33655 #endif
33656
33657  ;
33658  return 0;
33659 }
33660
33661 _ACEOF
33662 if ac_fn_c_try_compile "$LINENO"; then :
33663
33664         tst_h_errno_sbs_issue_7="yes"
33665
33666 else
33667
33668         tst_h_errno_sbs_issue_7="no"
33669
33670 fi
33671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33672       if test "$tst_h_errno_macro" = "no" &&
33673          test "$tst_h_errno_modifiable_lvalue" = "no" &&
33674          test "$tst_h_errno_sbs_issue_7" = "no"; then
33675         tst_tsafe_getaddrinfo="no"
33676       else
33677         tst_tsafe_getaddrinfo="yes"
33678       fi
33679     fi
33680     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
33681 $as_echo "$tst_tsafe_getaddrinfo" >&6; }
33682     if test "$tst_tsafe_getaddrinfo" = "yes"; then
33683
33684 cat >>confdefs.h <<_ACEOF
33685 #define HAVE_GETADDRINFO_THREADSAFE 1
33686 _ACEOF
33687
33688       curl_cv_func_getaddrinfo_threadsafe="yes"
33689     else
33690       curl_cv_func_getaddrinfo_threadsafe="no"
33691     fi
33692   fi
33693
33694
33695       #
33696   tst_links_gai_strerror="unknown"
33697   tst_proto_gai_strerror="unknown"
33698   tst_compi_gai_strerror="unknown"
33699   tst_allow_gai_strerror="unknown"
33700   #
33701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
33702 $as_echo_n "checking if gai_strerror can be linked... " >&6; }
33703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33704 /* end confdefs.h.  */
33705
33706
33707       $curl_includes_winsock2
33708       $curl_includes_bsdsocket
33709       $curl_includes_netdb
33710
33711 int main (void)
33712 {
33713
33714       if(0 != gai_strerror(0))
33715         return 1;
33716
33717  ;
33718  return 0;
33719 }
33720
33721 _ACEOF
33722 if ac_fn_c_try_link "$LINENO"; then :
33723
33724     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33725 $as_echo "yes" >&6; }
33726     tst_links_gai_strerror="yes"
33727
33728 else
33729
33730     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33731 $as_echo "no" >&6; }
33732     tst_links_gai_strerror="no"
33733
33734 fi
33735 rm -f core conftest.err conftest.$ac_objext \
33736     conftest$ac_exeext conftest.$ac_ext
33737   #
33738   if test "$tst_links_gai_strerror" = "yes"; then
33739     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
33740 $as_echo_n "checking if gai_strerror is prototyped... " >&6; }
33741     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33742 /* end confdefs.h.  */
33743
33744       $curl_includes_winsock2
33745       $curl_includes_bsdsocket
33746       $curl_includes_netdb
33747
33748 _ACEOF
33749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33750   $EGREP "gai_strerror" >/dev/null 2>&1; then :
33751
33752       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33753 $as_echo "yes" >&6; }
33754       tst_proto_gai_strerror="yes"
33755
33756 else
33757
33758       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33759 $as_echo "no" >&6; }
33760       tst_proto_gai_strerror="no"
33761
33762 fi
33763 rm -f conftest*
33764
33765   fi
33766   #
33767   if test "$tst_proto_gai_strerror" = "yes"; then
33768     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
33769 $as_echo_n "checking if gai_strerror is compilable... " >&6; }
33770     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33771 /* end confdefs.h.  */
33772
33773
33774         $curl_includes_winsock2
33775       $curl_includes_bsdsocket
33776         $curl_includes_netdb
33777
33778 int main (void)
33779 {
33780
33781         if(0 != gai_strerror(0))
33782           return 1;
33783
33784  ;
33785  return 0;
33786 }
33787
33788 _ACEOF
33789 if ac_fn_c_try_compile "$LINENO"; then :
33790
33791       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33792 $as_echo "yes" >&6; }
33793       tst_compi_gai_strerror="yes"
33794
33795 else
33796
33797       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33798 $as_echo "no" >&6; }
33799       tst_compi_gai_strerror="no"
33800
33801 fi
33802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33803   fi
33804   #
33805   if test "$tst_compi_gai_strerror" = "yes"; then
33806     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
33807 $as_echo_n "checking if gai_strerror usage allowed... " >&6; }
33808     if test "x$curl_disallow_gai_strerror" != "xyes"; then
33809       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33810 $as_echo "yes" >&6; }
33811       tst_allow_gai_strerror="yes"
33812     else
33813       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33814 $as_echo "no" >&6; }
33815       tst_allow_gai_strerror="no"
33816     fi
33817   fi
33818   #
33819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
33820 $as_echo_n "checking if gai_strerror might be used... " >&6; }
33821   if test "$tst_links_gai_strerror" = "yes" &&
33822      test "$tst_proto_gai_strerror" = "yes" &&
33823      test "$tst_compi_gai_strerror" = "yes" &&
33824      test "$tst_allow_gai_strerror" = "yes"; then
33825     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33826 $as_echo "yes" >&6; }
33827
33828 cat >>confdefs.h <<_ACEOF
33829 #define HAVE_GAI_STRERROR 1
33830 _ACEOF
33831
33832     curl_cv_func_gai_strerror="yes"
33833   else
33834     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33835 $as_echo "no" >&6; }
33836     curl_cv_func_gai_strerror="no"
33837   fi
33838
33839
33840       #
33841   tst_links_gethostbyaddr="unknown"
33842   tst_proto_gethostbyaddr="unknown"
33843   tst_compi_gethostbyaddr="unknown"
33844   tst_allow_gethostbyaddr="unknown"
33845   #
33846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
33847 $as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
33848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33849 /* end confdefs.h.  */
33850
33851
33852       $curl_includes_winsock2
33853       $curl_includes_bsdsocket
33854       $curl_includes_netdb
33855
33856 int main (void)
33857 {
33858
33859       if(0 != gethostbyaddr(0, 0, 0))
33860         return 1;
33861
33862  ;
33863  return 0;
33864 }
33865
33866 _ACEOF
33867 if ac_fn_c_try_link "$LINENO"; then :
33868
33869     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33870 $as_echo "yes" >&6; }
33871     tst_links_gethostbyaddr="yes"
33872
33873 else
33874
33875     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33876 $as_echo "no" >&6; }
33877     tst_links_gethostbyaddr="no"
33878
33879 fi
33880 rm -f core conftest.err conftest.$ac_objext \
33881     conftest$ac_exeext conftest.$ac_ext
33882   #
33883   if test "$tst_links_gethostbyaddr" = "yes"; then
33884     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
33885 $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
33886     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33887 /* end confdefs.h.  */
33888
33889       $curl_includes_winsock2
33890       $curl_includes_bsdsocket
33891       $curl_includes_netdb
33892
33893 _ACEOF
33894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33895   $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
33896
33897       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33898 $as_echo "yes" >&6; }
33899       tst_proto_gethostbyaddr="yes"
33900
33901 else
33902
33903       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33904 $as_echo "no" >&6; }
33905       tst_proto_gethostbyaddr="no"
33906
33907 fi
33908 rm -f conftest*
33909
33910   fi
33911   #
33912   if test "$tst_proto_gethostbyaddr" = "yes"; then
33913     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
33914 $as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
33915     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33916 /* end confdefs.h.  */
33917
33918
33919         $curl_includes_winsock2
33920       $curl_includes_bsdsocket
33921         $curl_includes_netdb
33922
33923 int main (void)
33924 {
33925
33926         if(0 != gethostbyaddr(0, 0, 0))
33927           return 1;
33928
33929  ;
33930  return 0;
33931 }
33932
33933 _ACEOF
33934 if ac_fn_c_try_compile "$LINENO"; then :
33935
33936       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33937 $as_echo "yes" >&6; }
33938       tst_compi_gethostbyaddr="yes"
33939
33940 else
33941
33942       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33943 $as_echo "no" >&6; }
33944       tst_compi_gethostbyaddr="no"
33945
33946 fi
33947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33948   fi
33949   #
33950   if test "$tst_compi_gethostbyaddr" = "yes"; then
33951     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
33952 $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
33953     if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
33954       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33955 $as_echo "yes" >&6; }
33956       tst_allow_gethostbyaddr="yes"
33957     else
33958       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33959 $as_echo "no" >&6; }
33960       tst_allow_gethostbyaddr="no"
33961     fi
33962   fi
33963   #
33964   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
33965 $as_echo_n "checking if gethostbyaddr might be used... " >&6; }
33966   if test "$tst_links_gethostbyaddr" = "yes" &&
33967      test "$tst_proto_gethostbyaddr" = "yes" &&
33968      test "$tst_compi_gethostbyaddr" = "yes" &&
33969      test "$tst_allow_gethostbyaddr" = "yes"; then
33970     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33971 $as_echo "yes" >&6; }
33972
33973 cat >>confdefs.h <<_ACEOF
33974 #define HAVE_GETHOSTBYADDR 1
33975 _ACEOF
33976
33977     curl_cv_func_gethostbyaddr="yes"
33978   else
33979     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33980 $as_echo "no" >&6; }
33981     curl_cv_func_gethostbyaddr="no"
33982   fi
33983
33984
33985     #
33986   tst_links_gethostbyaddr_r="unknown"
33987   tst_proto_gethostbyaddr_r="unknown"
33988   tst_compi_gethostbyaddr_r="unknown"
33989   tst_allow_gethostbyaddr_r="unknown"
33990   tst_nargs_gethostbyaddr_r="unknown"
33991   #
33992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
33993 $as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
33994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33995 /* end confdefs.h.  */
33996
33997
33998 #define gethostbyaddr_r innocuous_gethostbyaddr_r
33999 #ifdef __STDC__
34000 # include <limits.h>
34001 #else
34002 # include <assert.h>
34003 #endif
34004 #undef gethostbyaddr_r
34005 #ifdef __cplusplus
34006 extern "C"
34007 #endif
34008 char gethostbyaddr_r ();
34009 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
34010 choke me
34011 #endif
34012
34013 int main (void)
34014 {
34015 return gethostbyaddr_r ();
34016  ;
34017  return 0;
34018 }
34019
34020 _ACEOF
34021 if ac_fn_c_try_link "$LINENO"; then :
34022
34023     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34024 $as_echo "yes" >&6; }
34025     tst_links_gethostbyaddr_r="yes"
34026
34027 else
34028
34029     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34030 $as_echo "no" >&6; }
34031     tst_links_gethostbyaddr_r="no"
34032
34033 fi
34034 rm -f core conftest.err conftest.$ac_objext \
34035     conftest$ac_exeext conftest.$ac_ext
34036   #
34037   if test "$tst_links_gethostbyaddr_r" = "yes"; then
34038     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
34039 $as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
34040     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34041 /* end confdefs.h.  */
34042
34043       $curl_includes_netdb
34044
34045 _ACEOF
34046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34047   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
34048
34049       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34050 $as_echo "yes" >&6; }
34051       tst_proto_gethostbyaddr_r="yes"
34052
34053 else
34054
34055       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34056 $as_echo "no" >&6; }
34057       tst_proto_gethostbyaddr_r="no"
34058
34059 fi
34060 rm -f conftest*
34061
34062   fi
34063   #
34064   if test "$tst_proto_gethostbyaddr_r" = "yes"; then
34065     if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
34066       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
34067 $as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
34068       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34069 /* end confdefs.h.  */
34070
34071
34072           $curl_includes_netdb
34073
34074 int main (void)
34075 {
34076
34077           if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
34078             return 1;
34079
34080  ;
34081  return 0;
34082 }
34083
34084 _ACEOF
34085 if ac_fn_c_try_compile "$LINENO"; then :
34086
34087         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34088 $as_echo "yes" >&6; }
34089         tst_compi_gethostbyaddr_r="yes"
34090         tst_nargs_gethostbyaddr_r="5"
34091
34092 else
34093
34094         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34095 $as_echo "no" >&6; }
34096         tst_compi_gethostbyaddr_r="no"
34097
34098 fi
34099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34100     fi
34101     if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
34102       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
34103 $as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
34104       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34105 /* end confdefs.h.  */
34106
34107
34108           $curl_includes_netdb
34109
34110 int main (void)
34111 {
34112
34113           if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
34114             return 1;
34115
34116  ;
34117  return 0;
34118 }
34119
34120 _ACEOF
34121 if ac_fn_c_try_compile "$LINENO"; then :
34122
34123         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34124 $as_echo "yes" >&6; }
34125         tst_compi_gethostbyaddr_r="yes"
34126         tst_nargs_gethostbyaddr_r="7"
34127
34128 else
34129
34130         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34131 $as_echo "no" >&6; }
34132         tst_compi_gethostbyaddr_r="no"
34133
34134 fi
34135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34136     fi
34137     if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
34138       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
34139 $as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
34140       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34141 /* end confdefs.h.  */
34142
34143
34144           $curl_includes_netdb
34145
34146 int main (void)
34147 {
34148
34149           if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
34150             return 1;
34151
34152  ;
34153  return 0;
34154 }
34155
34156 _ACEOF
34157 if ac_fn_c_try_compile "$LINENO"; then :
34158
34159         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34160 $as_echo "yes" >&6; }
34161         tst_compi_gethostbyaddr_r="yes"
34162         tst_nargs_gethostbyaddr_r="8"
34163
34164 else
34165
34166         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34167 $as_echo "no" >&6; }
34168         tst_compi_gethostbyaddr_r="no"
34169
34170 fi
34171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34172     fi
34173     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
34174 $as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
34175     if test "$tst_compi_gethostbyaddr_r" = "yes"; then
34176       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34177 $as_echo "yes" >&6; }
34178     else
34179       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34180 $as_echo "no" >&6; }
34181     fi
34182   fi
34183   #
34184   if test "$tst_compi_gethostbyaddr_r" = "yes"; then
34185     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
34186 $as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
34187     if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
34188       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34189 $as_echo "yes" >&6; }
34190       tst_allow_gethostbyaddr_r="yes"
34191     else
34192       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34193 $as_echo "no" >&6; }
34194       tst_allow_gethostbyaddr_r="no"
34195     fi
34196   fi
34197   #
34198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
34199 $as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
34200   if test "$tst_links_gethostbyaddr_r" = "yes" &&
34201      test "$tst_proto_gethostbyaddr_r" = "yes" &&
34202      test "$tst_compi_gethostbyaddr_r" = "yes" &&
34203      test "$tst_allow_gethostbyaddr_r" = "yes"; then
34204     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34205 $as_echo "yes" >&6; }
34206
34207 cat >>confdefs.h <<_ACEOF
34208 #define HAVE_GETHOSTBYADDR_R 1
34209 _ACEOF
34210
34211             #
34212     if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
34213
34214 $as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
34215
34216     elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
34217
34218 $as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
34219
34220     elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
34221
34222 $as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
34223
34224     fi
34225     #
34226     curl_cv_func_gethostbyaddr_r="yes"
34227   else
34228     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34229 $as_echo "no" >&6; }
34230     curl_cv_func_gethostbyaddr_r="no"
34231   fi
34232
34233
34234       #
34235   tst_links_gethostbyname="unknown"
34236   tst_proto_gethostbyname="unknown"
34237   tst_compi_gethostbyname="unknown"
34238   tst_allow_gethostbyname="unknown"
34239   #
34240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
34241 $as_echo_n "checking if gethostbyname can be linked... " >&6; }
34242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34243 /* end confdefs.h.  */
34244
34245
34246       $curl_includes_winsock2
34247       $curl_includes_bsdsocket
34248       $curl_includes_netdb
34249
34250 int main (void)
34251 {
34252
34253       if(0 != gethostbyname(0))
34254         return 1;
34255
34256  ;
34257  return 0;
34258 }
34259
34260 _ACEOF
34261 if ac_fn_c_try_link "$LINENO"; then :
34262
34263     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34264 $as_echo "yes" >&6; }
34265     tst_links_gethostbyname="yes"
34266
34267 else
34268
34269     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34270 $as_echo "no" >&6; }
34271     tst_links_gethostbyname="no"
34272
34273 fi
34274 rm -f core conftest.err conftest.$ac_objext \
34275     conftest$ac_exeext conftest.$ac_ext
34276   #
34277   if test "$tst_links_gethostbyname" = "yes"; then
34278     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
34279 $as_echo_n "checking if gethostbyname is prototyped... " >&6; }
34280     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34281 /* end confdefs.h.  */
34282
34283       $curl_includes_winsock2
34284       $curl_includes_bsdsocket
34285       $curl_includes_netdb
34286
34287 _ACEOF
34288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34289   $EGREP "gethostbyname" >/dev/null 2>&1; then :
34290
34291       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34292 $as_echo "yes" >&6; }
34293       tst_proto_gethostbyname="yes"
34294
34295 else
34296
34297       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34298 $as_echo "no" >&6; }
34299       tst_proto_gethostbyname="no"
34300
34301 fi
34302 rm -f conftest*
34303
34304   fi
34305   #
34306   if test "$tst_proto_gethostbyname" = "yes"; then
34307     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
34308 $as_echo_n "checking if gethostbyname is compilable... " >&6; }
34309     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34310 /* end confdefs.h.  */
34311
34312
34313         $curl_includes_winsock2
34314       $curl_includes_bsdsocket
34315         $curl_includes_netdb
34316
34317 int main (void)
34318 {
34319
34320         if(0 != gethostbyname(0))
34321           return 1;
34322
34323  ;
34324  return 0;
34325 }
34326
34327 _ACEOF
34328 if ac_fn_c_try_compile "$LINENO"; then :
34329
34330       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34331 $as_echo "yes" >&6; }
34332       tst_compi_gethostbyname="yes"
34333
34334 else
34335
34336       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34337 $as_echo "no" >&6; }
34338       tst_compi_gethostbyname="no"
34339
34340 fi
34341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34342   fi
34343   #
34344   if test "$tst_compi_gethostbyname" = "yes"; then
34345     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
34346 $as_echo_n "checking if gethostbyname usage allowed... " >&6; }
34347     if test "x$curl_disallow_gethostbyname" != "xyes"; then
34348       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34349 $as_echo "yes" >&6; }
34350       tst_allow_gethostbyname="yes"
34351     else
34352       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34353 $as_echo "no" >&6; }
34354       tst_allow_gethostbyname="no"
34355     fi
34356   fi
34357   #
34358   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
34359 $as_echo_n "checking if gethostbyname might be used... " >&6; }
34360   if test "$tst_links_gethostbyname" = "yes" &&
34361      test "$tst_proto_gethostbyname" = "yes" &&
34362      test "$tst_compi_gethostbyname" = "yes" &&
34363      test "$tst_allow_gethostbyname" = "yes"; then
34364     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34365 $as_echo "yes" >&6; }
34366
34367 cat >>confdefs.h <<_ACEOF
34368 #define HAVE_GETHOSTBYNAME 1
34369 _ACEOF
34370
34371     curl_cv_func_gethostbyname="yes"
34372   else
34373     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34374 $as_echo "no" >&6; }
34375     curl_cv_func_gethostbyname="no"
34376   fi
34377
34378
34379     #
34380   tst_links_gethostbyname_r="unknown"
34381   tst_proto_gethostbyname_r="unknown"
34382   tst_compi_gethostbyname_r="unknown"
34383   tst_allow_gethostbyname_r="unknown"
34384   tst_nargs_gethostbyname_r="unknown"
34385   #
34386   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
34387 $as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
34388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34389 /* end confdefs.h.  */
34390
34391
34392 #define gethostbyname_r innocuous_gethostbyname_r
34393 #ifdef __STDC__
34394 # include <limits.h>
34395 #else
34396 # include <assert.h>
34397 #endif
34398 #undef gethostbyname_r
34399 #ifdef __cplusplus
34400 extern "C"
34401 #endif
34402 char gethostbyname_r ();
34403 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
34404 choke me
34405 #endif
34406
34407 int main (void)
34408 {
34409 return gethostbyname_r ();
34410  ;
34411  return 0;
34412 }
34413
34414 _ACEOF
34415 if ac_fn_c_try_link "$LINENO"; then :
34416
34417     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34418 $as_echo "yes" >&6; }
34419     tst_links_gethostbyname_r="yes"
34420
34421 else
34422
34423     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34424 $as_echo "no" >&6; }
34425     tst_links_gethostbyname_r="no"
34426
34427 fi
34428 rm -f core conftest.err conftest.$ac_objext \
34429     conftest$ac_exeext conftest.$ac_ext
34430   #
34431   if test "$tst_links_gethostbyname_r" = "yes"; then
34432     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
34433 $as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
34434     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34435 /* end confdefs.h.  */
34436
34437       $curl_includes_netdb
34438
34439 _ACEOF
34440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34441   $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
34442
34443       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34444 $as_echo "yes" >&6; }
34445       tst_proto_gethostbyname_r="yes"
34446
34447 else
34448
34449       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34450 $as_echo "no" >&6; }
34451       tst_proto_gethostbyname_r="no"
34452
34453 fi
34454 rm -f conftest*
34455
34456   fi
34457   #
34458   if test "$tst_proto_gethostbyname_r" = "yes"; then
34459     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
34460       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
34461 $as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
34462       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34463 /* end confdefs.h.  */
34464
34465
34466           $curl_includes_netdb
34467
34468 int main (void)
34469 {
34470
34471           if(0 != gethostbyname_r(0, 0, 0))
34472             return 1;
34473
34474  ;
34475  return 0;
34476 }
34477
34478 _ACEOF
34479 if ac_fn_c_try_compile "$LINENO"; then :
34480
34481         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34482 $as_echo "yes" >&6; }
34483         tst_compi_gethostbyname_r="yes"
34484         tst_nargs_gethostbyname_r="3"
34485
34486 else
34487
34488         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34489 $as_echo "no" >&6; }
34490         tst_compi_gethostbyname_r="no"
34491
34492 fi
34493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34494     fi
34495     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
34496       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
34497 $as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
34498       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34499 /* end confdefs.h.  */
34500
34501
34502           $curl_includes_netdb
34503
34504 int main (void)
34505 {
34506
34507           if(0 != gethostbyname_r(0, 0, 0, 0, 0))
34508             return 1;
34509
34510  ;
34511  return 0;
34512 }
34513
34514 _ACEOF
34515 if ac_fn_c_try_compile "$LINENO"; then :
34516
34517         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34518 $as_echo "yes" >&6; }
34519         tst_compi_gethostbyname_r="yes"
34520         tst_nargs_gethostbyname_r="5"
34521
34522 else
34523
34524         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34525 $as_echo "no" >&6; }
34526         tst_compi_gethostbyname_r="no"
34527
34528 fi
34529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34530     fi
34531     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
34532       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
34533 $as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
34534       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34535 /* end confdefs.h.  */
34536
34537
34538           $curl_includes_netdb
34539
34540 int main (void)
34541 {
34542
34543           if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
34544             return 1;
34545
34546  ;
34547  return 0;
34548 }
34549
34550 _ACEOF
34551 if ac_fn_c_try_compile "$LINENO"; then :
34552
34553         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34554 $as_echo "yes" >&6; }
34555         tst_compi_gethostbyname_r="yes"
34556         tst_nargs_gethostbyname_r="6"
34557
34558 else
34559
34560         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34561 $as_echo "no" >&6; }
34562         tst_compi_gethostbyname_r="no"
34563
34564 fi
34565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34566     fi
34567     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
34568 $as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
34569     if test "$tst_compi_gethostbyname_r" = "yes"; then
34570       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34571 $as_echo "yes" >&6; }
34572     else
34573       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34574 $as_echo "no" >&6; }
34575     fi
34576   fi
34577   #
34578   if test "$tst_compi_gethostbyname_r" = "yes"; then
34579     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
34580 $as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
34581     if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
34582       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34583 $as_echo "yes" >&6; }
34584       tst_allow_gethostbyname_r="yes"
34585     else
34586       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34587 $as_echo "no" >&6; }
34588       tst_allow_gethostbyname_r="no"
34589     fi
34590   fi
34591   #
34592   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
34593 $as_echo_n "checking if gethostbyname_r might be used... " >&6; }
34594   if test "$tst_links_gethostbyname_r" = "yes" &&
34595      test "$tst_proto_gethostbyname_r" = "yes" &&
34596      test "$tst_compi_gethostbyname_r" = "yes" &&
34597      test "$tst_allow_gethostbyname_r" = "yes"; then
34598     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34599 $as_echo "yes" >&6; }
34600
34601 cat >>confdefs.h <<_ACEOF
34602 #define HAVE_GETHOSTBYNAME_R 1
34603 _ACEOF
34604
34605             #
34606     if test "$tst_nargs_gethostbyname_r" -eq "3"; then
34607
34608 $as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
34609
34610     elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
34611
34612 $as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
34613
34614     elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
34615
34616 $as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
34617
34618     fi
34619     #
34620     curl_cv_func_gethostbyname_r="yes"
34621   else
34622     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34623 $as_echo "no" >&6; }
34624     curl_cv_func_gethostbyname_r="no"
34625   fi
34626
34627
34628 curl_preprocess_callconv="\
34629 /* preprocess start */
34630 #ifdef HAVE_WINDOWS_H
34631 #  define FUNCALLCONV __stdcall
34632 #else
34633 #  define FUNCALLCONV
34634 #endif
34635 /* preprocess end */"
34636
34637
34638           #
34639   tst_links_gethostname="unknown"
34640   tst_proto_gethostname="unknown"
34641   tst_compi_gethostname="unknown"
34642   tst_allow_gethostname="unknown"
34643   #
34644   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
34645 $as_echo_n "checking if gethostname can be linked... " >&6; }
34646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34647 /* end confdefs.h.  */
34648
34649
34650       $curl_includes_winsock2
34651       $curl_includes_bsdsocket
34652       $curl_includes_unistd
34653
34654 int main (void)
34655 {
34656
34657       if(0 != gethostname(0, 0))
34658         return 1;
34659
34660  ;
34661  return 0;
34662 }
34663
34664 _ACEOF
34665 if ac_fn_c_try_link "$LINENO"; then :
34666
34667     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34668 $as_echo "yes" >&6; }
34669     tst_links_gethostname="yes"
34670
34671 else
34672
34673     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34674 $as_echo "no" >&6; }
34675     tst_links_gethostname="no"
34676
34677 fi
34678 rm -f core conftest.err conftest.$ac_objext \
34679     conftest$ac_exeext conftest.$ac_ext
34680   #
34681   if test "$tst_links_gethostname" = "yes"; then
34682     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
34683 $as_echo_n "checking if gethostname is prototyped... " >&6; }
34684     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34685 /* end confdefs.h.  */
34686
34687       $curl_includes_winsock2
34688       $curl_includes_bsdsocket
34689       $curl_includes_unistd
34690
34691 _ACEOF
34692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34693   $EGREP "gethostname" >/dev/null 2>&1; then :
34694
34695       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34696 $as_echo "yes" >&6; }
34697       tst_proto_gethostname="yes"
34698
34699 else
34700
34701       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34702 $as_echo "no" >&6; }
34703       tst_proto_gethostname="no"
34704
34705 fi
34706 rm -f conftest*
34707
34708   fi
34709   #
34710   if test "$tst_proto_gethostname" = "yes"; then
34711     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
34712 $as_echo_n "checking if gethostname is compilable... " >&6; }
34713     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34714 /* end confdefs.h.  */
34715
34716
34717         $curl_includes_winsock2
34718       $curl_includes_bsdsocket
34719         $curl_includes_unistd
34720
34721 int main (void)
34722 {
34723
34724         if(0 != gethostname(0, 0))
34725           return 1;
34726
34727  ;
34728  return 0;
34729 }
34730
34731 _ACEOF
34732 if ac_fn_c_try_compile "$LINENO"; then :
34733
34734       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34735 $as_echo "yes" >&6; }
34736       tst_compi_gethostname="yes"
34737
34738 else
34739
34740       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34741 $as_echo "no" >&6; }
34742       tst_compi_gethostname="no"
34743
34744 fi
34745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34746   fi
34747   #
34748   if test "$tst_compi_gethostname" = "yes"; then
34749     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
34750 $as_echo_n "checking for gethostname arg 2 data type... " >&6; }
34751     tst_gethostname_type_arg2="unknown"
34752     for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
34753       for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
34754         if test "$tst_gethostname_type_arg2" = "unknown"; then
34755           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34756 /* end confdefs.h.  */
34757
34758
34759               $curl_includes_winsock2
34760       $curl_includes_bsdsocket
34761               $curl_includes_unistd
34762               $curl_preprocess_callconv
34763               extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
34764
34765 int main (void)
34766 {
34767
34768               if(0 != gethostname(0, 0))
34769                 return 1;
34770
34771  ;
34772  return 0;
34773 }
34774
34775 _ACEOF
34776 if ac_fn_c_try_compile "$LINENO"; then :
34777
34778             tst_gethostname_type_arg2="$tst_arg2"
34779
34780 fi
34781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34782         fi
34783       done
34784     done
34785     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
34786 $as_echo "$tst_gethostname_type_arg2" >&6; }
34787     if test "$tst_gethostname_type_arg2" != "unknown"; then
34788
34789 cat >>confdefs.h <<_ACEOF
34790 #define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
34791 _ACEOF
34792
34793     fi
34794   fi
34795   #
34796   if test "$tst_compi_gethostname" = "yes"; then
34797     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
34798 $as_echo_n "checking if gethostname usage allowed... " >&6; }
34799     if test "x$curl_disallow_gethostname" != "xyes"; then
34800       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34801 $as_echo "yes" >&6; }
34802       tst_allow_gethostname="yes"
34803     else
34804       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34805 $as_echo "no" >&6; }
34806       tst_allow_gethostname="no"
34807     fi
34808   fi
34809   #
34810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
34811 $as_echo_n "checking if gethostname might be used... " >&6; }
34812   if test "$tst_links_gethostname" = "yes" &&
34813      test "$tst_proto_gethostname" = "yes" &&
34814      test "$tst_compi_gethostname" = "yes" &&
34815      test "$tst_allow_gethostname" = "yes"; then
34816     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34817 $as_echo "yes" >&6; }
34818
34819 cat >>confdefs.h <<_ACEOF
34820 #define HAVE_GETHOSTNAME 1
34821 _ACEOF
34822
34823     curl_cv_func_gethostname="yes"
34824   else
34825     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34826 $as_echo "no" >&6; }
34827     curl_cv_func_gethostname="no"
34828   fi
34829
34830
34831           #
34832   tst_links_getpeername="unknown"
34833   tst_proto_getpeername="unknown"
34834   tst_compi_getpeername="unknown"
34835   tst_allow_getpeername="unknown"
34836   #
34837   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpeername can be linked" >&5
34838 $as_echo_n "checking if getpeername can be linked... " >&6; }
34839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34840 /* end confdefs.h.  */
34841
34842
34843       $curl_includes_winsock2
34844       $curl_includes_bsdsocket
34845       $curl_includes_sys_socket
34846
34847 int main (void)
34848 {
34849
34850       if(0 != getpeername(0, (void *)0, (void *)0))
34851         return 1;
34852
34853  ;
34854  return 0;
34855 }
34856
34857 _ACEOF
34858 if ac_fn_c_try_link "$LINENO"; then :
34859
34860     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34861 $as_echo "yes" >&6; }
34862     tst_links_getpeername="yes"
34863
34864 else
34865
34866     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34867 $as_echo "no" >&6; }
34868     tst_links_getpeername="no"
34869
34870 fi
34871 rm -f core conftest.err conftest.$ac_objext \
34872     conftest$ac_exeext conftest.$ac_ext
34873   #
34874   if test "$tst_links_getpeername" = "yes"; then
34875     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpeername is prototyped" >&5
34876 $as_echo_n "checking if getpeername is prototyped... " >&6; }
34877     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34878 /* end confdefs.h.  */
34879
34880       $curl_includes_winsock2
34881       $curl_includes_bsdsocket
34882       $curl_includes_sys_socket
34883
34884 _ACEOF
34885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34886   $EGREP "getpeername" >/dev/null 2>&1; then :
34887
34888       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34889 $as_echo "yes" >&6; }
34890       tst_proto_getpeername="yes"
34891
34892 else
34893
34894       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34895 $as_echo "no" >&6; }
34896       tst_proto_getpeername="no"
34897
34898 fi
34899 rm -f conftest*
34900
34901   fi
34902   #
34903   if test "$tst_proto_getpeername" = "yes"; then
34904     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpeername is compilable" >&5
34905 $as_echo_n "checking if getpeername is compilable... " >&6; }
34906     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34907 /* end confdefs.h.  */
34908
34909
34910         $curl_includes_winsock2
34911         $curl_includes_bsdsocket
34912         $curl_includes_sys_socket
34913
34914 int main (void)
34915 {
34916
34917         if(0 != getpeername(0, (void *)0, (void *)0))
34918           return 1;
34919
34920  ;
34921  return 0;
34922 }
34923
34924 _ACEOF
34925 if ac_fn_c_try_compile "$LINENO"; then :
34926
34927       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34928 $as_echo "yes" >&6; }
34929       tst_compi_getpeername="yes"
34930
34931 else
34932
34933       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34934 $as_echo "no" >&6; }
34935       tst_compi_getpeername="no"
34936
34937 fi
34938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34939   fi
34940   #
34941   if test "$tst_compi_getpeername" = "yes"; then
34942     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpeername usage allowed" >&5
34943 $as_echo_n "checking if getpeername usage allowed... " >&6; }
34944     if test "x$curl_disallow_getpeername" != "xyes"; then
34945       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34946 $as_echo "yes" >&6; }
34947       tst_allow_getpeername="yes"
34948     else
34949       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34950 $as_echo "no" >&6; }
34951       tst_allow_getpeername="no"
34952     fi
34953   fi
34954   #
34955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpeername might be used" >&5
34956 $as_echo_n "checking if getpeername might be used... " >&6; }
34957   if test "$tst_links_getpeername" = "yes" &&
34958      test "$tst_proto_getpeername" = "yes" &&
34959      test "$tst_compi_getpeername" = "yes" &&
34960      test "$tst_allow_getpeername" = "yes"; then
34961     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34962 $as_echo "yes" >&6; }
34963
34964 cat >>confdefs.h <<_ACEOF
34965 #define HAVE_GETPEERNAME 1
34966 _ACEOF
34967
34968     curl_cv_func_getpeername="yes"
34969   else
34970     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34971 $as_echo "no" >&6; }
34972     curl_cv_func_getpeername="no"
34973   fi
34974
34975
34976           #
34977   tst_links_getsockname="unknown"
34978   tst_proto_getsockname="unknown"
34979   tst_compi_getsockname="unknown"
34980   tst_allow_getsockname="unknown"
34981   #
34982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname can be linked" >&5
34983 $as_echo_n "checking if getsockname can be linked... " >&6; }
34984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34985 /* end confdefs.h.  */
34986
34987
34988       $curl_includes_winsock2
34989       $curl_includes_bsdsocket
34990       $curl_includes_sys_socket
34991
34992 int main (void)
34993 {
34994
34995       if(0 != getsockname(0, (void *)0, (void *)0))
34996         return 1;
34997
34998  ;
34999  return 0;
35000 }
35001
35002 _ACEOF
35003 if ac_fn_c_try_link "$LINENO"; then :
35004
35005     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35006 $as_echo "yes" >&6; }
35007     tst_links_getsockname="yes"
35008
35009 else
35010
35011     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35012 $as_echo "no" >&6; }
35013     tst_links_getsockname="no"
35014
35015 fi
35016 rm -f core conftest.err conftest.$ac_objext \
35017     conftest$ac_exeext conftest.$ac_ext
35018   #
35019   if test "$tst_links_getsockname" = "yes"; then
35020     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname is prototyped" >&5
35021 $as_echo_n "checking if getsockname is prototyped... " >&6; }
35022     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35023 /* end confdefs.h.  */
35024
35025       $curl_includes_winsock2
35026       $curl_includes_bsdsocket
35027       $curl_includes_sys_socket
35028
35029 _ACEOF
35030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35031   $EGREP "getsockname" >/dev/null 2>&1; then :
35032
35033       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35034 $as_echo "yes" >&6; }
35035       tst_proto_getsockname="yes"
35036
35037 else
35038
35039       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35040 $as_echo "no" >&6; }
35041       tst_proto_getsockname="no"
35042
35043 fi
35044 rm -f conftest*
35045
35046   fi
35047   #
35048   if test "$tst_proto_getsockname" = "yes"; then
35049     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname is compilable" >&5
35050 $as_echo_n "checking if getsockname is compilable... " >&6; }
35051     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35052 /* end confdefs.h.  */
35053
35054
35055         $curl_includes_winsock2
35056         $curl_includes_bsdsocket
35057         $curl_includes_sys_socket
35058
35059 int main (void)
35060 {
35061
35062         if(0 != getsockname(0, (void *)0, (void *)0))
35063           return 1;
35064
35065  ;
35066  return 0;
35067 }
35068
35069 _ACEOF
35070 if ac_fn_c_try_compile "$LINENO"; then :
35071
35072       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35073 $as_echo "yes" >&6; }
35074       tst_compi_getsockname="yes"
35075
35076 else
35077
35078       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35079 $as_echo "no" >&6; }
35080       tst_compi_getsockname="no"
35081
35082 fi
35083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35084   fi
35085   #
35086   if test "$tst_compi_getsockname" = "yes"; then
35087     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname usage allowed" >&5
35088 $as_echo_n "checking if getsockname usage allowed... " >&6; }
35089     if test "x$curl_disallow_getsockname" != "xyes"; then
35090       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35091 $as_echo "yes" >&6; }
35092       tst_allow_getsockname="yes"
35093     else
35094       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35095 $as_echo "no" >&6; }
35096       tst_allow_getsockname="no"
35097     fi
35098   fi
35099   #
35100   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname might be used" >&5
35101 $as_echo_n "checking if getsockname might be used... " >&6; }
35102   if test "$tst_links_getsockname" = "yes" &&
35103      test "$tst_proto_getsockname" = "yes" &&
35104      test "$tst_compi_getsockname" = "yes" &&
35105      test "$tst_allow_getsockname" = "yes"; then
35106     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35107 $as_echo "yes" >&6; }
35108
35109 cat >>confdefs.h <<_ACEOF
35110 #define HAVE_GETSOCKNAME 1
35111 _ACEOF
35112
35113     curl_cv_func_getsockname="yes"
35114   else
35115     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35116 $as_echo "no" >&6; }
35117     curl_cv_func_getsockname="no"
35118   fi
35119
35120
35121 curl_includes_netif="\
35122 /* includes start */
35123 #ifdef HAVE_NET_IF_H
35124 #  include <net/if.h>
35125 #endif
35126 /* includes end */"
35127   for ac_header in net/if.h
35128 do :
35129   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$curl_includes_netif
35130 "
35131 if test "x$ac_cv_header_net_if_h" = xyes; then :
35132   cat >>confdefs.h <<_ACEOF
35133 #define HAVE_NET_IF_H 1
35134 _ACEOF
35135
35136 fi
35137
35138 done
35139
35140
35141
35142         #
35143   tst_links_if_nametoindex="unknown"
35144   tst_proto_if_nametoindex="unknown"
35145   tst_compi_if_nametoindex="unknown"
35146   tst_allow_if_nametoindex="unknown"
35147   #
35148   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex can be linked" >&5
35149 $as_echo_n "checking if if_nametoindex can be linked... " >&6; }
35150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35151 /* end confdefs.h.  */
35152
35153
35154       $curl_includes_winsock2
35155       $curl_includes_bsdsocket
35156       #include <net/if.h>
35157
35158 int main (void)
35159 {
35160
35161       if(0 != if_nametoindex(""))
35162         return 1;
35163
35164  ;
35165  return 0;
35166 }
35167
35168 _ACEOF
35169 if ac_fn_c_try_link "$LINENO"; then :
35170
35171     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35172 $as_echo "yes" >&6; }
35173     tst_links_if_nametoindex="yes"
35174
35175 else
35176
35177     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35178 $as_echo "no" >&6; }
35179     tst_links_if_nametoindex="no"
35180
35181 fi
35182 rm -f core conftest.err conftest.$ac_objext \
35183     conftest$ac_exeext conftest.$ac_ext
35184   #
35185   if test "$tst_links_if_nametoindex" = "yes"; then
35186     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is prototyped" >&5
35187 $as_echo_n "checking if if_nametoindex is prototyped... " >&6; }
35188     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35189 /* end confdefs.h.  */
35190
35191       $curl_includes_winsock2
35192       $curl_includes_netif
35193
35194 _ACEOF
35195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35196   $EGREP "if_nametoindex" >/dev/null 2>&1; then :
35197
35198       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35199 $as_echo "yes" >&6; }
35200       tst_proto_if_nametoindex="yes"
35201
35202 else
35203
35204       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35205 $as_echo "no" >&6; }
35206       tst_proto_if_nametoindex="no"
35207
35208 fi
35209 rm -f conftest*
35210
35211   fi
35212   #
35213   if test "$tst_proto_if_nametoindex" = "yes"; then
35214     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is compilable" >&5
35215 $as_echo_n "checking if if_nametoindex is compilable... " >&6; }
35216     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35217 /* end confdefs.h.  */
35218
35219
35220         $curl_includes_winsock2
35221         $curl_includes_netif
35222
35223 int main (void)
35224 {
35225
35226         if(0 != if_nametoindex(""))
35227           return 1;
35228
35229  ;
35230  return 0;
35231 }
35232
35233 _ACEOF
35234 if ac_fn_c_try_compile "$LINENO"; then :
35235
35236       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35237 $as_echo "yes" >&6; }
35238       tst_compi_if_nametoindex="yes"
35239
35240 else
35241
35242       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35243 $as_echo "no" >&6; }
35244       tst_compi_if_nametoindex="no"
35245
35246 fi
35247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35248   fi
35249   #
35250   if test "$tst_compi_if_nametoindex" = "yes"; then
35251     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex usage allowed" >&5
35252 $as_echo_n "checking if if_nametoindex usage allowed... " >&6; }
35253     if test "x$curl_disallow_if_nametoindex" != "xyes"; then
35254       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35255 $as_echo "yes" >&6; }
35256       tst_allow_if_nametoindex="yes"
35257     else
35258       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35259 $as_echo "no" >&6; }
35260       tst_allow_if_nametoindex="no"
35261     fi
35262   fi
35263   #
35264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex might be used" >&5
35265 $as_echo_n "checking if if_nametoindex might be used... " >&6; }
35266   if test "$tst_links_if_nametoindex" = "yes" &&
35267      test "$tst_proto_if_nametoindex" = "yes" &&
35268      test "$tst_compi_if_nametoindex" = "yes" &&
35269      test "$tst_allow_if_nametoindex" = "yes"; then
35270     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35271 $as_echo "yes" >&6; }
35272
35273 cat >>confdefs.h <<_ACEOF
35274 #define HAVE_IF_NAMETOINDEX 1
35275 _ACEOF
35276
35277     curl_cv_func_if_nametoindex="yes"
35278   else
35279     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35280 $as_echo "no" >&6; }
35281     curl_cv_func_if_nametoindex="no"
35282   fi
35283
35284
35285       #
35286   tst_links_getifaddrs="unknown"
35287   tst_proto_getifaddrs="unknown"
35288   tst_compi_getifaddrs="unknown"
35289   tst_works_getifaddrs="unknown"
35290   tst_allow_getifaddrs="unknown"
35291   #
35292   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
35293 $as_echo_n "checking if getifaddrs can be linked... " >&6; }
35294   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35295 /* end confdefs.h.  */
35296
35297
35298 #define getifaddrs innocuous_getifaddrs
35299 #ifdef __STDC__
35300 # include <limits.h>
35301 #else
35302 # include <assert.h>
35303 #endif
35304 #undef getifaddrs
35305 #ifdef __cplusplus
35306 extern "C"
35307 #endif
35308 char getifaddrs ();
35309 #if defined __stub_getifaddrs || defined __stub___getifaddrs
35310 choke me
35311 #endif
35312
35313 int main (void)
35314 {
35315 return getifaddrs ();
35316  ;
35317  return 0;
35318 }
35319
35320 _ACEOF
35321 if ac_fn_c_try_link "$LINENO"; then :
35322
35323     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35324 $as_echo "yes" >&6; }
35325     tst_links_getifaddrs="yes"
35326
35327 else
35328
35329     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35330 $as_echo "no" >&6; }
35331     tst_links_getifaddrs="no"
35332
35333 fi
35334 rm -f core conftest.err conftest.$ac_objext \
35335     conftest$ac_exeext conftest.$ac_ext
35336   #
35337   if test "$tst_links_getifaddrs" = "yes"; then
35338     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
35339 $as_echo_n "checking if getifaddrs is prototyped... " >&6; }
35340     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35341 /* end confdefs.h.  */
35342
35343       $curl_includes_ifaddrs
35344
35345 _ACEOF
35346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35347   $EGREP "getifaddrs" >/dev/null 2>&1; then :
35348
35349       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35350 $as_echo "yes" >&6; }
35351       tst_proto_getifaddrs="yes"
35352
35353 else
35354
35355       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35356 $as_echo "no" >&6; }
35357       tst_proto_getifaddrs="no"
35358
35359 fi
35360 rm -f conftest*
35361
35362   fi
35363   #
35364   if test "$tst_proto_getifaddrs" = "yes"; then
35365     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
35366 $as_echo_n "checking if getifaddrs is compilable... " >&6; }
35367     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35368 /* end confdefs.h.  */
35369
35370
35371         $curl_includes_ifaddrs
35372
35373 int main (void)
35374 {
35375
35376         if(0 != getifaddrs(0))
35377           return 1;
35378
35379  ;
35380  return 0;
35381 }
35382
35383 _ACEOF
35384 if ac_fn_c_try_compile "$LINENO"; then :
35385
35386       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35387 $as_echo "yes" >&6; }
35388       tst_compi_getifaddrs="yes"
35389
35390 else
35391
35392       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35393 $as_echo "no" >&6; }
35394       tst_compi_getifaddrs="no"
35395
35396 fi
35397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35398   fi
35399   #
35400     if test "x$cross_compiling" != "xyes" &&
35401     test "$tst_compi_getifaddrs" = "yes"; then
35402     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
35403 $as_echo_n "checking if getifaddrs seems to work... " >&6; }
35404
35405
35406    old=$LD_LIBRARY_PATH
35407    LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
35408    export LD_LIBRARY_PATH
35409    if test "$cross_compiling" = yes; then :
35410   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35412 as_fn_error $? "cannot run test program while cross compiling
35413 See \`config.log' for more details" "$LINENO" 5; }
35414 else
35415   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35416 /* end confdefs.h.  */
35417
35418
35419         $curl_includes_stdlib
35420         $curl_includes_ifaddrs
35421
35422 int main (void)
35423 {
35424
35425         struct ifaddrs *ifa = 0;
35426         int error;
35427
35428         error = getifaddrs(&ifa);
35429         if(error || !ifa)
35430           exit(1); /* fail */
35431         else
35432           exit(0);
35433
35434  ;
35435  return 0;
35436 }
35437
35438 _ACEOF
35439 if ac_fn_c_try_run "$LINENO"; then :
35440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35441 $as_echo "yes" >&6; }
35442       tst_works_getifaddrs="yes"
35443
35444 else
35445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35446 $as_echo "no" >&6; }
35447       tst_works_getifaddrs="no"
35448
35449 fi
35450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35451   conftest.$ac_objext conftest.beam conftest.$ac_ext
35452 fi
35453
35454    LD_LIBRARY_PATH=$old # restore
35455
35456   fi
35457   #
35458   if test "$tst_compi_getifaddrs" = "yes" &&
35459     test "$tst_works_getifaddrs" != "no"; then
35460     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
35461 $as_echo_n "checking if getifaddrs usage allowed... " >&6; }
35462     if test "x$curl_disallow_getifaddrs" != "xyes"; then
35463       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35464 $as_echo "yes" >&6; }
35465       tst_allow_getifaddrs="yes"
35466     else
35467       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35468 $as_echo "no" >&6; }
35469       tst_allow_getifaddrs="no"
35470     fi
35471   fi
35472   #
35473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
35474 $as_echo_n "checking if getifaddrs might be used... " >&6; }
35475   if test "$tst_links_getifaddrs" = "yes" &&
35476      test "$tst_proto_getifaddrs" = "yes" &&
35477      test "$tst_compi_getifaddrs" = "yes" &&
35478      test "$tst_allow_getifaddrs" = "yes" &&
35479      test "$tst_works_getifaddrs" != "no"; then
35480     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35481 $as_echo "yes" >&6; }
35482
35483 cat >>confdefs.h <<_ACEOF
35484 #define HAVE_GETIFADDRS 1
35485 _ACEOF
35486
35487     curl_cv_func_getifaddrs="yes"
35488   else
35489     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35490 $as_echo "no" >&6; }
35491     curl_cv_func_getifaddrs="no"
35492   fi
35493
35494
35495     #
35496   tst_links_getservbyport_r="unknown"
35497   tst_proto_getservbyport_r="unknown"
35498   tst_compi_getservbyport_r="unknown"
35499   tst_allow_getservbyport_r="unknown"
35500   tst_nargs_getservbyport_r="unknown"
35501   #
35502   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
35503 $as_echo_n "checking if getservbyport_r can be linked... " >&6; }
35504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35505 /* end confdefs.h.  */
35506
35507
35508 #define getservbyport_r innocuous_getservbyport_r
35509 #ifdef __STDC__
35510 # include <limits.h>
35511 #else
35512 # include <assert.h>
35513 #endif
35514 #undef getservbyport_r
35515 #ifdef __cplusplus
35516 extern "C"
35517 #endif
35518 char getservbyport_r ();
35519 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
35520 choke me
35521 #endif
35522
35523 int main (void)
35524 {
35525 return getservbyport_r ();
35526  ;
35527  return 0;
35528 }
35529
35530 _ACEOF
35531 if ac_fn_c_try_link "$LINENO"; then :
35532
35533     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35534 $as_echo "yes" >&6; }
35535     tst_links_getservbyport_r="yes"
35536
35537 else
35538
35539     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35540 $as_echo "no" >&6; }
35541     tst_links_getservbyport_r="no"
35542
35543 fi
35544 rm -f core conftest.err conftest.$ac_objext \
35545     conftest$ac_exeext conftest.$ac_ext
35546   #
35547   if test "$tst_links_getservbyport_r" = "yes"; then
35548     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
35549 $as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
35550     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35551 /* end confdefs.h.  */
35552
35553       $curl_includes_netdb
35554
35555 _ACEOF
35556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35557   $EGREP "getservbyport_r" >/dev/null 2>&1; then :
35558
35559       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35560 $as_echo "yes" >&6; }
35561       tst_proto_getservbyport_r="yes"
35562
35563 else
35564
35565       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35566 $as_echo "no" >&6; }
35567       tst_proto_getservbyport_r="no"
35568
35569 fi
35570 rm -f conftest*
35571
35572   fi
35573   #
35574   if test "$tst_proto_getservbyport_r" = "yes"; then
35575     if test "$tst_nargs_getservbyport_r" = "unknown"; then
35576       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
35577 $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
35578       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35579 /* end confdefs.h.  */
35580
35581
35582           $curl_includes_netdb
35583
35584 int main (void)
35585 {
35586
35587           if(0 != getservbyport_r(0, 0, 0, 0))
35588             return 1;
35589
35590  ;
35591  return 0;
35592 }
35593
35594 _ACEOF
35595 if ac_fn_c_try_compile "$LINENO"; then :
35596
35597         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35598 $as_echo "yes" >&6; }
35599         tst_compi_getservbyport_r="yes"
35600         tst_nargs_getservbyport_r="4"
35601
35602 else
35603
35604         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35605 $as_echo "no" >&6; }
35606         tst_compi_getservbyport_r="no"
35607
35608 fi
35609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35610     fi
35611     if test "$tst_nargs_getservbyport_r" = "unknown"; then
35612       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
35613 $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
35614       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35615 /* end confdefs.h.  */
35616
35617
35618           $curl_includes_netdb
35619
35620 int main (void)
35621 {
35622
35623           if(0 != getservbyport_r(0, 0, 0, 0, 0))
35624             return 1;
35625
35626  ;
35627  return 0;
35628 }
35629
35630 _ACEOF
35631 if ac_fn_c_try_compile "$LINENO"; then :
35632
35633         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35634 $as_echo "yes" >&6; }
35635         tst_compi_getservbyport_r="yes"
35636         tst_nargs_getservbyport_r="5"
35637
35638 else
35639
35640         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35641 $as_echo "no" >&6; }
35642         tst_compi_getservbyport_r="no"
35643
35644 fi
35645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35646     fi
35647     if test "$tst_nargs_getservbyport_r" = "unknown"; then
35648       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
35649 $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
35650       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35651 /* end confdefs.h.  */
35652
35653
35654           $curl_includes_netdb
35655
35656 int main (void)
35657 {
35658
35659           if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
35660             return 1;
35661
35662  ;
35663  return 0;
35664 }
35665
35666 _ACEOF
35667 if ac_fn_c_try_compile "$LINENO"; then :
35668
35669         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35670 $as_echo "yes" >&6; }
35671         tst_compi_getservbyport_r="yes"
35672         tst_nargs_getservbyport_r="6"
35673
35674 else
35675
35676         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35677 $as_echo "no" >&6; }
35678         tst_compi_getservbyport_r="no"
35679
35680 fi
35681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35682     fi
35683     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
35684 $as_echo_n "checking if getservbyport_r is compilable... " >&6; }
35685     if test "$tst_compi_getservbyport_r" = "yes"; then
35686       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35687 $as_echo "yes" >&6; }
35688     else
35689       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35690 $as_echo "no" >&6; }
35691     fi
35692   fi
35693   #
35694   if test "$tst_compi_getservbyport_r" = "yes"; then
35695     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
35696 $as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
35697     if test "x$curl_disallow_getservbyport_r" != "xyes"; then
35698       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35699 $as_echo "yes" >&6; }
35700       tst_allow_getservbyport_r="yes"
35701     else
35702       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35703 $as_echo "no" >&6; }
35704       tst_allow_getservbyport_r="no"
35705     fi
35706   fi
35707   #
35708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
35709 $as_echo_n "checking if getservbyport_r might be used... " >&6; }
35710   if test "$tst_links_getservbyport_r" = "yes" &&
35711      test "$tst_proto_getservbyport_r" = "yes" &&
35712      test "$tst_compi_getservbyport_r" = "yes" &&
35713      test "$tst_allow_getservbyport_r" = "yes"; then
35714     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35715 $as_echo "yes" >&6; }
35716
35717 cat >>confdefs.h <<_ACEOF
35718 #define HAVE_GETSERVBYPORT_R 1
35719 _ACEOF
35720
35721
35722 cat >>confdefs.h <<_ACEOF
35723 #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
35724 _ACEOF
35725
35726     if test "$tst_nargs_getservbyport_r" -eq "4"; then
35727
35728 $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
35729
35730     else
35731
35732 $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
35733
35734     fi
35735     curl_cv_func_getservbyport_r="yes"
35736   else
35737     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35738 $as_echo "no" >&6; }
35739     curl_cv_func_getservbyport_r="no"
35740   fi
35741
35742
35743 curl_includes_time="\
35744 /* includes start */
35745 #ifdef HAVE_SYS_TYPES_H
35746 #  include <sys/types.h>
35747 #endif
35748 #ifdef HAVE_SYS_TIME_H
35749 #  include <sys/time.h>
35750 #  ifdef TIME_WITH_SYS_TIME
35751 #    include <time.h>
35752 #  endif
35753 #else
35754 #  ifdef HAVE_TIME_H
35755 #    include <time.h>
35756 #  endif
35757 #endif
35758 /* includes end */"
35759   for ac_header in sys/types.h sys/time.h time.h
35760 do :
35761   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35762 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
35763 "
35764 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35765   cat >>confdefs.h <<_ACEOF
35766 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35767 _ACEOF
35768
35769 fi
35770
35771 done
35772
35773
35774
35775       #
35776   tst_links_gmtime_r="unknown"
35777   tst_proto_gmtime_r="unknown"
35778   tst_compi_gmtime_r="unknown"
35779   tst_works_gmtime_r="unknown"
35780   tst_allow_gmtime_r="unknown"
35781   #
35782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
35783 $as_echo_n "checking if gmtime_r can be linked... " >&6; }
35784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35785 /* end confdefs.h.  */
35786
35787
35788 #define gmtime_r innocuous_gmtime_r
35789 #ifdef __STDC__
35790 # include <limits.h>
35791 #else
35792 # include <assert.h>
35793 #endif
35794 #undef gmtime_r
35795 #ifdef __cplusplus
35796 extern "C"
35797 #endif
35798 char gmtime_r ();
35799 #if defined __stub_gmtime_r || defined __stub___gmtime_r
35800 choke me
35801 #endif
35802
35803 int main (void)
35804 {
35805 return gmtime_r ();
35806  ;
35807  return 0;
35808 }
35809
35810 _ACEOF
35811 if ac_fn_c_try_link "$LINENO"; then :
35812
35813     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35814 $as_echo "yes" >&6; }
35815     tst_links_gmtime_r="yes"
35816
35817 else
35818
35819     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35820 $as_echo "no" >&6; }
35821     tst_links_gmtime_r="no"
35822
35823 fi
35824 rm -f core conftest.err conftest.$ac_objext \
35825     conftest$ac_exeext conftest.$ac_ext
35826   #
35827   if test "$tst_links_gmtime_r" = "yes"; then
35828     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
35829 $as_echo_n "checking if gmtime_r is prototyped... " >&6; }
35830     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35831 /* end confdefs.h.  */
35832
35833       $curl_includes_time
35834
35835 _ACEOF
35836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35837   $EGREP "gmtime_r" >/dev/null 2>&1; then :
35838
35839       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35840 $as_echo "yes" >&6; }
35841       tst_proto_gmtime_r="yes"
35842
35843 else
35844
35845       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35846 $as_echo "no" >&6; }
35847       tst_proto_gmtime_r="no"
35848
35849 fi
35850 rm -f conftest*
35851
35852   fi
35853   #
35854   if test "$tst_proto_gmtime_r" = "yes"; then
35855     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
35856 $as_echo_n "checking if gmtime_r is compilable... " >&6; }
35857     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35858 /* end confdefs.h.  */
35859
35860
35861         $curl_includes_time
35862
35863 int main (void)
35864 {
35865
35866         if(0 != gmtime_r(0, 0))
35867           return 1;
35868
35869  ;
35870  return 0;
35871 }
35872
35873 _ACEOF
35874 if ac_fn_c_try_compile "$LINENO"; then :
35875
35876       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35877 $as_echo "yes" >&6; }
35878       tst_compi_gmtime_r="yes"
35879
35880 else
35881
35882       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35883 $as_echo "no" >&6; }
35884       tst_compi_gmtime_r="no"
35885
35886 fi
35887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35888   fi
35889   #
35890     if test "x$cross_compiling" != "xyes" &&
35891     test "$tst_compi_gmtime_r" = "yes"; then
35892     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
35893 $as_echo_n "checking if gmtime_r seems to work... " >&6; }
35894
35895
35896    old=$LD_LIBRARY_PATH
35897    LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
35898    export LD_LIBRARY_PATH
35899    if test "$cross_compiling" = yes; then :
35900   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35902 as_fn_error $? "cannot run test program while cross compiling
35903 See \`config.log' for more details" "$LINENO" 5; }
35904 else
35905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35906 /* end confdefs.h.  */
35907
35908
35909         $curl_includes_stdlib
35910         $curl_includes_time
35911
35912 int main (void)
35913 {
35914
35915         time_t local = 1170352587;
35916         struct tm *gmt = 0;
35917         struct tm result;
35918         gmt = gmtime_r(&local, &result);
35919         if(gmt)
35920           exit(0);
35921         else
35922           exit(1);
35923
35924  ;
35925  return 0;
35926 }
35927
35928 _ACEOF
35929 if ac_fn_c_try_run "$LINENO"; then :
35930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35931 $as_echo "yes" >&6; }
35932       tst_works_gmtime_r="yes"
35933
35934 else
35935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35936 $as_echo "no" >&6; }
35937       tst_works_gmtime_r="no"
35938
35939 fi
35940 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35941   conftest.$ac_objext conftest.beam conftest.$ac_ext
35942 fi
35943
35944    LD_LIBRARY_PATH=$old # restore
35945
35946   fi
35947   #
35948   if test "$tst_compi_gmtime_r" = "yes" &&
35949     test "$tst_works_gmtime_r" != "no"; then
35950     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
35951 $as_echo_n "checking if gmtime_r usage allowed... " >&6; }
35952     if test "x$curl_disallow_gmtime_r" != "xyes"; then
35953       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35954 $as_echo "yes" >&6; }
35955       tst_allow_gmtime_r="yes"
35956     else
35957       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35958 $as_echo "no" >&6; }
35959       tst_allow_gmtime_r="no"
35960     fi
35961   fi
35962   #
35963   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
35964 $as_echo_n "checking if gmtime_r might be used... " >&6; }
35965   if test "$tst_links_gmtime_r" = "yes" &&
35966      test "$tst_proto_gmtime_r" = "yes" &&
35967      test "$tst_compi_gmtime_r" = "yes" &&
35968      test "$tst_allow_gmtime_r" = "yes" &&
35969      test "$tst_works_gmtime_r" != "no"; then
35970     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35971 $as_echo "yes" >&6; }
35972
35973 cat >>confdefs.h <<_ACEOF
35974 #define HAVE_GMTIME_R 1
35975 _ACEOF
35976
35977     curl_cv_func_gmtime_r="yes"
35978   else
35979     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35980 $as_echo "no" >&6; }
35981     curl_cv_func_gmtime_r="no"
35982   fi
35983
35984
35985 curl_includes_arpa_inet="\
35986 /* includes start */
35987 #ifdef HAVE_SYS_TYPES_H
35988 #  include <sys/types.h>
35989 #endif
35990 #ifdef HAVE_SYS_SOCKET_H
35991 #  include <sys/socket.h>
35992 #endif
35993 #ifdef HAVE_NETINET_IN_H
35994 #  include <netinet/in.h>
35995 #endif
35996 #ifdef HAVE_ARPA_INET_H
35997 #  include <arpa/inet.h>
35998 #endif
35999 #ifdef HAVE_WINSOCK2_H
36000 #include <winsock2.h>
36001 #include <ws2tcpip.h>
36002 #endif
36003 /* includes end */"
36004   for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
36005 do :
36006   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36007 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
36008 "
36009 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36010   cat >>confdefs.h <<_ACEOF
36011 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36012 _ACEOF
36013
36014 fi
36015
36016 done
36017
36018
36019
36020     #
36021   tst_links_inet_ntoa_r="unknown"
36022   tst_proto_inet_ntoa_r="unknown"
36023   tst_compi_inet_ntoa_r="unknown"
36024   tst_allow_inet_ntoa_r="unknown"
36025   tst_nargs_inet_ntoa_r="unknown"
36026   #
36027   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
36028 $as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
36029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36030 /* end confdefs.h.  */
36031
36032
36033 #define inet_ntoa_r innocuous_inet_ntoa_r
36034 #ifdef __STDC__
36035 # include <limits.h>
36036 #else
36037 # include <assert.h>
36038 #endif
36039 #undef inet_ntoa_r
36040 #ifdef __cplusplus
36041 extern "C"
36042 #endif
36043 char inet_ntoa_r ();
36044 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
36045 choke me
36046 #endif
36047
36048 int main (void)
36049 {
36050 return inet_ntoa_r ();
36051  ;
36052  return 0;
36053 }
36054
36055 _ACEOF
36056 if ac_fn_c_try_link "$LINENO"; then :
36057
36058     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36059 $as_echo "yes" >&6; }
36060     tst_links_inet_ntoa_r="yes"
36061
36062 else
36063
36064     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36065 $as_echo "no" >&6; }
36066     tst_links_inet_ntoa_r="no"
36067
36068 fi
36069 rm -f core conftest.err conftest.$ac_objext \
36070     conftest$ac_exeext conftest.$ac_ext
36071   #
36072   if test "$tst_links_inet_ntoa_r" = "yes"; then
36073     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
36074 $as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
36075     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36076 /* end confdefs.h.  */
36077
36078       $curl_includes_arpa_inet
36079
36080 _ACEOF
36081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36082   $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
36083
36084       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36085 $as_echo "yes" >&6; }
36086       tst_proto_inet_ntoa_r="yes"
36087
36088 else
36089
36090       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36091 $as_echo "no" >&6; }
36092       tst_proto_inet_ntoa_r="no"
36093
36094 fi
36095 rm -f conftest*
36096
36097   fi
36098   #
36099   if test "$tst_proto_inet_ntoa_r" = "yes"; then
36100     if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
36101       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
36102 $as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
36103       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36104 /* end confdefs.h.  */
36105
36106
36107           $curl_includes_arpa_inet
36108
36109 int main (void)
36110 {
36111
36112           struct in_addr addr;
36113           if(0 != inet_ntoa_r(addr, 0))
36114             return 1;
36115
36116  ;
36117  return 0;
36118 }
36119
36120 _ACEOF
36121 if ac_fn_c_try_compile "$LINENO"; then :
36122
36123         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36124 $as_echo "yes" >&6; }
36125         tst_compi_inet_ntoa_r="yes"
36126         tst_nargs_inet_ntoa_r="2"
36127
36128 else
36129
36130         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36131 $as_echo "no" >&6; }
36132         tst_compi_inet_ntoa_r="no"
36133
36134 fi
36135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36136     fi
36137     if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
36138       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
36139 $as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
36140       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36141 /* end confdefs.h.  */
36142
36143
36144           $curl_includes_arpa_inet
36145
36146 int main (void)
36147 {
36148
36149           struct in_addr addr;
36150           if(0 != inet_ntoa_r(addr, 0, 0))
36151             return 1;
36152
36153  ;
36154  return 0;
36155 }
36156
36157 _ACEOF
36158 if ac_fn_c_try_compile "$LINENO"; then :
36159
36160         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36161 $as_echo "yes" >&6; }
36162         tst_compi_inet_ntoa_r="yes"
36163         tst_nargs_inet_ntoa_r="3"
36164
36165 else
36166
36167         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36168 $as_echo "no" >&6; }
36169         tst_compi_inet_ntoa_r="no"
36170
36171 fi
36172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36173     fi
36174     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
36175 $as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
36176     if test "$tst_compi_inet_ntoa_r" = "yes"; then
36177       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36178 $as_echo "yes" >&6; }
36179     else
36180       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36181 $as_echo "no" >&6; }
36182     fi
36183   fi
36184   #
36185   if test "$tst_compi_inet_ntoa_r" = "yes"; then
36186     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
36187 $as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
36188     if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
36189       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36190 $as_echo "yes" >&6; }
36191       tst_allow_inet_ntoa_r="yes"
36192     else
36193       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36194 $as_echo "no" >&6; }
36195       tst_allow_inet_ntoa_r="no"
36196     fi
36197   fi
36198   #
36199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
36200 $as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
36201   if test "$tst_links_inet_ntoa_r" = "yes" &&
36202      test "$tst_proto_inet_ntoa_r" = "yes" &&
36203      test "$tst_compi_inet_ntoa_r" = "yes" &&
36204      test "$tst_allow_inet_ntoa_r" = "yes"; then
36205     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36206 $as_echo "yes" >&6; }
36207
36208 cat >>confdefs.h <<_ACEOF
36209 #define HAVE_INET_NTOA_R 1
36210 _ACEOF
36211
36212             #
36213     if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
36214
36215 $as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
36216
36217     elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
36218
36219 $as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
36220
36221     fi
36222     #
36223     curl_cv_func_inet_ntoa_r="yes"
36224   else
36225     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36226 $as_echo "no" >&6; }
36227     curl_cv_func_inet_ntoa_r="no"
36228   fi
36229
36230
36231         #
36232   tst_links_inet_ntop="unknown"
36233   tst_proto_inet_ntop="unknown"
36234   tst_compi_inet_ntop="unknown"
36235   tst_works_inet_ntop="unknown"
36236   tst_allow_inet_ntop="unknown"
36237   #
36238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
36239 $as_echo_n "checking if inet_ntop can be linked... " >&6; }
36240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36241 /* end confdefs.h.  */
36242
36243
36244 #define inet_ntop innocuous_inet_ntop
36245 #ifdef __STDC__
36246 # include <limits.h>
36247 #else
36248 # include <assert.h>
36249 #endif
36250 #undef inet_ntop
36251 #ifdef __cplusplus
36252 extern "C"
36253 #endif
36254 char inet_ntop ();
36255 #if defined __stub_inet_ntop || defined __stub___inet_ntop
36256 choke me
36257 #endif
36258
36259 int main (void)
36260 {
36261 return inet_ntop ();
36262  ;
36263  return 0;
36264 }
36265
36266 _ACEOF
36267 if ac_fn_c_try_link "$LINENO"; then :
36268
36269     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36270 $as_echo "yes" >&6; }
36271     tst_links_inet_ntop="yes"
36272
36273 else
36274
36275     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36276 $as_echo "no" >&6; }
36277     tst_links_inet_ntop="no"
36278
36279 fi
36280 rm -f core conftest.err conftest.$ac_objext \
36281     conftest$ac_exeext conftest.$ac_ext
36282   #
36283   if test "$tst_links_inet_ntop" = "yes"; then
36284     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
36285 $as_echo_n "checking if inet_ntop is prototyped... " >&6; }
36286     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36287 /* end confdefs.h.  */
36288
36289       $curl_includes_arpa_inet
36290
36291 _ACEOF
36292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36293   $EGREP "inet_ntop" >/dev/null 2>&1; then :
36294
36295       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36296 $as_echo "yes" >&6; }
36297       tst_proto_inet_ntop="yes"
36298
36299 else
36300
36301       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36302 $as_echo "no" >&6; }
36303       tst_proto_inet_ntop="no"
36304
36305 fi
36306 rm -f conftest*
36307
36308   fi
36309   #
36310   if test "$tst_proto_inet_ntop" = "yes"; then
36311     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
36312 $as_echo_n "checking if inet_ntop is compilable... " >&6; }
36313     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36314 /* end confdefs.h.  */
36315
36316
36317         $curl_includes_arpa_inet
36318
36319 int main (void)
36320 {
36321
36322         if(0 != inet_ntop(0, 0, 0, 0))
36323           return 1;
36324
36325  ;
36326  return 0;
36327 }
36328
36329 _ACEOF
36330 if ac_fn_c_try_compile "$LINENO"; then :
36331
36332       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36333 $as_echo "yes" >&6; }
36334       tst_compi_inet_ntop="yes"
36335
36336 else
36337
36338       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36339 $as_echo "no" >&6; }
36340       tst_compi_inet_ntop="no"
36341
36342 fi
36343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36344   fi
36345   #
36346     if test "x$cross_compiling" != "xyes" &&
36347     test "$tst_compi_inet_ntop" = "yes"; then
36348     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
36349 $as_echo_n "checking if inet_ntop seems to work... " >&6; }
36350
36351
36352    old=$LD_LIBRARY_PATH
36353    LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
36354    export LD_LIBRARY_PATH
36355    if test "$cross_compiling" = yes; then :
36356   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36358 as_fn_error $? "cannot run test program while cross compiling
36359 See \`config.log' for more details" "$LINENO" 5; }
36360 else
36361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36362 /* end confdefs.h.  */
36363
36364
36365         $curl_includes_stdlib
36366         $curl_includes_arpa_inet
36367         $curl_includes_string
36368
36369 int main (void)
36370 {
36371
36372         char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
36373         char ipv4res[sizeof "255.255.255.255"];
36374         unsigned char ipv6a[26];
36375         unsigned char ipv4a[5];
36376         char *ipv6ptr = 0;
36377         char *ipv4ptr = 0;
36378         /* - */
36379         ipv4res[0] = '\0';
36380         ipv4a[0] = 0xc0;
36381         ipv4a[1] = 0xa8;
36382         ipv4a[2] = 0x64;
36383         ipv4a[3] = 0x01;
36384         ipv4a[4] = 0x01;
36385         /* - */
36386         ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
36387         if(!ipv4ptr)
36388           exit(1); /* fail */
36389         if(ipv4ptr != ipv4res)
36390           exit(1); /* fail */
36391         if(!ipv4ptr[0])
36392           exit(1); /* fail */
36393         if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
36394           exit(1); /* fail */
36395         /* - */
36396         ipv6res[0] = '\0';
36397         memset(ipv6a, 0, sizeof(ipv6a));
36398         ipv6a[0] = 0xfe;
36399         ipv6a[1] = 0x80;
36400         ipv6a[8] = 0x02;
36401         ipv6a[9] = 0x14;
36402         ipv6a[10] = 0x4f;
36403         ipv6a[11] = 0xff;
36404         ipv6a[12] = 0xfe;
36405         ipv6a[13] = 0x0b;
36406         ipv6a[14] = 0x76;
36407         ipv6a[15] = 0xc8;
36408         ipv6a[25] = 0x01;
36409         /* - */
36410         ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
36411         if(!ipv6ptr)
36412           exit(1); /* fail */
36413         if(ipv6ptr != ipv6res)
36414           exit(1); /* fail */
36415         if(!ipv6ptr[0])
36416           exit(1); /* fail */
36417         if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
36418           exit(1); /* fail */
36419         /* - */
36420         exit(0);
36421
36422  ;
36423  return 0;
36424 }
36425
36426 _ACEOF
36427 if ac_fn_c_try_run "$LINENO"; then :
36428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36429 $as_echo "yes" >&6; }
36430       tst_works_inet_ntop="yes"
36431
36432 else
36433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36434 $as_echo "no" >&6; }
36435       tst_works_inet_ntop="no"
36436
36437 fi
36438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36439   conftest.$ac_objext conftest.beam conftest.$ac_ext
36440 fi
36441
36442    LD_LIBRARY_PATH=$old # restore
36443
36444   fi
36445   #
36446   if test "$tst_compi_inet_ntop" = "yes" &&
36447     test "$tst_works_inet_ntop" != "no"; then
36448     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
36449 $as_echo_n "checking if inet_ntop usage allowed... " >&6; }
36450     if test "x$curl_disallow_inet_ntop" != "xyes"; then
36451       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36452 $as_echo "yes" >&6; }
36453       tst_allow_inet_ntop="yes"
36454     else
36455       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36456 $as_echo "no" >&6; }
36457       tst_allow_inet_ntop="no"
36458     fi
36459   fi
36460   #
36461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
36462 $as_echo_n "checking if inet_ntop might be used... " >&6; }
36463   if test "$tst_links_inet_ntop" = "yes" &&
36464      test "$tst_proto_inet_ntop" = "yes" &&
36465      test "$tst_compi_inet_ntop" = "yes" &&
36466      test "$tst_allow_inet_ntop" = "yes" &&
36467      test "$tst_works_inet_ntop" != "no"; then
36468     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36469 $as_echo "yes" >&6; }
36470
36471 cat >>confdefs.h <<_ACEOF
36472 #define HAVE_INET_NTOP 1
36473 _ACEOF
36474
36475     curl_cv_func_inet_ntop="yes"
36476   else
36477     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36478 $as_echo "no" >&6; }
36479     curl_cv_func_inet_ntop="no"
36480   fi
36481
36482
36483         #
36484   tst_links_inet_pton="unknown"
36485   tst_proto_inet_pton="unknown"
36486   tst_compi_inet_pton="unknown"
36487   tst_works_inet_pton="unknown"
36488   tst_allow_inet_pton="unknown"
36489   #
36490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
36491 $as_echo_n "checking if inet_pton can be linked... " >&6; }
36492   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36493 /* end confdefs.h.  */
36494
36495
36496 #define inet_pton innocuous_inet_pton
36497 #ifdef __STDC__
36498 # include <limits.h>
36499 #else
36500 # include <assert.h>
36501 #endif
36502 #undef inet_pton
36503 #ifdef __cplusplus
36504 extern "C"
36505 #endif
36506 char inet_pton ();
36507 #if defined __stub_inet_pton || defined __stub___inet_pton
36508 choke me
36509 #endif
36510
36511 int main (void)
36512 {
36513 return inet_pton ();
36514  ;
36515  return 0;
36516 }
36517
36518 _ACEOF
36519 if ac_fn_c_try_link "$LINENO"; then :
36520
36521     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36522 $as_echo "yes" >&6; }
36523     tst_links_inet_pton="yes"
36524
36525 else
36526
36527     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36528 $as_echo "no" >&6; }
36529     tst_links_inet_pton="no"
36530
36531 fi
36532 rm -f core conftest.err conftest.$ac_objext \
36533     conftest$ac_exeext conftest.$ac_ext
36534   #
36535   if test "$tst_links_inet_pton" = "yes"; then
36536     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
36537 $as_echo_n "checking if inet_pton is prototyped... " >&6; }
36538     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36539 /* end confdefs.h.  */
36540
36541       $curl_includes_arpa_inet
36542
36543 _ACEOF
36544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36545   $EGREP "inet_pton" >/dev/null 2>&1; then :
36546
36547       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36548 $as_echo "yes" >&6; }
36549       tst_proto_inet_pton="yes"
36550
36551 else
36552
36553       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36554 $as_echo "no" >&6; }
36555       tst_proto_inet_pton="no"
36556
36557 fi
36558 rm -f conftest*
36559
36560   fi
36561   #
36562   if test "$tst_proto_inet_pton" = "yes"; then
36563     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
36564 $as_echo_n "checking if inet_pton is compilable... " >&6; }
36565     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36566 /* end confdefs.h.  */
36567
36568
36569         $curl_includes_arpa_inet
36570
36571 int main (void)
36572 {
36573
36574         if(0 != inet_pton(0, 0, 0))
36575           return 1;
36576
36577  ;
36578  return 0;
36579 }
36580
36581 _ACEOF
36582 if ac_fn_c_try_compile "$LINENO"; then :
36583
36584       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36585 $as_echo "yes" >&6; }
36586       tst_compi_inet_pton="yes"
36587
36588 else
36589
36590       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36591 $as_echo "no" >&6; }
36592       tst_compi_inet_pton="no"
36593
36594 fi
36595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36596   fi
36597   #
36598     if test "x$cross_compiling" != "xyes" &&
36599     test "$tst_compi_inet_pton" = "yes"; then
36600     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
36601 $as_echo_n "checking if inet_pton seems to work... " >&6; }
36602
36603
36604    old=$LD_LIBRARY_PATH
36605    LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
36606    export LD_LIBRARY_PATH
36607    if test "$cross_compiling" = yes; then :
36608   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36610 as_fn_error $? "cannot run test program while cross compiling
36611 See \`config.log' for more details" "$LINENO" 5; }
36612 else
36613   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36614 /* end confdefs.h.  */
36615
36616
36617         $curl_includes_stdlib
36618         $curl_includes_arpa_inet
36619         $curl_includes_string
36620
36621 int main (void)
36622 {
36623
36624         unsigned char ipv6a[16+1];
36625         unsigned char ipv4a[4+1];
36626         const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
36627         const char *ipv4src = "192.168.100.1";
36628         /* - */
36629         memset(ipv4a, 1, sizeof(ipv4a));
36630         if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
36631           exit(1); /* fail */
36632         /* - */
36633         if( (ipv4a[0] != 0xc0) ||
36634             (ipv4a[1] != 0xa8) ||
36635             (ipv4a[2] != 0x64) ||
36636             (ipv4a[3] != 0x01) ||
36637             (ipv4a[4] != 0x01) )
36638           exit(1); /* fail */
36639         /* - */
36640         memset(ipv6a, 1, sizeof(ipv6a));
36641         if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
36642           exit(1); /* fail */
36643         /* - */
36644         if( (ipv6a[0]  != 0xfe) ||
36645             (ipv6a[1]  != 0x80) ||
36646             (ipv6a[8]  != 0x02) ||
36647             (ipv6a[9]  != 0x14) ||
36648             (ipv6a[10] != 0x4f) ||
36649             (ipv6a[11] != 0xff) ||
36650             (ipv6a[12] != 0xfe) ||
36651             (ipv6a[13] != 0x0b) ||
36652             (ipv6a[14] != 0x76) ||
36653             (ipv6a[15] != 0xc8) ||
36654             (ipv6a[16] != 0x01) )
36655           exit(1); /* fail */
36656         /* - */
36657         if( (ipv6a[2]  != 0x0) ||
36658             (ipv6a[3]  != 0x0) ||
36659             (ipv6a[4]  != 0x0) ||
36660             (ipv6a[5]  != 0x0) ||
36661             (ipv6a[6]  != 0x0) ||
36662             (ipv6a[7]  != 0x0) )
36663           exit(1); /* fail */
36664         /* - */
36665         exit(0);
36666
36667  ;
36668  return 0;
36669 }
36670
36671 _ACEOF
36672 if ac_fn_c_try_run "$LINENO"; then :
36673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36674 $as_echo "yes" >&6; }
36675       tst_works_inet_pton="yes"
36676
36677 else
36678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36679 $as_echo "no" >&6; }
36680       tst_works_inet_pton="no"
36681
36682 fi
36683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36684   conftest.$ac_objext conftest.beam conftest.$ac_ext
36685 fi
36686
36687    LD_LIBRARY_PATH=$old # restore
36688
36689   fi
36690   #
36691   if test "$tst_compi_inet_pton" = "yes" &&
36692     test "$tst_works_inet_pton" != "no"; then
36693     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
36694 $as_echo_n "checking if inet_pton usage allowed... " >&6; }
36695     if test "x$curl_disallow_inet_pton" != "xyes"; then
36696       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36697 $as_echo "yes" >&6; }
36698       tst_allow_inet_pton="yes"
36699     else
36700       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36701 $as_echo "no" >&6; }
36702       tst_allow_inet_pton="no"
36703     fi
36704   fi
36705   #
36706   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
36707 $as_echo_n "checking if inet_pton might be used... " >&6; }
36708   if test "$tst_links_inet_pton" = "yes" &&
36709      test "$tst_proto_inet_pton" = "yes" &&
36710      test "$tst_compi_inet_pton" = "yes" &&
36711      test "$tst_allow_inet_pton" = "yes" &&
36712      test "$tst_works_inet_pton" != "no"; then
36713     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36714 $as_echo "yes" >&6; }
36715
36716 cat >>confdefs.h <<_ACEOF
36717 #define HAVE_INET_PTON 1
36718 _ACEOF
36719
36720     curl_cv_func_inet_pton="yes"
36721   else
36722     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36723 $as_echo "no" >&6; }
36724     curl_cv_func_inet_pton="no"
36725   fi
36726
36727
36728 curl_includes_stropts="\
36729 /* includes start */
36730 #ifdef HAVE_SYS_TYPES_H
36731 #  include <sys/types.h>
36732 #endif
36733 #ifdef HAVE_UNISTD_H
36734 #  include <unistd.h>
36735 #endif
36736 #ifdef HAVE_SYS_SOCKET_H
36737 #  include <sys/socket.h>
36738 #endif
36739 #ifdef HAVE_SYS_IOCTL_H
36740 #  include <sys/ioctl.h>
36741 #endif
36742 #ifdef HAVE_STROPTS_H
36743 #  include <stropts.h>
36744 #endif
36745 /* includes end */"
36746   for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
36747 do :
36748   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36749 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
36750 "
36751 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36752   cat >>confdefs.h <<_ACEOF
36753 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36754 _ACEOF
36755
36756 fi
36757
36758 done
36759
36760
36761
36762     #
36763   tst_links_ioctl="unknown"
36764   tst_proto_ioctl="unknown"
36765   tst_compi_ioctl="unknown"
36766   tst_allow_ioctl="unknown"
36767   #
36768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
36769 $as_echo_n "checking if ioctl can be linked... " >&6; }
36770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36771 /* end confdefs.h.  */
36772
36773
36774 #define ioctl innocuous_ioctl
36775 #ifdef __STDC__
36776 # include <limits.h>
36777 #else
36778 # include <assert.h>
36779 #endif
36780 #undef ioctl
36781 #ifdef __cplusplus
36782 extern "C"
36783 #endif
36784 char ioctl ();
36785 #if defined __stub_ioctl || defined __stub___ioctl
36786 choke me
36787 #endif
36788
36789 int main (void)
36790 {
36791 return ioctl ();
36792  ;
36793  return 0;
36794 }
36795
36796 _ACEOF
36797 if ac_fn_c_try_link "$LINENO"; then :
36798
36799     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36800 $as_echo "yes" >&6; }
36801     tst_links_ioctl="yes"
36802
36803 else
36804
36805     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36806 $as_echo "no" >&6; }
36807     tst_links_ioctl="no"
36808
36809 fi
36810 rm -f core conftest.err conftest.$ac_objext \
36811     conftest$ac_exeext conftest.$ac_ext
36812   #
36813   if test "$tst_links_ioctl" = "yes"; then
36814     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
36815 $as_echo_n "checking if ioctl is prototyped... " >&6; }
36816     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36817 /* end confdefs.h.  */
36818
36819       $curl_includes_stropts
36820
36821 _ACEOF
36822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36823   $EGREP "ioctl" >/dev/null 2>&1; then :
36824
36825       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36826 $as_echo "yes" >&6; }
36827       tst_proto_ioctl="yes"
36828
36829 else
36830
36831       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36832 $as_echo "no" >&6; }
36833       tst_proto_ioctl="no"
36834
36835 fi
36836 rm -f conftest*
36837
36838   fi
36839   #
36840   if test "$tst_proto_ioctl" = "yes"; then
36841     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
36842 $as_echo_n "checking if ioctl is compilable... " >&6; }
36843     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36844 /* end confdefs.h.  */
36845
36846
36847         $curl_includes_stropts
36848
36849 int main (void)
36850 {
36851
36852         if(0 != ioctl(0, 0, 0))
36853           return 1;
36854
36855  ;
36856  return 0;
36857 }
36858
36859 _ACEOF
36860 if ac_fn_c_try_compile "$LINENO"; then :
36861
36862       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36863 $as_echo "yes" >&6; }
36864       tst_compi_ioctl="yes"
36865
36866 else
36867
36868       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36869 $as_echo "no" >&6; }
36870       tst_compi_ioctl="no"
36871
36872 fi
36873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36874   fi
36875   #
36876   if test "$tst_compi_ioctl" = "yes"; then
36877     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
36878 $as_echo_n "checking if ioctl usage allowed... " >&6; }
36879     if test "x$curl_disallow_ioctl" != "xyes"; then
36880       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36881 $as_echo "yes" >&6; }
36882       tst_allow_ioctl="yes"
36883     else
36884       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36885 $as_echo "no" >&6; }
36886       tst_allow_ioctl="no"
36887     fi
36888   fi
36889   #
36890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
36891 $as_echo_n "checking if ioctl might be used... " >&6; }
36892   if test "$tst_links_ioctl" = "yes" &&
36893      test "$tst_proto_ioctl" = "yes" &&
36894      test "$tst_compi_ioctl" = "yes" &&
36895      test "$tst_allow_ioctl" = "yes"; then
36896     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36897 $as_echo "yes" >&6; }
36898
36899 cat >>confdefs.h <<_ACEOF
36900 #define HAVE_IOCTL 1
36901 _ACEOF
36902
36903     curl_cv_func_ioctl="yes"
36904
36905   #
36906   tst_compi_ioctl_fionbio="unknown"
36907   tst_allow_ioctl_fionbio="unknown"
36908   #
36909   if test "$curl_cv_func_ioctl" = "yes"; then
36910     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
36911 $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
36912     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36913 /* end confdefs.h.  */
36914
36915
36916         $curl_includes_stropts
36917
36918 int main (void)
36919 {
36920
36921         int flags = 0;
36922         if(0 != ioctl(0, FIONBIO, &flags))
36923           return 1;
36924
36925  ;
36926  return 0;
36927 }
36928
36929 _ACEOF
36930 if ac_fn_c_try_compile "$LINENO"; then :
36931
36932       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36933 $as_echo "yes" >&6; }
36934       tst_compi_ioctl_fionbio="yes"
36935
36936 else
36937
36938       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36939 $as_echo "no" >&6; }
36940       tst_compi_ioctl_fionbio="no"
36941
36942 fi
36943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36944   fi
36945   #
36946   if test "$tst_compi_ioctl_fionbio" = "yes"; then
36947     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
36948 $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
36949     if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
36950       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36951 $as_echo "yes" >&6; }
36952       tst_allow_ioctl_fionbio="yes"
36953     else
36954       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36955 $as_echo "no" >&6; }
36956       tst_allow_ioctl_fionbio="no"
36957     fi
36958   fi
36959   #
36960   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
36961 $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
36962   if test "$tst_compi_ioctl_fionbio" = "yes" &&
36963      test "$tst_allow_ioctl_fionbio" = "yes"; then
36964     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36965 $as_echo "yes" >&6; }
36966
36967 cat >>confdefs.h <<_ACEOF
36968 #define HAVE_IOCTL_FIONBIO 1
36969 _ACEOF
36970
36971     curl_cv_func_ioctl_fionbio="yes"
36972   else
36973     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36974 $as_echo "no" >&6; }
36975     curl_cv_func_ioctl_fionbio="no"
36976   fi
36977
36978
36979   #
36980   tst_compi_ioctl_siocgifaddr="unknown"
36981   tst_allow_ioctl_siocgifaddr="unknown"
36982   #
36983   if test "$curl_cv_func_ioctl" = "yes"; then
36984     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
36985 $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
36986     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36987 /* end confdefs.h.  */
36988
36989
36990         $curl_includes_stropts
36991         #include <net/if.h>
36992
36993 int main (void)
36994 {
36995
36996         struct ifreq ifr;
36997         if(0 != ioctl(0, SIOCGIFADDR, &ifr))
36998           return 1;
36999
37000  ;
37001  return 0;
37002 }
37003
37004 _ACEOF
37005 if ac_fn_c_try_compile "$LINENO"; then :
37006
37007       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37008 $as_echo "yes" >&6; }
37009       tst_compi_ioctl_siocgifaddr="yes"
37010
37011 else
37012
37013       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37014 $as_echo "no" >&6; }
37015       tst_compi_ioctl_siocgifaddr="no"
37016
37017 fi
37018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37019   fi
37020   #
37021   if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
37022     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
37023 $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
37024     if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
37025       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37026 $as_echo "yes" >&6; }
37027       tst_allow_ioctl_siocgifaddr="yes"
37028     else
37029       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37030 $as_echo "no" >&6; }
37031       tst_allow_ioctl_siocgifaddr="no"
37032     fi
37033   fi
37034   #
37035   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
37036 $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
37037   if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
37038      test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
37039     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37040 $as_echo "yes" >&6; }
37041
37042 cat >>confdefs.h <<_ACEOF
37043 #define HAVE_IOCTL_SIOCGIFADDR 1
37044 _ACEOF
37045
37046     curl_cv_func_ioctl_siocgifaddr="yes"
37047   else
37048     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37049 $as_echo "no" >&6; }
37050     curl_cv_func_ioctl_siocgifaddr="no"
37051   fi
37052
37053   else
37054     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37055 $as_echo "no" >&6; }
37056     curl_cv_func_ioctl="no"
37057   fi
37058
37059
37060     #
37061   tst_links_ioctlsocket="unknown"
37062   tst_proto_ioctlsocket="unknown"
37063   tst_compi_ioctlsocket="unknown"
37064   tst_allow_ioctlsocket="unknown"
37065   #
37066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
37067 $as_echo_n "checking if ioctlsocket can be linked... " >&6; }
37068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37069 /* end confdefs.h.  */
37070
37071
37072       $curl_includes_winsock2
37073       $curl_includes_bsdsocket
37074
37075 int main (void)
37076 {
37077
37078       if(0 != ioctlsocket(0, 0, 0))
37079         return 1;
37080
37081  ;
37082  return 0;
37083 }
37084
37085 _ACEOF
37086 if ac_fn_c_try_link "$LINENO"; then :
37087
37088     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37089 $as_echo "yes" >&6; }
37090     tst_links_ioctlsocket="yes"
37091
37092 else
37093
37094     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37095 $as_echo "no" >&6; }
37096     tst_links_ioctlsocket="no"
37097
37098 fi
37099 rm -f core conftest.err conftest.$ac_objext \
37100     conftest$ac_exeext conftest.$ac_ext
37101   #
37102   if test "$tst_links_ioctlsocket" = "yes"; then
37103     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
37104 $as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
37105     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37106 /* end confdefs.h.  */
37107
37108       $curl_includes_winsock2
37109       $curl_includes_bsdsocket
37110
37111 _ACEOF
37112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37113   $EGREP "ioctlsocket" >/dev/null 2>&1; then :
37114
37115       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37116 $as_echo "yes" >&6; }
37117       tst_proto_ioctlsocket="yes"
37118
37119 else
37120
37121       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37122 $as_echo "no" >&6; }
37123       tst_proto_ioctlsocket="no"
37124
37125 fi
37126 rm -f conftest*
37127
37128   fi
37129   #
37130   if test "$tst_proto_ioctlsocket" = "yes"; then
37131     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
37132 $as_echo_n "checking if ioctlsocket is compilable... " >&6; }
37133     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37134 /* end confdefs.h.  */
37135
37136
37137         $curl_includes_winsock2
37138       $curl_includes_bsdsocket
37139
37140 int main (void)
37141 {
37142
37143         if(0 != ioctlsocket(0, 0, 0))
37144           return 1;
37145
37146  ;
37147  return 0;
37148 }
37149
37150 _ACEOF
37151 if ac_fn_c_try_compile "$LINENO"; then :
37152
37153       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37154 $as_echo "yes" >&6; }
37155       tst_compi_ioctlsocket="yes"
37156
37157 else
37158
37159       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37160 $as_echo "no" >&6; }
37161       tst_compi_ioctlsocket="no"
37162
37163 fi
37164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37165   fi
37166   #
37167   if test "$tst_compi_ioctlsocket" = "yes"; then
37168     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
37169 $as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
37170     if test "x$curl_disallow_ioctlsocket" != "xyes"; then
37171       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37172 $as_echo "yes" >&6; }
37173       tst_allow_ioctlsocket="yes"
37174     else
37175       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37176 $as_echo "no" >&6; }
37177       tst_allow_ioctlsocket="no"
37178     fi
37179   fi
37180   #
37181   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
37182 $as_echo_n "checking if ioctlsocket might be used... " >&6; }
37183   if test "$tst_links_ioctlsocket" = "yes" &&
37184      test "$tst_proto_ioctlsocket" = "yes" &&
37185      test "$tst_compi_ioctlsocket" = "yes" &&
37186      test "$tst_allow_ioctlsocket" = "yes"; then
37187     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37188 $as_echo "yes" >&6; }
37189
37190 cat >>confdefs.h <<_ACEOF
37191 #define HAVE_IOCTLSOCKET 1
37192 _ACEOF
37193
37194     curl_cv_func_ioctlsocket="yes"
37195
37196   #
37197   tst_compi_ioctlsocket_fionbio="unknown"
37198   tst_allow_ioctlsocket_fionbio="unknown"
37199   #
37200   if test "$curl_cv_func_ioctlsocket" = "yes"; then
37201     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
37202 $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
37203     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37204 /* end confdefs.h.  */
37205
37206
37207         $curl_includes_winsock2
37208       $curl_includes_bsdsocket
37209
37210 int main (void)
37211 {
37212
37213         int flags = 0;
37214         if(0 != ioctlsocket(0, FIONBIO, &flags))
37215           return 1;
37216
37217  ;
37218  return 0;
37219 }
37220
37221 _ACEOF
37222 if ac_fn_c_try_compile "$LINENO"; then :
37223
37224       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37225 $as_echo "yes" >&6; }
37226       tst_compi_ioctlsocket_fionbio="yes"
37227
37228 else
37229
37230       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37231 $as_echo "no" >&6; }
37232       tst_compi_ioctlsocket_fionbio="no"
37233
37234 fi
37235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37236   fi
37237   #
37238   if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
37239     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
37240 $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
37241     if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
37242       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37243 $as_echo "yes" >&6; }
37244       tst_allow_ioctlsocket_fionbio="yes"
37245     else
37246       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37247 $as_echo "no" >&6; }
37248       tst_allow_ioctlsocket_fionbio="no"
37249     fi
37250   fi
37251   #
37252   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
37253 $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
37254   if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
37255      test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
37256     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37257 $as_echo "yes" >&6; }
37258
37259 cat >>confdefs.h <<_ACEOF
37260 #define HAVE_IOCTLSOCKET_FIONBIO 1
37261 _ACEOF
37262
37263     curl_cv_func_ioctlsocket_fionbio="yes"
37264   else
37265     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37266 $as_echo "no" >&6; }
37267     curl_cv_func_ioctlsocket_fionbio="no"
37268   fi
37269
37270   else
37271     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37272 $as_echo "no" >&6; }
37273     curl_cv_func_ioctlsocket="no"
37274   fi
37275
37276
37277     #
37278   tst_links_ioctlsocket_camel="unknown"
37279   tst_proto_ioctlsocket_camel="unknown"
37280   tst_compi_ioctlsocket_camel="unknown"
37281   tst_allow_ioctlsocket_camel="unknown"
37282   #
37283   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
37284 $as_echo_n "checking if IoctlSocket can be linked... " >&6; }
37285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37286 /* end confdefs.h.  */
37287
37288
37289 #define IoctlSocket innocuous_IoctlSocket
37290 #ifdef __STDC__
37291 # include <limits.h>
37292 #else
37293 # include <assert.h>
37294 #endif
37295 #undef IoctlSocket
37296 #ifdef __cplusplus
37297 extern "C"
37298 #endif
37299 char IoctlSocket ();
37300 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
37301 choke me
37302 #endif
37303
37304 int main (void)
37305 {
37306 return IoctlSocket ();
37307  ;
37308  return 0;
37309 }
37310
37311 _ACEOF
37312 if ac_fn_c_try_link "$LINENO"; then :
37313
37314     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37315 $as_echo "yes" >&6; }
37316     tst_links_ioctlsocket_camel="yes"
37317
37318 else
37319
37320     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37321 $as_echo "no" >&6; }
37322     tst_links_ioctlsocket_camel="no"
37323
37324 fi
37325 rm -f core conftest.err conftest.$ac_objext \
37326     conftest$ac_exeext conftest.$ac_ext
37327   #
37328   if test "$tst_links_ioctlsocket_camel" = "yes"; then
37329     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
37330 $as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
37331     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37332 /* end confdefs.h.  */
37333
37334       $curl_includes_stropts
37335
37336 _ACEOF
37337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37338   $EGREP "IoctlSocket" >/dev/null 2>&1; then :
37339
37340       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37341 $as_echo "yes" >&6; }
37342       tst_proto_ioctlsocket_camel="yes"
37343
37344 else
37345
37346       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37347 $as_echo "no" >&6; }
37348       tst_proto_ioctlsocket_camel="no"
37349
37350 fi
37351 rm -f conftest*
37352
37353   fi
37354   #
37355   if test "$tst_proto_ioctlsocket_camel" = "yes"; then
37356     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
37357 $as_echo_n "checking if IoctlSocket is compilable... " >&6; }
37358     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37359 /* end confdefs.h.  */
37360
37361
37362         $curl_includes_stropts
37363
37364 int main (void)
37365 {
37366
37367         if(0 != IoctlSocket(0, 0, 0))
37368           return 1;
37369
37370  ;
37371  return 0;
37372 }
37373
37374 _ACEOF
37375 if ac_fn_c_try_compile "$LINENO"; then :
37376
37377       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37378 $as_echo "yes" >&6; }
37379       tst_compi_ioctlsocket_camel="yes"
37380
37381 else
37382
37383       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37384 $as_echo "no" >&6; }
37385       tst_compi_ioctlsocket_camel="no"
37386
37387 fi
37388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37389   fi
37390   #
37391   if test "$tst_compi_ioctlsocket_camel" = "yes"; then
37392     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
37393 $as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
37394     if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
37395       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37396 $as_echo "yes" >&6; }
37397       tst_allow_ioctlsocket_camel="yes"
37398     else
37399       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37400 $as_echo "no" >&6; }
37401       tst_allow_ioctlsocket_camel="no"
37402     fi
37403   fi
37404   #
37405   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
37406 $as_echo_n "checking if IoctlSocket might be used... " >&6; }
37407   if test "$tst_links_ioctlsocket_camel" = "yes" &&
37408      test "$tst_proto_ioctlsocket_camel" = "yes" &&
37409      test "$tst_compi_ioctlsocket_camel" = "yes" &&
37410      test "$tst_allow_ioctlsocket_camel" = "yes"; then
37411     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37412 $as_echo "yes" >&6; }
37413
37414 cat >>confdefs.h <<_ACEOF
37415 #define HAVE_IOCTLSOCKET_CAMEL 1
37416 _ACEOF
37417
37418     curl_cv_func_ioctlsocket_camel="yes"
37419
37420   #
37421   tst_compi_ioctlsocket_camel_fionbio="unknown"
37422   tst_allow_ioctlsocket_camel_fionbio="unknown"
37423   #
37424   if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
37425     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
37426 $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
37427     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37428 /* end confdefs.h.  */
37429
37430
37431         $curl_includes_stropts
37432
37433 int main (void)
37434 {
37435
37436         long flags = 0;
37437         if(0 != ioctlsocket(0, FIONBIO, &flags))
37438           return 1;
37439
37440  ;
37441  return 0;
37442 }
37443
37444 _ACEOF
37445 if ac_fn_c_try_compile "$LINENO"; then :
37446
37447       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37448 $as_echo "yes" >&6; }
37449       tst_compi_ioctlsocket_camel_fionbio="yes"
37450
37451 else
37452
37453       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37454 $as_echo "no" >&6; }
37455       tst_compi_ioctlsocket_camel_fionbio="no"
37456
37457 fi
37458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37459   fi
37460   #
37461   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
37462     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
37463 $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
37464     if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
37465       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37466 $as_echo "yes" >&6; }
37467       tst_allow_ioctlsocket_camel_fionbio="yes"
37468     else
37469       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37470 $as_echo "no" >&6; }
37471       tst_allow_ioctlsocket_camel_fionbio="no"
37472     fi
37473   fi
37474   #
37475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
37476 $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
37477   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
37478      test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
37479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37480 $as_echo "yes" >&6; }
37481
37482 cat >>confdefs.h <<_ACEOF
37483 #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
37484 _ACEOF
37485
37486     curl_cv_func_ioctlsocket_camel_fionbio="yes"
37487   else
37488     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37489 $as_echo "no" >&6; }
37490     curl_cv_func_ioctlsocket_camel_fionbio="no"
37491   fi
37492
37493   else
37494     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37495 $as_echo "no" >&6; }
37496     curl_cv_func_ioctlsocket_camel="no"
37497   fi
37498
37499
37500       #
37501   tst_links_localtime_r="unknown"
37502   tst_proto_localtime_r="unknown"
37503   tst_compi_localtime_r="unknown"
37504   tst_works_localtime_r="unknown"
37505   tst_allow_localtime_r="unknown"
37506   #
37507   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
37508 $as_echo_n "checking if localtime_r can be linked... " >&6; }
37509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37510 /* end confdefs.h.  */
37511
37512
37513 #define localtime_r innocuous_localtime_r
37514 #ifdef __STDC__
37515 # include <limits.h>
37516 #else
37517 # include <assert.h>
37518 #endif
37519 #undef localtime_r
37520 #ifdef __cplusplus
37521 extern "C"
37522 #endif
37523 char localtime_r ();
37524 #if defined __stub_localtime_r || defined __stub___localtime_r
37525 choke me
37526 #endif
37527
37528 int main (void)
37529 {
37530 return localtime_r ();
37531  ;
37532  return 0;
37533 }
37534
37535 _ACEOF
37536 if ac_fn_c_try_link "$LINENO"; then :
37537
37538     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37539 $as_echo "yes" >&6; }
37540     tst_links_localtime_r="yes"
37541
37542 else
37543
37544     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37545 $as_echo "no" >&6; }
37546     tst_links_localtime_r="no"
37547
37548 fi
37549 rm -f core conftest.err conftest.$ac_objext \
37550     conftest$ac_exeext conftest.$ac_ext
37551   #
37552   if test "$tst_links_localtime_r" = "yes"; then
37553     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
37554 $as_echo_n "checking if localtime_r is prototyped... " >&6; }
37555     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37556 /* end confdefs.h.  */
37557
37558       $curl_includes_time
37559
37560 _ACEOF
37561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37562   $EGREP "localtime_r" >/dev/null 2>&1; then :
37563
37564       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37565 $as_echo "yes" >&6; }
37566       tst_proto_localtime_r="yes"
37567
37568 else
37569
37570       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37571 $as_echo "no" >&6; }
37572       tst_proto_localtime_r="no"
37573
37574 fi
37575 rm -f conftest*
37576
37577   fi
37578   #
37579   if test "$tst_proto_localtime_r" = "yes"; then
37580     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
37581 $as_echo_n "checking if localtime_r is compilable... " >&6; }
37582     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37583 /* end confdefs.h.  */
37584
37585
37586         $curl_includes_time
37587
37588 int main (void)
37589 {
37590
37591         if(0 != localtime_r(0, 0))
37592           return 1;
37593
37594  ;
37595  return 0;
37596 }
37597
37598 _ACEOF
37599 if ac_fn_c_try_compile "$LINENO"; then :
37600
37601       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37602 $as_echo "yes" >&6; }
37603       tst_compi_localtime_r="yes"
37604
37605 else
37606
37607       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37608 $as_echo "no" >&6; }
37609       tst_compi_localtime_r="no"
37610
37611 fi
37612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37613   fi
37614   #
37615     if test "x$cross_compiling" != "xyes" &&
37616     test "$tst_compi_localtime_r" = "yes"; then
37617     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
37618 $as_echo_n "checking if localtime_r seems to work... " >&6; }
37619
37620
37621    old=$LD_LIBRARY_PATH
37622    LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
37623    export LD_LIBRARY_PATH
37624    if test "$cross_compiling" = yes; then :
37625   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37627 as_fn_error $? "cannot run test program while cross compiling
37628 See \`config.log' for more details" "$LINENO" 5; }
37629 else
37630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37631 /* end confdefs.h.  */
37632
37633
37634         $curl_includes_stdlib
37635         $curl_includes_time
37636
37637 int main (void)
37638 {
37639
37640         time_t clock = 1170352587;
37641         struct tm *tmp = 0;
37642         struct tm result;
37643         tmp = localtime_r(&clock, &result);
37644         if(tmp)
37645           exit(0);
37646         else
37647           exit(1);
37648
37649  ;
37650  return 0;
37651 }
37652
37653 _ACEOF
37654 if ac_fn_c_try_run "$LINENO"; then :
37655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37656 $as_echo "yes" >&6; }
37657       tst_works_localtime_r="yes"
37658
37659 else
37660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37661 $as_echo "no" >&6; }
37662       tst_works_localtime_r="no"
37663
37664 fi
37665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37666   conftest.$ac_objext conftest.beam conftest.$ac_ext
37667 fi
37668
37669    LD_LIBRARY_PATH=$old # restore
37670
37671   fi
37672   #
37673   if test "$tst_compi_localtime_r" = "yes" &&
37674     test "$tst_works_localtime_r" != "no"; then
37675     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
37676 $as_echo_n "checking if localtime_r usage allowed... " >&6; }
37677     if test "x$curl_disallow_localtime_r" != "xyes"; then
37678       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37679 $as_echo "yes" >&6; }
37680       tst_allow_localtime_r="yes"
37681     else
37682       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37683 $as_echo "no" >&6; }
37684       tst_allow_localtime_r="no"
37685     fi
37686   fi
37687   #
37688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
37689 $as_echo_n "checking if localtime_r might be used... " >&6; }
37690   if test "$tst_links_localtime_r" = "yes" &&
37691      test "$tst_proto_localtime_r" = "yes" &&
37692      test "$tst_compi_localtime_r" = "yes" &&
37693      test "$tst_allow_localtime_r" = "yes" &&
37694      test "$tst_works_localtime_r" != "no"; then
37695     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37696 $as_echo "yes" >&6; }
37697
37698 cat >>confdefs.h <<_ACEOF
37699 #define HAVE_LOCALTIME_R 1
37700 _ACEOF
37701
37702     curl_cv_func_localtime_r="yes"
37703   else
37704     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37705 $as_echo "no" >&6; }
37706     curl_cv_func_localtime_r="no"
37707   fi
37708
37709
37710     #
37711   tst_links_memrchr="unknown"
37712   tst_macro_memrchr="unknown"
37713   tst_proto_memrchr="unknown"
37714   tst_compi_memrchr="unknown"
37715   tst_allow_memrchr="unknown"
37716   #
37717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
37718 $as_echo_n "checking if memrchr can be linked... " >&6; }
37719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37720 /* end confdefs.h.  */
37721
37722
37723 #define memrchr innocuous_memrchr
37724 #ifdef __STDC__
37725 # include <limits.h>
37726 #else
37727 # include <assert.h>
37728 #endif
37729 #undef memrchr
37730 #ifdef __cplusplus
37731 extern "C"
37732 #endif
37733 char memrchr ();
37734 #if defined __stub_memrchr || defined __stub___memrchr
37735 choke me
37736 #endif
37737
37738 int main (void)
37739 {
37740 return memrchr ();
37741  ;
37742  return 0;
37743 }
37744
37745 _ACEOF
37746 if ac_fn_c_try_link "$LINENO"; then :
37747
37748     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37749 $as_echo "yes" >&6; }
37750     tst_links_memrchr="yes"
37751
37752 else
37753
37754     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37755 $as_echo "no" >&6; }
37756     tst_links_memrchr="no"
37757
37758 fi
37759 rm -f core conftest.err conftest.$ac_objext \
37760     conftest$ac_exeext conftest.$ac_ext
37761   #
37762   if test "$tst_links_memrchr" = "no"; then
37763     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
37764 $as_echo_n "checking if memrchr seems a macro... " >&6; }
37765     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37766 /* end confdefs.h.  */
37767
37768
37769         $curl_includes_string
37770
37771 int main (void)
37772 {
37773
37774         if(0 != memrchr(0, 0, 0))
37775           return 1;
37776
37777  ;
37778  return 0;
37779 }
37780
37781 _ACEOF
37782 if ac_fn_c_try_link "$LINENO"; then :
37783
37784       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37785 $as_echo "yes" >&6; }
37786       tst_macro_memrchr="yes"
37787
37788 else
37789
37790       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37791 $as_echo "no" >&6; }
37792       tst_macro_memrchr="no"
37793
37794 fi
37795 rm -f core conftest.err conftest.$ac_objext \
37796     conftest$ac_exeext conftest.$ac_ext
37797   fi
37798   #
37799   if test "$tst_links_memrchr" = "yes"; then
37800     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
37801 $as_echo_n "checking if memrchr is prototyped... " >&6; }
37802     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37803 /* end confdefs.h.  */
37804
37805       $curl_includes_string
37806
37807 _ACEOF
37808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37809   $EGREP "memrchr" >/dev/null 2>&1; then :
37810
37811       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37812 $as_echo "yes" >&6; }
37813       tst_proto_memrchr="yes"
37814
37815 else
37816
37817       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37818 $as_echo "no" >&6; }
37819       tst_proto_memrchr="no"
37820
37821 fi
37822 rm -f conftest*
37823
37824   fi
37825   #
37826   if test "$tst_proto_memrchr" = "yes" ||
37827      test "$tst_macro_memrchr" = "yes"; then
37828     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
37829 $as_echo_n "checking if memrchr is compilable... " >&6; }
37830     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37831 /* end confdefs.h.  */
37832
37833
37834         $curl_includes_string
37835
37836 int main (void)
37837 {
37838
37839         if(0 != memrchr(0, 0, 0))
37840           return 1;
37841
37842  ;
37843  return 0;
37844 }
37845
37846 _ACEOF
37847 if ac_fn_c_try_compile "$LINENO"; then :
37848
37849       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37850 $as_echo "yes" >&6; }
37851       tst_compi_memrchr="yes"
37852
37853 else
37854
37855       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37856 $as_echo "no" >&6; }
37857       tst_compi_memrchr="no"
37858
37859 fi
37860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37861   fi
37862   #
37863   if test "$tst_compi_memrchr" = "yes"; then
37864     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
37865 $as_echo_n "checking if memrchr usage allowed... " >&6; }
37866     if test "x$curl_disallow_memrchr" != "xyes"; then
37867       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37868 $as_echo "yes" >&6; }
37869       tst_allow_memrchr="yes"
37870     else
37871       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37872 $as_echo "no" >&6; }
37873       tst_allow_memrchr="no"
37874     fi
37875   fi
37876   #
37877   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
37878 $as_echo_n "checking if memrchr might be used... " >&6; }
37879   if (test "$tst_proto_memrchr" = "yes" ||
37880       test "$tst_macro_memrchr" = "yes") &&
37881      test "$tst_compi_memrchr" = "yes" &&
37882      test "$tst_allow_memrchr" = "yes"; then
37883     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37884 $as_echo "yes" >&6; }
37885
37886 cat >>confdefs.h <<_ACEOF
37887 #define HAVE_MEMRCHR 1
37888 _ACEOF
37889
37890     curl_cv_func_memrchr="yes"
37891   else
37892     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37893 $as_echo "no" >&6; }
37894     curl_cv_func_memrchr="no"
37895   fi
37896
37897
37898       #
37899   tst_links_poll="unknown"
37900   tst_proto_poll="unknown"
37901   tst_compi_poll="unknown"
37902   tst_works_poll="unknown"
37903   tst_allow_poll="unknown"
37904   #
37905   case $host_os in
37906     darwin*|interix*)
37907                                           curl_disallow_poll="yes"
37908       tst_compi_poll="no"
37909       ;;
37910   esac
37911   #
37912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
37913 $as_echo_n "checking if poll can be linked... " >&6; }
37914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37915 /* end confdefs.h.  */
37916
37917
37918       $curl_includes_poll
37919
37920 int main (void)
37921 {
37922
37923       if(0 != poll(0, 0, 0))
37924         return 1;
37925
37926  ;
37927  return 0;
37928 }
37929
37930 _ACEOF
37931 if ac_fn_c_try_link "$LINENO"; then :
37932
37933     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37934 $as_echo "yes" >&6; }
37935     tst_links_poll="yes"
37936
37937 else
37938
37939     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37940 $as_echo "no" >&6; }
37941     tst_links_poll="no"
37942
37943 fi
37944 rm -f core conftest.err conftest.$ac_objext \
37945     conftest$ac_exeext conftest.$ac_ext
37946   #
37947   if test "$tst_links_poll" = "yes"; then
37948     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
37949 $as_echo_n "checking if poll is prototyped... " >&6; }
37950     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37951 /* end confdefs.h.  */
37952
37953       $curl_includes_poll
37954
37955 _ACEOF
37956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37957   $EGREP "poll" >/dev/null 2>&1; then :
37958
37959       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37960 $as_echo "yes" >&6; }
37961       tst_proto_poll="yes"
37962
37963 else
37964
37965       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37966 $as_echo "no" >&6; }
37967       tst_proto_poll="no"
37968
37969 fi
37970 rm -f conftest*
37971
37972   fi
37973   #
37974   if test "$tst_proto_poll" = "yes"; then
37975     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
37976 $as_echo_n "checking if poll is compilable... " >&6; }
37977     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37978 /* end confdefs.h.  */
37979
37980
37981         $curl_includes_poll
37982
37983 int main (void)
37984 {
37985
37986         if(0 != poll(0, 0, 0))
37987           return 1;
37988
37989  ;
37990  return 0;
37991 }
37992
37993 _ACEOF
37994 if ac_fn_c_try_compile "$LINENO"; then :
37995
37996       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37997 $as_echo "yes" >&6; }
37998       tst_compi_poll="yes"
37999
38000 else
38001
38002       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38003 $as_echo "no" >&6; }
38004       tst_compi_poll="no"
38005
38006 fi
38007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38008   fi
38009   #
38010     if test "x$cross_compiling" != "xyes" &&
38011     test "$tst_compi_poll" = "yes"; then
38012     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
38013 $as_echo_n "checking if poll seems to work... " >&6; }
38014
38015
38016    old=$LD_LIBRARY_PATH
38017    LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
38018    export LD_LIBRARY_PATH
38019    if test "$cross_compiling" = yes; then :
38020   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38022 as_fn_error $? "cannot run test program while cross compiling
38023 See \`config.log' for more details" "$LINENO" 5; }
38024 else
38025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38026 /* end confdefs.h.  */
38027
38028
38029         $curl_includes_stdlib
38030         $curl_includes_poll
38031         $curl_includes_time
38032
38033 int main (void)
38034 {
38035
38036         /* detect the original poll() breakage */
38037         if(0 != poll(0, 0, 10))
38038           exit(1); /* fail */
38039         else {
38040           /* detect the 10.12 poll() breakage */
38041           struct timeval before, after;
38042           int rc;
38043           size_t us;
38044
38045           gettimeofday(&before, NULL);
38046           rc = poll(NULL, 0, 500);
38047           gettimeofday(&after, NULL);
38048
38049           us = (after.tv_sec - before.tv_sec) * 1000000 +
38050             (after.tv_usec - before.tv_usec);
38051
38052           if(us < 400000)
38053             exit(1);
38054         }
38055
38056  ;
38057  return 0;
38058 }
38059
38060 _ACEOF
38061 if ac_fn_c_try_run "$LINENO"; then :
38062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38063 $as_echo "yes" >&6; }
38064       tst_works_poll="yes"
38065
38066 else
38067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38068 $as_echo "no" >&6; }
38069       tst_works_poll="no"
38070
38071 fi
38072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38073   conftest.$ac_objext conftest.beam conftest.$ac_ext
38074 fi
38075
38076    LD_LIBRARY_PATH=$old # restore
38077
38078   fi
38079   #
38080   if test "$tst_compi_poll" = "yes" &&
38081     test "$tst_works_poll" != "no"; then
38082     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
38083 $as_echo_n "checking if poll usage allowed... " >&6; }
38084     if test "x$curl_disallow_poll" != "xyes"; then
38085       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38086 $as_echo "yes" >&6; }
38087       tst_allow_poll="yes"
38088     else
38089       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38090 $as_echo "no" >&6; }
38091       tst_allow_poll="no"
38092     fi
38093   fi
38094   #
38095   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
38096 $as_echo_n "checking if poll might be used... " >&6; }
38097   if test "$tst_links_poll" = "yes" &&
38098      test "$tst_proto_poll" = "yes" &&
38099      test "$tst_compi_poll" = "yes" &&
38100      test "$tst_allow_poll" = "yes" &&
38101      test "$tst_works_poll" != "no"; then
38102     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38103 $as_echo "yes" >&6; }
38104
38105 cat >>confdefs.h <<_ACEOF
38106 #define HAVE_POLL 1
38107 _ACEOF
38108
38109
38110 cat >>confdefs.h <<_ACEOF
38111 #define HAVE_POLL_FINE 1
38112 _ACEOF
38113
38114     curl_cv_func_poll="yes"
38115   else
38116     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38117 $as_echo "no" >&6; }
38118     curl_cv_func_poll="no"
38119   fi
38120
38121
38122       #
38123   tst_links_setsockopt="unknown"
38124   tst_proto_setsockopt="unknown"
38125   tst_compi_setsockopt="unknown"
38126   tst_allow_setsockopt="unknown"
38127   #
38128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
38129 $as_echo_n "checking if setsockopt can be linked... " >&6; }
38130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38131 /* end confdefs.h.  */
38132
38133
38134       $curl_includes_winsock2
38135       $curl_includes_bsdsocket
38136       $curl_includes_sys_socket
38137
38138 int main (void)
38139 {
38140
38141       if(0 != setsockopt(0, 0, 0, 0, 0))
38142         return 1;
38143
38144  ;
38145  return 0;
38146 }
38147
38148 _ACEOF
38149 if ac_fn_c_try_link "$LINENO"; then :
38150
38151     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38152 $as_echo "yes" >&6; }
38153     tst_links_setsockopt="yes"
38154
38155 else
38156
38157     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38158 $as_echo "no" >&6; }
38159     tst_links_setsockopt="no"
38160
38161 fi
38162 rm -f core conftest.err conftest.$ac_objext \
38163     conftest$ac_exeext conftest.$ac_ext
38164   #
38165   if test "$tst_links_setsockopt" = "yes"; then
38166     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
38167 $as_echo_n "checking if setsockopt is prototyped... " >&6; }
38168     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38169 /* end confdefs.h.  */
38170
38171       $curl_includes_winsock2
38172       $curl_includes_bsdsocket
38173       $curl_includes_sys_socket
38174
38175 _ACEOF
38176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38177   $EGREP "setsockopt" >/dev/null 2>&1; then :
38178
38179       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38180 $as_echo "yes" >&6; }
38181       tst_proto_setsockopt="yes"
38182
38183 else
38184
38185       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38186 $as_echo "no" >&6; }
38187       tst_proto_setsockopt="no"
38188
38189 fi
38190 rm -f conftest*
38191
38192   fi
38193   #
38194   if test "$tst_proto_setsockopt" = "yes"; then
38195     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
38196 $as_echo_n "checking if setsockopt is compilable... " >&6; }
38197     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38198 /* end confdefs.h.  */
38199
38200
38201         $curl_includes_winsock2
38202       $curl_includes_bsdsocket
38203         $curl_includes_sys_socket
38204
38205 int main (void)
38206 {
38207
38208         if(0 != setsockopt(0, 0, 0, 0, 0))
38209           return 1;
38210
38211  ;
38212  return 0;
38213 }
38214
38215 _ACEOF
38216 if ac_fn_c_try_compile "$LINENO"; then :
38217
38218       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38219 $as_echo "yes" >&6; }
38220       tst_compi_setsockopt="yes"
38221
38222 else
38223
38224       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38225 $as_echo "no" >&6; }
38226       tst_compi_setsockopt="no"
38227
38228 fi
38229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38230   fi
38231   #
38232   if test "$tst_compi_setsockopt" = "yes"; then
38233     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
38234 $as_echo_n "checking if setsockopt usage allowed... " >&6; }
38235     if test "x$curl_disallow_setsockopt" != "xyes"; then
38236       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38237 $as_echo "yes" >&6; }
38238       tst_allow_setsockopt="yes"
38239     else
38240       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38241 $as_echo "no" >&6; }
38242       tst_allow_setsockopt="no"
38243     fi
38244   fi
38245   #
38246   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
38247 $as_echo_n "checking if setsockopt might be used... " >&6; }
38248   if test "$tst_links_setsockopt" = "yes" &&
38249      test "$tst_proto_setsockopt" = "yes" &&
38250      test "$tst_compi_setsockopt" = "yes" &&
38251      test "$tst_allow_setsockopt" = "yes"; then
38252     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38253 $as_echo "yes" >&6; }
38254
38255 cat >>confdefs.h <<_ACEOF
38256 #define HAVE_SETSOCKOPT 1
38257 _ACEOF
38258
38259     curl_cv_func_setsockopt="yes"
38260
38261   #
38262   tst_compi_setsockopt_so_nonblock="unknown"
38263   tst_allow_setsockopt_so_nonblock="unknown"
38264   #
38265   if test "$curl_cv_func_setsockopt" = "yes"; then
38266     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
38267 $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
38268     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38269 /* end confdefs.h.  */
38270
38271
38272         $curl_includes_winsock2
38273       $curl_includes_bsdsocket
38274         $curl_includes_sys_socket
38275
38276 int main (void)
38277 {
38278
38279         if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
38280           return 1;
38281
38282  ;
38283  return 0;
38284 }
38285
38286 _ACEOF
38287 if ac_fn_c_try_compile "$LINENO"; then :
38288
38289       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38290 $as_echo "yes" >&6; }
38291       tst_compi_setsockopt_so_nonblock="yes"
38292
38293 else
38294
38295       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38296 $as_echo "no" >&6; }
38297       tst_compi_setsockopt_so_nonblock="no"
38298
38299 fi
38300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38301   fi
38302   #
38303   if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
38304     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
38305 $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
38306     if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
38307       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38308 $as_echo "yes" >&6; }
38309       tst_allow_setsockopt_so_nonblock="yes"
38310     else
38311       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38312 $as_echo "no" >&6; }
38313       tst_allow_setsockopt_so_nonblock="no"
38314     fi
38315   fi
38316   #
38317   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
38318 $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
38319   if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
38320      test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
38321     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38322 $as_echo "yes" >&6; }
38323
38324 cat >>confdefs.h <<_ACEOF
38325 #define HAVE_SETSOCKOPT_SO_NONBLOCK 1
38326 _ACEOF
38327
38328     curl_cv_func_setsockopt_so_nonblock="yes"
38329   else
38330     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38331 $as_echo "no" >&6; }
38332     curl_cv_func_setsockopt_so_nonblock="no"
38333   fi
38334
38335   else
38336     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38337 $as_echo "no" >&6; }
38338     curl_cv_func_setsockopt="no"
38339   fi
38340
38341
38342 curl_includes_signal="\
38343 /* includes start */
38344 #ifdef HAVE_SYS_TYPES_H
38345 #  include <sys/types.h>
38346 #endif
38347 #ifdef HAVE_SIGNAL_H
38348 #  include <signal.h>
38349 #endif
38350 /* includes end */"
38351   for ac_header in sys/types.h signal.h
38352 do :
38353   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38354 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
38355 "
38356 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
38357   cat >>confdefs.h <<_ACEOF
38358 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38359 _ACEOF
38360
38361 fi
38362
38363 done
38364
38365
38366
38367     #
38368   tst_links_sigaction="unknown"
38369   tst_proto_sigaction="unknown"
38370   tst_compi_sigaction="unknown"
38371   tst_allow_sigaction="unknown"
38372   #
38373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
38374 $as_echo_n "checking if sigaction can be linked... " >&6; }
38375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38376 /* end confdefs.h.  */
38377
38378
38379 #define sigaction innocuous_sigaction
38380 #ifdef __STDC__
38381 # include <limits.h>
38382 #else
38383 # include <assert.h>
38384 #endif
38385 #undef sigaction
38386 #ifdef __cplusplus
38387 extern "C"
38388 #endif
38389 char sigaction ();
38390 #if defined __stub_sigaction || defined __stub___sigaction
38391 choke me
38392 #endif
38393
38394 int main (void)
38395 {
38396 return sigaction ();
38397  ;
38398  return 0;
38399 }
38400
38401 _ACEOF
38402 if ac_fn_c_try_link "$LINENO"; then :
38403
38404     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38405 $as_echo "yes" >&6; }
38406     tst_links_sigaction="yes"
38407
38408 else
38409
38410     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38411 $as_echo "no" >&6; }
38412     tst_links_sigaction="no"
38413
38414 fi
38415 rm -f core conftest.err conftest.$ac_objext \
38416     conftest$ac_exeext conftest.$ac_ext
38417   #
38418   if test "$tst_links_sigaction" = "yes"; then
38419     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
38420 $as_echo_n "checking if sigaction is prototyped... " >&6; }
38421     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38422 /* end confdefs.h.  */
38423
38424       $curl_includes_signal
38425
38426 _ACEOF
38427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38428   $EGREP "sigaction" >/dev/null 2>&1; then :
38429
38430       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38431 $as_echo "yes" >&6; }
38432       tst_proto_sigaction="yes"
38433
38434 else
38435
38436       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38437 $as_echo "no" >&6; }
38438       tst_proto_sigaction="no"
38439
38440 fi
38441 rm -f conftest*
38442
38443   fi
38444   #
38445   if test "$tst_proto_sigaction" = "yes"; then
38446     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
38447 $as_echo_n "checking if sigaction is compilable... " >&6; }
38448     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38449 /* end confdefs.h.  */
38450
38451
38452         $curl_includes_signal
38453
38454 int main (void)
38455 {
38456
38457         if(0 != sigaction(0, 0, 0))
38458           return 1;
38459
38460  ;
38461  return 0;
38462 }
38463
38464 _ACEOF
38465 if ac_fn_c_try_compile "$LINENO"; then :
38466
38467       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38468 $as_echo "yes" >&6; }
38469       tst_compi_sigaction="yes"
38470
38471 else
38472
38473       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38474 $as_echo "no" >&6; }
38475       tst_compi_sigaction="no"
38476
38477 fi
38478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38479   fi
38480   #
38481   if test "$tst_compi_sigaction" = "yes"; then
38482     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
38483 $as_echo_n "checking if sigaction usage allowed... " >&6; }
38484     if test "x$curl_disallow_sigaction" != "xyes"; then
38485       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38486 $as_echo "yes" >&6; }
38487       tst_allow_sigaction="yes"
38488     else
38489       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38490 $as_echo "no" >&6; }
38491       tst_allow_sigaction="no"
38492     fi
38493   fi
38494   #
38495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
38496 $as_echo_n "checking if sigaction might be used... " >&6; }
38497   if test "$tst_links_sigaction" = "yes" &&
38498      test "$tst_proto_sigaction" = "yes" &&
38499      test "$tst_compi_sigaction" = "yes" &&
38500      test "$tst_allow_sigaction" = "yes"; then
38501     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38502 $as_echo "yes" >&6; }
38503
38504 cat >>confdefs.h <<_ACEOF
38505 #define HAVE_SIGACTION 1
38506 _ACEOF
38507
38508     curl_cv_func_sigaction="yes"
38509   else
38510     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38511 $as_echo "no" >&6; }
38512     curl_cv_func_sigaction="no"
38513   fi
38514
38515
38516     #
38517   tst_links_siginterrupt="unknown"
38518   tst_proto_siginterrupt="unknown"
38519   tst_compi_siginterrupt="unknown"
38520   tst_allow_siginterrupt="unknown"
38521   #
38522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
38523 $as_echo_n "checking if siginterrupt can be linked... " >&6; }
38524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38525 /* end confdefs.h.  */
38526
38527
38528 #define siginterrupt innocuous_siginterrupt
38529 #ifdef __STDC__
38530 # include <limits.h>
38531 #else
38532 # include <assert.h>
38533 #endif
38534 #undef siginterrupt
38535 #ifdef __cplusplus
38536 extern "C"
38537 #endif
38538 char siginterrupt ();
38539 #if defined __stub_siginterrupt || defined __stub___siginterrupt
38540 choke me
38541 #endif
38542
38543 int main (void)
38544 {
38545 return siginterrupt ();
38546  ;
38547  return 0;
38548 }
38549
38550 _ACEOF
38551 if ac_fn_c_try_link "$LINENO"; then :
38552
38553     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38554 $as_echo "yes" >&6; }
38555     tst_links_siginterrupt="yes"
38556
38557 else
38558
38559     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38560 $as_echo "no" >&6; }
38561     tst_links_siginterrupt="no"
38562
38563 fi
38564 rm -f core conftest.err conftest.$ac_objext \
38565     conftest$ac_exeext conftest.$ac_ext
38566   #
38567   if test "$tst_links_siginterrupt" = "yes"; then
38568     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
38569 $as_echo_n "checking if siginterrupt is prototyped... " >&6; }
38570     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38571 /* end confdefs.h.  */
38572
38573       $curl_includes_signal
38574
38575 _ACEOF
38576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38577   $EGREP "siginterrupt" >/dev/null 2>&1; then :
38578
38579       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38580 $as_echo "yes" >&6; }
38581       tst_proto_siginterrupt="yes"
38582
38583 else
38584
38585       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38586 $as_echo "no" >&6; }
38587       tst_proto_siginterrupt="no"
38588
38589 fi
38590 rm -f conftest*
38591
38592   fi
38593   #
38594   if test "$tst_proto_siginterrupt" = "yes"; then
38595     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
38596 $as_echo_n "checking if siginterrupt is compilable... " >&6; }
38597     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38598 /* end confdefs.h.  */
38599
38600
38601         $curl_includes_signal
38602
38603 int main (void)
38604 {
38605
38606         if(0 != siginterrupt(0, 0))
38607           return 1;
38608
38609  ;
38610  return 0;
38611 }
38612
38613 _ACEOF
38614 if ac_fn_c_try_compile "$LINENO"; then :
38615
38616       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38617 $as_echo "yes" >&6; }
38618       tst_compi_siginterrupt="yes"
38619
38620 else
38621
38622       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38623 $as_echo "no" >&6; }
38624       tst_compi_siginterrupt="no"
38625
38626 fi
38627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38628   fi
38629   #
38630   if test "$tst_compi_siginterrupt" = "yes"; then
38631     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
38632 $as_echo_n "checking if siginterrupt usage allowed... " >&6; }
38633     if test "x$curl_disallow_siginterrupt" != "xyes"; then
38634       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38635 $as_echo "yes" >&6; }
38636       tst_allow_siginterrupt="yes"
38637     else
38638       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38639 $as_echo "no" >&6; }
38640       tst_allow_siginterrupt="no"
38641     fi
38642   fi
38643   #
38644   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
38645 $as_echo_n "checking if siginterrupt might be used... " >&6; }
38646   if test "$tst_links_siginterrupt" = "yes" &&
38647      test "$tst_proto_siginterrupt" = "yes" &&
38648      test "$tst_compi_siginterrupt" = "yes" &&
38649      test "$tst_allow_siginterrupt" = "yes"; then
38650     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38651 $as_echo "yes" >&6; }
38652
38653 cat >>confdefs.h <<_ACEOF
38654 #define HAVE_SIGINTERRUPT 1
38655 _ACEOF
38656
38657     curl_cv_func_siginterrupt="yes"
38658   else
38659     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38660 $as_echo "no" >&6; }
38661     curl_cv_func_siginterrupt="no"
38662   fi
38663
38664
38665     #
38666   tst_links_signal="unknown"
38667   tst_proto_signal="unknown"
38668   tst_compi_signal="unknown"
38669   tst_allow_signal="unknown"
38670   #
38671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
38672 $as_echo_n "checking if signal can be linked... " >&6; }
38673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38674 /* end confdefs.h.  */
38675
38676
38677 #define signal innocuous_signal
38678 #ifdef __STDC__
38679 # include <limits.h>
38680 #else
38681 # include <assert.h>
38682 #endif
38683 #undef signal
38684 #ifdef __cplusplus
38685 extern "C"
38686 #endif
38687 char signal ();
38688 #if defined __stub_signal || defined __stub___signal
38689 choke me
38690 #endif
38691
38692 int main (void)
38693 {
38694 return signal ();
38695  ;
38696  return 0;
38697 }
38698
38699 _ACEOF
38700 if ac_fn_c_try_link "$LINENO"; then :
38701
38702     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38703 $as_echo "yes" >&6; }
38704     tst_links_signal="yes"
38705
38706 else
38707
38708     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38709 $as_echo "no" >&6; }
38710     tst_links_signal="no"
38711
38712 fi
38713 rm -f core conftest.err conftest.$ac_objext \
38714     conftest$ac_exeext conftest.$ac_ext
38715   #
38716   if test "$tst_links_signal" = "yes"; then
38717     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
38718 $as_echo_n "checking if signal is prototyped... " >&6; }
38719     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38720 /* end confdefs.h.  */
38721
38722       $curl_includes_signal
38723
38724 _ACEOF
38725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38726   $EGREP "signal" >/dev/null 2>&1; then :
38727
38728       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38729 $as_echo "yes" >&6; }
38730       tst_proto_signal="yes"
38731
38732 else
38733
38734       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38735 $as_echo "no" >&6; }
38736       tst_proto_signal="no"
38737
38738 fi
38739 rm -f conftest*
38740
38741   fi
38742   #
38743   if test "$tst_proto_signal" = "yes"; then
38744     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
38745 $as_echo_n "checking if signal is compilable... " >&6; }
38746     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38747 /* end confdefs.h.  */
38748
38749
38750         $curl_includes_signal
38751
38752 int main (void)
38753 {
38754
38755         if(0 != signal(0, 0))
38756           return 1;
38757
38758  ;
38759  return 0;
38760 }
38761
38762 _ACEOF
38763 if ac_fn_c_try_compile "$LINENO"; then :
38764
38765       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38766 $as_echo "yes" >&6; }
38767       tst_compi_signal="yes"
38768
38769 else
38770
38771       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38772 $as_echo "no" >&6; }
38773       tst_compi_signal="no"
38774
38775 fi
38776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38777   fi
38778   #
38779   if test "$tst_compi_signal" = "yes"; then
38780     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
38781 $as_echo_n "checking if signal usage allowed... " >&6; }
38782     if test "x$curl_disallow_signal" != "xyes"; then
38783       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38784 $as_echo "yes" >&6; }
38785       tst_allow_signal="yes"
38786     else
38787       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38788 $as_echo "no" >&6; }
38789       tst_allow_signal="no"
38790     fi
38791   fi
38792   #
38793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
38794 $as_echo_n "checking if signal might be used... " >&6; }
38795   if test "$tst_links_signal" = "yes" &&
38796      test "$tst_proto_signal" = "yes" &&
38797      test "$tst_compi_signal" = "yes" &&
38798      test "$tst_allow_signal" = "yes"; then
38799     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38800 $as_echo "yes" >&6; }
38801
38802 cat >>confdefs.h <<_ACEOF
38803 #define HAVE_SIGNAL 1
38804 _ACEOF
38805
38806     curl_cv_func_signal="yes"
38807   else
38808     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38809 $as_echo "no" >&6; }
38810     curl_cv_func_signal="no"
38811   fi
38812
38813
38814 curl_includes_setjmp="\
38815 /* includes start */
38816 #ifdef HAVE_SYS_TYPES_H
38817 #  include <sys/types.h>
38818 #endif
38819 #ifdef HAVE_SETJMP_H
38820 #  include <setjmp.h>
38821 #endif
38822 /* includes end */"
38823   for ac_header in sys/types.h setjmp.h
38824 do :
38825   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38826 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
38827 "
38828 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
38829   cat >>confdefs.h <<_ACEOF
38830 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38831 _ACEOF
38832
38833 fi
38834
38835 done
38836
38837
38838
38839     #
38840   tst_links_sigsetjmp="unknown"
38841   tst_macro_sigsetjmp="unknown"
38842   tst_proto_sigsetjmp="unknown"
38843   tst_compi_sigsetjmp="unknown"
38844   tst_allow_sigsetjmp="unknown"
38845   #
38846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
38847 $as_echo_n "checking if sigsetjmp can be linked... " >&6; }
38848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38849 /* end confdefs.h.  */
38850
38851
38852 #define sigsetjmp innocuous_sigsetjmp
38853 #ifdef __STDC__
38854 # include <limits.h>
38855 #else
38856 # include <assert.h>
38857 #endif
38858 #undef sigsetjmp
38859 #ifdef __cplusplus
38860 extern "C"
38861 #endif
38862 char sigsetjmp ();
38863 #if defined __stub_sigsetjmp || defined __stub___sigsetjmp
38864 choke me
38865 #endif
38866
38867 int main (void)
38868 {
38869 return sigsetjmp ();
38870  ;
38871  return 0;
38872 }
38873
38874 _ACEOF
38875 if ac_fn_c_try_link "$LINENO"; then :
38876
38877     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38878 $as_echo "yes" >&6; }
38879     tst_links_sigsetjmp="yes"
38880
38881 else
38882
38883     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38884 $as_echo "no" >&6; }
38885     tst_links_sigsetjmp="no"
38886
38887 fi
38888 rm -f core conftest.err conftest.$ac_objext \
38889     conftest$ac_exeext conftest.$ac_ext
38890   #
38891   if test "$tst_links_sigsetjmp" = "no"; then
38892     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
38893 $as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
38894     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38895 /* end confdefs.h.  */
38896
38897
38898         $curl_includes_setjmp
38899
38900 int main (void)
38901 {
38902
38903         sigjmp_buf env;
38904         if(0 != sigsetjmp(env, 0))
38905           return 1;
38906
38907  ;
38908  return 0;
38909 }
38910
38911 _ACEOF
38912 if ac_fn_c_try_link "$LINENO"; then :
38913
38914       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38915 $as_echo "yes" >&6; }
38916       tst_macro_sigsetjmp="yes"
38917
38918 else
38919
38920       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38921 $as_echo "no" >&6; }
38922       tst_macro_sigsetjmp="no"
38923
38924 fi
38925 rm -f core conftest.err conftest.$ac_objext \
38926     conftest$ac_exeext conftest.$ac_ext
38927   fi
38928   #
38929   if test "$tst_links_sigsetjmp" = "yes"; then
38930     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
38931 $as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
38932     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38933 /* end confdefs.h.  */
38934
38935       $curl_includes_setjmp
38936
38937 _ACEOF
38938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38939   $EGREP "sigsetjmp" >/dev/null 2>&1; then :
38940
38941       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38942 $as_echo "yes" >&6; }
38943       tst_proto_sigsetjmp="yes"
38944
38945 else
38946
38947       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38948 $as_echo "no" >&6; }
38949       tst_proto_sigsetjmp="no"
38950
38951 fi
38952 rm -f conftest*
38953
38954   fi
38955   #
38956   if test "$tst_proto_sigsetjmp" = "yes" ||
38957      test "$tst_macro_sigsetjmp" = "yes"; then
38958     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
38959 $as_echo_n "checking if sigsetjmp is compilable... " >&6; }
38960     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38961 /* end confdefs.h.  */
38962
38963
38964         $curl_includes_setjmp
38965
38966 int main (void)
38967 {
38968
38969         sigjmp_buf env;
38970         if(0 != sigsetjmp(env, 0))
38971           return 1;
38972
38973  ;
38974  return 0;
38975 }
38976
38977 _ACEOF
38978 if ac_fn_c_try_compile "$LINENO"; then :
38979
38980       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38981 $as_echo "yes" >&6; }
38982       tst_compi_sigsetjmp="yes"
38983
38984 else
38985
38986       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38987 $as_echo "no" >&6; }
38988       tst_compi_sigsetjmp="no"
38989
38990 fi
38991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38992   fi
38993   #
38994   if test "$tst_compi_sigsetjmp" = "yes"; then
38995     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
38996 $as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
38997     if test "x$curl_disallow_sigsetjmp" != "xyes"; then
38998       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38999 $as_echo "yes" >&6; }
39000       tst_allow_sigsetjmp="yes"
39001     else
39002       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39003 $as_echo "no" >&6; }
39004       tst_allow_sigsetjmp="no"
39005     fi
39006   fi
39007   #
39008   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
39009 $as_echo_n "checking if sigsetjmp might be used... " >&6; }
39010   if (test "$tst_proto_sigsetjmp" = "yes" ||
39011       test "$tst_macro_sigsetjmp" = "yes") &&
39012      test "$tst_compi_sigsetjmp" = "yes" &&
39013      test "$tst_allow_sigsetjmp" = "yes"; then
39014     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39015 $as_echo "yes" >&6; }
39016
39017 cat >>confdefs.h <<_ACEOF
39018 #define HAVE_SIGSETJMP 1
39019 _ACEOF
39020
39021     curl_cv_func_sigsetjmp="yes"
39022   else
39023     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39024 $as_echo "no" >&6; }
39025     curl_cv_func_sigsetjmp="no"
39026   fi
39027
39028
39029         #
39030   tst_links_socket="unknown"
39031   tst_proto_socket="unknown"
39032   tst_compi_socket="unknown"
39033   tst_allow_socket="unknown"
39034   #
39035   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
39036 $as_echo_n "checking if socket can be linked... " >&6; }
39037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39038 /* end confdefs.h.  */
39039
39040
39041       $curl_includes_winsock2
39042       $curl_includes_bsdsocket
39043       $curl_includes_sys_socket
39044       $curl_includes_socket
39045
39046 int main (void)
39047 {
39048
39049       if(0 != socket(0, 0, 0))
39050         return 1;
39051
39052  ;
39053  return 0;
39054 }
39055
39056 _ACEOF
39057 if ac_fn_c_try_link "$LINENO"; then :
39058
39059     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39060 $as_echo "yes" >&6; }
39061     tst_links_socket="yes"
39062
39063 else
39064
39065     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39066 $as_echo "no" >&6; }
39067     tst_links_socket="no"
39068
39069 fi
39070 rm -f core conftest.err conftest.$ac_objext \
39071     conftest$ac_exeext conftest.$ac_ext
39072   #
39073   if test "$tst_links_socket" = "yes"; then
39074     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
39075 $as_echo_n "checking if socket is prototyped... " >&6; }
39076     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39077 /* end confdefs.h.  */
39078
39079       $curl_includes_winsock2
39080       $curl_includes_bsdsocket
39081       $curl_includes_sys_socket
39082       $curl_includes_socket
39083
39084 _ACEOF
39085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39086   $EGREP "socket" >/dev/null 2>&1; then :
39087
39088       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39089 $as_echo "yes" >&6; }
39090       tst_proto_socket="yes"
39091
39092 else
39093
39094       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39095 $as_echo "no" >&6; }
39096       tst_proto_socket="no"
39097
39098 fi
39099 rm -f conftest*
39100
39101   fi
39102   #
39103   if test "$tst_proto_socket" = "yes"; then
39104     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
39105 $as_echo_n "checking if socket is compilable... " >&6; }
39106     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39107 /* end confdefs.h.  */
39108
39109
39110         $curl_includes_winsock2
39111       $curl_includes_bsdsocket
39112         $curl_includes_sys_socket
39113         $curl_includes_socket
39114
39115 int main (void)
39116 {
39117
39118         if(0 != socket(0, 0, 0))
39119           return 1;
39120
39121  ;
39122  return 0;
39123 }
39124
39125 _ACEOF
39126 if ac_fn_c_try_compile "$LINENO"; then :
39127
39128       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39129 $as_echo "yes" >&6; }
39130       tst_compi_socket="yes"
39131
39132 else
39133
39134       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39135 $as_echo "no" >&6; }
39136       tst_compi_socket="no"
39137
39138 fi
39139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39140   fi
39141   #
39142   if test "$tst_compi_socket" = "yes"; then
39143     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
39144 $as_echo_n "checking if socket usage allowed... " >&6; }
39145     if test "x$curl_disallow_socket" != "xyes"; then
39146       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39147 $as_echo "yes" >&6; }
39148       tst_allow_socket="yes"
39149     else
39150       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39151 $as_echo "no" >&6; }
39152       tst_allow_socket="no"
39153     fi
39154   fi
39155   #
39156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
39157 $as_echo_n "checking if socket might be used... " >&6; }
39158   if test "$tst_links_socket" = "yes" &&
39159      test "$tst_proto_socket" = "yes" &&
39160      test "$tst_compi_socket" = "yes" &&
39161      test "$tst_allow_socket" = "yes"; then
39162     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39163 $as_echo "yes" >&6; }
39164
39165 cat >>confdefs.h <<_ACEOF
39166 #define HAVE_SOCKET 1
39167 _ACEOF
39168
39169     curl_cv_func_socket="yes"
39170   else
39171     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39172 $as_echo "no" >&6; }
39173     curl_cv_func_socket="no"
39174   fi
39175
39176
39177       #
39178   tst_links_socketpair="unknown"
39179   tst_proto_socketpair="unknown"
39180   tst_compi_socketpair="unknown"
39181   tst_allow_socketpair="unknown"
39182   #
39183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
39184 $as_echo_n "checking if socketpair can be linked... " >&6; }
39185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39186 /* end confdefs.h.  */
39187
39188
39189 #define socketpair innocuous_socketpair
39190 #ifdef __STDC__
39191 # include <limits.h>
39192 #else
39193 # include <assert.h>
39194 #endif
39195 #undef socketpair
39196 #ifdef __cplusplus
39197 extern "C"
39198 #endif
39199 char socketpair ();
39200 #if defined __stub_socketpair || defined __stub___socketpair
39201 choke me
39202 #endif
39203
39204 int main (void)
39205 {
39206 return socketpair ();
39207  ;
39208  return 0;
39209 }
39210
39211 _ACEOF
39212 if ac_fn_c_try_link "$LINENO"; then :
39213
39214     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39215 $as_echo "yes" >&6; }
39216     tst_links_socketpair="yes"
39217
39218 else
39219
39220     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39221 $as_echo "no" >&6; }
39222     tst_links_socketpair="no"
39223
39224 fi
39225 rm -f core conftest.err conftest.$ac_objext \
39226     conftest$ac_exeext conftest.$ac_ext
39227   #
39228   if test "$tst_links_socketpair" = "yes"; then
39229     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
39230 $as_echo_n "checking if socketpair is prototyped... " >&6; }
39231     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39232 /* end confdefs.h.  */
39233
39234       $curl_includes_sys_socket
39235       $curl_includes_socket
39236
39237 _ACEOF
39238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39239   $EGREP "socketpair" >/dev/null 2>&1; then :
39240
39241       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39242 $as_echo "yes" >&6; }
39243       tst_proto_socketpair="yes"
39244
39245 else
39246
39247       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39248 $as_echo "no" >&6; }
39249       tst_proto_socketpair="no"
39250
39251 fi
39252 rm -f conftest*
39253
39254   fi
39255   #
39256   if test "$tst_proto_socketpair" = "yes"; then
39257     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
39258 $as_echo_n "checking if socketpair is compilable... " >&6; }
39259     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39260 /* end confdefs.h.  */
39261
39262
39263         $curl_includes_sys_socket
39264         $curl_includes_socket
39265
39266 int main (void)
39267 {
39268
39269         int sv[2];
39270         if(0 != socketpair(0, 0, 0, sv))
39271           return 1;
39272
39273  ;
39274  return 0;
39275 }
39276
39277 _ACEOF
39278 if ac_fn_c_try_compile "$LINENO"; then :
39279
39280       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39281 $as_echo "yes" >&6; }
39282       tst_compi_socketpair="yes"
39283
39284 else
39285
39286       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39287 $as_echo "no" >&6; }
39288       tst_compi_socketpair="no"
39289
39290 fi
39291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39292   fi
39293   #
39294   if test "$tst_compi_socketpair" = "yes"; then
39295     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
39296 $as_echo_n "checking if socketpair usage allowed... " >&6; }
39297     if test "x$curl_disallow_socketpair" != "xyes"; then
39298       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39299 $as_echo "yes" >&6; }
39300       tst_allow_socketpair="yes"
39301     else
39302       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39303 $as_echo "no" >&6; }
39304       tst_allow_socketpair="no"
39305     fi
39306   fi
39307   #
39308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
39309 $as_echo_n "checking if socketpair might be used... " >&6; }
39310   if test "$tst_links_socketpair" = "yes" &&
39311      test "$tst_proto_socketpair" = "yes" &&
39312      test "$tst_compi_socketpair" = "yes" &&
39313      test "$tst_allow_socketpair" = "yes"; then
39314     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39315 $as_echo "yes" >&6; }
39316
39317 cat >>confdefs.h <<_ACEOF
39318 #define HAVE_SOCKETPAIR 1
39319 _ACEOF
39320
39321     curl_cv_func_socketpair="yes"
39322   else
39323     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39324 $as_echo "no" >&6; }
39325     curl_cv_func_socketpair="no"
39326   fi
39327
39328
39329     #
39330   tst_links_strcasecmp="unknown"
39331   tst_proto_strcasecmp="unknown"
39332   tst_compi_strcasecmp="unknown"
39333   tst_allow_strcasecmp="unknown"
39334   #
39335   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
39336 $as_echo_n "checking if strcasecmp can be linked... " >&6; }
39337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39338 /* end confdefs.h.  */
39339
39340
39341 #define strcasecmp innocuous_strcasecmp
39342 #ifdef __STDC__
39343 # include <limits.h>
39344 #else
39345 # include <assert.h>
39346 #endif
39347 #undef strcasecmp
39348 #ifdef __cplusplus
39349 extern "C"
39350 #endif
39351 char strcasecmp ();
39352 #if defined __stub_strcasecmp || defined __stub___strcasecmp
39353 choke me
39354 #endif
39355
39356 int main (void)
39357 {
39358 return strcasecmp ();
39359  ;
39360  return 0;
39361 }
39362
39363 _ACEOF
39364 if ac_fn_c_try_link "$LINENO"; then :
39365
39366     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39367 $as_echo "yes" >&6; }
39368     tst_links_strcasecmp="yes"
39369
39370 else
39371
39372     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39373 $as_echo "no" >&6; }
39374     tst_links_strcasecmp="no"
39375
39376 fi
39377 rm -f core conftest.err conftest.$ac_objext \
39378     conftest$ac_exeext conftest.$ac_ext
39379   #
39380   if test "$tst_links_strcasecmp" = "yes"; then
39381     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
39382 $as_echo_n "checking if strcasecmp is prototyped... " >&6; }
39383     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39384 /* end confdefs.h.  */
39385
39386       $curl_includes_string
39387
39388 _ACEOF
39389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39390   $EGREP "strcasecmp" >/dev/null 2>&1; then :
39391
39392       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39393 $as_echo "yes" >&6; }
39394       tst_proto_strcasecmp="yes"
39395
39396 else
39397
39398       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39399 $as_echo "no" >&6; }
39400       tst_proto_strcasecmp="no"
39401
39402 fi
39403 rm -f conftest*
39404
39405   fi
39406   #
39407   if test "$tst_proto_strcasecmp" = "yes"; then
39408     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
39409 $as_echo_n "checking if strcasecmp is compilable... " >&6; }
39410     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39411 /* end confdefs.h.  */
39412
39413
39414         $curl_includes_string
39415
39416 int main (void)
39417 {
39418
39419         if(0 != strcasecmp(0, 0))
39420           return 1;
39421
39422  ;
39423  return 0;
39424 }
39425
39426 _ACEOF
39427 if ac_fn_c_try_compile "$LINENO"; then :
39428
39429       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39430 $as_echo "yes" >&6; }
39431       tst_compi_strcasecmp="yes"
39432
39433 else
39434
39435       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39436 $as_echo "no" >&6; }
39437       tst_compi_strcasecmp="no"
39438
39439 fi
39440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39441   fi
39442   #
39443   if test "$tst_compi_strcasecmp" = "yes"; then
39444     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
39445 $as_echo_n "checking if strcasecmp usage allowed... " >&6; }
39446     if test "x$curl_disallow_strcasecmp" != "xyes"; then
39447       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39448 $as_echo "yes" >&6; }
39449       tst_allow_strcasecmp="yes"
39450     else
39451       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39452 $as_echo "no" >&6; }
39453       tst_allow_strcasecmp="no"
39454     fi
39455   fi
39456   #
39457   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
39458 $as_echo_n "checking if strcasecmp might be used... " >&6; }
39459   if test "$tst_links_strcasecmp" = "yes" &&
39460      test "$tst_proto_strcasecmp" = "yes" &&
39461      test "$tst_compi_strcasecmp" = "yes" &&
39462      test "$tst_allow_strcasecmp" = "yes"; then
39463     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39464 $as_echo "yes" >&6; }
39465
39466 cat >>confdefs.h <<_ACEOF
39467 #define HAVE_STRCASECMP 1
39468 _ACEOF
39469
39470     curl_cv_func_strcasecmp="yes"
39471   else
39472     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39473 $as_echo "no" >&6; }
39474     curl_cv_func_strcasecmp="no"
39475   fi
39476
39477
39478     #
39479   tst_links_strcmpi="unknown"
39480   tst_proto_strcmpi="unknown"
39481   tst_compi_strcmpi="unknown"
39482   tst_allow_strcmpi="unknown"
39483   #
39484   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
39485 $as_echo_n "checking if strcmpi can be linked... " >&6; }
39486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39487 /* end confdefs.h.  */
39488
39489
39490 #define strcmpi innocuous_strcmpi
39491 #ifdef __STDC__
39492 # include <limits.h>
39493 #else
39494 # include <assert.h>
39495 #endif
39496 #undef strcmpi
39497 #ifdef __cplusplus
39498 extern "C"
39499 #endif
39500 char strcmpi ();
39501 #if defined __stub_strcmpi || defined __stub___strcmpi
39502 choke me
39503 #endif
39504
39505 int main (void)
39506 {
39507 return strcmpi ();
39508  ;
39509  return 0;
39510 }
39511
39512 _ACEOF
39513 if ac_fn_c_try_link "$LINENO"; then :
39514
39515     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39516 $as_echo "yes" >&6; }
39517     tst_links_strcmpi="yes"
39518
39519 else
39520
39521     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39522 $as_echo "no" >&6; }
39523     tst_links_strcmpi="no"
39524
39525 fi
39526 rm -f core conftest.err conftest.$ac_objext \
39527     conftest$ac_exeext conftest.$ac_ext
39528   #
39529   if test "$tst_links_strcmpi" = "yes"; then
39530     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
39531 $as_echo_n "checking if strcmpi is prototyped... " >&6; }
39532     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39533 /* end confdefs.h.  */
39534
39535       $curl_includes_string
39536
39537 _ACEOF
39538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39539   $EGREP "strcmpi" >/dev/null 2>&1; then :
39540
39541       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39542 $as_echo "yes" >&6; }
39543       tst_proto_strcmpi="yes"
39544
39545 else
39546
39547       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39548 $as_echo "no" >&6; }
39549       tst_proto_strcmpi="no"
39550
39551 fi
39552 rm -f conftest*
39553
39554   fi
39555   #
39556   if test "$tst_proto_strcmpi" = "yes"; then
39557     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
39558 $as_echo_n "checking if strcmpi is compilable... " >&6; }
39559     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39560 /* end confdefs.h.  */
39561
39562
39563         $curl_includes_string
39564
39565 int main (void)
39566 {
39567
39568         if(0 != strcmpi(0, 0))
39569           return 1;
39570
39571  ;
39572  return 0;
39573 }
39574
39575 _ACEOF
39576 if ac_fn_c_try_compile "$LINENO"; then :
39577
39578       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39579 $as_echo "yes" >&6; }
39580       tst_compi_strcmpi="yes"
39581
39582 else
39583
39584       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39585 $as_echo "no" >&6; }
39586       tst_compi_strcmpi="no"
39587
39588 fi
39589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39590   fi
39591   #
39592   if test "$tst_compi_strcmpi" = "yes"; then
39593     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
39594 $as_echo_n "checking if strcmpi usage allowed... " >&6; }
39595     if test "x$curl_disallow_strcmpi" != "xyes"; then
39596       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39597 $as_echo "yes" >&6; }
39598       tst_allow_strcmpi="yes"
39599     else
39600       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39601 $as_echo "no" >&6; }
39602       tst_allow_strcmpi="no"
39603     fi
39604   fi
39605   #
39606   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
39607 $as_echo_n "checking if strcmpi might be used... " >&6; }
39608   if test "$tst_links_strcmpi" = "yes" &&
39609      test "$tst_proto_strcmpi" = "yes" &&
39610      test "$tst_compi_strcmpi" = "yes" &&
39611      test "$tst_allow_strcmpi" = "yes"; then
39612     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39613 $as_echo "yes" >&6; }
39614
39615 cat >>confdefs.h <<_ACEOF
39616 #define HAVE_STRCMPI 1
39617 _ACEOF
39618
39619     curl_cv_func_strcmpi="yes"
39620   else
39621     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39622 $as_echo "no" >&6; }
39623     curl_cv_func_strcmpi="no"
39624   fi
39625
39626
39627     #
39628   tst_links_strdup="unknown"
39629   tst_proto_strdup="unknown"
39630   tst_compi_strdup="unknown"
39631   tst_allow_strdup="unknown"
39632   #
39633   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
39634 $as_echo_n "checking if strdup can be linked... " >&6; }
39635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39636 /* end confdefs.h.  */
39637
39638
39639 #define strdup innocuous_strdup
39640 #ifdef __STDC__
39641 # include <limits.h>
39642 #else
39643 # include <assert.h>
39644 #endif
39645 #undef strdup
39646 #ifdef __cplusplus
39647 extern "C"
39648 #endif
39649 char strdup ();
39650 #if defined __stub_strdup || defined __stub___strdup
39651 choke me
39652 #endif
39653
39654 int main (void)
39655 {
39656 return strdup ();
39657  ;
39658  return 0;
39659 }
39660
39661 _ACEOF
39662 if ac_fn_c_try_link "$LINENO"; then :
39663
39664     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39665 $as_echo "yes" >&6; }
39666     tst_links_strdup="yes"
39667
39668 else
39669
39670     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39671 $as_echo "no" >&6; }
39672     tst_links_strdup="no"
39673
39674 fi
39675 rm -f core conftest.err conftest.$ac_objext \
39676     conftest$ac_exeext conftest.$ac_ext
39677   #
39678   if test "$tst_links_strdup" = "yes"; then
39679     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
39680 $as_echo_n "checking if strdup is prototyped... " >&6; }
39681     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39682 /* end confdefs.h.  */
39683
39684       $curl_includes_string
39685
39686 _ACEOF
39687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39688   $EGREP "strdup" >/dev/null 2>&1; then :
39689
39690       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39691 $as_echo "yes" >&6; }
39692       tst_proto_strdup="yes"
39693
39694 else
39695
39696       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39697 $as_echo "no" >&6; }
39698       tst_proto_strdup="no"
39699
39700 fi
39701 rm -f conftest*
39702
39703   fi
39704   #
39705   if test "$tst_proto_strdup" = "yes"; then
39706     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
39707 $as_echo_n "checking if strdup is compilable... " >&6; }
39708     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39709 /* end confdefs.h.  */
39710
39711
39712         $curl_includes_string
39713
39714 int main (void)
39715 {
39716
39717         if(0 != strdup(0))
39718           return 1;
39719
39720  ;
39721  return 0;
39722 }
39723
39724 _ACEOF
39725 if ac_fn_c_try_compile "$LINENO"; then :
39726
39727       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39728 $as_echo "yes" >&6; }
39729       tst_compi_strdup="yes"
39730
39731 else
39732
39733       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39734 $as_echo "no" >&6; }
39735       tst_compi_strdup="no"
39736
39737 fi
39738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39739   fi
39740   #
39741   if test "$tst_compi_strdup" = "yes"; then
39742     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
39743 $as_echo_n "checking if strdup usage allowed... " >&6; }
39744     if test "x$curl_disallow_strdup" != "xyes"; then
39745       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39746 $as_echo "yes" >&6; }
39747       tst_allow_strdup="yes"
39748     else
39749       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39750 $as_echo "no" >&6; }
39751       tst_allow_strdup="no"
39752     fi
39753   fi
39754   #
39755   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
39756 $as_echo_n "checking if strdup might be used... " >&6; }
39757   if test "$tst_links_strdup" = "yes" &&
39758      test "$tst_proto_strdup" = "yes" &&
39759      test "$tst_compi_strdup" = "yes" &&
39760      test "$tst_allow_strdup" = "yes"; then
39761     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39762 $as_echo "yes" >&6; }
39763
39764 cat >>confdefs.h <<_ACEOF
39765 #define HAVE_STRDUP 1
39766 _ACEOF
39767
39768     curl_cv_func_strdup="yes"
39769   else
39770     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39771 $as_echo "no" >&6; }
39772     curl_cv_func_strdup="no"
39773   fi
39774
39775
39776       #
39777   tst_links_strerror_r="unknown"
39778   tst_proto_strerror_r="unknown"
39779   tst_compi_strerror_r="unknown"
39780   tst_glibc_strerror_r="unknown"
39781   tst_posix_strerror_r="unknown"
39782   tst_allow_strerror_r="unknown"
39783   tst_works_glibc_strerror_r="unknown"
39784   tst_works_posix_strerror_r="unknown"
39785   tst_glibc_strerror_r_type_arg3="unknown"
39786   tst_posix_strerror_r_type_arg3="unknown"
39787   #
39788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
39789 $as_echo_n "checking if strerror_r can be linked... " >&6; }
39790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39791 /* end confdefs.h.  */
39792
39793
39794 #define strerror_r innocuous_strerror_r
39795 #ifdef __STDC__
39796 # include <limits.h>
39797 #else
39798 # include <assert.h>
39799 #endif
39800 #undef strerror_r
39801 #ifdef __cplusplus
39802 extern "C"
39803 #endif
39804 char strerror_r ();
39805 #if defined __stub_strerror_r || defined __stub___strerror_r
39806 choke me
39807 #endif
39808
39809 int main (void)
39810 {
39811 return strerror_r ();
39812  ;
39813  return 0;
39814 }
39815
39816 _ACEOF
39817 if ac_fn_c_try_link "$LINENO"; then :
39818
39819     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39820 $as_echo "yes" >&6; }
39821     tst_links_strerror_r="yes"
39822
39823 else
39824
39825     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39826 $as_echo "no" >&6; }
39827     tst_links_strerror_r="no"
39828
39829 fi
39830 rm -f core conftest.err conftest.$ac_objext \
39831     conftest$ac_exeext conftest.$ac_ext
39832   #
39833   if test "$tst_links_strerror_r" = "yes"; then
39834     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
39835 $as_echo_n "checking if strerror_r is prototyped... " >&6; }
39836     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39837 /* end confdefs.h.  */
39838
39839       $curl_includes_string
39840
39841 _ACEOF
39842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39843   $EGREP "strerror_r" >/dev/null 2>&1; then :
39844
39845       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39846 $as_echo "yes" >&6; }
39847       tst_proto_strerror_r="yes"
39848
39849 else
39850
39851       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39852 $as_echo "no" >&6; }
39853       tst_proto_strerror_r="no"
39854
39855 fi
39856 rm -f conftest*
39857
39858   fi
39859   #
39860   if test "$tst_proto_strerror_r" = "yes"; then
39861     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
39862 $as_echo_n "checking if strerror_r is compilable... " >&6; }
39863     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39864 /* end confdefs.h.  */
39865
39866
39867         $curl_includes_string
39868
39869 int main (void)
39870 {
39871
39872         if(0 != strerror_r(0, 0, 0))
39873           return 1;
39874
39875  ;
39876  return 0;
39877 }
39878
39879 _ACEOF
39880 if ac_fn_c_try_compile "$LINENO"; then :
39881
39882       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39883 $as_echo "yes" >&6; }
39884       tst_compi_strerror_r="yes"
39885
39886 else
39887
39888       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39889 $as_echo "no" >&6; }
39890       tst_compi_strerror_r="no"
39891
39892 fi
39893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39894   fi
39895   #
39896   if test "$tst_compi_strerror_r" = "yes"; then
39897     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
39898 $as_echo_n "checking if strerror_r is glibc like... " >&6; }
39899     tst_glibc_strerror_r_type_arg3="unknown"
39900     for arg3 in 'size_t' 'int' 'unsigned int'; do
39901       if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
39902         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39903 /* end confdefs.h.  */
39904
39905
39906             $curl_includes_string
39907             char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
39908
39909 int main (void)
39910 {
39911
39912             if(0 != strerror_r(0, 0, 0))
39913               return 1;
39914
39915  ;
39916  return 0;
39917 }
39918
39919 _ACEOF
39920 if ac_fn_c_try_compile "$LINENO"; then :
39921
39922           tst_glibc_strerror_r_type_arg3="$arg3"
39923
39924 fi
39925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39926       fi
39927     done
39928     case "$tst_glibc_strerror_r_type_arg3" in
39929       unknown)
39930         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39931 $as_echo "no" >&6; }
39932         tst_glibc_strerror_r="no"
39933         ;;
39934       *)
39935         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39936 $as_echo "yes" >&6; }
39937         tst_glibc_strerror_r="yes"
39938         ;;
39939     esac
39940   fi
39941   #
39942     if test "x$cross_compiling" != "xyes" &&
39943     test "$tst_glibc_strerror_r" = "yes"; then
39944     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
39945 $as_echo_n "checking if strerror_r seems to work... " >&6; }
39946
39947
39948    old=$LD_LIBRARY_PATH
39949    LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
39950    export LD_LIBRARY_PATH
39951    if test "$cross_compiling" = yes; then :
39952   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
39954 as_fn_error $? "cannot run test program while cross compiling
39955 See \`config.log' for more details" "$LINENO" 5; }
39956 else
39957   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39958 /* end confdefs.h.  */
39959
39960
39961         $curl_includes_stdlib
39962         $curl_includes_string
39963 #       include <errno.h>
39964
39965 int main (void)
39966 {
39967
39968         char buffer[1024];
39969         char *string = 0;
39970         buffer[0] = '\0';
39971         string = strerror_r(EACCES, buffer, sizeof(buffer));
39972         if(!string)
39973           exit(1); /* fail */
39974         if(!string[0])
39975           exit(1); /* fail */
39976         else
39977           exit(0);
39978
39979  ;
39980  return 0;
39981 }
39982
39983 _ACEOF
39984 if ac_fn_c_try_run "$LINENO"; then :
39985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39986 $as_echo "yes" >&6; }
39987       tst_works_glibc_strerror_r="yes"
39988
39989 else
39990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39991 $as_echo "no" >&6; }
39992       tst_works_glibc_strerror_r="no"
39993
39994 fi
39995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39996   conftest.$ac_objext conftest.beam conftest.$ac_ext
39997 fi
39998
39999    LD_LIBRARY_PATH=$old # restore
40000
40001   fi
40002   #
40003   if test "$tst_compi_strerror_r" = "yes" &&
40004     test "$tst_works_glibc_strerror_r" != "yes"; then
40005     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
40006 $as_echo_n "checking if strerror_r is POSIX like... " >&6; }
40007     tst_posix_strerror_r_type_arg3="unknown"
40008     for arg3 in 'size_t' 'int' 'unsigned int'; do
40009       if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
40010         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40011 /* end confdefs.h.  */
40012
40013
40014             $curl_includes_string
40015             int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
40016
40017 int main (void)
40018 {
40019
40020             if(0 != strerror_r(0, 0, 0))
40021               return 1;
40022
40023  ;
40024  return 0;
40025 }
40026
40027 _ACEOF
40028 if ac_fn_c_try_compile "$LINENO"; then :
40029
40030           tst_posix_strerror_r_type_arg3="$arg3"
40031
40032 fi
40033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40034       fi
40035     done
40036     case "$tst_posix_strerror_r_type_arg3" in
40037       unknown)
40038         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40039 $as_echo "no" >&6; }
40040         tst_posix_strerror_r="no"
40041         ;;
40042       *)
40043         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40044 $as_echo "yes" >&6; }
40045         tst_posix_strerror_r="yes"
40046         ;;
40047     esac
40048   fi
40049   #
40050     if test "x$cross_compiling" != "xyes" &&
40051     test "$tst_posix_strerror_r" = "yes"; then
40052     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
40053 $as_echo_n "checking if strerror_r seems to work... " >&6; }
40054
40055
40056    old=$LD_LIBRARY_PATH
40057    LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
40058    export LD_LIBRARY_PATH
40059    if test "$cross_compiling" = yes; then :
40060   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
40061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
40062 as_fn_error $? "cannot run test program while cross compiling
40063 See \`config.log' for more details" "$LINENO" 5; }
40064 else
40065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40066 /* end confdefs.h.  */
40067
40068
40069         $curl_includes_stdlib
40070         $curl_includes_string
40071 #       include <errno.h>
40072
40073 int main (void)
40074 {
40075
40076         char buffer[1024];
40077         int error = 1;
40078         buffer[0] = '\0';
40079         error = strerror_r(EACCES, buffer, sizeof(buffer));
40080         if(error)
40081           exit(1); /* fail */
40082         if(buffer[0] == '\0')
40083           exit(1); /* fail */
40084         else
40085           exit(0);
40086
40087  ;
40088  return 0;
40089 }
40090
40091 _ACEOF
40092 if ac_fn_c_try_run "$LINENO"; then :
40093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40094 $as_echo "yes" >&6; }
40095       tst_works_posix_strerror_r="yes"
40096
40097 else
40098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40099 $as_echo "no" >&6; }
40100       tst_works_posix_strerror_r="no"
40101
40102 fi
40103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40104   conftest.$ac_objext conftest.beam conftest.$ac_ext
40105 fi
40106
40107    LD_LIBRARY_PATH=$old # restore
40108
40109   fi
40110   #
40111   if test "$tst_works_glibc_strerror_r" = "yes"; then
40112     tst_posix_strerror_r="no"
40113   fi
40114   if test "$tst_works_posix_strerror_r" = "yes"; then
40115     tst_glibc_strerror_r="no"
40116   fi
40117   if test "$tst_glibc_strerror_r" = "yes" &&
40118     test "$tst_works_glibc_strerror_r" != "no" &&
40119     test "$tst_posix_strerror_r" != "yes"; then
40120     tst_allow_strerror_r="check"
40121   fi
40122   if test "$tst_posix_strerror_r" = "yes" &&
40123     test "$tst_works_posix_strerror_r" != "no" &&
40124     test "$tst_glibc_strerror_r" != "yes"; then
40125     tst_allow_strerror_r="check"
40126   fi
40127   if test "$tst_allow_strerror_r" = "check"; then
40128     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
40129 $as_echo_n "checking if strerror_r usage allowed... " >&6; }
40130     if test "x$curl_disallow_strerror_r" != "xyes"; then
40131       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40132 $as_echo "yes" >&6; }
40133       tst_allow_strerror_r="yes"
40134     else
40135       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40136 $as_echo "no" >&6; }
40137       tst_allow_strerror_r="no"
40138     fi
40139   fi
40140   #
40141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
40142 $as_echo_n "checking if strerror_r might be used... " >&6; }
40143   if test "$tst_links_strerror_r" = "yes" &&
40144      test "$tst_proto_strerror_r" = "yes" &&
40145      test "$tst_compi_strerror_r" = "yes" &&
40146      test "$tst_allow_strerror_r" = "yes"; then
40147     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40148 $as_echo "yes" >&6; }
40149     if test "$tst_glibc_strerror_r" = "yes"; then
40150
40151 cat >>confdefs.h <<_ACEOF
40152 #define HAVE_STRERROR_R 1
40153 _ACEOF
40154
40155
40156 cat >>confdefs.h <<_ACEOF
40157 #define HAVE_GLIBC_STRERROR_R 1
40158 _ACEOF
40159
40160
40161 cat >>confdefs.h <<_ACEOF
40162 #define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
40163 _ACEOF
40164
40165     fi
40166     if test "$tst_posix_strerror_r" = "yes"; then
40167
40168 cat >>confdefs.h <<_ACEOF
40169 #define HAVE_STRERROR_R 1
40170 _ACEOF
40171
40172
40173 cat >>confdefs.h <<_ACEOF
40174 #define HAVE_POSIX_STRERROR_R 1
40175 _ACEOF
40176
40177
40178 cat >>confdefs.h <<_ACEOF
40179 #define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
40180 _ACEOF
40181
40182     fi
40183     curl_cv_func_strerror_r="yes"
40184   else
40185     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40186 $as_echo "no" >&6; }
40187     curl_cv_func_strerror_r="no"
40188   fi
40189   #
40190   if test "$tst_compi_strerror_r" = "yes" &&
40191      test "$tst_allow_strerror_r" = "unknown"; then
40192     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
40193 $as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
40194   fi
40195   #
40196
40197
40198     #
40199   tst_links_stricmp="unknown"
40200   tst_proto_stricmp="unknown"
40201   tst_compi_stricmp="unknown"
40202   tst_allow_stricmp="unknown"
40203   #
40204   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
40205 $as_echo_n "checking if stricmp can be linked... " >&6; }
40206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40207 /* end confdefs.h.  */
40208
40209
40210 #define stricmp innocuous_stricmp
40211 #ifdef __STDC__
40212 # include <limits.h>
40213 #else
40214 # include <assert.h>
40215 #endif
40216 #undef stricmp
40217 #ifdef __cplusplus
40218 extern "C"
40219 #endif
40220 char stricmp ();
40221 #if defined __stub_stricmp || defined __stub___stricmp
40222 choke me
40223 #endif
40224
40225 int main (void)
40226 {
40227 return stricmp ();
40228  ;
40229  return 0;
40230 }
40231
40232 _ACEOF
40233 if ac_fn_c_try_link "$LINENO"; then :
40234
40235     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40236 $as_echo "yes" >&6; }
40237     tst_links_stricmp="yes"
40238
40239 else
40240
40241     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40242 $as_echo "no" >&6; }
40243     tst_links_stricmp="no"
40244
40245 fi
40246 rm -f core conftest.err conftest.$ac_objext \
40247     conftest$ac_exeext conftest.$ac_ext
40248   #
40249   if test "$tst_links_stricmp" = "yes"; then
40250     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
40251 $as_echo_n "checking if stricmp is prototyped... " >&6; }
40252     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40253 /* end confdefs.h.  */
40254
40255       $curl_includes_string
40256
40257 _ACEOF
40258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40259   $EGREP "stricmp" >/dev/null 2>&1; then :
40260
40261       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40262 $as_echo "yes" >&6; }
40263       tst_proto_stricmp="yes"
40264
40265 else
40266
40267       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40268 $as_echo "no" >&6; }
40269       tst_proto_stricmp="no"
40270
40271 fi
40272 rm -f conftest*
40273
40274   fi
40275   #
40276   if test "$tst_proto_stricmp" = "yes"; then
40277     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
40278 $as_echo_n "checking if stricmp is compilable... " >&6; }
40279     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40280 /* end confdefs.h.  */
40281
40282
40283         $curl_includes_string
40284
40285 int main (void)
40286 {
40287
40288         if(0 != stricmp(0, 0))
40289           return 1;
40290
40291  ;
40292  return 0;
40293 }
40294
40295 _ACEOF
40296 if ac_fn_c_try_compile "$LINENO"; then :
40297
40298       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40299 $as_echo "yes" >&6; }
40300       tst_compi_stricmp="yes"
40301
40302 else
40303
40304       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40305 $as_echo "no" >&6; }
40306       tst_compi_stricmp="no"
40307
40308 fi
40309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40310   fi
40311   #
40312   if test "$tst_compi_stricmp" = "yes"; then
40313     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
40314 $as_echo_n "checking if stricmp usage allowed... " >&6; }
40315     if test "x$curl_disallow_stricmp" != "xyes"; then
40316       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40317 $as_echo "yes" >&6; }
40318       tst_allow_stricmp="yes"
40319     else
40320       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40321 $as_echo "no" >&6; }
40322       tst_allow_stricmp="no"
40323     fi
40324   fi
40325   #
40326   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
40327 $as_echo_n "checking if stricmp might be used... " >&6; }
40328   if test "$tst_links_stricmp" = "yes" &&
40329      test "$tst_proto_stricmp" = "yes" &&
40330      test "$tst_compi_stricmp" = "yes" &&
40331      test "$tst_allow_stricmp" = "yes"; then
40332     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40333 $as_echo "yes" >&6; }
40334
40335 cat >>confdefs.h <<_ACEOF
40336 #define HAVE_STRICMP 1
40337 _ACEOF
40338
40339     curl_cv_func_stricmp="yes"
40340   else
40341     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40342 $as_echo "no" >&6; }
40343     curl_cv_func_stricmp="no"
40344   fi
40345
40346
40347     #
40348   tst_links_strncasecmp="unknown"
40349   tst_proto_strncasecmp="unknown"
40350   tst_compi_strncasecmp="unknown"
40351   tst_allow_strncasecmp="unknown"
40352   #
40353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
40354 $as_echo_n "checking if strncasecmp can be linked... " >&6; }
40355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40356 /* end confdefs.h.  */
40357
40358
40359 #define strncasecmp innocuous_strncasecmp
40360 #ifdef __STDC__
40361 # include <limits.h>
40362 #else
40363 # include <assert.h>
40364 #endif
40365 #undef strncasecmp
40366 #ifdef __cplusplus
40367 extern "C"
40368 #endif
40369 char strncasecmp ();
40370 #if defined __stub_strncasecmp || defined __stub___strncasecmp
40371 choke me
40372 #endif
40373
40374 int main (void)
40375 {
40376 return strncasecmp ();
40377  ;
40378  return 0;
40379 }
40380
40381 _ACEOF
40382 if ac_fn_c_try_link "$LINENO"; then :
40383
40384     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40385 $as_echo "yes" >&6; }
40386     tst_links_strncasecmp="yes"
40387
40388 else
40389
40390     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40391 $as_echo "no" >&6; }
40392     tst_links_strncasecmp="no"
40393
40394 fi
40395 rm -f core conftest.err conftest.$ac_objext \
40396     conftest$ac_exeext conftest.$ac_ext
40397   #
40398   if test "$tst_links_strncasecmp" = "yes"; then
40399     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
40400 $as_echo_n "checking if strncasecmp is prototyped... " >&6; }
40401     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40402 /* end confdefs.h.  */
40403
40404       $curl_includes_string
40405
40406 _ACEOF
40407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40408   $EGREP "strncasecmp" >/dev/null 2>&1; then :
40409
40410       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40411 $as_echo "yes" >&6; }
40412       tst_proto_strncasecmp="yes"
40413
40414 else
40415
40416       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40417 $as_echo "no" >&6; }
40418       tst_proto_strncasecmp="no"
40419
40420 fi
40421 rm -f conftest*
40422
40423   fi
40424   #
40425   if test "$tst_proto_strncasecmp" = "yes"; then
40426     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
40427 $as_echo_n "checking if strncasecmp is compilable... " >&6; }
40428     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40429 /* end confdefs.h.  */
40430
40431
40432         $curl_includes_string
40433
40434 int main (void)
40435 {
40436
40437         if(0 != strncasecmp(0, 0, 0))
40438           return 1;
40439
40440  ;
40441  return 0;
40442 }
40443
40444 _ACEOF
40445 if ac_fn_c_try_compile "$LINENO"; then :
40446
40447       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40448 $as_echo "yes" >&6; }
40449       tst_compi_strncasecmp="yes"
40450
40451 else
40452
40453       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40454 $as_echo "no" >&6; }
40455       tst_compi_strncasecmp="no"
40456
40457 fi
40458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40459   fi
40460   #
40461   if test "$tst_compi_strncasecmp" = "yes"; then
40462     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
40463 $as_echo_n "checking if strncasecmp usage allowed... " >&6; }
40464     if test "x$curl_disallow_strncasecmp" != "xyes"; then
40465       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40466 $as_echo "yes" >&6; }
40467       tst_allow_strncasecmp="yes"
40468     else
40469       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40470 $as_echo "no" >&6; }
40471       tst_allow_strncasecmp="no"
40472     fi
40473   fi
40474   #
40475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
40476 $as_echo_n "checking if strncasecmp might be used... " >&6; }
40477   if test "$tst_links_strncasecmp" = "yes" &&
40478      test "$tst_proto_strncasecmp" = "yes" &&
40479      test "$tst_compi_strncasecmp" = "yes" &&
40480      test "$tst_allow_strncasecmp" = "yes"; then
40481     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40482 $as_echo "yes" >&6; }
40483
40484 cat >>confdefs.h <<_ACEOF
40485 #define HAVE_STRNCASECMP 1
40486 _ACEOF
40487
40488     curl_cv_func_strncasecmp="yes"
40489   else
40490     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40491 $as_echo "no" >&6; }
40492     curl_cv_func_strncasecmp="no"
40493   fi
40494
40495
40496     #
40497   tst_links_strncmpi="unknown"
40498   tst_proto_strncmpi="unknown"
40499   tst_compi_strncmpi="unknown"
40500   tst_allow_strncmpi="unknown"
40501   #
40502   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
40503 $as_echo_n "checking if strncmpi can be linked... " >&6; }
40504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40505 /* end confdefs.h.  */
40506
40507
40508 #define strncmpi innocuous_strncmpi
40509 #ifdef __STDC__
40510 # include <limits.h>
40511 #else
40512 # include <assert.h>
40513 #endif
40514 #undef strncmpi
40515 #ifdef __cplusplus
40516 extern "C"
40517 #endif
40518 char strncmpi ();
40519 #if defined __stub_strncmpi || defined __stub___strncmpi
40520 choke me
40521 #endif
40522
40523 int main (void)
40524 {
40525 return strncmpi ();
40526  ;
40527  return 0;
40528 }
40529
40530 _ACEOF
40531 if ac_fn_c_try_link "$LINENO"; then :
40532
40533     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40534 $as_echo "yes" >&6; }
40535     tst_links_strncmpi="yes"
40536
40537 else
40538
40539     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40540 $as_echo "no" >&6; }
40541     tst_links_strncmpi="no"
40542
40543 fi
40544 rm -f core conftest.err conftest.$ac_objext \
40545     conftest$ac_exeext conftest.$ac_ext
40546   #
40547   if test "$tst_links_strncmpi" = "yes"; then
40548     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
40549 $as_echo_n "checking if strncmpi is prototyped... " >&6; }
40550     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40551 /* end confdefs.h.  */
40552
40553       $curl_includes_string
40554
40555 _ACEOF
40556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40557   $EGREP "strncmpi" >/dev/null 2>&1; then :
40558
40559       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40560 $as_echo "yes" >&6; }
40561       tst_proto_strncmpi="yes"
40562
40563 else
40564
40565       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40566 $as_echo "no" >&6; }
40567       tst_proto_strncmpi="no"
40568
40569 fi
40570 rm -f conftest*
40571
40572   fi
40573   #
40574   if test "$tst_proto_strncmpi" = "yes"; then
40575     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
40576 $as_echo_n "checking if strncmpi is compilable... " >&6; }
40577     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40578 /* end confdefs.h.  */
40579
40580
40581         $curl_includes_string
40582
40583 int main (void)
40584 {
40585
40586         if(0 != strncmpi(0, 0))
40587           return 1;
40588
40589  ;
40590  return 0;
40591 }
40592
40593 _ACEOF
40594 if ac_fn_c_try_compile "$LINENO"; then :
40595
40596       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40597 $as_echo "yes" >&6; }
40598       tst_compi_strncmpi="yes"
40599
40600 else
40601
40602       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40603 $as_echo "no" >&6; }
40604       tst_compi_strncmpi="no"
40605
40606 fi
40607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40608   fi
40609   #
40610   if test "$tst_compi_strncmpi" = "yes"; then
40611     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
40612 $as_echo_n "checking if strncmpi usage allowed... " >&6; }
40613     if test "x$curl_disallow_strncmpi" != "xyes"; then
40614       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40615 $as_echo "yes" >&6; }
40616       tst_allow_strncmpi="yes"
40617     else
40618       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40619 $as_echo "no" >&6; }
40620       tst_allow_strncmpi="no"
40621     fi
40622   fi
40623   #
40624   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
40625 $as_echo_n "checking if strncmpi might be used... " >&6; }
40626   if test "$tst_links_strncmpi" = "yes" &&
40627      test "$tst_proto_strncmpi" = "yes" &&
40628      test "$tst_compi_strncmpi" = "yes" &&
40629      test "$tst_allow_strncmpi" = "yes"; then
40630     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40631 $as_echo "yes" >&6; }
40632
40633 cat >>confdefs.h <<_ACEOF
40634 #define HAVE_STRNCMPI 1
40635 _ACEOF
40636
40637     curl_cv_func_strncmpi="yes"
40638   else
40639     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40640 $as_echo "no" >&6; }
40641     curl_cv_func_strncmpi="no"
40642   fi
40643
40644
40645     #
40646   tst_links_strnicmp="unknown"
40647   tst_proto_strnicmp="unknown"
40648   tst_compi_strnicmp="unknown"
40649   tst_allow_strnicmp="unknown"
40650   #
40651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
40652 $as_echo_n "checking if strnicmp can be linked... " >&6; }
40653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40654 /* end confdefs.h.  */
40655
40656
40657 #define strnicmp innocuous_strnicmp
40658 #ifdef __STDC__
40659 # include <limits.h>
40660 #else
40661 # include <assert.h>
40662 #endif
40663 #undef strnicmp
40664 #ifdef __cplusplus
40665 extern "C"
40666 #endif
40667 char strnicmp ();
40668 #if defined __stub_strnicmp || defined __stub___strnicmp
40669 choke me
40670 #endif
40671
40672 int main (void)
40673 {
40674 return strnicmp ();
40675  ;
40676  return 0;
40677 }
40678
40679 _ACEOF
40680 if ac_fn_c_try_link "$LINENO"; then :
40681
40682     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40683 $as_echo "yes" >&6; }
40684     tst_links_strnicmp="yes"
40685
40686 else
40687
40688     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40689 $as_echo "no" >&6; }
40690     tst_links_strnicmp="no"
40691
40692 fi
40693 rm -f core conftest.err conftest.$ac_objext \
40694     conftest$ac_exeext conftest.$ac_ext
40695   #
40696   if test "$tst_links_strnicmp" = "yes"; then
40697     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
40698 $as_echo_n "checking if strnicmp is prototyped... " >&6; }
40699     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40700 /* end confdefs.h.  */
40701
40702       $curl_includes_string
40703
40704 _ACEOF
40705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40706   $EGREP "strnicmp" >/dev/null 2>&1; then :
40707
40708       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40709 $as_echo "yes" >&6; }
40710       tst_proto_strnicmp="yes"
40711
40712 else
40713
40714       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40715 $as_echo "no" >&6; }
40716       tst_proto_strnicmp="no"
40717
40718 fi
40719 rm -f conftest*
40720
40721   fi
40722   #
40723   if test "$tst_proto_strnicmp" = "yes"; then
40724     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
40725 $as_echo_n "checking if strnicmp is compilable... " >&6; }
40726     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40727 /* end confdefs.h.  */
40728
40729
40730         $curl_includes_string
40731
40732 int main (void)
40733 {
40734
40735         if(0 != strnicmp(0, 0))
40736           return 1;
40737
40738  ;
40739  return 0;
40740 }
40741
40742 _ACEOF
40743 if ac_fn_c_try_compile "$LINENO"; then :
40744
40745       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40746 $as_echo "yes" >&6; }
40747       tst_compi_strnicmp="yes"
40748
40749 else
40750
40751       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40752 $as_echo "no" >&6; }
40753       tst_compi_strnicmp="no"
40754
40755 fi
40756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40757   fi
40758   #
40759   if test "$tst_compi_strnicmp" = "yes"; then
40760     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
40761 $as_echo_n "checking if strnicmp usage allowed... " >&6; }
40762     if test "x$curl_disallow_strnicmp" != "xyes"; then
40763       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40764 $as_echo "yes" >&6; }
40765       tst_allow_strnicmp="yes"
40766     else
40767       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40768 $as_echo "no" >&6; }
40769       tst_allow_strnicmp="no"
40770     fi
40771   fi
40772   #
40773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
40774 $as_echo_n "checking if strnicmp might be used... " >&6; }
40775   if test "$tst_links_strnicmp" = "yes" &&
40776      test "$tst_proto_strnicmp" = "yes" &&
40777      test "$tst_compi_strnicmp" = "yes" &&
40778      test "$tst_allow_strnicmp" = "yes"; then
40779     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40780 $as_echo "yes" >&6; }
40781
40782 cat >>confdefs.h <<_ACEOF
40783 #define HAVE_STRNICMP 1
40784 _ACEOF
40785
40786     curl_cv_func_strnicmp="yes"
40787   else
40788     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40789 $as_echo "no" >&6; }
40790     curl_cv_func_strnicmp="no"
40791   fi
40792
40793
40794     #
40795   tst_links_strstr="unknown"
40796   tst_proto_strstr="unknown"
40797   tst_compi_strstr="unknown"
40798   tst_allow_strstr="unknown"
40799   #
40800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
40801 $as_echo_n "checking if strstr can be linked... " >&6; }
40802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40803 /* end confdefs.h.  */
40804
40805
40806 #define strstr innocuous_strstr
40807 #ifdef __STDC__
40808 # include <limits.h>
40809 #else
40810 # include <assert.h>
40811 #endif
40812 #undef strstr
40813 #ifdef __cplusplus
40814 extern "C"
40815 #endif
40816 char strstr ();
40817 #if defined __stub_strstr || defined __stub___strstr
40818 choke me
40819 #endif
40820
40821 int main (void)
40822 {
40823 return strstr ();
40824  ;
40825  return 0;
40826 }
40827
40828 _ACEOF
40829 if ac_fn_c_try_link "$LINENO"; then :
40830
40831     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40832 $as_echo "yes" >&6; }
40833     tst_links_strstr="yes"
40834
40835 else
40836
40837     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40838 $as_echo "no" >&6; }
40839     tst_links_strstr="no"
40840
40841 fi
40842 rm -f core conftest.err conftest.$ac_objext \
40843     conftest$ac_exeext conftest.$ac_ext
40844   #
40845   if test "$tst_links_strstr" = "yes"; then
40846     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
40847 $as_echo_n "checking if strstr is prototyped... " >&6; }
40848     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40849 /* end confdefs.h.  */
40850
40851       $curl_includes_string
40852
40853 _ACEOF
40854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40855   $EGREP "strstr" >/dev/null 2>&1; then :
40856
40857       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40858 $as_echo "yes" >&6; }
40859       tst_proto_strstr="yes"
40860
40861 else
40862
40863       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40864 $as_echo "no" >&6; }
40865       tst_proto_strstr="no"
40866
40867 fi
40868 rm -f conftest*
40869
40870   fi
40871   #
40872   if test "$tst_proto_strstr" = "yes"; then
40873     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
40874 $as_echo_n "checking if strstr is compilable... " >&6; }
40875     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40876 /* end confdefs.h.  */
40877
40878
40879         $curl_includes_string
40880
40881 int main (void)
40882 {
40883
40884         if(0 != strstr(0, 0))
40885           return 1;
40886
40887  ;
40888  return 0;
40889 }
40890
40891 _ACEOF
40892 if ac_fn_c_try_compile "$LINENO"; then :
40893
40894       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40895 $as_echo "yes" >&6; }
40896       tst_compi_strstr="yes"
40897
40898 else
40899
40900       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40901 $as_echo "no" >&6; }
40902       tst_compi_strstr="no"
40903
40904 fi
40905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40906   fi
40907   #
40908   if test "$tst_compi_strstr" = "yes"; then
40909     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
40910 $as_echo_n "checking if strstr usage allowed... " >&6; }
40911     if test "x$curl_disallow_strstr" != "xyes"; then
40912       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40913 $as_echo "yes" >&6; }
40914       tst_allow_strstr="yes"
40915     else
40916       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40917 $as_echo "no" >&6; }
40918       tst_allow_strstr="no"
40919     fi
40920   fi
40921   #
40922   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
40923 $as_echo_n "checking if strstr might be used... " >&6; }
40924   if test "$tst_links_strstr" = "yes" &&
40925      test "$tst_proto_strstr" = "yes" &&
40926      test "$tst_compi_strstr" = "yes" &&
40927      test "$tst_allow_strstr" = "yes"; then
40928     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40929 $as_echo "yes" >&6; }
40930
40931 cat >>confdefs.h <<_ACEOF
40932 #define HAVE_STRSTR 1
40933 _ACEOF
40934
40935     curl_cv_func_strstr="yes"
40936   else
40937     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40938 $as_echo "no" >&6; }
40939     curl_cv_func_strstr="no"
40940   fi
40941
40942
40943     #
40944   tst_links_strtok_r="unknown"
40945   tst_proto_strtok_r="unknown"
40946   tst_compi_strtok_r="unknown"
40947   tst_allow_strtok_r="unknown"
40948   #
40949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
40950 $as_echo_n "checking if strtok_r can be linked... " >&6; }
40951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40952 /* end confdefs.h.  */
40953
40954
40955 #define strtok_r innocuous_strtok_r
40956 #ifdef __STDC__
40957 # include <limits.h>
40958 #else
40959 # include <assert.h>
40960 #endif
40961 #undef strtok_r
40962 #ifdef __cplusplus
40963 extern "C"
40964 #endif
40965 char strtok_r ();
40966 #if defined __stub_strtok_r || defined __stub___strtok_r
40967 choke me
40968 #endif
40969
40970 int main (void)
40971 {
40972 return strtok_r ();
40973  ;
40974  return 0;
40975 }
40976
40977 _ACEOF
40978 if ac_fn_c_try_link "$LINENO"; then :
40979
40980     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40981 $as_echo "yes" >&6; }
40982     tst_links_strtok_r="yes"
40983
40984 else
40985
40986     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40987 $as_echo "no" >&6; }
40988     tst_links_strtok_r="no"
40989
40990 fi
40991 rm -f core conftest.err conftest.$ac_objext \
40992     conftest$ac_exeext conftest.$ac_ext
40993   #
40994   if test "$tst_links_strtok_r" = "yes"; then
40995     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
40996 $as_echo_n "checking if strtok_r is prototyped... " >&6; }
40997     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40998 /* end confdefs.h.  */
40999
41000       $curl_includes_string
41001
41002 _ACEOF
41003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41004   $EGREP "strtok_r" >/dev/null 2>&1; then :
41005
41006       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41007 $as_echo "yes" >&6; }
41008       tst_proto_strtok_r="yes"
41009
41010 else
41011
41012       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41013 $as_echo "no" >&6; }
41014       tst_proto_strtok_r="no"
41015
41016 fi
41017 rm -f conftest*
41018
41019   fi
41020   #
41021   if test "$tst_proto_strtok_r" = "yes"; then
41022     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
41023 $as_echo_n "checking if strtok_r is compilable... " >&6; }
41024     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41025 /* end confdefs.h.  */
41026
41027
41028         $curl_includes_string
41029
41030 int main (void)
41031 {
41032
41033         if(0 != strtok_r(0, 0, 0))
41034           return 1;
41035
41036  ;
41037  return 0;
41038 }
41039
41040 _ACEOF
41041 if ac_fn_c_try_compile "$LINENO"; then :
41042
41043       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41044 $as_echo "yes" >&6; }
41045       tst_compi_strtok_r="yes"
41046
41047 else
41048
41049       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41050 $as_echo "no" >&6; }
41051       tst_compi_strtok_r="no"
41052
41053 fi
41054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41055   fi
41056   #
41057   if test "$tst_compi_strtok_r" = "yes"; then
41058     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
41059 $as_echo_n "checking if strtok_r usage allowed... " >&6; }
41060     if test "x$curl_disallow_strtok_r" != "xyes"; then
41061       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41062 $as_echo "yes" >&6; }
41063       tst_allow_strtok_r="yes"
41064     else
41065       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41066 $as_echo "no" >&6; }
41067       tst_allow_strtok_r="no"
41068     fi
41069   fi
41070   #
41071   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
41072 $as_echo_n "checking if strtok_r might be used... " >&6; }
41073   if test "$tst_links_strtok_r" = "yes" &&
41074      test "$tst_proto_strtok_r" = "yes" &&
41075      test "$tst_compi_strtok_r" = "yes" &&
41076      test "$tst_allow_strtok_r" = "yes"; then
41077     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41078 $as_echo "yes" >&6; }
41079
41080 cat >>confdefs.h <<_ACEOF
41081 #define HAVE_STRTOK_R 1
41082 _ACEOF
41083
41084     curl_cv_func_strtok_r="yes"
41085   else
41086     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41087 $as_echo "no" >&6; }
41088     curl_cv_func_strtok_r="no"
41089   fi
41090
41091
41092     #
41093   tst_links_strtoll="unknown"
41094   tst_proto_strtoll="unknown"
41095   tst_compi_strtoll="unknown"
41096   tst_allow_strtoll="unknown"
41097   #
41098   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
41099 $as_echo_n "checking if strtoll can be linked... " >&6; }
41100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41101 /* end confdefs.h.  */
41102
41103
41104 #define strtoll innocuous_strtoll
41105 #ifdef __STDC__
41106 # include <limits.h>
41107 #else
41108 # include <assert.h>
41109 #endif
41110 #undef strtoll
41111 #ifdef __cplusplus
41112 extern "C"
41113 #endif
41114 char strtoll ();
41115 #if defined __stub_strtoll || defined __stub___strtoll
41116 choke me
41117 #endif
41118
41119 int main (void)
41120 {
41121 return strtoll ();
41122  ;
41123  return 0;
41124 }
41125
41126 _ACEOF
41127 if ac_fn_c_try_link "$LINENO"; then :
41128
41129     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41130 $as_echo "yes" >&6; }
41131     tst_links_strtoll="yes"
41132
41133 else
41134
41135     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41136 $as_echo "no" >&6; }
41137     tst_links_strtoll="no"
41138
41139 fi
41140 rm -f core conftest.err conftest.$ac_objext \
41141     conftest$ac_exeext conftest.$ac_ext
41142   #
41143   if test "$tst_links_strtoll" = "yes"; then
41144     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
41145 $as_echo_n "checking if strtoll is prototyped... " >&6; }
41146     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41147 /* end confdefs.h.  */
41148
41149       $curl_includes_stdlib
41150
41151 _ACEOF
41152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41153   $EGREP "strtoll" >/dev/null 2>&1; then :
41154
41155       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41156 $as_echo "yes" >&6; }
41157       tst_proto_strtoll="yes"
41158
41159 else
41160
41161       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41162 $as_echo "no" >&6; }
41163       tst_proto_strtoll="no"
41164
41165 fi
41166 rm -f conftest*
41167
41168   fi
41169   #
41170   if test "$tst_proto_strtoll" = "yes"; then
41171     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
41172 $as_echo_n "checking if strtoll is compilable... " >&6; }
41173     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41174 /* end confdefs.h.  */
41175
41176
41177         $curl_includes_stdlib
41178
41179 int main (void)
41180 {
41181
41182         if(0 != strtoll(0, 0, 0))
41183           return 1;
41184
41185  ;
41186  return 0;
41187 }
41188
41189 _ACEOF
41190 if ac_fn_c_try_compile "$LINENO"; then :
41191
41192       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41193 $as_echo "yes" >&6; }
41194       tst_compi_strtoll="yes"
41195
41196 else
41197
41198       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41199 $as_echo "no" >&6; }
41200       tst_compi_strtoll="no"
41201
41202 fi
41203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41204   fi
41205   #
41206   if test "$tst_compi_strtoll" = "yes"; then
41207     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
41208 $as_echo_n "checking if strtoll usage allowed... " >&6; }
41209     if test "x$curl_disallow_strtoll" != "xyes"; then
41210       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41211 $as_echo "yes" >&6; }
41212       tst_allow_strtoll="yes"
41213     else
41214       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41215 $as_echo "no" >&6; }
41216       tst_allow_strtoll="no"
41217     fi
41218   fi
41219   #
41220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
41221 $as_echo_n "checking if strtoll might be used... " >&6; }
41222   if test "$tst_links_strtoll" = "yes" &&
41223      test "$tst_proto_strtoll" = "yes" &&
41224      test "$tst_compi_strtoll" = "yes" &&
41225      test "$tst_allow_strtoll" = "yes"; then
41226     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41227 $as_echo "yes" >&6; }
41228
41229 cat >>confdefs.h <<_ACEOF
41230 #define HAVE_STRTOLL 1
41231 _ACEOF
41232
41233     curl_cv_func_strtoll="yes"
41234   else
41235     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41236 $as_echo "no" >&6; }
41237     curl_cv_func_strtoll="no"
41238   fi
41239
41240
41241 curl_includes_sys_uio="\
41242 /* includes start */
41243 #ifdef HAVE_SYS_TYPES_H
41244 #  include <sys/types.h>
41245 #endif
41246 #ifdef HAVE_SYS_UIO_H
41247 #  include <sys/uio.h>
41248 #endif
41249 /* includes end */"
41250   for ac_header in sys/types.h sys/uio.h
41251 do :
41252   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
41253 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
41254 "
41255 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
41256   cat >>confdefs.h <<_ACEOF
41257 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
41258 _ACEOF
41259
41260 fi
41261
41262 done
41263
41264
41265
41266     #
41267   tst_links_writev="unknown"
41268   tst_proto_writev="unknown"
41269   tst_compi_writev="unknown"
41270   tst_allow_writev="unknown"
41271   #
41272   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
41273 $as_echo_n "checking if writev can be linked... " >&6; }
41274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41275 /* end confdefs.h.  */
41276
41277
41278 #define writev innocuous_writev
41279 #ifdef __STDC__
41280 # include <limits.h>
41281 #else
41282 # include <assert.h>
41283 #endif
41284 #undef writev
41285 #ifdef __cplusplus
41286 extern "C"
41287 #endif
41288 char writev ();
41289 #if defined __stub_writev || defined __stub___writev
41290 choke me
41291 #endif
41292
41293 int main (void)
41294 {
41295 return writev ();
41296  ;
41297  return 0;
41298 }
41299
41300 _ACEOF
41301 if ac_fn_c_try_link "$LINENO"; then :
41302
41303     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41304 $as_echo "yes" >&6; }
41305     tst_links_writev="yes"
41306
41307 else
41308
41309     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41310 $as_echo "no" >&6; }
41311     tst_links_writev="no"
41312
41313 fi
41314 rm -f core conftest.err conftest.$ac_objext \
41315     conftest$ac_exeext conftest.$ac_ext
41316   #
41317   if test "$tst_links_writev" = "yes"; then
41318     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
41319 $as_echo_n "checking if writev is prototyped... " >&6; }
41320     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41321 /* end confdefs.h.  */
41322
41323       $curl_includes_sys_uio
41324
41325 _ACEOF
41326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41327   $EGREP "writev" >/dev/null 2>&1; then :
41328
41329       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41330 $as_echo "yes" >&6; }
41331       tst_proto_writev="yes"
41332
41333 else
41334
41335       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41336 $as_echo "no" >&6; }
41337       tst_proto_writev="no"
41338
41339 fi
41340 rm -f conftest*
41341
41342   fi
41343   #
41344   if test "$tst_proto_writev" = "yes"; then
41345     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
41346 $as_echo_n "checking if writev is compilable... " >&6; }
41347     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41348 /* end confdefs.h.  */
41349
41350
41351         $curl_includes_sys_uio
41352
41353 int main (void)
41354 {
41355
41356         if(0 != writev(0, 0, 0))
41357           return 1;
41358
41359  ;
41360  return 0;
41361 }
41362
41363 _ACEOF
41364 if ac_fn_c_try_compile "$LINENO"; then :
41365
41366       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41367 $as_echo "yes" >&6; }
41368       tst_compi_writev="yes"
41369
41370 else
41371
41372       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41373 $as_echo "no" >&6; }
41374       tst_compi_writev="no"
41375
41376 fi
41377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41378   fi
41379   #
41380   if test "$tst_compi_writev" = "yes"; then
41381     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
41382 $as_echo_n "checking if writev usage allowed... " >&6; }
41383     if test "x$curl_disallow_writev" != "xyes"; then
41384       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41385 $as_echo "yes" >&6; }
41386       tst_allow_writev="yes"
41387     else
41388       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41389 $as_echo "no" >&6; }
41390       tst_allow_writev="no"
41391     fi
41392   fi
41393   #
41394   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
41395 $as_echo_n "checking if writev might be used... " >&6; }
41396   if test "$tst_links_writev" = "yes" &&
41397      test "$tst_proto_writev" = "yes" &&
41398      test "$tst_compi_writev" = "yes" &&
41399      test "$tst_allow_writev" = "yes"; then
41400     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41401 $as_echo "yes" >&6; }
41402
41403 cat >>confdefs.h <<_ACEOF
41404 #define HAVE_WRITEV 1
41405 _ACEOF
41406
41407     curl_cv_func_writev="yes"
41408   else
41409     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41410 $as_echo "no" >&6; }
41411     curl_cv_func_writev="no"
41412   fi
41413
41414
41415 case $host in
41416   *msdosdjgpp)
41417      ac_cv_func_pipe=no
41418      skipcheck_pipe=yes
41419      { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
41420 $as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
41421     ;;
41422 esac
41423
41424 ac_fn_c_check_decl "$LINENO" "getpwuid_r" "ac_cv_have_decl_getpwuid_r" "#include <pwd.h>
41425           #include <sys/types.h>
41426 "
41427 if test "x$ac_cv_have_decl_getpwuid_r" = xyes; then :
41428   ac_have_decl=1
41429 else
41430   ac_have_decl=0
41431 fi
41432
41433 cat >>confdefs.h <<_ACEOF
41434 #define HAVE_DECL_GETPWUID_R $ac_have_decl
41435 _ACEOF
41436 if test $ac_have_decl = 1; then :
41437
41438 else
41439
41440 $as_echo "#define HAVE_DECL_GETPWUID_R_MISSING 1" >>confdefs.h
41441
41442 fi
41443
41444
41445
41446 for ac_func in fnmatch \
41447   geteuid \
41448   getpass_r \
41449   getppid \
41450   getpwuid \
41451   getpwuid_r \
41452   getrlimit \
41453   gettimeofday \
41454   if_nametoindex \
41455   mach_absolute_time \
41456   pipe \
41457   setlocale \
41458   setmode \
41459   setrlimit \
41460   usleep \
41461   utime \
41462   utimes
41463
41464 do :
41465   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41466 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
41467 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
41468   cat >>confdefs.h <<_ACEOF
41469 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41470 _ACEOF
41471
41472
41473 else
41474
41475   func="$ac_func"
41476   eval skipcheck=\$skipcheck_$func
41477   if test "x$skipcheck" != "xyes"; then
41478     { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
41479 $as_echo_n "checking deeper for $func... " >&6; }
41480     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41481 /* end confdefs.h.  */
41482
41483
41484
41485 int main (void)
41486 {
41487
41488         $func ();
41489
41490  ;
41491  return 0;
41492 }
41493
41494 _ACEOF
41495 if ac_fn_c_try_link "$LINENO"; then :
41496
41497       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41498 $as_echo "yes" >&6; }
41499       eval "ac_cv_func_$func=yes"
41500
41501 cat >>confdefs.h <<_ACEOF
41502 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
41503 _ACEOF
41504
41505
41506 else
41507
41508       { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
41509 $as_echo "but still no" >&6; }
41510
41511 fi
41512 rm -f core conftest.err conftest.$ac_objext \
41513     conftest$ac_exeext conftest.$ac_ext
41514   fi
41515
41516 fi
41517 done
41518
41519
41520
41521             #
41522   tst_method="unknown"
41523
41524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
41525 $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
41526   if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
41527     tst_method="fcntl O_NONBLOCK"
41528   elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
41529     tst_method="ioctl FIONBIO"
41530   elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
41531     tst_method="ioctlsocket FIONBIO"
41532   elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
41533     tst_method="IoctlSocket FIONBIO"
41534   elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
41535     tst_method="setsockopt SO_NONBLOCK"
41536   fi
41537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
41538 $as_echo "$tst_method" >&6; }
41539   if test "$tst_method" = "unknown"; then
41540     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
41541 $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
41542   fi
41543
41544
41545
41546 # Extract the first word of "perl", so it can be a program name with args.
41547 set dummy perl; ac_word=$2
41548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
41549 $as_echo_n "checking for $ac_word... " >&6; }
41550 if ${ac_cv_path_PERL+:} false; then :
41551   $as_echo_n "(cached) " >&6
41552 else
41553   case $PERL in
41554   [\\/]* | ?:[\\/]*)
41555   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
41556   ;;
41557   *)
41558   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41559 as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
41560 for as_dir in $as_dummy
41561 do
41562   IFS=$as_save_IFS
41563   test -z "$as_dir" && as_dir=.
41564     for ac_exec_ext in '' $ac_executable_extensions; do
41565   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41566     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
41567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
41568     break 2
41569   fi
41570 done
41571   done
41572 IFS=$as_save_IFS
41573
41574   ;;
41575 esac
41576 fi
41577 PERL=$ac_cv_path_PERL
41578 if test -n "$PERL"; then
41579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
41580 $as_echo "$PERL" >&6; }
41581 else
41582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41583 $as_echo "no" >&6; }
41584 fi
41585
41586
41587
41588
41589 for ac_prog in gnroff nroff
41590 do
41591   # Extract the first word of "$ac_prog", so it can be a program name with args.
41592 set dummy $ac_prog; ac_word=$2
41593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
41594 $as_echo_n "checking for $ac_word... " >&6; }
41595 if ${ac_cv_path_NROFF+:} false; then :
41596   $as_echo_n "(cached) " >&6
41597 else
41598   case $NROFF in
41599   [\\/]* | ?:[\\/]*)
41600   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
41601   ;;
41602   *)
41603   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41604 as_dummy="$PATH:/usr/bin/:/usr/local/bin "
41605 for as_dir in $as_dummy
41606 do
41607   IFS=$as_save_IFS
41608   test -z "$as_dir" && as_dir=.
41609     for ac_exec_ext in '' $ac_executable_extensions; do
41610   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41611     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
41612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
41613     break 2
41614   fi
41615 done
41616   done
41617 IFS=$as_save_IFS
41618
41619   ;;
41620 esac
41621 fi
41622 NROFF=$ac_cv_path_NROFF
41623 if test -n "$NROFF"; then
41624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
41625 $as_echo "$NROFF" >&6; }
41626 else
41627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41628 $as_echo "no" >&6; }
41629 fi
41630
41631
41632   test -n "$NROFF" && break
41633 done
41634
41635
41636
41637 if test -n "$NROFF"; then
41638
41639   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
41640 $as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
41641   MANOPT="-man"
41642   mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
41643   if test -z "$mancheck"; then
41644     MANOPT="-mandoc"
41645    mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
41646     if test -z "$mancheck"; then
41647       MANOPT=""
41648       { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
41649 $as_echo "failed" >&6; }
41650       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
41651 $as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
41652     else
41653       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
41654 $as_echo "$MANOPT" >&6; }
41655     fi
41656   else
41657     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
41658 $as_echo "$MANOPT" >&6; }
41659   fi
41660
41661 fi
41662
41663 if test -z "$MANOPT"
41664 then
41665       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
41666 $as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
41667   USE_MANUAL="no";
41668 fi
41669
41670
41671 if test "$USE_MANUAL" = "1"; then
41672
41673 $as_echo "#define USE_MANUAL 1" >>confdefs.h
41674
41675   curl_manual_msg="enabled"
41676 fi
41677
41678  if test x"$USE_MANUAL" = x1; then
41679   USE_MANUAL_TRUE=
41680   USE_MANUAL_FALSE='#'
41681 else
41682   USE_MANUAL_TRUE='#'
41683   USE_MANUAL_FALSE=
41684 fi
41685
41686
41687
41688
41689
41690   #
41691   if test "$want_ares" = "yes"; then
41692         clean_CPPFLAGS="$CPPFLAGS"
41693     clean_LDFLAGS="$LDFLAGS"
41694     clean_LIBS="$LIBS"
41695     embedded_ares="unknown"
41696     configure_runpath=`pwd`
41697     embedded_ares_builddir="$configure_runpath/ares"
41698     if test -n "$want_ares_path"; then
41699             ARES_PCDIR="$want_ares_path/lib/pkgconfig"
41700
41701     if test -n "$PKG_CONFIG"; then
41702       PKGCONFIG="$PKG_CONFIG"
41703     else
41704       if test -n "$ac_tool_prefix"; then
41705   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
41706 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
41707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
41708 $as_echo_n "checking for $ac_word... " >&6; }
41709 if ${ac_cv_path_PKGCONFIG+:} false; then :
41710   $as_echo_n "(cached) " >&6
41711 else
41712   case $PKGCONFIG in
41713   [\\/]* | ?:[\\/]*)
41714   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
41715   ;;
41716   *)
41717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41718 as_dummy="$PATH:/usr/bin:/usr/local/bin"
41719 for as_dir in $as_dummy
41720 do
41721   IFS=$as_save_IFS
41722   test -z "$as_dir" && as_dir=.
41723     for ac_exec_ext in '' $ac_executable_extensions; do
41724   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41725     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
41726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
41727     break 2
41728   fi
41729 done
41730   done
41731 IFS=$as_save_IFS
41732
41733   ;;
41734 esac
41735 fi
41736 PKGCONFIG=$ac_cv_path_PKGCONFIG
41737 if test -n "$PKGCONFIG"; then
41738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
41739 $as_echo "$PKGCONFIG" >&6; }
41740 else
41741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41742 $as_echo "no" >&6; }
41743 fi
41744
41745
41746 fi
41747 if test -z "$ac_cv_path_PKGCONFIG"; then
41748   ac_pt_PKGCONFIG=$PKGCONFIG
41749   # Extract the first word of "pkg-config", so it can be a program name with args.
41750 set dummy pkg-config; ac_word=$2
41751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
41752 $as_echo_n "checking for $ac_word... " >&6; }
41753 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
41754   $as_echo_n "(cached) " >&6
41755 else
41756   case $ac_pt_PKGCONFIG in
41757   [\\/]* | ?:[\\/]*)
41758   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
41759   ;;
41760   *)
41761   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41762 as_dummy="$PATH:/usr/bin:/usr/local/bin"
41763 for as_dir in $as_dummy
41764 do
41765   IFS=$as_save_IFS
41766   test -z "$as_dir" && as_dir=.
41767     for ac_exec_ext in '' $ac_executable_extensions; do
41768   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41769     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
41770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
41771     break 2
41772   fi
41773 done
41774   done
41775 IFS=$as_save_IFS
41776
41777   ;;
41778 esac
41779 fi
41780 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
41781 if test -n "$ac_pt_PKGCONFIG"; then
41782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
41783 $as_echo "$ac_pt_PKGCONFIG" >&6; }
41784 else
41785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41786 $as_echo "no" >&6; }
41787 fi
41788
41789   if test "x$ac_pt_PKGCONFIG" = x; then
41790     PKGCONFIG="no"
41791   else
41792     case $cross_compiling:$ac_tool_warned in
41793 yes:)
41794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
41795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
41796 ac_tool_warned=yes ;;
41797 esac
41798     PKGCONFIG=$ac_pt_PKGCONFIG
41799   fi
41800 else
41801   PKGCONFIG="$ac_cv_path_PKGCONFIG"
41802 fi
41803
41804     fi
41805
41806     if test "x$PKGCONFIG" != "xno"; then
41807       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
41808 $as_echo_n "checking for libcares options with pkg-config... " >&6; }
41809             itexists=`
41810     if test -n "$ARES_PCDIR"; then
41811       PKG_CONFIG_LIBDIR="$ARES_PCDIR"
41812       export PKG_CONFIG_LIBDIR
41813     fi
41814          $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
41815
41816       if test -z "$itexists"; then
41817                         PKGCONFIG="no"
41818         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41819 $as_echo "no" >&6; }
41820       else
41821         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
41822 $as_echo "found" >&6; }
41823       fi
41824     fi
41825
41826       if test "$PKGCONFIG" != "no" ; then
41827         ares_LIBS=`
41828     if test -n "$ARES_PCDIR"; then
41829       PKG_CONFIG_LIBDIR="$ARES_PCDIR"
41830       export PKG_CONFIG_LIBDIR
41831     fi
41832
41833           $PKGCONFIG --libs-only-l libcares`
41834         ares_LDFLAGS=`
41835     if test -n "$ARES_PCDIR"; then
41836       PKG_CONFIG_LIBDIR="$ARES_PCDIR"
41837       export PKG_CONFIG_LIBDIR
41838     fi
41839
41840           $PKGCONFIG --libs-only-L libcares`
41841         ares_CPPFLAGS=`
41842     if test -n "$ARES_PCDIR"; then
41843       PKG_CONFIG_LIBDIR="$ARES_PCDIR"
41844       export PKG_CONFIG_LIBDIR
41845     fi
41846
41847           $PKGCONFIG --cflags-only-I libcares`
41848         { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares LIBS: \"$ares_LIBS\"" >&5
41849 $as_echo "$as_me: pkg-config: ares LIBS: \"$ares_LIBS\"" >&6;}
41850         { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&5
41851 $as_echo "$as_me: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
41852         { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
41853 $as_echo "$as_me: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
41854       else
41855                 ares_CPPFLAGS="-I$want_ares_path/include"
41856         ares_LDFLAGS="-L$want_ares_path/lib"
41857         ares_LIBS="-lcares"
41858       fi
41859     else
41860             if test -d "$srcdir/ares"; then
41861                 embedded_ares="yes"
41862         subdirs="$subdirs ares"
41863
41864                         ares_CPPFLAGS=""
41865         ares_LDFLAGS="-L$embedded_ares_builddir"
41866         ares_LIBS="-lcares"
41867       else
41868
41869     if test -n "$PKG_CONFIG"; then
41870       PKGCONFIG="$PKG_CONFIG"
41871     else
41872       if test -n "$ac_tool_prefix"; then
41873   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
41874 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
41875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
41876 $as_echo_n "checking for $ac_word... " >&6; }
41877 if ${ac_cv_path_PKGCONFIG+:} false; then :
41878   $as_echo_n "(cached) " >&6
41879 else
41880   case $PKGCONFIG in
41881   [\\/]* | ?:[\\/]*)
41882   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
41883   ;;
41884   *)
41885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41886 as_dummy="$PATH:/usr/bin:/usr/local/bin"
41887 for as_dir in $as_dummy
41888 do
41889   IFS=$as_save_IFS
41890   test -z "$as_dir" && as_dir=.
41891     for ac_exec_ext in '' $ac_executable_extensions; do
41892   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41893     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
41894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
41895     break 2
41896   fi
41897 done
41898   done
41899 IFS=$as_save_IFS
41900
41901   ;;
41902 esac
41903 fi
41904 PKGCONFIG=$ac_cv_path_PKGCONFIG
41905 if test -n "$PKGCONFIG"; then
41906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
41907 $as_echo "$PKGCONFIG" >&6; }
41908 else
41909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41910 $as_echo "no" >&6; }
41911 fi
41912
41913
41914 fi
41915 if test -z "$ac_cv_path_PKGCONFIG"; then
41916   ac_pt_PKGCONFIG=$PKGCONFIG
41917   # Extract the first word of "pkg-config", so it can be a program name with args.
41918 set dummy pkg-config; ac_word=$2
41919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
41920 $as_echo_n "checking for $ac_word... " >&6; }
41921 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
41922   $as_echo_n "(cached) " >&6
41923 else
41924   case $ac_pt_PKGCONFIG in
41925   [\\/]* | ?:[\\/]*)
41926   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
41927   ;;
41928   *)
41929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41930 as_dummy="$PATH:/usr/bin:/usr/local/bin"
41931 for as_dir in $as_dummy
41932 do
41933   IFS=$as_save_IFS
41934   test -z "$as_dir" && as_dir=.
41935     for ac_exec_ext in '' $ac_executable_extensions; do
41936   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41937     ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
41938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
41939     break 2
41940   fi
41941 done
41942   done
41943 IFS=$as_save_IFS
41944
41945   ;;
41946 esac
41947 fi
41948 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
41949 if test -n "$ac_pt_PKGCONFIG"; then
41950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
41951 $as_echo "$ac_pt_PKGCONFIG" >&6; }
41952 else
41953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41954 $as_echo "no" >&6; }
41955 fi
41956
41957   if test "x$ac_pt_PKGCONFIG" = x; then
41958     PKGCONFIG="no"
41959   else
41960     case $cross_compiling:$ac_tool_warned in
41961 yes:)
41962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
41963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
41964 ac_tool_warned=yes ;;
41965 esac
41966     PKGCONFIG=$ac_pt_PKGCONFIG
41967   fi
41968 else
41969   PKGCONFIG="$ac_cv_path_PKGCONFIG"
41970 fi
41971
41972     fi
41973
41974     if test "x$PKGCONFIG" != "xno"; then
41975       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
41976 $as_echo_n "checking for libcares options with pkg-config... " >&6; }
41977             itexists=`
41978     if test -n ""; then
41979       PKG_CONFIG_LIBDIR=""
41980       export PKG_CONFIG_LIBDIR
41981     fi
41982          $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
41983
41984       if test -z "$itexists"; then
41985                         PKGCONFIG="no"
41986         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41987 $as_echo "no" >&6; }
41988       else
41989         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
41990 $as_echo "found" >&6; }
41991       fi
41992     fi
41993
41994         if test "$PKGCONFIG" != "no" ; then
41995           ares_LIBS=`$PKGCONFIG --libs-only-l libcares`
41996           ares_LDFLAGS=`$PKGCONFIG --libs-only-L libcares`
41997           ares_CPPFLAGS=`$PKGCONFIG --cflags-only-I libcares`
41998           { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&5
41999 $as_echo "$as_me: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&6;}
42000           { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&5
42001 $as_echo "$as_me: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
42002           { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
42003 $as_echo "$as_me: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
42004         else
42005           ares_CPPFLAGS=""
42006           ares_LDFLAGS=""
42007           ares_LIBS="-lcares"
42008         fi
42009       fi
42010     fi
42011     #
42012     CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
42013     LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
42014     LIBS="$ares_LIBS $clean_LIBS"
42015     #
42016     if test "$embedded_ares" != "yes"; then
42017                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
42018 $as_echo_n "checking that c-ares is good and recent enough... " >&6; }
42019       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42020 /* end confdefs.h.  */
42021
42022
42023 #include <ares.h>
42024           /* set of dummy functions in case c-ares was built with debug */
42025           void curl_dofree() { }
42026           void curl_sclose() { }
42027           void curl_domalloc() { }
42028           void curl_docalloc() { }
42029           void curl_socket() { }
42030
42031 int main (void)
42032 {
42033
42034           ares_channel channel;
42035           ares_cancel(channel); /* added in 1.2.0 */
42036           ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
42037           ares_dup(&channel, channel); /* added in 1.6.0 */
42038
42039  ;
42040  return 0;
42041 }
42042
42043 _ACEOF
42044 if ac_fn_c_try_link "$LINENO"; then :
42045
42046         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42047 $as_echo "yes" >&6; }
42048
42049 else
42050
42051         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42052 $as_echo "no" >&6; }
42053         as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
42054                 CPPFLAGS="$clean_CPPFLAGS"
42055         LDFLAGS="$clean_LDFLAGS"
42056         LIBS="$clean_LIBS"
42057         # prevent usage
42058         want_ares="no"
42059
42060 fi
42061 rm -f core conftest.err conftest.$ac_objext \
42062     conftest$ac_exeext conftest.$ac_ext
42063     fi
42064     if test "$want_ares" = "yes"; then
42065
42066 $as_echo "#define USE_ARES 1" >>confdefs.h
42067
42068       USE_ARES=1
42069
42070       curl_res_msg="c-ares"
42071     fi
42072   fi
42073
42074  if test x$embedded_ares = xyes; then
42075   USE_EMBEDDED_ARES_TRUE=
42076   USE_EMBEDDED_ARES_FALSE='#'
42077 else
42078   USE_EMBEDDED_ARES_TRUE='#'
42079   USE_EMBEDDED_ARES_FALSE=
42080 fi
42081
42082
42083 if test "x$curl_cv_native_windows" != "xyes" &&
42084    test "x$enable_shared" = "xyes"; then
42085   build_libhostname=yes
42086 else
42087   build_libhostname=no
42088 fi
42089  if test x$build_libhostname = xyes; then
42090   BUILD_LIBHOSTNAME_TRUE=
42091   BUILD_LIBHOSTNAME_FALSE='#'
42092 else
42093   BUILD_LIBHOSTNAME_TRUE='#'
42094   BUILD_LIBHOSTNAME_FALSE=
42095 fi
42096
42097
42098 if test "x$want_ares" != xyes; then
42099
42100   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
42101 $as_echo_n "checking whether to enable the threaded resolver... " >&6; }
42102   OPT_THRES="default"
42103   # Check whether --enable-threaded_resolver was given.
42104 if test "${enable_threaded_resolver+set}" = set; then :
42105   enableval=$enable_threaded_resolver; OPT_THRES=$enableval
42106 fi
42107
42108   case "$OPT_THRES" in
42109     no)
42110             want_thres="no"
42111       ;;
42112     *)
42113             want_thres="yes"
42114       ;;
42115   esac
42116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
42117 $as_echo "$want_thres" >&6; }
42118
42119 fi
42120
42121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
42122 $as_echo_n "checking whether to use POSIX threads for threaded resolver... " >&6; }
42123 # Check whether --enable-pthreads was given.
42124 if test "${enable_pthreads+set}" = set; then :
42125   enableval=$enable_pthreads;  case "$enableval" in
42126   no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42127 $as_echo "no" >&6; }
42128        want_pthreads=no
42129        ;;
42130   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42131 $as_echo "yes" >&6; }
42132        want_pthreads=yes
42133        ;;
42134   esac
42135 else
42136
42137        { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
42138 $as_echo "auto" >&6; }
42139        want_pthreads=auto
42140
42141
42142 fi
42143
42144
42145 if test "$want_pthreads" != "no"; then
42146   if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
42147     as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
42148   fi
42149   if test "$dontwant_rt" != "no"; then
42150         if test "$want_pthreads" = "yes"; then
42151       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
42152 $as_echo "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
42153     fi
42154     want_pthreads=no
42155   fi
42156 fi
42157
42158 if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
42159   want_pthreads=no
42160 fi
42161
42162 if test "$want_pthreads" != "no"; then
42163   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
42164 if test "x$ac_cv_header_pthread_h" = xyes; then :
42165
42166 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
42167
42168       save_CFLAGS="$CFLAGS"
42169
42170             ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
42171 if test "x$ac_cv_func_pthread_create" = xyes; then :
42172   USE_THREADS_POSIX=1
42173 fi
42174
42175
42176             case $host in
42177       *-hp-hpux*)
42178                   USE_THREADS_POSIX=""
42179          ;;
42180       *)
42181          ;;
42182       esac
42183
42184             if test "$USE_THREADS_POSIX" != "1"
42185       then
42186         CFLAGS="$CFLAGS -pthread"
42187         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
42188 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
42189 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
42190   $as_echo_n "(cached) " >&6
42191 else
42192   ac_check_lib_save_LIBS=$LIBS
42193 LIBS="-lpthread  $LIBS"
42194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42195 /* end confdefs.h.  */
42196
42197
42198 #ifdef __cplusplus
42199 extern "C"
42200 #endif
42201 char pthread_create ();
42202 int main (void)
42203 {
42204 return pthread_create ();
42205  ;
42206  return 0;
42207 }
42208 _ACEOF
42209 if ac_fn_c_try_link "$LINENO"; then :
42210   ac_cv_lib_pthread_pthread_create=yes
42211 else
42212   ac_cv_lib_pthread_pthread_create=no
42213 fi
42214 rm -f core conftest.err conftest.$ac_objext \
42215     conftest$ac_exeext conftest.$ac_ext
42216 LIBS=$ac_check_lib_save_LIBS
42217 fi
42218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
42219 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
42220 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
42221   USE_THREADS_POSIX=1
42222 else
42223    CFLAGS="$save_CFLAGS"
42224 fi
42225
42226       fi
42227
42228       if test "x$USE_THREADS_POSIX" = "x1"
42229       then
42230
42231 $as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
42232
42233         curl_res_msg="POSIX threaded"
42234       fi
42235
42236 fi
42237
42238
42239 fi
42240
42241 if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
42242   if test "$want_pthreads" = "yes"; then
42243     as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
42244   fi
42245     if test "$curl_cv_native_windows" = "yes"; then
42246     USE_THREADS_WIN32=1
42247
42248 $as_echo "#define USE_THREADS_WIN32 1" >>confdefs.h
42249
42250     curl_res_msg="Win32 threaded"
42251   else
42252     as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
42253   fi
42254 fi
42255
42256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
42257 $as_echo_n "checking whether to enable verbose strings... " >&6; }
42258 # Check whether --enable-verbose was given.
42259 if test "${enable_verbose+set}" = set; then :
42260   enableval=$enable_verbose;  case "$enableval" in
42261   no)
42262        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42263 $as_echo "no" >&6; }
42264
42265 $as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
42266
42267        curl_verbose_msg="no"
42268        ;;
42269   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42270 $as_echo "yes" >&6; }
42271        ;;
42272   esac
42273 else
42274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42275 $as_echo "yes" >&6; }
42276
42277 fi
42278
42279
42280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
42281 $as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
42282 # Check whether --enable-sspi was given.
42283 if test "${enable_sspi+set}" = set; then :
42284   enableval=$enable_sspi;  case "$enableval" in
42285   yes)
42286        if test "$curl_cv_native_windows" = "yes"; then
42287          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42288 $as_echo "yes" >&6; }
42289
42290 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
42291
42292          USE_WINDOWS_SSPI=1
42293
42294          curl_sspi_msg="enabled"
42295        else
42296          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42297 $as_echo "no" >&6; }
42298          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
42299 $as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
42300        fi
42301        ;;
42302   *)
42303        if test "x$WINSSL_ENABLED" = "x1"; then
42304          # --with-winssl implies --enable-sspi
42305          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42306 $as_echo "yes" >&6; }
42307        else
42308          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42309 $as_echo "no" >&6; }
42310        fi
42311        ;;
42312   esac
42313 else
42314   if test "x$WINSSL_ENABLED" = "x1"; then
42315          # --with-winssl implies --enable-sspi
42316          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42317 $as_echo "yes" >&6; }
42318        else
42319          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42320 $as_echo "no" >&6; }
42321        fi
42322
42323 fi
42324
42325
42326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
42327 $as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
42328 # Check whether --enable-crypto-auth was given.
42329 if test "${enable_crypto_auth+set}" = set; then :
42330   enableval=$enable_crypto_auth;  case "$enableval" in
42331   no)
42332        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42333 $as_echo "no" >&6; }
42334
42335 $as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
42336
42337        CURL_DISABLE_CRYPTO_AUTH=1
42338        ;;
42339   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42340 $as_echo "yes" >&6; }
42341        ;;
42342   esac
42343 else
42344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42345 $as_echo "yes" >&6; }
42346
42347 fi
42348
42349
42350
42351     OPT_NTLM_WB="default"
42352   # Check whether --enable-ntlm-wb was given.
42353 if test "${enable_ntlm_wb+set}" = set; then :
42354   enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
42355 fi
42356
42357   want_ntlm_wb_file="/usr/bin/ntlm_auth"
42358   case "$OPT_NTLM_WB" in
42359     no)
42360             want_ntlm_wb="no"
42361       ;;
42362     default)
42363             want_ntlm_wb="yes"
42364       ;;
42365     *)
42366             want_ntlm_wb="yes"
42367       if test -n "$enableval" && test "$enableval" != "yes"; then
42368         want_ntlm_wb_file="$enableval"
42369       fi
42370       ;;
42371   esac
42372
42373
42374
42375       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
42376 $as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
42377   if test "$curl_cv_native_windows" = "yes" ||
42378     test "x$SSL_ENABLED" = "x"; then
42379     want_ntlm_wb_file=""
42380     want_ntlm_wb="no"
42381   fi
42382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
42383 $as_echo "$want_ntlm_wb" >&6; }
42384   if test "$want_ntlm_wb" = "yes"; then
42385
42386 $as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
42387
42388
42389 cat >>confdefs.h <<_ACEOF
42390 #define NTLM_WB_FILE "$want_ntlm_wb_file"
42391 _ACEOF
42392
42393     NTLM_WB_ENABLED=1
42394   fi
42395
42396
42397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
42398 $as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
42399 # Check whether --enable-tls-srp was given.
42400 if test "${enable_tls_srp+set}" = set; then :
42401   enableval=$enable_tls_srp;  case "$enableval" in
42402   no)
42403        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42404 $as_echo "no" >&6; }
42405        want_tls_srp=no
42406        ;;
42407   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42408 $as_echo "yes" >&6; }
42409        want_tls_srp=yes
42410        ;;
42411   esac
42412 else
42413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42414 $as_echo "yes" >&6; }
42415        want_tls_srp=yes
42416
42417 fi
42418
42419
42420 if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
42421
42422 $as_echo "#define USE_TLS_SRP 1" >>confdefs.h
42423
42424    USE_TLS_SRP=1
42425    curl_tls_srp_msg="enabled"
42426 fi
42427
42428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
42429 $as_echo_n "checking whether to enable Unix domain sockets... " >&6; }
42430 # Check whether --enable-unix-sockets was given.
42431 if test "${enable_unix_sockets+set}" = set; then :
42432   enableval=$enable_unix_sockets;  case "$enableval" in
42433   no)  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42434 $as_echo "no" >&6; }
42435        want_unix_sockets=no
42436        ;;
42437   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42438 $as_echo "yes" >&6; }
42439        want_unix_sockets=yes
42440        ;;
42441   esac
42442 else
42443
42444        { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
42445 $as_echo "auto" >&6; }
42446        want_unix_sockets=auto
42447
42448
42449 fi
42450
42451 if test "x$want_unix_sockets" != "xno"; then
42452   ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
42453     #include <sys/un.h>
42454
42455 "
42456 if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then :
42457
42458
42459 $as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h
42460
42461     USE_UNIX_SOCKETS=1
42462
42463     curl_unix_sockets_msg="enabled"
42464
42465 else
42466
42467     if test "x$want_unix_sockets" = "xyes"; then
42468       as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
42469     fi
42470
42471 fi
42472
42473 fi
42474
42475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support cookies" >&5
42476 $as_echo_n "checking whether to support cookies... " >&6; }
42477 # Check whether --enable-cookies was given.
42478 if test "${enable_cookies+set}" = set; then :
42479   enableval=$enable_cookies;  case "$enableval" in
42480   no)
42481        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42482 $as_echo "no" >&6; }
42483
42484 $as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
42485
42486        ;;
42487   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42488 $as_echo "yes" >&6; }
42489        ;;
42490   esac
42491 else
42492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42493 $as_echo "yes" >&6; }
42494
42495 fi
42496
42497
42498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support HTTP authentication" >&5
42499 $as_echo_n "checking whether to support HTTP authentication... " >&6; }
42500 # Check whether --enable-http-auth was given.
42501 if test "${enable_http_auth+set}" = set; then :
42502   enableval=$enable_http_auth;  case "$enableval" in
42503   no)
42504        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42505 $as_echo "no" >&6; }
42506
42507 $as_echo "#define CURL_DISABLE_HTTP_AUTH 1" >>confdefs.h
42508
42509        ;;
42510   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42511 $as_echo "yes" >&6; }
42512        ;;
42513   esac
42514 else
42515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42516 $as_echo "yes" >&6; }
42517
42518 fi
42519
42520
42521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support DoH" >&5
42522 $as_echo_n "checking whether to support DoH... " >&6; }
42523 # Check whether --enable-doh was given.
42524 if test "${enable_doh+set}" = set; then :
42525   enableval=$enable_doh;  case "$enableval" in
42526   no)
42527        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42528 $as_echo "no" >&6; }
42529
42530 $as_echo "#define CURL_DISABLE_DOH 1" >>confdefs.h
42531
42532        ;;
42533   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42534 $as_echo "yes" >&6; }
42535        ;;
42536   esac
42537 else
42538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42539 $as_echo "yes" >&6; }
42540
42541 fi
42542
42543
42544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support the MIME API" >&5
42545 $as_echo_n "checking whether to support the MIME API... " >&6; }
42546 # Check whether --enable-mime was given.
42547 if test "${enable_mime+set}" = set; then :
42548   enableval=$enable_mime;  case "$enableval" in
42549   no)
42550        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42551 $as_echo "no" >&6; }
42552
42553 $as_echo "#define CURL_DISABLE_MIME 1" >>confdefs.h
42554
42555        ;;
42556   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42557 $as_echo "yes" >&6; }
42558        ;;
42559   esac
42560 else
42561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42562 $as_echo "yes" >&6; }
42563
42564 fi
42565
42566
42567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support date parsing" >&5
42568 $as_echo_n "checking whether to support date parsing... " >&6; }
42569 # Check whether --enable-dateparse was given.
42570 if test "${enable_dateparse+set}" = set; then :
42571   enableval=$enable_dateparse;  case "$enableval" in
42572   no)
42573        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42574 $as_echo "no" >&6; }
42575
42576 $as_echo "#define CURL_DISABLE_PARSEDATE 1" >>confdefs.h
42577
42578        ;;
42579   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42580 $as_echo "yes" >&6; }
42581        ;;
42582   esac
42583 else
42584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42585 $as_echo "yes" >&6; }
42586
42587 fi
42588
42589
42590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support netrc parsing" >&5
42591 $as_echo_n "checking whether to support netrc parsing... " >&6; }
42592 # Check whether --enable-netrc was given.
42593 if test "${enable_netrc+set}" = set; then :
42594   enableval=$enable_netrc;  case "$enableval" in
42595   no)
42596        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42597 $as_echo "no" >&6; }
42598
42599 $as_echo "#define CURL_DISABLE_NETRC 1" >>confdefs.h
42600
42601        ;;
42602   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42603 $as_echo "yes" >&6; }
42604        ;;
42605   esac
42606 else
42607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42608 $as_echo "yes" >&6; }
42609
42610 fi
42611
42612
42613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support progress-meter" >&5
42614 $as_echo_n "checking whether to support progress-meter... " >&6; }
42615 # Check whether --enable-progress-meter was given.
42616 if test "${enable_progress_meter+set}" = set; then :
42617   enableval=$enable_progress_meter;  case "$enableval" in
42618   no)
42619        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42620 $as_echo "no" >&6; }
42621
42622 $as_echo "#define CURL_DISABLE_PROGRESS_METER 1" >>confdefs.h
42623
42624        ;;
42625   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42626 $as_echo "yes" >&6; }
42627        ;;
42628   esac
42629 else
42630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42631 $as_echo "yes" >&6; }
42632
42633 fi
42634
42635
42636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support DNS shuffling" >&5
42637 $as_echo_n "checking whether to support DNS shuffling... " >&6; }
42638 # Check whether --enable-dnsshuffle was given.
42639 if test "${enable_dnsshuffle+set}" = set; then :
42640   enableval=$enable_dnsshuffle;  case "$enableval" in
42641   no)
42642        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42643 $as_echo "no" >&6; }
42644
42645 $as_echo "#define CURL_DISABLE_SHUFFLE_DNS 1" >>confdefs.h
42646
42647        ;;
42648   *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42649 $as_echo "yes" >&6; }
42650        ;;
42651   esac
42652 else
42653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42654 $as_echo "yes" >&6; }
42655
42656 fi
42657
42658
42659 curl_altsvc_msg="no      (--enable-alt-svc)";
42660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support alt-svc" >&5
42661 $as_echo_n "checking whether to support alt-svc... " >&6; }
42662 # Check whether --enable-alt-svc was given.
42663 if test "${enable_alt_svc+set}" = set; then :
42664   enableval=$enable_alt_svc;  case "$enableval" in
42665   no)
42666        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42667 $as_echo "no" >&6; }
42668        ;;
42669   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42670 $as_echo "yes" >&6; }
42671        curl_altsvc_msg="enabled";
42672        enable_altsvc="yes"
42673        ;;
42674   esac
42675 else
42676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42677 $as_echo "no" >&6; }
42678
42679 fi
42680
42681
42682 if test "$enable_altsvc" = "yes"; then
42683
42684 $as_echo "#define USE_ALTSVC 1" >>confdefs.h
42685
42686   experimental="$experimental alt-svc"
42687 fi
42688
42689 if test "x$want_esni" != "xno"; then
42690   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ESNI support is available" >&5
42691 $as_echo_n "checking whether ESNI support is available... " >&6; }
42692
42693     ESNI_ENABLED=0
42694   ESNI_SUPPORT=''
42695
42696       if test "x$OPENSSL_ENABLED" = "x1"; then
42697     for ac_func in SSL_get_esni_status
42698 do :
42699   ac_fn_c_check_func "$LINENO" "SSL_get_esni_status" "ac_cv_func_SSL_get_esni_status"
42700 if test "x$ac_cv_func_SSL_get_esni_status" = xyes; then :
42701   cat >>confdefs.h <<_ACEOF
42702 #define HAVE_SSL_GET_ESNI_STATUS 1
42703 _ACEOF
42704  ESNI_SUPPORT="ESNI support available (OpenSSL with SSL_get_esni_status)"
42705       ESNI_ENABLED=1
42706 fi
42707 done
42708
42709
42710     fi
42711
42712     if test "x$ESNI_ENABLED" = "x1"; then
42713
42714 $as_echo "#define USE_ESNI 1" >>confdefs.h
42715
42716     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESNI_SUPPORT" >&5
42717 $as_echo "$ESNI_SUPPORT" >&6; }
42718     experimental="$experimental ESNI"
42719   else
42720     as_fn_error $? "--enable-esni ignored: No ESNI support found" "$LINENO" 5
42721   fi
42722 fi
42723
42724
42725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
42726 $as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
42727   CFLAG_CURL_SYMBOL_HIDING=""
42728   doing_symbol_hiding="no"
42729   if test x"$curl_cv_native_windows" != "xyes" &&
42730     test "$want_symbol_hiding" = "yes" &&
42731     test "$supports_symbol_hiding" = "yes"; then
42732     doing_symbol_hiding="yes"
42733     CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
42734
42735 cat >>confdefs.h <<_ACEOF
42736 #define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
42737 _ACEOF
42738
42739     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42740 $as_echo "yes" >&6; }
42741   else
42742     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42743 $as_echo "no" >&6; }
42744   fi
42745    if test x$doing_symbol_hiding = xyes; then
42746   DOING_CURL_SYMBOL_HIDING_TRUE=
42747   DOING_CURL_SYMBOL_HIDING_FALSE='#'
42748 else
42749   DOING_CURL_SYMBOL_HIDING_TRUE='#'
42750   DOING_CURL_SYMBOL_HIDING_FALSE=
42751 fi
42752
42753
42754
42755
42756 LIBCURL_LIBS=$LIBS
42757
42758
42759
42760
42761
42762 BLANK_AT_MAKETIME=
42763
42764
42765  if test x$cross_compiling = xyes; then
42766   CROSSCOMPILING_TRUE=
42767   CROSSCOMPILING_FALSE='#'
42768 else
42769   CROSSCOMPILING_TRUE='#'
42770   CROSSCOMPILING_FALSE=
42771 fi
42772
42773
42774 ENABLE_SHARED="$enable_shared"
42775
42776
42777 ENABLE_STATIC="$enable_static"
42778
42779
42780
42781
42782 if test "x$OPENSSL_ENABLED" = "x1"; then
42783   SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
42784 elif test -n "$SSL_ENABLED"; then
42785   SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
42786 fi
42787 if test "x$IPV6_ENABLED" = "x1"; then
42788   SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
42789 fi
42790 if test "x$USE_UNIX_SOCKETS" = "x1"; then
42791   SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
42792 fi
42793 if test "x$HAVE_LIBZ" = "x1"; then
42794   SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
42795 fi
42796 if test "x$HAVE_BROTLI" = "x1"; then
42797   SUPPORT_FEATURES="$SUPPORT_FEATURES brotli"
42798 fi
42799 if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
42800                             -o "x$USE_THREADS_WIN32" = "x1"; then
42801   SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
42802 fi
42803 if test "x$IDN_ENABLED" = "x1"; then
42804   SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
42805 fi
42806 if test "x$USE_WINDOWS_SSPI" = "x1"; then
42807   SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
42808 fi
42809
42810 if test "x$HAVE_GSSAPI" = "x1"; then
42811   SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
42812 fi
42813
42814 if test "x$curl_psl_msg" = "xenabled"; then
42815   SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
42816 fi
42817
42818 if test "x$enable_altsvc" = "xyes"; then
42819   SUPPORT_FEATURES="$SUPPORT_FEATURES alt-svc"
42820 fi
42821
42822 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
42823     \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
42824   SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
42825 fi
42826
42827 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
42828     \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
42829   SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
42830 fi
42831
42832 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
42833   if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
42834       -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
42835       -o "x$NSS_ENABLED" = "x1" -o "x$SECURETRANSPORT_ENABLED" = "x1"; then
42836     SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
42837
42838     if test "x$CURL_DISABLE_HTTP" != "x1" -a \
42839         "x$NTLM_WB_ENABLED" = "x1"; then
42840       SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
42841     fi
42842   fi
42843 fi
42844
42845 if test "x$USE_TLS_SRP" = "x1"; then
42846   SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
42847 fi
42848
42849 if test "x$USE_NGHTTP2" = "x1"; then
42850   SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
42851 fi
42852
42853 if test "x$USE_NGTCP2" = "x1" -o "x$USE_QUICHE" = "x1"; then
42854   SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP3"
42855 fi
42856
42857 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
42858   SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
42859 fi
42860
42861 if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \
42862     -o "x$NSS_ENABLED" = "x1"; then
42863   SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
42864 fi
42865
42866 if test "x$ESNI_ENABLED" = "x1"; then
42867   SUPPORT_FEATURES="$SUPPORT_FEATURES ESNI"
42868 fi
42869
42870
42871
42872 if test "x$CURL_DISABLE_HTTP" != "x1"; then
42873   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
42874   if test "x$SSL_ENABLED" = "x1"; then
42875     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
42876   fi
42877 fi
42878 if test "x$CURL_DISABLE_FTP" != "x1"; then
42879   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
42880   if test "x$SSL_ENABLED" = "x1"; then
42881     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
42882   fi
42883 fi
42884 if test "x$CURL_DISABLE_FILE" != "x1"; then
42885   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
42886 fi
42887 if test "x$CURL_DISABLE_TELNET" != "x1"; then
42888   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
42889 fi
42890 if test "x$CURL_DISABLE_LDAP" != "x1"; then
42891   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
42892   if test "x$CURL_DISABLE_LDAPS" != "x1"; then
42893     if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
42894       (test "x$USE_OPENLDAP" != "x1"  && test "x$HAVE_LDAP_SSL" = "x1"); then
42895       SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
42896     fi
42897   fi
42898 fi
42899 if test "x$CURL_DISABLE_DICT" != "x1"; then
42900   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
42901 fi
42902 if test "x$CURL_DISABLE_TFTP" != "x1"; then
42903   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
42904 fi
42905 if test "x$CURL_DISABLE_GOPHER" != "x1"; then
42906   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
42907 fi
42908 if test "x$CURL_DISABLE_POP3" != "x1"; then
42909   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
42910   if test "x$SSL_ENABLED" = "x1"; then
42911     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
42912   fi
42913 fi
42914 if test "x$CURL_DISABLE_IMAP" != "x1"; then
42915   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
42916   if test "x$SSL_ENABLED" = "x1"; then
42917     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
42918   fi
42919 fi
42920 if test "x$CURL_DISABLE_SMB" != "x1" \
42921     -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
42922     -a \( "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
42923       -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
42924       -o "x$NSS_ENABLED" = "x1" -o "x$SECURETRANSPORT_ENABLED" = "x1" \); then
42925   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
42926   if test "x$SSL_ENABLED" = "x1"; then
42927     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
42928   fi
42929 fi
42930 if test "x$CURL_DISABLE_SMTP" != "x1"; then
42931   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
42932   if test "x$SSL_ENABLED" = "x1"; then
42933     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
42934   fi
42935 fi
42936 if test "x$USE_LIBSSH2" = "x1"; then
42937   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
42938   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
42939 fi
42940 if test "x$USE_LIBSSH" = "x1"; then
42941   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
42942   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
42943 fi
42944 if test "x$CURL_DISABLE_RTSP" != "x1"; then
42945   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
42946 fi
42947 if test "x$USE_LIBRTMP" = "x1"; then
42948   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
42949 fi
42950
42951 SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
42952
42953
42954
42955
42956 squeeze CFLAGS
42957 squeeze CPPFLAGS
42958 squeeze DEFS
42959 squeeze LDFLAGS
42960 squeeze LIBS
42961
42962 squeeze LIBCURL_LIBS
42963 squeeze CURL_NETWORK_LIBS
42964 squeeze CURL_NETWORK_AND_TIME_LIBS
42965
42966 squeeze SUPPORT_FEATURES
42967 squeeze SUPPORT_PROTOCOLS
42968
42969
42970
42971   xc_bad_var_libs=no
42972   for xc_word in $LIBS; do
42973     case "$xc_word" in
42974       -l* | --library=*)
42975         :
42976         ;;
42977       *)
42978         xc_bad_var_libs=yes
42979         ;;
42980     esac
42981   done
42982   if test $xc_bad_var_libs = yes; then
42983     { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
42984 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
42985     { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
42986 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
42987   fi
42988
42989
42990   xc_bad_var_ldflags=no
42991   for xc_word in $LDFLAGS; do
42992     case "$xc_word" in
42993       -D*)
42994         xc_bad_var_ldflags=yes
42995         ;;
42996       -U*)
42997         xc_bad_var_ldflags=yes
42998         ;;
42999       -I*)
43000         xc_bad_var_ldflags=yes
43001         ;;
43002       -l* | --library=*)
43003         xc_bad_var_ldflags=yes
43004         ;;
43005     esac
43006   done
43007   if test $xc_bad_var_ldflags = yes; then
43008     { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
43009 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
43010     xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
43011     for xc_word in $LDFLAGS; do
43012       case "$xc_word" in
43013         -D*)
43014           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
43015 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
43016           ;;
43017         -U*)
43018           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
43019 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
43020           ;;
43021         -I*)
43022           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
43023 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
43024           ;;
43025         -l* | --library=*)
43026           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
43027 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
43028           ;;
43029       esac
43030     done
43031   fi
43032
43033
43034   xc_bad_var_cppflags=no
43035   for xc_word in $CPPFLAGS; do
43036     case "$xc_word" in
43037       -rpath*)
43038         xc_bad_var_cppflags=yes
43039         ;;
43040       -L* | --library-path=*)
43041         xc_bad_var_cppflags=yes
43042         ;;
43043       -l* | --library=*)
43044         xc_bad_var_cppflags=yes
43045         ;;
43046     esac
43047   done
43048   if test $xc_bad_var_cppflags = yes; then
43049     { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
43050 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
43051     xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
43052     for xc_word in $CPPFLAGS; do
43053       case "$xc_word" in
43054         -rpath*)
43055           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
43056 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
43057           ;;
43058         -L* | --library-path=*)
43059           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
43060 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
43061           ;;
43062         -l* | --library=*)
43063           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
43064 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
43065           ;;
43066       esac
43067     done
43068   fi
43069
43070
43071   xc_bad_var_cflags=no
43072   for xc_word in $CFLAGS; do
43073     case "$xc_word" in
43074       -D*)
43075         xc_bad_var_cflags=yes
43076         ;;
43077       -U*)
43078         xc_bad_var_cflags=yes
43079         ;;
43080       -I*)
43081         xc_bad_var_cflags=yes
43082         ;;
43083       -rpath*)
43084         xc_bad_var_cflags=yes
43085         ;;
43086       -L* | --library-path=*)
43087         xc_bad_var_cflags=yes
43088         ;;
43089       -l* | --library=*)
43090         xc_bad_var_cflags=yes
43091         ;;
43092     esac
43093   done
43094   if test $xc_bad_var_cflags = yes; then
43095     { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
43096 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
43097     xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
43098     for xc_word in $CFLAGS; do
43099       case "$xc_word" in
43100         -D*)
43101           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
43102 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
43103           ;;
43104         -U*)
43105           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
43106 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
43107           ;;
43108         -I*)
43109           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
43110 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
43111           ;;
43112         -rpath*)
43113           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
43114 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
43115           ;;
43116         -L* | --library-path=*)
43117           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
43118 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
43119           ;;
43120         -l* | --library=*)
43121           { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
43122 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
43123           ;;
43124       esac
43125     done
43126   fi
43127
43128   if test $xc_bad_var_libs = yes ||
43129      test $xc_bad_var_cflags = yes ||
43130      test $xc_bad_var_ldflags = yes ||
43131      test $xc_bad_var_cppflags = yes; then
43132      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
43133 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
43134   fi
43135
43136
43137 SSL_BACKENDS=${ssl_backends}
43138
43139
43140 if test "x$want_curldebug_assumed" = "xyes" &&
43141   test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
43142   ac_configure_args="$ac_configure_args --enable-curldebug"
43143 fi
43144
43145 ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile docs/libcurl/opts/Makefile docs/cmdline-opts/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile scripts/Makefile lib/libcurl.vers tests/Makefile tests/certs/Makefile tests/certs/scripts/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile tests/unit/Makefile packages/Makefile packages/vms/Makefile curl-config libcurl.pc"
43146
43147 cat >confcache <<\_ACEOF
43148 # This file is a shell script that caches the results of configure
43149 # tests run on this system so they can be shared between configure
43150 # scripts and configure runs, see configure's option --config-cache.
43151 # It is not useful on other systems.  If it contains results you don't
43152 # want to keep, you may remove or edit it.
43153 #
43154 # config.status only pays attention to the cache file if you give it
43155 # the --recheck option to rerun configure.
43156 #
43157 # `ac_cv_env_foo' variables (set or unset) will be overridden when
43158 # loading this file, other *unset* `ac_cv_foo' will be assigned the
43159 # following values.
43160
43161 _ACEOF
43162
43163 # The following way of writing the cache mishandles newlines in values,
43164 # but we know of no workaround that is simple, portable, and efficient.
43165 # So, we kill variables containing newlines.
43166 # Ultrix sh set writes to stderr and can't be redirected directly,
43167 # and sets the high bit in the cache file unless we assign to the vars.
43168 (
43169   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
43170     eval ac_val=\$$ac_var
43171     case $ac_val in #(
43172     *${as_nl}*)
43173       case $ac_var in #(
43174       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
43175 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
43176       esac
43177       case $ac_var in #(
43178       _ | IFS | as_nl) ;; #(
43179       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
43180       *) { eval $ac_var=; unset $ac_var;} ;;
43181       esac ;;
43182     esac
43183   done
43184
43185   (set) 2>&1 |
43186     case $as_nl`(ac_space=' '; set) 2>&1` in #(
43187     *${as_nl}ac_space=\ *)
43188       # `set' does not quote correctly, so add quotes: double-quote
43189       # substitution turns \\\\ into \\, and sed turns \\ into \.
43190       sed -n \
43191         "s/'/'\\\\''/g;
43192           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
43193       ;; #(
43194     *)
43195       # `set' quotes correctly as required by POSIX, so do not add quotes.
43196       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
43197       ;;
43198     esac |
43199     sort
43200 ) |
43201   sed '
43202      /^ac_cv_env_/b end
43203      t clear
43204      :clear
43205      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
43206      t end
43207      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
43208      :end' >>confcache
43209 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
43210   if test -w "$cache_file"; then
43211     if test "x$cache_file" != "x/dev/null"; then
43212       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
43213 $as_echo "$as_me: updating cache $cache_file" >&6;}
43214       if test ! -f "$cache_file" || test -h "$cache_file"; then
43215         cat confcache >"$cache_file"
43216       else
43217         case $cache_file in #(
43218         */* | ?:*)
43219           mv -f confcache "$cache_file"$$ &&
43220           mv -f "$cache_file"$$ "$cache_file" ;; #(
43221         *)
43222           mv -f confcache "$cache_file" ;;
43223         esac
43224       fi
43225     fi
43226   else
43227     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
43228 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
43229   fi
43230 fi
43231 rm -f confcache
43232
43233 test "x$prefix" = xNONE && prefix=$ac_default_prefix
43234 # Let make expand exec_prefix.
43235 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
43236
43237 DEFS=-DHAVE_CONFIG_H
43238
43239 ac_libobjs=
43240 ac_ltlibobjs=
43241 U=
43242 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
43243   # 1. Remove the extension, and $U if already installed.
43244   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
43245   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
43246   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
43247   #    will be set to the directory where LIBOBJS objects are built.
43248   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
43249   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
43250 done
43251 LIBOBJS=$ac_libobjs
43252
43253 LTLIBOBJS=$ac_ltlibobjs
43254
43255
43256 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
43257   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
43258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43259 fi
43260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
43261 $as_echo_n "checking that generated files are newer than configure... " >&6; }
43262    if test -n "$am_sleep_pid"; then
43263      # Hide warnings about reused PIDs.
43264      wait $am_sleep_pid 2>/dev/null
43265    fi
43266    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
43267 $as_echo "done" >&6; }
43268 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
43269   as_fn_error $? "conditional \"AMDEP\" was never defined.
43270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43271 fi
43272 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
43273   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
43274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43275 fi
43276  if test -n "$EXEEXT"; then
43277   am__EXEEXT_TRUE=
43278   am__EXEEXT_FALSE='#'
43279 else
43280   am__EXEEXT_TRUE='#'
43281   am__EXEEXT_FALSE=
43282 fi
43283
43284 if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
43285   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
43286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43287 fi
43288 if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
43289   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
43290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43291 fi
43292 if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
43293   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
43294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43295 fi
43296 if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
43297   as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
43298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43299 fi
43300 if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
43301   as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
43302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43303 fi
43304 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
43305   as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
43306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43307 fi
43308 if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
43309   as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
43310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43311 fi
43312 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
43313   as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
43314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43315 fi
43316 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
43317   as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
43318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43319 fi
43320 if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
43321   as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
43322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43323 fi
43324 if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
43325   as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
43326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43327 fi
43328 if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
43329   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
43330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43331 fi
43332 if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
43333   as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
43334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43335 fi
43336 if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
43337   as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
43338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43339 fi
43340 if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
43341   as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
43342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43343 fi
43344 if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
43345   as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
43346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43347 fi
43348 if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
43349   as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
43350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43351 fi
43352
43353 : "${CONFIG_STATUS=./config.status}"
43354 ac_write_fail=0
43355 ac_clean_files_save=$ac_clean_files
43356 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
43357 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
43358 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
43359 as_write_fail=0
43360 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
43361 #! $SHELL
43362 # Generated by $as_me.
43363 # Run this file to recreate the current configuration.
43364 # Compiler output produced by configure, useful for debugging
43365 # configure, is in config.log if it exists.
43366
43367 debug=false
43368 ac_cs_recheck=false
43369 ac_cs_silent=false
43370
43371 SHELL=\${CONFIG_SHELL-$SHELL}
43372 export SHELL
43373 _ASEOF
43374 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
43375 ## -------------------- ##
43376 ## M4sh Initialization. ##
43377 ## -------------------- ##
43378
43379 # Be more Bourne compatible
43380 DUALCASE=1; export DUALCASE # for MKS sh
43381 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
43382   emulate sh
43383   NULLCMD=:
43384   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
43385   # is contrary to our usage.  Disable this feature.
43386   alias -g '${1+"$@"}'='"$@"'
43387   setopt NO_GLOB_SUBST
43388 else
43389   case `(set -o) 2>/dev/null` in #(
43390   *posix*) :
43391     set -o posix ;; #(
43392   *) :
43393      ;;
43394 esac
43395 fi
43396
43397
43398 as_nl='
43399 '
43400 export as_nl
43401 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43402 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43403 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43404 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43405 # Prefer a ksh shell builtin over an external printf program on Solaris,
43406 # but without wasting forks for bash or zsh.
43407 if test -z "$BASH_VERSION$ZSH_VERSION" \
43408     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
43409   as_echo='print -r --'
43410   as_echo_n='print -rn --'
43411 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
43412   as_echo='printf %s\n'
43413   as_echo_n='printf %s'
43414 else
43415   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
43416     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
43417     as_echo_n='/usr/ucb/echo -n'
43418   else
43419     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
43420     as_echo_n_body='eval
43421       arg=$1;
43422       case $arg in #(
43423       *"$as_nl"*)
43424         expr "X$arg" : "X\\(.*\\)$as_nl";
43425         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
43426       esac;
43427       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
43428     '
43429     export as_echo_n_body
43430     as_echo_n='sh -c $as_echo_n_body as_echo'
43431   fi
43432   export as_echo_body
43433   as_echo='sh -c $as_echo_body as_echo'
43434 fi
43435
43436
43437
43438 # IFS
43439 # We need space, tab and new line, in precisely that order.  Quoting is
43440 # there to prevent editors from complaining about space-tab.
43441 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
43442 # splitting by setting IFS to empty value.)
43443 IFS=" ""        $as_nl"
43444
43445 # Find who we are.  Look in the path if we contain no directory separator.
43446 as_myself=
43447 case $0 in #((
43448   *[\\/]* ) as_myself=$0 ;;
43449   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43450 for as_dir in $PATH
43451 do
43452   IFS=$as_save_IFS
43453   test -z "$as_dir" && as_dir=.
43454     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43455   done
43456 IFS=$as_save_IFS
43457
43458      ;;
43459 esac
43460 # We did not find ourselves, most probably we were run as `sh COMMAND'
43461 # in which case we are not to be found in the path.
43462 if test "x$as_myself" = x; then
43463   as_myself=$0
43464 fi
43465 if test ! -f "$as_myself"; then
43466   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
43467   exit 1
43468 fi
43469
43470 # Unset variables that we do not need and which cause bugs (e.g. in
43471 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
43472 # suppresses any "Segmentation fault" message there.  '((' could
43473 # trigger a bug in pdksh 5.2.14.
43474 for as_var in BASH_ENV ENV MAIL MAILPATH
43475 do eval test x\${$as_var+set} = xset \
43476   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
43477 done
43478 PS1='$ '
43479 PS2='> '
43480 PS4='+ '
43481
43482 # NLS nuisances.
43483 LC_ALL=C
43484 export LC_ALL
43485 LANGUAGE=C
43486 export LANGUAGE
43487
43488 # CDPATH.
43489 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
43490
43491
43492 # as_fn_error STATUS ERROR [LINENO LOG_FD]
43493 # ----------------------------------------
43494 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
43495 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
43496 # script with STATUS, using 1 if that was 0.
43497 as_fn_error ()
43498 {
43499   as_status=$1; test $as_status -eq 0 && as_status=1
43500   if test "$4"; then
43501     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
43502     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
43503   fi
43504   $as_echo "$as_me: error: $2" >&2
43505   as_fn_exit $as_status
43506 } # as_fn_error
43507
43508
43509 # as_fn_set_status STATUS
43510 # -----------------------
43511 # Set $? to STATUS, without forking.
43512 as_fn_set_status ()
43513 {
43514   return $1
43515 } # as_fn_set_status
43516
43517 # as_fn_exit STATUS
43518 # -----------------
43519 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
43520 as_fn_exit ()
43521 {
43522   set +e
43523   as_fn_set_status $1
43524   exit $1
43525 } # as_fn_exit
43526
43527 # as_fn_unset VAR
43528 # ---------------
43529 # Portably unset VAR.
43530 as_fn_unset ()
43531 {
43532   { eval $1=; unset $1;}
43533 }
43534 as_unset=as_fn_unset
43535 # as_fn_append VAR VALUE
43536 # ----------------------
43537 # Append the text in VALUE to the end of the definition contained in VAR. Take
43538 # advantage of any shell optimizations that allow amortized linear growth over
43539 # repeated appends, instead of the typical quadratic growth present in naive
43540 # implementations.
43541 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
43542   eval 'as_fn_append ()
43543   {
43544     eval $1+=\$2
43545   }'
43546 else
43547   as_fn_append ()
43548   {
43549     eval $1=\$$1\$2
43550   }
43551 fi # as_fn_append
43552
43553 # as_fn_arith ARG...
43554 # ------------------
43555 # Perform arithmetic evaluation on the ARGs, and store the result in the
43556 # global $as_val. Take advantage of shells that can avoid forks. The arguments
43557 # must be portable across $(()) and expr.
43558 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
43559   eval 'as_fn_arith ()
43560   {
43561     as_val=$(( $* ))
43562   }'
43563 else
43564   as_fn_arith ()
43565   {
43566     as_val=`expr "$@" || test $? -eq 1`
43567   }
43568 fi # as_fn_arith
43569
43570
43571 if expr a : '\(a\)' >/dev/null 2>&1 &&
43572    test "X`expr 00001 : '.*\(...\)'`" = X001; then
43573   as_expr=expr
43574 else
43575   as_expr=false
43576 fi
43577
43578 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
43579   as_basename=basename
43580 else
43581   as_basename=false
43582 fi
43583
43584 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
43585   as_dirname=dirname
43586 else
43587   as_dirname=false
43588 fi
43589
43590 as_me=`$as_basename -- "$0" ||
43591 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43592          X"$0" : 'X\(//\)$' \| \
43593          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
43594 $as_echo X/"$0" |
43595     sed '/^.*\/\([^/][^/]*\)\/*$/{
43596             s//\1/
43597             q
43598           }
43599           /^X\/\(\/\/\)$/{
43600             s//\1/
43601             q
43602           }
43603           /^X\/\(\/\).*/{
43604             s//\1/
43605             q
43606           }
43607           s/.*/./; q'`
43608
43609 # Avoid depending upon Character Ranges.
43610 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43611 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43612 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43613 as_cr_digits='0123456789'
43614 as_cr_alnum=$as_cr_Letters$as_cr_digits
43615
43616 ECHO_C= ECHO_N= ECHO_T=
43617 case `echo -n x` in #(((((
43618 -n*)
43619   case `echo 'xy\c'` in
43620   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
43621   xy)  ECHO_C='\c';;
43622   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
43623        ECHO_T=' ';;
43624   esac;;
43625 *)
43626   ECHO_N='-n';;
43627 esac
43628
43629 rm -f conf$$ conf$$.exe conf$$.file
43630 if test -d conf$$.dir; then
43631   rm -f conf$$.dir/conf$$.file
43632 else
43633   rm -f conf$$.dir
43634   mkdir conf$$.dir 2>/dev/null
43635 fi
43636 if (echo >conf$$.file) 2>/dev/null; then
43637   if ln -s conf$$.file conf$$ 2>/dev/null; then
43638     as_ln_s='ln -s'
43639     # ... but there are two gotchas:
43640     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
43641     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
43642     # In both cases, we have to default to `cp -pR'.
43643     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
43644       as_ln_s='cp -pR'
43645   elif ln conf$$.file conf$$ 2>/dev/null; then
43646     as_ln_s=ln
43647   else
43648     as_ln_s='cp -pR'
43649   fi
43650 else
43651   as_ln_s='cp -pR'
43652 fi
43653 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
43654 rmdir conf$$.dir 2>/dev/null
43655
43656
43657 # as_fn_mkdir_p
43658 # -------------
43659 # Create "$as_dir" as a directory, including parents if necessary.
43660 as_fn_mkdir_p ()
43661 {
43662
43663   case $as_dir in #(
43664   -*) as_dir=./$as_dir;;
43665   esac
43666   test -d "$as_dir" || eval $as_mkdir_p || {
43667     as_dirs=
43668     while :; do
43669       case $as_dir in #(
43670       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
43671       *) as_qdir=$as_dir;;
43672       esac
43673       as_dirs="'$as_qdir' $as_dirs"
43674       as_dir=`$as_dirname -- "$as_dir" ||
43675 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43676          X"$as_dir" : 'X\(//\)[^/]' \| \
43677          X"$as_dir" : 'X\(//\)$' \| \
43678          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
43679 $as_echo X"$as_dir" |
43680     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43681             s//\1/
43682             q
43683           }
43684           /^X\(\/\/\)[^/].*/{
43685             s//\1/
43686             q
43687           }
43688           /^X\(\/\/\)$/{
43689             s//\1/
43690             q
43691           }
43692           /^X\(\/\).*/{
43693             s//\1/
43694             q
43695           }
43696           s/.*/./; q'`
43697       test -d "$as_dir" && break
43698     done
43699     test -z "$as_dirs" || eval "mkdir $as_dirs"
43700   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
43701
43702
43703 } # as_fn_mkdir_p
43704 if mkdir -p . 2>/dev/null; then
43705   as_mkdir_p='mkdir -p "$as_dir"'
43706 else
43707   test -d ./-p && rmdir ./-p
43708   as_mkdir_p=false
43709 fi
43710
43711
43712 # as_fn_executable_p FILE
43713 # -----------------------
43714 # Test if FILE is an executable regular file.
43715 as_fn_executable_p ()
43716 {
43717   test -f "$1" && test -x "$1"
43718 } # as_fn_executable_p
43719 as_test_x='test -x'
43720 as_executable_p=as_fn_executable_p
43721
43722 # Sed expression to map a string onto a valid CPP name.
43723 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
43724
43725 # Sed expression to map a string onto a valid variable name.
43726 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
43727
43728
43729 exec 6>&1
43730 ## ----------------------------------- ##
43731 ## Main body of $CONFIG_STATUS script. ##
43732 ## ----------------------------------- ##
43733 _ASEOF
43734 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
43735
43736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43737 # Save the log message, to keep $0 and so on meaningful, and to
43738 # report actual input values of CONFIG_FILES etc. instead of their
43739 # values after options handling.
43740 ac_log="
43741 This file was extended by curl $as_me -, which was
43742 generated by GNU Autoconf 2.69.  Invocation command line was
43743
43744   CONFIG_FILES    = $CONFIG_FILES
43745   CONFIG_HEADERS  = $CONFIG_HEADERS
43746   CONFIG_LINKS    = $CONFIG_LINKS
43747   CONFIG_COMMANDS = $CONFIG_COMMANDS
43748   $ $0 $@
43749
43750 on `(hostname || uname -n) 2>/dev/null | sed 1q`
43751 "
43752
43753 _ACEOF
43754
43755 case $ac_config_files in *"
43756 "*) set x $ac_config_files; shift; ac_config_files=$*;;
43757 esac
43758
43759 case $ac_config_headers in *"
43760 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
43761 esac
43762
43763
43764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43765 # Files that config.status was made for.
43766 config_files="$ac_config_files"
43767 config_headers="$ac_config_headers"
43768 config_commands="$ac_config_commands"
43769
43770 _ACEOF
43771
43772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43773 ac_cs_usage="\
43774 \`$as_me' instantiates files and other configuration actions
43775 from templates according to the current configuration.  Unless the files
43776 and actions are specified as TAGs, all are instantiated by default.
43777
43778 Usage: $0 [OPTION]... [TAG]...
43779
43780   -h, --help       print this help, then exit
43781   -V, --version    print version number and configuration settings, then exit
43782       --config     print configuration, then exit
43783   -q, --quiet, --silent
43784                    do not print progress messages
43785   -d, --debug      don't remove temporary files
43786       --recheck    update $as_me by reconfiguring in the same conditions
43787       --file=FILE[:TEMPLATE]
43788                    instantiate the configuration file FILE
43789       --header=FILE[:TEMPLATE]
43790                    instantiate the configuration header FILE
43791
43792 Configuration files:
43793 $config_files
43794
43795 Configuration headers:
43796 $config_headers
43797
43798 Configuration commands:
43799 $config_commands
43800
43801 Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>."
43802
43803 _ACEOF
43804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43805 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
43806 ac_cs_version="\\
43807 curl config.status -
43808 configured by $0, generated by GNU Autoconf 2.69,
43809   with options \\"\$ac_cs_config\\"
43810
43811 Copyright (C) 2012 Free Software Foundation, Inc.
43812 This config.status script is free software; the Free Software Foundation
43813 gives unlimited permission to copy, distribute and modify it."
43814
43815 ac_pwd='$ac_pwd'
43816 srcdir='$srcdir'
43817 INSTALL='$INSTALL'
43818 MKDIR_P='$MKDIR_P'
43819 AWK='$AWK'
43820 test -n "\$AWK" || AWK=awk
43821 _ACEOF
43822
43823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43824 # The default lists apply if the user does not specify any file.
43825 ac_need_defaults=:
43826 while test $# != 0
43827 do
43828   case $1 in
43829   --*=?*)
43830     ac_option=`expr "X$1" : 'X\([^=]*\)='`
43831     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
43832     ac_shift=:
43833     ;;
43834   --*=)
43835     ac_option=`expr "X$1" : 'X\([^=]*\)='`
43836     ac_optarg=
43837     ac_shift=:
43838     ;;
43839   *)
43840     ac_option=$1
43841     ac_optarg=$2
43842     ac_shift=shift
43843     ;;
43844   esac
43845
43846   case $ac_option in
43847   # Handling of the options.
43848   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43849     ac_cs_recheck=: ;;
43850   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
43851     $as_echo "$ac_cs_version"; exit ;;
43852   --config | --confi | --conf | --con | --co | --c )
43853     $as_echo "$ac_cs_config"; exit ;;
43854   --debug | --debu | --deb | --de | --d | -d )
43855     debug=: ;;
43856   --file | --fil | --fi | --f )
43857     $ac_shift
43858     case $ac_optarg in
43859     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
43860     '') as_fn_error $? "missing file argument" ;;
43861     esac
43862     as_fn_append CONFIG_FILES " '$ac_optarg'"
43863     ac_need_defaults=false;;
43864   --header | --heade | --head | --hea )
43865     $ac_shift
43866     case $ac_optarg in
43867     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
43868     esac
43869     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
43870     ac_need_defaults=false;;
43871   --he | --h)
43872     # Conflict between --help and --header
43873     as_fn_error $? "ambiguous option: \`$1'
43874 Try \`$0 --help' for more information.";;
43875   --help | --hel | -h )
43876     $as_echo "$ac_cs_usage"; exit ;;
43877   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43878   | -silent | --silent | --silen | --sile | --sil | --si | --s)
43879     ac_cs_silent=: ;;
43880
43881   # This is an error.
43882   -*) as_fn_error $? "unrecognized option: \`$1'
43883 Try \`$0 --help' for more information." ;;
43884
43885   *) as_fn_append ac_config_targets " $1"
43886      ac_need_defaults=false ;;
43887
43888   esac
43889   shift
43890 done
43891
43892 ac_configure_extra_args=
43893
43894 if $ac_cs_silent; then
43895   exec 6>/dev/null
43896   ac_configure_extra_args="$ac_configure_extra_args --silent"
43897 fi
43898
43899 _ACEOF
43900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43901 if \$ac_cs_recheck; then
43902   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43903   shift
43904   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
43905   CONFIG_SHELL='$SHELL'
43906   export CONFIG_SHELL
43907   exec "\$@"
43908 fi
43909
43910 _ACEOF
43911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43912 exec 5>>config.log
43913 {
43914   echo
43915   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43916 ## Running $as_me. ##
43917 _ASBOX
43918   $as_echo "$ac_log"
43919 } >&5
43920
43921 _ACEOF
43922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43923 #
43924 # INIT-COMMANDS
43925 #
43926 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
43927
43928
43929 # The HP-UX ksh and POSIX shell print the target directory to stdout
43930 # if CDPATH is set.
43931 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
43932
43933 sed_quote_subst='$sed_quote_subst'
43934 double_quote_subst='$double_quote_subst'
43935 delay_variable_subst='$delay_variable_subst'
43936 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
43937 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
43938 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
43939 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
43940 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
43941 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
43942 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
43943 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
43944 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
43945 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
43946 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
43947 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
43948 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
43949 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
43950 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
43951 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
43952 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
43953 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
43954 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
43955 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
43956 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
43957 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
43958 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
43959 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
43960 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
43961 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
43962 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
43963 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
43964 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
43965 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
43966 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
43967 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
43968 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
43969 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
43970 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
43971 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
43972 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
43973 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
43974 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
43975 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
43976 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
43977 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
43978 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
43979 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
43980 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
43981 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
43982 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
43983 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
43984 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
43985 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
43986 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
43987 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
43988 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
43989 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
43990 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
43991 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
43992 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
43993 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
43994 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
43995 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
43996 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
43997 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
43998 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
43999 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
44000 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
44001 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
44002 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
44003 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
44004 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
44005 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
44006 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
44007 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
44008 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
44009 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
44010 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
44011 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
44012 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
44013 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
44014 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
44015 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
44016 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
44017 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
44018 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
44019 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
44020 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
44021 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
44022 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
44023 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
44024 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
44025 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
44026 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
44027 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
44028 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
44029 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
44030 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
44031 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
44032 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
44033 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
44034 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
44035 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
44036 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
44037 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
44038 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
44039 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
44040 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
44041 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
44042 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
44043 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
44044 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
44045 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
44046 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
44047 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
44048 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
44049 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
44050 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
44051 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
44052 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
44053 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
44054 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
44055 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
44056 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
44057 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
44058 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
44059 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
44060 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
44061 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
44062 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
44063 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
44064 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
44065 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
44066 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
44067 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
44068 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
44069 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
44070 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
44071 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
44072
44073 LTCC='$LTCC'
44074 LTCFLAGS='$LTCFLAGS'
44075 compiler='$compiler_DEFAULT'
44076
44077 # A function that is used when there is no print builtin or printf.
44078 func_fallback_echo ()
44079 {
44080   eval 'cat <<_LTECHO_EOF
44081 \$1
44082 _LTECHO_EOF'
44083 }
44084
44085 # Quote evaled strings.
44086 for var in AS \
44087 DLLTOOL \
44088 OBJDUMP \
44089 SHELL \
44090 ECHO \
44091 PATH_SEPARATOR \
44092 SED \
44093 GREP \
44094 EGREP \
44095 FGREP \
44096 LD \
44097 NM \
44098 LN_S \
44099 lt_SP2NL \
44100 lt_NL2SP \
44101 reload_flag \
44102 deplibs_check_method \
44103 file_magic_cmd \
44104 file_magic_glob \
44105 want_nocaseglob \
44106 sharedlib_from_linklib_cmd \
44107 AR \
44108 AR_FLAGS \
44109 archiver_list_spec \
44110 STRIP \
44111 RANLIB \
44112 CC \
44113 CFLAGS \
44114 compiler \
44115 lt_cv_sys_global_symbol_pipe \
44116 lt_cv_sys_global_symbol_to_cdecl \
44117 lt_cv_sys_global_symbol_to_import \
44118 lt_cv_sys_global_symbol_to_c_name_address \
44119 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
44120 lt_cv_nm_interface \
44121 nm_file_list_spec \
44122 lt_cv_truncate_bin \
44123 lt_prog_compiler_no_builtin_flag \
44124 lt_prog_compiler_pic \
44125 lt_prog_compiler_wl \
44126 lt_prog_compiler_static \
44127 lt_cv_prog_compiler_c_o \
44128 need_locks \
44129 MANIFEST_TOOL \
44130 DSYMUTIL \
44131 NMEDIT \
44132 LIPO \
44133 OTOOL \
44134 OTOOL64 \
44135 shrext_cmds \
44136 export_dynamic_flag_spec \
44137 whole_archive_flag_spec \
44138 compiler_needs_object \
44139 with_gnu_ld \
44140 allow_undefined_flag \
44141 no_undefined_flag \
44142 hardcode_libdir_flag_spec \
44143 hardcode_libdir_separator \
44144 exclude_expsyms \
44145 include_expsyms \
44146 file_list_spec \
44147 variables_saved_for_relink \
44148 libname_spec \
44149 library_names_spec \
44150 soname_spec \
44151 install_override_mode \
44152 finish_eval \
44153 old_striplib \
44154 striplib; do
44155     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
44156     *[\\\\\\\`\\"\\\$]*)
44157       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
44158       ;;
44159     *)
44160       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44161       ;;
44162     esac
44163 done
44164
44165 # Double-quote double-evaled strings.
44166 for var in reload_cmds \
44167 old_postinstall_cmds \
44168 old_postuninstall_cmds \
44169 old_archive_cmds \
44170 extract_expsyms_cmds \
44171 old_archive_from_new_cmds \
44172 old_archive_from_expsyms_cmds \
44173 archive_cmds \
44174 archive_expsym_cmds \
44175 module_cmds \
44176 module_expsym_cmds \
44177 export_symbols_cmds \
44178 prelink_cmds \
44179 postlink_cmds \
44180 postinstall_cmds \
44181 postuninstall_cmds \
44182 finish_cmds \
44183 sys_lib_search_path_spec \
44184 configure_time_dlsearch_path \
44185 configure_time_lt_sys_library_path; do
44186     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
44187     *[\\\\\\\`\\"\\\$]*)
44188       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
44189       ;;
44190     *)
44191       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44192       ;;
44193     esac
44194 done
44195
44196 ac_aux_dir='$ac_aux_dir'
44197
44198 # See if we are running on zsh, and set the options that allow our
44199 # commands through without removal of \ escapes INIT.
44200 if test -n "\${ZSH_VERSION+set}"; then
44201    setopt NO_GLOB_SUBST
44202 fi
44203
44204
44205     PACKAGE='$PACKAGE'
44206     VERSION='$VERSION'
44207     RM='$RM'
44208     ofile='$ofile'
44209
44210
44211
44212
44213 _ACEOF
44214
44215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
44216
44217 # Handling of arguments.
44218 for ac_config_target in $ac_config_targets
44219 do
44220   case $ac_config_target in
44221     "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
44222     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
44223     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
44224     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
44225     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
44226     "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
44227     "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
44228     "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
44229     "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
44230     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
44231     "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
44232     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
44233     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
44234     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
44235     "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
44236     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
44237     "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
44238     "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
44239     "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
44240     "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
44241     "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
44242     "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
44243     "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
44244     "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
44245     "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
44246     "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
44247
44248   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
44249   esac
44250 done
44251
44252
44253 # If the user did not use the arguments to specify the items to instantiate,
44254 # then the envvar interface is used.  Set only those that are not.
44255 # We use the long form for the default assignment because of an extremely
44256 # bizarre bug on SunOS 4.1.3.
44257 if $ac_need_defaults; then
44258   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
44259   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
44260   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
44261 fi
44262
44263 # Have a temporary directory for convenience.  Make it in the build tree
44264 # simply because there is no reason against having it here, and in addition,
44265 # creating and moving files from /tmp can sometimes cause problems.
44266 # Hook for its removal unless debugging.
44267 # Note that there is a small window in which the directory will not be cleaned:
44268 # after its creation but before its name has been assigned to `$tmp'.
44269 $debug ||
44270 {
44271   tmp= ac_tmp=
44272   trap 'exit_status=$?
44273   : "${ac_tmp:=$tmp}"
44274   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
44275 ' 0
44276   trap 'as_fn_exit 1' 1 2 13 15
44277 }
44278 # Create a (secure) tmp directory for tmp files.
44279
44280 {
44281   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
44282   test -d "$tmp"
44283 }  ||
44284 {
44285   tmp=./conf$$-$RANDOM
44286   (umask 077 && mkdir "$tmp")
44287 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
44288 ac_tmp=$tmp
44289
44290 # Set up the scripts for CONFIG_FILES section.
44291 # No need to generate them if there are no CONFIG_FILES.
44292 # This happens for instance with `./config.status config.h'.
44293 if test -n "$CONFIG_FILES"; then
44294
44295
44296 ac_cr=`echo X | tr X '\015'`
44297 # On cygwin, bash can eat \r inside `` if the user requested igncr.
44298 # But we know of no other shell where ac_cr would be empty at this
44299 # point, so we can use a bashism as a fallback.
44300 if test "x$ac_cr" = x; then
44301   eval ac_cr=\$\'\\r\'
44302 fi
44303 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
44304 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
44305   ac_cs_awk_cr='\\r'
44306 else
44307   ac_cs_awk_cr=$ac_cr
44308 fi
44309
44310 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
44311 _ACEOF
44312
44313
44314 {
44315   echo "cat >conf$$subs.awk <<_ACEOF" &&
44316   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
44317   echo "_ACEOF"
44318 } >conf$$subs.sh ||
44319   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
44320 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
44321 ac_delim='%!_!# '
44322 for ac_last_try in false false false false false :; do
44323   . ./conf$$subs.sh ||
44324     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
44325
44326   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
44327   if test $ac_delim_n = $ac_delim_num; then
44328     break
44329   elif $ac_last_try; then
44330     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
44331   else
44332     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44333   fi
44334 done
44335 rm -f conf$$subs.sh
44336
44337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
44338 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
44339 _ACEOF
44340 sed -n '
44341 h
44342 s/^/S["/; s/!.*/"]=/
44343 p
44344 g
44345 s/^[^!]*!//
44346 :repl
44347 t repl
44348 s/'"$ac_delim"'$//
44349 t delim
44350 :nl
44351 h
44352 s/\(.\{148\}\)..*/\1/
44353 t more1
44354 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
44355 p
44356 n
44357 b repl
44358 :more1
44359 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
44360 p
44361 g
44362 s/.\{148\}//
44363 t nl
44364 :delim
44365 h
44366 s/\(.\{148\}\)..*/\1/
44367 t more2
44368 s/["\\]/\\&/g; s/^/"/; s/$/"/
44369 p
44370 b
44371 :more2
44372 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
44373 p
44374 g
44375 s/.\{148\}//
44376 t delim
44377 ' <conf$$subs.awk | sed '
44378 /^[^""]/{
44379   N
44380   s/\n//
44381 }
44382 ' >>$CONFIG_STATUS || ac_write_fail=1
44383 rm -f conf$$subs.awk
44384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
44385 _ACAWK
44386 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
44387   for (key in S) S_is_set[key] = 1
44388   FS = "\a"
44389
44390 }
44391 {
44392   line = $ 0
44393   nfields = split(line, field, "@")
44394   substed = 0
44395   len = length(field[1])
44396   for (i = 2; i < nfields; i++) {
44397     key = field[i]
44398     keylen = length(key)
44399     if (S_is_set[key]) {
44400       value = S[key]
44401       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
44402       len += length(value) + length(field[++i])
44403       substed = 1
44404     } else
44405       len += 1 + keylen
44406   }
44407
44408   print line
44409 }
44410
44411 _ACAWK
44412 _ACEOF
44413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
44414 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
44415   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
44416 else
44417   cat
44418 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
44419   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
44420 _ACEOF
44421
44422 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
44423 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
44424 # trailing colons and then remove the whole line if VPATH becomes empty
44425 # (actually we leave an empty line to preserve line numbers).
44426 if test "x$srcdir" = x.; then
44427   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
44428 h
44429 s///
44430 s/^/:/
44431 s/[      ]*$/:/
44432 s/:\$(srcdir):/:/g
44433 s/:\${srcdir}:/:/g
44434 s/:@srcdir@:/:/g
44435 s/^:*//
44436 s/:*$//
44437 x
44438 s/\(=[   ]*\).*/\1/
44439 G
44440 s/\n//
44441 s/^[^=]*=[       ]*$//
44442 }'
44443 fi
44444
44445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
44446 fi # test -n "$CONFIG_FILES"
44447
44448 # Set up the scripts for CONFIG_HEADERS section.
44449 # No need to generate them if there are no CONFIG_HEADERS.
44450 # This happens for instance with `./config.status Makefile'.
44451 if test -n "$CONFIG_HEADERS"; then
44452 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
44453 BEGIN {
44454 _ACEOF
44455
44456 # Transform confdefs.h into an awk script `defines.awk', embedded as
44457 # here-document in config.status, that substitutes the proper values into
44458 # config.h.in to produce config.h.
44459
44460 # Create a delimiter string that does not exist in confdefs.h, to ease
44461 # handling of long lines.
44462 ac_delim='%!_!# '
44463 for ac_last_try in false false :; do
44464   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
44465   if test -z "$ac_tt"; then
44466     break
44467   elif $ac_last_try; then
44468     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
44469   else
44470     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44471   fi
44472 done
44473
44474 # For the awk script, D is an array of macro values keyed by name,
44475 # likewise P contains macro parameters if any.  Preserve backslash
44476 # newline sequences.
44477
44478 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
44479 sed -n '
44480 s/.\{148\}/&'"$ac_delim"'/g
44481 t rset
44482 :rset
44483 s/^[     ]*#[    ]*define[       ][      ]*/ /
44484 t def
44485 d
44486 :def
44487 s/\\$//
44488 t bsnl
44489 s/["\\]/\\&/g
44490 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
44491 D["\1"]=" \3"/p
44492 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
44493 d
44494 :bsnl
44495 s/["\\]/\\&/g
44496 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
44497 D["\1"]=" \3\\\\\\n"\\/p
44498 t cont
44499 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
44500 t cont
44501 d
44502 :cont
44503 n
44504 s/.\{148\}/&'"$ac_delim"'/g
44505 t clear
44506 :clear
44507 s/\\$//
44508 t bsnlc
44509 s/["\\]/\\&/g; s/^/"/; s/$/"/p
44510 d
44511 :bsnlc
44512 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
44513 b cont
44514 ' <confdefs.h | sed '
44515 s/'"$ac_delim"'/"\\\
44516 "/g' >>$CONFIG_STATUS || ac_write_fail=1
44517
44518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
44519   for (key in D) D_is_set[key] = 1
44520   FS = "\a"
44521 }
44522 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
44523   line = \$ 0
44524   split(line, arg, " ")
44525   if (arg[1] == "#") {
44526     defundef = arg[2]
44527     mac1 = arg[3]
44528   } else {
44529     defundef = substr(arg[1], 2)
44530     mac1 = arg[2]
44531   }
44532   split(mac1, mac2, "(") #)
44533   macro = mac2[1]
44534   prefix = substr(line, 1, index(line, defundef) - 1)
44535   if (D_is_set[macro]) {
44536     # Preserve the white space surrounding the "#".
44537     print prefix "define", macro P[macro] D[macro]
44538     next
44539   } else {
44540     # Replace #undef with comments.  This is necessary, for example,
44541     # in the case of _POSIX_SOURCE, which is predefined and required
44542     # on some systems where configure will not decide to define it.
44543     if (defundef == "undef") {
44544       print "/*", prefix defundef, macro, "*/"
44545       next
44546     }
44547   }
44548 }
44549 { print }
44550 _ACAWK
44551 _ACEOF
44552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
44553   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
44554 fi # test -n "$CONFIG_HEADERS"
44555
44556
44557 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
44558 shift
44559 for ac_tag
44560 do
44561   case $ac_tag in
44562   :[FHLC]) ac_mode=$ac_tag; continue;;
44563   esac
44564   case $ac_mode$ac_tag in
44565   :[FHL]*:*);;
44566   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
44567   :[FH]-) ac_tag=-:-;;
44568   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
44569   esac
44570   ac_save_IFS=$IFS
44571   IFS=:
44572   set x $ac_tag
44573   IFS=$ac_save_IFS
44574   shift
44575   ac_file=$1
44576   shift
44577
44578   case $ac_mode in
44579   :L) ac_source=$1;;
44580   :[FH])
44581     ac_file_inputs=
44582     for ac_f
44583     do
44584       case $ac_f in
44585       -) ac_f="$ac_tmp/stdin";;
44586       *) # Look for the file first in the build tree, then in the source tree
44587          # (if the path is not absolute).  The absolute path cannot be DOS-style,
44588          # because $ac_f cannot contain `:'.
44589          test -f "$ac_f" ||
44590            case $ac_f in
44591            [\\/$]*) false;;
44592            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
44593            esac ||
44594            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
44595       esac
44596       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
44597       as_fn_append ac_file_inputs " '$ac_f'"
44598     done
44599
44600     # Let's still pretend it is `configure' which instantiates (i.e., don't
44601     # use $as_me), people would be surprised to read:
44602     #    /* config.h.  Generated by config.status.  */
44603     configure_input='Generated from '`
44604           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
44605         `' by configure.'
44606     if test x"$ac_file" != x-; then
44607       configure_input="$ac_file.  $configure_input"
44608       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
44609 $as_echo "$as_me: creating $ac_file" >&6;}
44610     fi
44611     # Neutralize special characters interpreted by sed in replacement strings.
44612     case $configure_input in #(
44613     *\&* | *\|* | *\\* )
44614        ac_sed_conf_input=`$as_echo "$configure_input" |
44615        sed 's/[\\\\&|]/\\\\&/g'`;; #(
44616     *) ac_sed_conf_input=$configure_input;;
44617     esac
44618
44619     case $ac_tag in
44620     *:-:* | *:-) cat >"$ac_tmp/stdin" \
44621       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
44622     esac
44623     ;;
44624   esac
44625
44626   ac_dir=`$as_dirname -- "$ac_file" ||
44627 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44628          X"$ac_file" : 'X\(//\)[^/]' \| \
44629          X"$ac_file" : 'X\(//\)$' \| \
44630          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
44631 $as_echo X"$ac_file" |
44632     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44633             s//\1/
44634             q
44635           }
44636           /^X\(\/\/\)[^/].*/{
44637             s//\1/
44638             q
44639           }
44640           /^X\(\/\/\)$/{
44641             s//\1/
44642             q
44643           }
44644           /^X\(\/\).*/{
44645             s//\1/
44646             q
44647           }
44648           s/.*/./; q'`
44649   as_dir="$ac_dir"; as_fn_mkdir_p
44650   ac_builddir=.
44651
44652 case "$ac_dir" in
44653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
44654 *)
44655   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
44656   # A ".." for each directory in $ac_dir_suffix.
44657   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
44658   case $ac_top_builddir_sub in
44659   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
44660   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
44661   esac ;;
44662 esac
44663 ac_abs_top_builddir=$ac_pwd
44664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
44665 # for backward compatibility:
44666 ac_top_builddir=$ac_top_build_prefix
44667
44668 case $srcdir in
44669   .)  # We are building in place.
44670     ac_srcdir=.
44671     ac_top_srcdir=$ac_top_builddir_sub
44672     ac_abs_top_srcdir=$ac_pwd ;;
44673   [\\/]* | ?:[\\/]* )  # Absolute name.
44674     ac_srcdir=$srcdir$ac_dir_suffix;
44675     ac_top_srcdir=$srcdir
44676     ac_abs_top_srcdir=$srcdir ;;
44677   *) # Relative name.
44678     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
44679     ac_top_srcdir=$ac_top_build_prefix$srcdir
44680     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
44681 esac
44682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
44683
44684
44685   case $ac_mode in
44686   :F)
44687   #
44688   # CONFIG_FILE
44689   #
44690
44691   case $INSTALL in
44692   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44693   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
44694   esac
44695   ac_MKDIR_P=$MKDIR_P
44696   case $MKDIR_P in
44697   [\\/$]* | ?:[\\/]* ) ;;
44698   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
44699   esac
44700 _ACEOF
44701
44702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
44703 # If the template does not know about datarootdir, expand it.
44704 # FIXME: This hack should be removed a few years after 2.60.
44705 ac_datarootdir_hack=; ac_datarootdir_seen=
44706 ac_sed_dataroot='
44707 /datarootdir/ {
44708   p
44709   q
44710 }
44711 /@datadir@/p
44712 /@docdir@/p
44713 /@infodir@/p
44714 /@localedir@/p
44715 /@mandir@/p'
44716 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
44717 *datarootdir*) ac_datarootdir_seen=yes;;
44718 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
44719   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
44720 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
44721 _ACEOF
44722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
44723   ac_datarootdir_hack='
44724   s&@datadir@&$datadir&g
44725   s&@docdir@&$docdir&g
44726   s&@infodir@&$infodir&g
44727   s&@localedir@&$localedir&g
44728   s&@mandir@&$mandir&g
44729   s&\\\${datarootdir}&$datarootdir&g' ;;
44730 esac
44731 _ACEOF
44732
44733 # Neutralize VPATH when `$srcdir' = `.'.
44734 # Shell code in configure.ac might set extrasub.
44735 # FIXME: do we really want to maintain this feature?
44736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
44737 ac_sed_extra="$ac_vpsub
44738 $extrasub
44739 _ACEOF
44740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
44741 :t
44742 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44743 s|@configure_input@|$ac_sed_conf_input|;t t
44744 s&@top_builddir@&$ac_top_builddir_sub&;t t
44745 s&@top_build_prefix@&$ac_top_build_prefix&;t t
44746 s&@srcdir@&$ac_srcdir&;t t
44747 s&@abs_srcdir@&$ac_abs_srcdir&;t t
44748 s&@top_srcdir@&$ac_top_srcdir&;t t
44749 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
44750 s&@builddir@&$ac_builddir&;t t
44751 s&@abs_builddir@&$ac_abs_builddir&;t t
44752 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
44753 s&@INSTALL@&$ac_INSTALL&;t t
44754 s&@MKDIR_P@&$ac_MKDIR_P&;t t
44755 $ac_datarootdir_hack
44756 "
44757 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
44758   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
44759
44760 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
44761   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
44762   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
44763       "$ac_tmp/out"`; test -z "$ac_out"; } &&
44764   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44765 which seems to be undefined.  Please make sure it is defined" >&5
44766 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44767 which seems to be undefined.  Please make sure it is defined" >&2;}
44768
44769   rm -f "$ac_tmp/stdin"
44770   case $ac_file in
44771   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
44772   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
44773   esac \
44774   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
44775  ;;
44776   :H)
44777   #
44778   # CONFIG_HEADER
44779   #
44780   if test x"$ac_file" != x-; then
44781     {
44782       $as_echo "/* $configure_input  */" \
44783       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
44784     } >"$ac_tmp/config.h" \
44785       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
44786     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
44787       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
44788 $as_echo "$as_me: $ac_file is unchanged" >&6;}
44789     else
44790       rm -f "$ac_file"
44791       mv "$ac_tmp/config.h" "$ac_file" \
44792         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
44793     fi
44794   else
44795     $as_echo "/* $configure_input  */" \
44796       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
44797       || as_fn_error $? "could not create -" "$LINENO" 5
44798   fi
44799 # Compute "$ac_file"'s index in $config_headers.
44800 _am_arg="$ac_file"
44801 _am_stamp_count=1
44802 for _am_header in $config_headers :; do
44803   case $_am_header in
44804     $_am_arg | $_am_arg:* )
44805       break ;;
44806     * )
44807       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
44808   esac
44809 done
44810 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
44811 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44812          X"$_am_arg" : 'X\(//\)[^/]' \| \
44813          X"$_am_arg" : 'X\(//\)$' \| \
44814          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
44815 $as_echo X"$_am_arg" |
44816     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44817             s//\1/
44818             q
44819           }
44820           /^X\(\/\/\)[^/].*/{
44821             s//\1/
44822             q
44823           }
44824           /^X\(\/\/\)$/{
44825             s//\1/
44826             q
44827           }
44828           /^X\(\/\).*/{
44829             s//\1/
44830             q
44831           }
44832           s/.*/./; q'`/stamp-h$_am_stamp_count
44833  ;;
44834
44835   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
44836 $as_echo "$as_me: executing $ac_file commands" >&6;}
44837  ;;
44838   esac
44839
44840
44841   case $ac_file$ac_mode in
44842     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
44843   # Older Autoconf quotes --file arguments for eval, but not when files
44844   # are listed without --file.  Let's play safe and only enable the eval
44845   # if we detect the quoting.
44846   # TODO: see whether this extra hack can be removed once we start
44847   # requiring Autoconf 2.70 or later.
44848   case $CONFIG_FILES in #(
44849   *\'*) :
44850     eval set x "$CONFIG_FILES" ;; #(
44851   *) :
44852     set x $CONFIG_FILES ;; #(
44853   *) :
44854      ;;
44855 esac
44856   shift
44857   # Used to flag and report bootstrapping failures.
44858   am_rc=0
44859   for am_mf
44860   do
44861     # Strip MF so we end up with the name of the file.
44862     am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
44863     # Check whether this is an Automake generated Makefile which includes
44864     # dependency-tracking related rules and includes.
44865     # Grep'ing the whole file directly is not great: AIX grep has a line
44866     # limit of 2048, but all sed's we know have understand at least 4000.
44867     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
44868       || continue
44869     am_dirpart=`$as_dirname -- "$am_mf" ||
44870 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44871          X"$am_mf" : 'X\(//\)[^/]' \| \
44872          X"$am_mf" : 'X\(//\)$' \| \
44873          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
44874 $as_echo X"$am_mf" |
44875     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44876             s//\1/
44877             q
44878           }
44879           /^X\(\/\/\)[^/].*/{
44880             s//\1/
44881             q
44882           }
44883           /^X\(\/\/\)$/{
44884             s//\1/
44885             q
44886           }
44887           /^X\(\/\).*/{
44888             s//\1/
44889             q
44890           }
44891           s/.*/./; q'`
44892     am_filepart=`$as_basename -- "$am_mf" ||
44893 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
44894          X"$am_mf" : 'X\(//\)$' \| \
44895          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
44896 $as_echo X/"$am_mf" |
44897     sed '/^.*\/\([^/][^/]*\)\/*$/{
44898             s//\1/
44899             q
44900           }
44901           /^X\/\(\/\/\)$/{
44902             s//\1/
44903             q
44904           }
44905           /^X\/\(\/\).*/{
44906             s//\1/
44907             q
44908           }
44909           s/.*/./; q'`
44910     { echo "$as_me:$LINENO: cd "$am_dirpart" \
44911       && sed -e '/# am--include-marker/d' "$am_filepart" \
44912         | $MAKE -f - am--depfiles" >&5
44913    (cd "$am_dirpart" \
44914       && sed -e '/# am--include-marker/d' "$am_filepart" \
44915         | $MAKE -f - am--depfiles) >&5 2>&5
44916    ac_status=$?
44917    echo "$as_me:$LINENO: \$? = $ac_status" >&5
44918    (exit $ac_status); } || am_rc=$?
44919   done
44920   if test $am_rc -ne 0; then
44921     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
44922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
44923 as_fn_error $? "Something went wrong bootstrapping makefile fragments
44924     for automatic dependency tracking.  Try re-running configure with the
44925     '--disable-dependency-tracking' option to at least be able to build
44926     the package (albeit without support for automatic dependency tracking).
44927 See \`config.log' for more details" "$LINENO" 5; }
44928   fi
44929   { am_dirpart=; unset am_dirpart;}
44930   { am_filepart=; unset am_filepart;}
44931   { am_mf=; unset am_mf;}
44932   { am_rc=; unset am_rc;}
44933   rm -f conftest-deps.mk
44934 }
44935  ;;
44936     "libtool":C)
44937
44938     # See if we are running on zsh, and set the options that allow our
44939     # commands through without removal of \ escapes.
44940     if test -n "${ZSH_VERSION+set}"; then
44941       setopt NO_GLOB_SUBST
44942     fi
44943
44944     cfgfile=${ofile}T
44945     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
44946     $RM "$cfgfile"
44947
44948     cat <<_LT_EOF >> "$cfgfile"
44949 #! $SHELL
44950 # Generated automatically by $as_me ($PACKAGE) $VERSION
44951 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
44952
44953 # Provide generalized library-building support services.
44954 # Written by Gordon Matzigkeit, 1996
44955
44956 # Copyright (C) 2014 Free Software Foundation, Inc.
44957 # This is free software; see the source for copying conditions.  There is NO
44958 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
44959
44960 # GNU Libtool is free software; you can redistribute it and/or modify
44961 # it under the terms of the GNU General Public License as published by
44962 # the Free Software Foundation; either version 2 of of the License, or
44963 # (at your option) any later version.
44964 #
44965 # As a special exception to the GNU General Public License, if you
44966 # distribute this file as part of a program or library that is built
44967 # using GNU Libtool, you may include this file under the  same
44968 # distribution terms that you use for the rest of that program.
44969 #
44970 # GNU Libtool is distributed in the hope that it will be useful, but
44971 # WITHOUT ANY WARRANTY; without even the implied warranty of
44972 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
44973 # GNU General Public License for more details.
44974 #
44975 # You should have received a copy of the GNU General Public License
44976 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
44977
44978
44979 # The names of the tagged configurations supported by this script.
44980 available_tags=''
44981
44982 # Configured defaults for sys_lib_dlsearch_path munging.
44983 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
44984
44985 # ### BEGIN LIBTOOL CONFIG
44986
44987 # Which release of libtool.m4 was used?
44988 macro_version=$macro_version
44989 macro_revision=$macro_revision
44990
44991 # Assembler program.
44992 AS=$lt_AS
44993
44994 # DLL creation program.
44995 DLLTOOL=$lt_DLLTOOL
44996
44997 # Object dumper program.
44998 OBJDUMP=$lt_OBJDUMP
44999
45000 # Whether or not to build shared libraries.
45001 build_libtool_libs=$enable_shared
45002
45003 # Whether or not to build static libraries.
45004 build_old_libs=$enable_static
45005
45006 # What type of objects to build.
45007 pic_mode=$pic_mode
45008
45009 # Whether or not to optimize for fast installation.
45010 fast_install=$enable_fast_install
45011
45012 # Shared archive member basename,for filename based shared library versioning on AIX.
45013 shared_archive_member_spec=$shared_archive_member_spec
45014
45015 # Shell to use when invoking shell scripts.
45016 SHELL=$lt_SHELL
45017
45018 # An echo program that protects backslashes.
45019 ECHO=$lt_ECHO
45020
45021 # The PATH separator for the build system.
45022 PATH_SEPARATOR=$lt_PATH_SEPARATOR
45023
45024 # The host system.
45025 host_alias=$host_alias
45026 host=$host
45027 host_os=$host_os
45028
45029 # The build system.
45030 build_alias=$build_alias
45031 build=$build
45032 build_os=$build_os
45033
45034 # A sed program that does not truncate output.
45035 SED=$lt_SED
45036
45037 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
45038 Xsed="\$SED -e 1s/^X//"
45039
45040 # A grep program that handles long lines.
45041 GREP=$lt_GREP
45042
45043 # An ERE matcher.
45044 EGREP=$lt_EGREP
45045
45046 # A literal string matcher.
45047 FGREP=$lt_FGREP
45048
45049 # A BSD- or MS-compatible name lister.
45050 NM=$lt_NM
45051
45052 # Whether we need soft or hard links.
45053 LN_S=$lt_LN_S
45054
45055 # What is the maximum length of a command?
45056 max_cmd_len=$max_cmd_len
45057
45058 # Object file suffix (normally "o").
45059 objext=$ac_objext
45060
45061 # Executable file suffix (normally "").
45062 exeext=$exeext
45063
45064 # whether the shell understands "unset".
45065 lt_unset=$lt_unset
45066
45067 # turn spaces into newlines.
45068 SP2NL=$lt_lt_SP2NL
45069
45070 # turn newlines into spaces.
45071 NL2SP=$lt_lt_NL2SP
45072
45073 # convert \$build file names to \$host format.
45074 to_host_file_cmd=$lt_cv_to_host_file_cmd
45075
45076 # convert \$build files to toolchain format.
45077 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
45078
45079 # Method to check whether dependent libraries are shared objects.
45080 deplibs_check_method=$lt_deplibs_check_method
45081
45082 # Command to use when deplibs_check_method = "file_magic".
45083 file_magic_cmd=$lt_file_magic_cmd
45084
45085 # How to find potential files when deplibs_check_method = "file_magic".
45086 file_magic_glob=$lt_file_magic_glob
45087
45088 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
45089 want_nocaseglob=$lt_want_nocaseglob
45090
45091 # Command to associate shared and link libraries.
45092 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
45093
45094 # The archiver.
45095 AR=$lt_AR
45096
45097 # Flags to create an archive.
45098 AR_FLAGS=$lt_AR_FLAGS
45099
45100 # How to feed a file listing to the archiver.
45101 archiver_list_spec=$lt_archiver_list_spec
45102
45103 # A symbol stripping program.
45104 STRIP=$lt_STRIP
45105
45106 # Commands used to install an old-style archive.
45107 RANLIB=$lt_RANLIB
45108 old_postinstall_cmds=$lt_old_postinstall_cmds
45109 old_postuninstall_cmds=$lt_old_postuninstall_cmds
45110
45111 # Whether to use a lock for old archive extraction.
45112 lock_old_archive_extraction=$lock_old_archive_extraction
45113
45114 # A C compiler.
45115 LTCC=$lt_CC
45116
45117 # LTCC compiler flags.
45118 LTCFLAGS=$lt_CFLAGS
45119
45120 # Take the output of nm and produce a listing of raw symbols and C names.
45121 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
45122
45123 # Transform the output of nm in a proper C declaration.
45124 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
45125
45126 # Transform the output of nm into a list of symbols to manually relocate.
45127 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
45128
45129 # Transform the output of nm in a C name address pair.
45130 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
45131
45132 # Transform the output of nm in a C name address pair when lib prefix is needed.
45133 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
45134
45135 # The name lister interface.
45136 nm_interface=$lt_lt_cv_nm_interface
45137
45138 # Specify filename containing input files for \$NM.
45139 nm_file_list_spec=$lt_nm_file_list_spec
45140
45141 # The root where to search for dependent libraries,and where our libraries should be installed.
45142 lt_sysroot=$lt_sysroot
45143
45144 # Command to truncate a binary pipe.
45145 lt_truncate_bin=$lt_lt_cv_truncate_bin
45146
45147 # The name of the directory that contains temporary libtool files.
45148 objdir=$objdir
45149
45150 # Used to examine libraries when file_magic_cmd begins with "file".
45151 MAGIC_CMD=$MAGIC_CMD
45152
45153 # Must we lock files when doing compilation?
45154 need_locks=$lt_need_locks
45155
45156 # Manifest tool.
45157 MANIFEST_TOOL=$lt_MANIFEST_TOOL
45158
45159 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
45160 DSYMUTIL=$lt_DSYMUTIL
45161
45162 # Tool to change global to local symbols on Mac OS X.
45163 NMEDIT=$lt_NMEDIT
45164
45165 # Tool to manipulate fat objects and archives on Mac OS X.
45166 LIPO=$lt_LIPO
45167
45168 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
45169 OTOOL=$lt_OTOOL
45170
45171 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
45172 OTOOL64=$lt_OTOOL64
45173
45174 # Old archive suffix (normally "a").
45175 libext=$libext
45176
45177 # Shared library suffix (normally ".so").
45178 shrext_cmds=$lt_shrext_cmds
45179
45180 # The commands to extract the exported symbol list from a shared archive.
45181 extract_expsyms_cmds=$lt_extract_expsyms_cmds
45182
45183 # Variables whose values should be saved in libtool wrapper scripts and
45184 # restored at link time.
45185 variables_saved_for_relink=$lt_variables_saved_for_relink
45186
45187 # Do we need the "lib" prefix for modules?
45188 need_lib_prefix=$need_lib_prefix
45189
45190 # Do we need a version for libraries?
45191 need_version=$need_version
45192
45193 # Library versioning type.
45194 version_type=$version_type
45195
45196 # Shared library runtime path variable.
45197 runpath_var=$runpath_var
45198
45199 # Shared library path variable.
45200 shlibpath_var=$shlibpath_var
45201
45202 # Is shlibpath searched before the hard-coded library search path?
45203 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
45204
45205 # Format of library name prefix.
45206 libname_spec=$lt_libname_spec
45207
45208 # List of archive names.  First name is the real one, the rest are links.
45209 # The last name is the one that the linker finds with -lNAME
45210 library_names_spec=$lt_library_names_spec
45211
45212 # The coded name of the library, if different from the real name.
45213 soname_spec=$lt_soname_spec
45214
45215 # Permission mode override for installation of shared libraries.
45216 install_override_mode=$lt_install_override_mode
45217
45218 # Command to use after installation of a shared archive.
45219 postinstall_cmds=$lt_postinstall_cmds
45220
45221 # Command to use after uninstallation of a shared archive.
45222 postuninstall_cmds=$lt_postuninstall_cmds
45223
45224 # Commands used to finish a libtool library installation in a directory.
45225 finish_cmds=$lt_finish_cmds
45226
45227 # As "finish_cmds", except a single script fragment to be evaled but
45228 # not shown.
45229 finish_eval=$lt_finish_eval
45230
45231 # Whether we should hardcode library paths into libraries.
45232 hardcode_into_libs=$hardcode_into_libs
45233
45234 # Compile-time system search path for libraries.
45235 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
45236
45237 # Detected run-time system search path for libraries.
45238 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
45239
45240 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
45241 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
45242
45243 # Whether dlopen is supported.
45244 dlopen_support=$enable_dlopen
45245
45246 # Whether dlopen of programs is supported.
45247 dlopen_self=$enable_dlopen_self
45248
45249 # Whether dlopen of statically linked programs is supported.
45250 dlopen_self_static=$enable_dlopen_self_static
45251
45252 # Commands to strip libraries.
45253 old_striplib=$lt_old_striplib
45254 striplib=$lt_striplib
45255
45256
45257 # The linker used to build libraries.
45258 LD=$lt_LD
45259
45260 # How to create reloadable object files.
45261 reload_flag=$lt_reload_flag
45262 reload_cmds=$lt_reload_cmds
45263
45264 # Commands used to build an old-style archive.
45265 old_archive_cmds=$lt_old_archive_cmds
45266
45267 # A language specific compiler.
45268 CC=$lt_compiler
45269
45270 # Is the compiler the GNU compiler?
45271 with_gcc=$GCC
45272
45273 # Compiler flag to turn off builtin functions.
45274 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
45275
45276 # Additional compiler flags for building library objects.
45277 pic_flag=$lt_lt_prog_compiler_pic
45278
45279 # How to pass a linker flag through the compiler.
45280 wl=$lt_lt_prog_compiler_wl
45281
45282 # Compiler flag to prevent dynamic linking.
45283 link_static_flag=$lt_lt_prog_compiler_static
45284
45285 # Does compiler simultaneously support -c and -o options?
45286 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
45287
45288 # Whether or not to add -lc for building shared libraries.
45289 build_libtool_need_lc=$archive_cmds_need_lc
45290
45291 # Whether or not to disallow shared libs when runtime libs are static.
45292 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
45293
45294 # Compiler flag to allow reflexive dlopens.
45295 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
45296
45297 # Compiler flag to generate shared objects directly from archives.
45298 whole_archive_flag_spec=$lt_whole_archive_flag_spec
45299
45300 # Whether the compiler copes with passing no objects directly.
45301 compiler_needs_object=$lt_compiler_needs_object
45302
45303 # Create an old-style archive from a shared archive.
45304 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
45305
45306 # Create a temporary old-style archive to link instead of a shared archive.
45307 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
45308
45309 # Commands used to build a shared archive.
45310 archive_cmds=$lt_archive_cmds
45311 archive_expsym_cmds=$lt_archive_expsym_cmds
45312
45313 # Commands used to build a loadable module if different from building
45314 # a shared archive.
45315 module_cmds=$lt_module_cmds
45316 module_expsym_cmds=$lt_module_expsym_cmds
45317
45318 # Whether we are building with GNU ld or not.
45319 with_gnu_ld=$lt_with_gnu_ld
45320
45321 # Flag that allows shared libraries with undefined symbols to be built.
45322 allow_undefined_flag=$lt_allow_undefined_flag
45323
45324 # Flag that enforces no undefined symbols.
45325 no_undefined_flag=$lt_no_undefined_flag
45326
45327 # Flag to hardcode \$libdir into a binary during linking.
45328 # This must work even if \$libdir does not exist
45329 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
45330
45331 # Whether we need a single "-rpath" flag with a separated argument.
45332 hardcode_libdir_separator=$lt_hardcode_libdir_separator
45333
45334 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
45335 # DIR into the resulting binary.
45336 hardcode_direct=$hardcode_direct
45337
45338 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
45339 # DIR into the resulting binary and the resulting library dependency is
45340 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
45341 # library is relocated.
45342 hardcode_direct_absolute=$hardcode_direct_absolute
45343
45344 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
45345 # into the resulting binary.
45346 hardcode_minus_L=$hardcode_minus_L
45347
45348 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
45349 # into the resulting binary.
45350 hardcode_shlibpath_var=$hardcode_shlibpath_var
45351
45352 # Set to "yes" if building a shared library automatically hardcodes DIR
45353 # into the library and all subsequent libraries and executables linked
45354 # against it.
45355 hardcode_automatic=$hardcode_automatic
45356
45357 # Set to yes if linker adds runtime paths of dependent libraries
45358 # to runtime path list.
45359 inherit_rpath=$inherit_rpath
45360
45361 # Whether libtool must link a program against all its dependency libraries.
45362 link_all_deplibs=$link_all_deplibs
45363
45364 # Set to "yes" if exported symbols are required.
45365 always_export_symbols=$always_export_symbols
45366
45367 # The commands to list exported symbols.
45368 export_symbols_cmds=$lt_export_symbols_cmds
45369
45370 # Symbols that should not be listed in the preloaded symbols.
45371 exclude_expsyms=$lt_exclude_expsyms
45372
45373 # Symbols that must always be exported.
45374 include_expsyms=$lt_include_expsyms
45375
45376 # Commands necessary for linking programs (against libraries) with templates.
45377 prelink_cmds=$lt_prelink_cmds
45378
45379 # Commands necessary for finishing linking programs.
45380 postlink_cmds=$lt_postlink_cmds
45381
45382 # Specify filename containing input files.
45383 file_list_spec=$lt_file_list_spec
45384
45385 # How to hardcode a shared library path into an executable.
45386 hardcode_action=$hardcode_action
45387
45388 # ### END LIBTOOL CONFIG
45389
45390 _LT_EOF
45391
45392     cat <<'_LT_EOF' >> "$cfgfile"
45393
45394 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
45395
45396 # func_munge_path_list VARIABLE PATH
45397 # -----------------------------------
45398 # VARIABLE is name of variable containing _space_ separated list of
45399 # directories to be munged by the contents of PATH, which is string
45400 # having a format:
45401 # "DIR[:DIR]:"
45402 #       string "DIR[ DIR]" will be prepended to VARIABLE
45403 # ":DIR[:DIR]"
45404 #       string "DIR[ DIR]" will be appended to VARIABLE
45405 # "DIRP[:DIRP]::[DIRA:]DIRA"
45406 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
45407 #       "DIRA[ DIRA]" will be appended to VARIABLE
45408 # "DIR[:DIR]"
45409 #       VARIABLE will be replaced by "DIR[ DIR]"
45410 func_munge_path_list ()
45411 {
45412     case x$2 in
45413     x)
45414         ;;
45415     *:)
45416         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
45417         ;;
45418     x:*)
45419         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
45420         ;;
45421     *::*)
45422         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
45423         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
45424         ;;
45425     *)
45426         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
45427         ;;
45428     esac
45429 }
45430
45431
45432 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
45433 func_cc_basename ()
45434 {
45435     for cc_temp in $*""; do
45436       case $cc_temp in
45437         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
45438         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
45439         \-*) ;;
45440         *) break;;
45441       esac
45442     done
45443     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
45444 }
45445
45446
45447 # ### END FUNCTIONS SHARED WITH CONFIGURE
45448
45449 _LT_EOF
45450
45451   case $host_os in
45452   aix3*)
45453     cat <<\_LT_EOF >> "$cfgfile"
45454 # AIX sometimes has problems with the GCC collect2 program.  For some
45455 # reason, if we set the COLLECT_NAMES environment variable, the problems
45456 # vanish in a puff of smoke.
45457 if test set != "${COLLECT_NAMES+set}"; then
45458   COLLECT_NAMES=
45459   export COLLECT_NAMES
45460 fi
45461 _LT_EOF
45462     ;;
45463   esac
45464
45465
45466 ltmain=$ac_aux_dir/ltmain.sh
45467
45468
45469   # We use sed instead of cat because bash on DJGPP gets confused if
45470   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
45471   # text mode, it properly converts lines to CR/LF.  This bash problem
45472   # is reportedly fixed, but why not run on old versions too?
45473   sed '$q' "$ltmain" >> "$cfgfile" \
45474      || (rm -f "$cfgfile"; exit 1)
45475
45476    mv -f "$cfgfile" "$ofile" ||
45477     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
45478   chmod +x "$ofile"
45479
45480  ;;
45481
45482   esac
45483 done # for ac_tag
45484
45485
45486 as_fn_exit 0
45487 _ACEOF
45488 ac_clean_files=$ac_clean_files_save
45489
45490 test $ac_write_fail = 0 ||
45491   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
45492
45493
45494 # configure is writing to config.log, and then calls config.status.
45495 # config.status does its own redirection, appending to config.log.
45496 # Unfortunately, on DOS this fails, as config.log is still kept open
45497 # by configure, so config.status won't be able to write to it; its
45498 # output is simply discarded.  So we exec the FD to /dev/null,
45499 # effectively closing config.log, so it can be properly (re)opened and
45500 # appended to by config.status.  When coming back to configure, we
45501 # need to make the FD available again.
45502 if test "$no_create" != yes; then
45503   ac_cs_success=:
45504   ac_config_status_args=
45505   test "$silent" = yes &&
45506     ac_config_status_args="$ac_config_status_args --quiet"
45507   exec 5>/dev/null
45508   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45509   exec 5>>config.log
45510   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45511   # would make configure fail if this is the last instruction.
45512   $ac_cs_success || as_fn_exit 1
45513 fi
45514
45515 #
45516 # CONFIG_SUBDIRS section.
45517 #
45518 if test "$no_recursion" != yes; then
45519
45520   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
45521   # so they do not pile up.
45522   ac_sub_configure_args=
45523   ac_prev=
45524   eval "set x $ac_configure_args"
45525   shift
45526   for ac_arg
45527   do
45528     if test -n "$ac_prev"; then
45529       ac_prev=
45530       continue
45531     fi
45532     case $ac_arg in
45533     -cache-file | --cache-file | --cache-fil | --cache-fi \
45534     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
45535       ac_prev=cache_file ;;
45536     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
45537     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
45538     | --c=*)
45539       ;;
45540     --config-cache | -C)
45541       ;;
45542     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
45543       ac_prev=srcdir ;;
45544     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
45545       ;;
45546     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
45547       ac_prev=prefix ;;
45548     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
45549       ;;
45550     --disable-option-checking)
45551       ;;
45552     *)
45553       case $ac_arg in
45554       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
45555       esac
45556       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
45557     esac
45558   done
45559
45560   # Always prepend --prefix to ensure using the same prefix
45561   # in subdir configurations.
45562   ac_arg="--prefix=$prefix"
45563   case $ac_arg in
45564   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
45565   esac
45566   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
45567
45568   # Pass --silent
45569   if test "$silent" = yes; then
45570     ac_sub_configure_args="--silent $ac_sub_configure_args"
45571   fi
45572
45573   # Always prepend --disable-option-checking to silence warnings, since
45574   # different subdirs can have different --enable and --with options.
45575   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
45576
45577   ac_popdir=`pwd`
45578   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
45579
45580     # Do not complain, so a configure script can configure whichever
45581     # parts of a large source tree are present.
45582     test -d "$srcdir/$ac_dir" || continue
45583
45584     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
45585     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
45586     $as_echo "$ac_msg" >&6
45587     as_dir="$ac_dir"; as_fn_mkdir_p
45588     ac_builddir=.
45589
45590 case "$ac_dir" in
45591 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
45592 *)
45593   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
45594   # A ".." for each directory in $ac_dir_suffix.
45595   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
45596   case $ac_top_builddir_sub in
45597   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
45598   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
45599   esac ;;
45600 esac
45601 ac_abs_top_builddir=$ac_pwd
45602 ac_abs_builddir=$ac_pwd$ac_dir_suffix
45603 # for backward compatibility:
45604 ac_top_builddir=$ac_top_build_prefix
45605
45606 case $srcdir in
45607   .)  # We are building in place.
45608     ac_srcdir=.
45609     ac_top_srcdir=$ac_top_builddir_sub
45610     ac_abs_top_srcdir=$ac_pwd ;;
45611   [\\/]* | ?:[\\/]* )  # Absolute name.
45612     ac_srcdir=$srcdir$ac_dir_suffix;
45613     ac_top_srcdir=$srcdir
45614     ac_abs_top_srcdir=$srcdir ;;
45615   *) # Relative name.
45616     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
45617     ac_top_srcdir=$ac_top_build_prefix$srcdir
45618     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
45619 esac
45620 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
45621
45622
45623     cd "$ac_dir"
45624
45625     # Check for guested configure; otherwise get Cygnus style configure.
45626     if test -f "$ac_srcdir/configure.gnu"; then
45627       ac_sub_configure=$ac_srcdir/configure.gnu
45628     elif test -f "$ac_srcdir/configure"; then
45629       ac_sub_configure=$ac_srcdir/configure
45630     elif test -f "$ac_srcdir/configure.in"; then
45631       # This should be Cygnus configure.
45632       ac_sub_configure=$ac_aux_dir/configure
45633     else
45634       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
45635 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
45636       ac_sub_configure=
45637     fi
45638
45639     # The recursion is here.
45640     if test -n "$ac_sub_configure"; then
45641       # Make the cache file name correct relative to the subdirectory.
45642       case $cache_file in
45643       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
45644       *) # Relative name.
45645         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
45646       esac
45647
45648       { $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
45649 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
45650       # The eval makes quoting arguments work.
45651       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
45652            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
45653         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
45654     fi
45655
45656     cd "$ac_popdir"
45657   done
45658 fi
45659 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
45660   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
45661 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
45662 fi
45663
45664
45665
45666     tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
45667   if test -z "$tmp_cpp"; then
45668     tmp_cpp='cpp'
45669   fi
45670   cat >./tests/configurehelp.pm <<_EOF
45671 # This is a generated file.  Do not edit.
45672
45673 package configurehelp;
45674
45675 use strict;
45676 use warnings;
45677 use Exporter;
45678
45679 use vars qw(
45680     @ISA
45681     @EXPORT_OK
45682     \$Cpreprocessor
45683     );
45684
45685 @ISA = qw(Exporter);
45686
45687 @EXPORT_OK = qw(
45688     \$Cpreprocessor
45689     );
45690
45691 \$Cpreprocessor = '$tmp_cpp';
45692
45693 1;
45694 _EOF
45695
45696
45697
45698 ## ---------------------------------- ##
45699 ##  Start of distclean amending code  ##
45700 ## ---------------------------------- ##
45701
45702 for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
45703 do
45704
45705 if test ! -f "$xc_subdir/Makefile"; then
45706   echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
45707   exit 1
45708 fi
45709
45710 # Fetch dependency tracking file list from Makefile include lines.
45711
45712 xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
45713 xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
45714
45715 # --disable-dependency-tracking might have been used, consequently
45716 # there is nothing to amend without a dependency tracking file list.
45717
45718 if test $xc_cnt_words -gt 0; then
45719
45720 { $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
45721 $as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
45722
45723 # Build Makefile specific patch hunk.
45724
45725 xc_p="$xc_subdir/xc_patch.tmp"
45726
45727 xc_rm_depfiles=`echo "$xc_inc_lines" \
45728   | $SED 's%include%    -rm -f%' 2>/dev/null`
45729
45730 xc_dep_subdirs=`echo "$xc_inc_lines" \
45731   | $SED 's%include[ ][ ]*%%' 2>/dev/null \
45732   | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
45733   | sort | uniq`
45734
45735 echo "$xc_rm_depfiles" >$xc_p
45736
45737 for xc_dep_dir in $xc_dep_subdirs; do
45738   echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\"            >>$xc_p
45739   echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\"      >>$xc_p
45740   echo "${xc_tab}  rm -rf $xc_dep_dir; \\"                                          >>$xc_p
45741   echo "${xc_tab}fi"                                                                >>$xc_p
45742 done
45743
45744 # Build Makefile patching sed scripts.
45745
45746 xc_s1="$xc_subdir/xc_script_1.tmp"
45747 xc_s2="$xc_subdir/xc_script_2.tmp"
45748 xc_s3="$xc_subdir/xc_script_3.tmp"
45749
45750 cat >$xc_s1 <<\_EOT
45751 /^distclean[ ]*:/,/^[^  ][^     ]*:/{
45752   s/^.*(DEPDIR)/___xc_depdir_line___/
45753 }
45754 /^maintainer-clean[ ]*:/,/^[^   ][^     ]*:/{
45755   s/^.*(DEPDIR)/___xc_depdir_line___/
45756 }
45757 _EOT
45758
45759 cat >$xc_s2 <<\_EOT
45760 /___xc_depdir_line___$/{
45761   N
45762   /___xc_depdir_line___$/D
45763 }
45764 _EOT
45765
45766 cat >$xc_s3 <<_EOT
45767 /^___xc_depdir_line___/{
45768   r $xc_p
45769   d
45770 }
45771 _EOT
45772
45773 # Apply patch to Makefile and cleanup.
45774
45775 $SED -f "$xc_s1" "$xc_subdir/Makefile"      >"$xc_subdir/Makefile.tmp1"
45776 $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
45777 $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
45778
45779 if test -f "$xc_subdir/Makefile.tmp3"; then
45780   mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
45781 fi
45782
45783 test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
45784 test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
45785 test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
45786
45787 test -f "$xc_p"  && rm -f "$xc_p"
45788 test -f "$xc_s1" && rm -f "$xc_s1"
45789 test -f "$xc_s2" && rm -f "$xc_s2"
45790 test -f "$xc_s3" && rm -f "$xc_s3"
45791
45792 fi
45793
45794 done
45795
45796 ## -------------------------------- ##
45797 ##  End of distclean amending code  ##
45798 ## -------------------------------- ##
45799
45800
45801
45802 { $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
45803
45804   Host setup:       ${host}
45805   Install prefix:   ${prefix}
45806   Compiler:         ${CC}
45807    CFLAGS:          ${CFLAGS}
45808    CPPFLAGS:        ${CPPFLAGS}
45809    LDFLAGS:         ${LDFLAGS}
45810    LIBS:            ${LIBS}
45811
45812   curl version:     ${CURLVERSION}
45813   SSL:              ${curl_ssl_msg}
45814   SSH:              ${curl_ssh_msg}
45815   zlib:             ${curl_zlib_msg}
45816   brotli:           ${curl_brotli_msg}
45817   GSS-API:          ${curl_gss_msg}
45818   TLS-SRP:          ${curl_tls_srp_msg}
45819   resolver:         ${curl_res_msg}
45820   IPv6:             ${curl_ipv6_msg}
45821   Unix sockets:     ${curl_unix_sockets_msg}
45822   IDN:              ${curl_idn_msg}
45823   Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
45824   Built-in manual:  ${curl_manual_msg}
45825   --libcurl option: ${curl_libcurl_msg}
45826   Verbose errors:   ${curl_verbose_msg}
45827   Code coverage:    ${curl_coverage_msg}
45828   SSPI:             ${curl_sspi_msg}
45829   ca cert bundle:   ${ca}${ca_warning}
45830   ca cert path:     ${capath}${capath_warning}
45831   ca fallback:      ${with_ca_fallback}
45832   LDAP:             ${curl_ldap_msg}
45833   LDAPS:            ${curl_ldaps_msg}
45834   RTSP:             ${curl_rtsp_msg}
45835   RTMP:             ${curl_rtmp_msg}
45836   Metalink:         ${curl_mtlnk_msg}
45837   PSL:              ${curl_psl_msg}
45838   Alt-svc:          ${curl_altsvc_msg}
45839   HTTP2:            ${curl_h2_msg}
45840   HTTP3:            ${curl_h3_msg}
45841   ESNI:             ${curl_esni_msg}
45842   Protocols:        ${SUPPORT_PROTOCOLS}
45843   Features:         ${SUPPORT_FEATURES}
45844 " >&5
45845 $as_echo "$as_me: Configured to build curl/libcurl:
45846
45847   Host setup:       ${host}
45848   Install prefix:   ${prefix}
45849   Compiler:         ${CC}
45850    CFLAGS:          ${CFLAGS}
45851    CPPFLAGS:        ${CPPFLAGS}
45852    LDFLAGS:         ${LDFLAGS}
45853    LIBS:            ${LIBS}
45854
45855   curl version:     ${CURLVERSION}
45856   SSL:              ${curl_ssl_msg}
45857   SSH:              ${curl_ssh_msg}
45858   zlib:             ${curl_zlib_msg}
45859   brotli:           ${curl_brotli_msg}
45860   GSS-API:          ${curl_gss_msg}
45861   TLS-SRP:          ${curl_tls_srp_msg}
45862   resolver:         ${curl_res_msg}
45863   IPv6:             ${curl_ipv6_msg}
45864   Unix sockets:     ${curl_unix_sockets_msg}
45865   IDN:              ${curl_idn_msg}
45866   Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
45867   Built-in manual:  ${curl_manual_msg}
45868   --libcurl option: ${curl_libcurl_msg}
45869   Verbose errors:   ${curl_verbose_msg}
45870   Code coverage:    ${curl_coverage_msg}
45871   SSPI:             ${curl_sspi_msg}
45872   ca cert bundle:   ${ca}${ca_warning}
45873   ca cert path:     ${capath}${capath_warning}
45874   ca fallback:      ${with_ca_fallback}
45875   LDAP:             ${curl_ldap_msg}
45876   LDAPS:            ${curl_ldaps_msg}
45877   RTSP:             ${curl_rtsp_msg}
45878   RTMP:             ${curl_rtmp_msg}
45879   Metalink:         ${curl_mtlnk_msg}
45880   PSL:              ${curl_psl_msg}
45881   Alt-svc:          ${curl_altsvc_msg}
45882   HTTP2:            ${curl_h2_msg}
45883   HTTP3:            ${curl_h3_msg}
45884   ESNI:             ${curl_esni_msg}
45885   Protocols:        ${SUPPORT_PROTOCOLS}
45886   Features:         ${SUPPORT_FEATURES}
45887 " >&6;}
45888 if test -n "$experimental"; then
45889  cat >&2 << _EOF
45890   WARNING: $experimental enabled but marked EXPERIMENTAL. Use with caution!
45891 _EOF
45892 fi