Upgrade to 7.81.0
[platform/upstream/curl.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for curl -.
4 #
5 # Report bugs to <a suitable curl mailing list: https://curl.se/mail/>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 #
15 # Copyright (c) 1998 - 2021 Daniel Stenberg, <daniel@haxx.se>
16 # This configure script may be copied, distributed and modified under the
17 # terms of the curl license; see COPYING for more details
18
19 ## -------------------------------- ##
20 ##  XC_CONFIGURE_PREAMBLE ver: 1.0  ##
21 ## -------------------------------- ##
22
23 xc_configure_preamble_ver_major='1'
24 xc_configure_preamble_ver_minor='0'
25
26 #
27 # Set IFS to space, tab and newline.
28 #
29
30 xc_space=' '
31 xc_tab='        '
32 xc_newline='
33 '
34 IFS="$xc_space$xc_tab$xc_newline"
35
36 #
37 # Set internationalization behavior variables.
38 #
39
40 LANG='C'
41 LC_ALL='C'
42 LANGUAGE='C'
43 export LANG
44 export LC_ALL
45 export LANGUAGE
46
47 #
48 # Some useful variables.
49 #
50
51 xc_msg_warn='configure: WARNING:'
52 xc_msg_abrt='Can not continue.'
53 xc_msg_err='configure: error:'
54
55 #
56 # Verify that 'echo' command is available, otherwise abort.
57 #
58
59 xc_tst_str='unknown'
60 (`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
61 case "x$xc_tst_str" in # ((
62   xsuccess)
63     :
64     ;;
65   *)
66     # Try built-in echo, and fail.
67     echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
68     exit 1
69     ;;
70 esac
71
72 #
73 # Verify that 'test' command is available, otherwise abort.
74 #
75
76 xc_tst_str='unknown'
77 (`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
78 case "x$xc_tst_str" in # ((
79   xsuccess)
80     :
81     ;;
82   *)
83     echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2
84     exit 1
85     ;;
86 esac
87
88 #
89 # Verify that 'PATH' variable is set, otherwise abort.
90 #
91
92 xc_tst_str='unknown'
93 (`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
94 case "x$xc_tst_str" in # ((
95   xsuccess)
96     :
97     ;;
98   *)
99     echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2
100     exit 1
101     ;;
102 esac
103
104 #
105 # Verify that 'expr' command is available, otherwise abort.
106 #
107
108 xc_tst_str='unknown'
109 xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
110 case "x$xc_tst_str" in # ((
111   x7)
112     :
113     ;;
114   *)
115     echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2
116     exit 1
117     ;;
118 esac
119
120 #
121 # Verify that 'sed' utility is found within 'PATH', otherwise abort.
122 #
123
124 xc_tst_str='unknown'
125 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
126   | sed -e 's:unknown:success:' 2>/dev/null`
127 case "x$xc_tst_str" in # ((
128   xsuccess)
129     :
130     ;;
131   *)
132     echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2
133     exit 1
134     ;;
135 esac
136
137 #
138 # Verify that 'grep' utility is found within 'PATH', otherwise abort.
139 #
140
141 xc_tst_str='unknown'
142 (`echo "$xc_tst_str" 2>/dev/null \
143   | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
144 case "x$xc_tst_str" in # ((
145   xsuccess)
146     :
147     ;;
148   *)
149     echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2
150     exit 1
151     ;;
152 esac
153
154 #
155 # Verify that 'tr' utility is found within 'PATH', otherwise abort.
156 #
157
158 xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
159 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
160   | tr -d "0123456789$xc_tab" 2>/dev/null`
161 case "x$xc_tst_str" in # ((
162   xsuccess)
163     :
164     ;;
165   *)
166     echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2
167     exit 1
168     ;;
169 esac
170
171 #
172 # Verify that 'wc' utility is found within 'PATH', otherwise abort.
173 #
174
175 xc_tst_str='unknown unknown unknown unknown'
176 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
177   | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
178 case "x$xc_tst_str" in # ((
179   x4)
180     :
181     ;;
182   *)
183     echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2
184     exit 1
185     ;;
186 esac
187
188 #
189 # Verify that 'cat' utility is found within 'PATH', otherwise abort.
190 #
191
192 xc_tst_str='unknown'
193 xc_tst_str=`cat <<_EOT 2>/dev/null \
194   | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
195 unknown
196 unknown
197 unknown
198 _EOT`
199 case "x$xc_tst_str" in # ((
200   x3)
201     :
202     ;;
203   *)
204     echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2
205     exit 1
206     ;;
207 esac
208
209 #
210 # Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
211 #
212
213 # Directory count in 'PATH' when using a colon separator.
214 xc_tst_dirs_col='x'
215 xc_tst_prev_IFS=$IFS; IFS=':'
216 for xc_tst_dir in $PATH; do
217   IFS=$xc_tst_prev_IFS
218   xc_tst_dirs_col="x$xc_tst_dirs_col"
219 done
220 IFS=$xc_tst_prev_IFS
221 xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
222
223 # Directory count in 'PATH' when using a semicolon separator.
224 xc_tst_dirs_sem='x'
225 xc_tst_prev_IFS=$IFS; IFS=';'
226 for xc_tst_dir in $PATH; do
227   IFS=$xc_tst_prev_IFS
228   xc_tst_dirs_sem="x$xc_tst_dirs_sem"
229 done
230 IFS=$xc_tst_prev_IFS
231 xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
232
233 if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then
234   # When both counting methods give the same result we do not want to
235   # chose one over the other, and consider auto-detection not possible.
236   if test -z "$PATH_SEPARATOR"; then
237     # User should provide the correct 'PATH_SEPARATOR' definition.
238     # Until then, guess that it is colon!
239     echo "$xc_msg_warn path separator not determined, guessing colon" >&2
240     PATH_SEPARATOR=':'
241   fi
242 else
243   # Separator with the greater directory count is the auto-detected one.
244   if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
245     xc_tst_auto_separator=';'
246   else
247     xc_tst_auto_separator=':'
248   fi
249   if test -z "$PATH_SEPARATOR"; then
250     # Simply use the auto-detected one when not already set.
251     PATH_SEPARATOR=$xc_tst_auto_separator
252   elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
253     echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
254   fi
255 fi
256 xc_PATH_SEPARATOR=$PATH_SEPARATOR
257
258 xc_configure_preamble_result='yes'
259
260
261 ## -------------------- ##
262 ## M4sh Initialization. ##
263 ## -------------------- ##
264
265 # Be more Bourne compatible
266 DUALCASE=1; export DUALCASE # for MKS sh
267 as_nop=:
268 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
269 then :
270   emulate sh
271   NULLCMD=:
272   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
273   # is contrary to our usage.  Disable this feature.
274   alias -g '${1+"$@"}'='"$@"'
275   setopt NO_GLOB_SUBST
276 else $as_nop
277   case `(set -o) 2>/dev/null` in #(
278   *posix*) :
279     set -o posix ;; #(
280   *) :
281      ;;
282 esac
283 fi
284
285
286
287 # Reset variables that may have inherited troublesome values from
288 # the environment.
289
290 # IFS needs to be set, to space, tab, and newline, in precisely that order.
291 # (If _AS_PATH_WALK were called with IFS unset, it would have the
292 # side effect of setting IFS to empty, thus disabling word splitting.)
293 # Quoting is to prevent editors from complaining about space-tab.
294 as_nl='
295 '
296 export as_nl
297 IFS=" ""        $as_nl"
298
299 PS1='$ '
300 PS2='> '
301 PS4='+ '
302
303 # Ensure predictable behavior from utilities with locale-dependent output.
304 LC_ALL=C
305 export LC_ALL
306 LANGUAGE=C
307 export LANGUAGE
308
309 # We cannot yet rely on "unset" to work, but we need these variables
310 # to be unset--not just set to an empty or harmless value--now, to
311 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
312 # also avoids known problems related to "unset" and subshell syntax
313 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
314 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
315 do eval test \${$as_var+y} \
316   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
317 done
318
319 # Ensure that fds 0, 1, and 2 are open.
320 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
321 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
322 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
323
324
325
326 # Find who we are.  Look in the path if we contain no directory separator.
327 as_myself=
328 case $0 in #((
329   *[\\/]* ) as_myself=$0 ;;
330   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
331 for as_dir in $PATH
332 do
333   IFS=$as_save_IFS
334   case $as_dir in #(((
335     '') as_dir=./ ;;
336     */) ;;
337     *) as_dir=$as_dir/ ;;
338   esac
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   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
352   exit 1
353 fi
354
355
356 # Use a proper internal environment variable to ensure we don't fall
357   # into an infinite loop, continuously re-executing ourselves.
358   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
359     _as_can_reexec=no; export _as_can_reexec;
360     # We cannot yet assume a decent shell, so we have to provide a
361 # neutralization value for shells without unset; and this also
362 # works around shells that cannot unset nonexistent variables.
363 # Preserve -v and -x to the replacement shell.
364 BASH_ENV=/dev/null
365 ENV=/dev/null
366 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
367 case $- in # ((((
368   *v*x* | *x*v* ) as_opts=-vx ;;
369   *v* ) as_opts=-v ;;
370   *x* ) as_opts=-x ;;
371   * ) as_opts= ;;
372 esac
373 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
374 # Admittedly, this is quite paranoid, since all the known shells bail
375 # out after a failed `exec'.
376 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
377 exit 255
378   fi
379   # We don't want this to propagate to other subprocesses.
380           { _as_can_reexec=; unset _as_can_reexec;}
381 if test "x$CONFIG_SHELL" = x; then
382   as_bourne_compatible="as_nop=:
383 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
384 then :
385   emulate sh
386   NULLCMD=:
387   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
388   # is contrary to our usage.  Disable this feature.
389   alias -g '\${1+\"\$@\"}'='\"\$@\"'
390   setopt NO_GLOB_SUBST
391 else \$as_nop
392   case \`(set -o) 2>/dev/null\` in #(
393   *posix*) :
394     set -o posix ;; #(
395   *) :
396      ;;
397 esac
398 fi
399 "
400   as_required="as_fn_return () { (exit \$1); }
401 as_fn_success () { as_fn_return 0; }
402 as_fn_failure () { as_fn_return 1; }
403 as_fn_ret_success () { return 0; }
404 as_fn_ret_failure () { return 1; }
405
406 exitcode=0
407 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
408 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
409 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
410 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
411 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
412 then :
413
414 else \$as_nop
415   exitcode=1; echo positional parameters were not saved.
416 fi
417 test x\$exitcode = x0 || exit 1
418 blah=\$(echo \$(echo blah))
419 test x\"\$blah\" = xblah || exit 1
420 test -x / || exit 1"
421   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
422   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
423   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
424   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
425 test \$(( 1 + 1 )) = 2 || exit 1
426
427   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
428     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
429     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
430     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
431     PATH=/empty FPATH=/empty; export PATH FPATH
432     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
433       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
434   if (eval "$as_required") 2>/dev/null
435 then :
436   as_have_required=yes
437 else $as_nop
438   as_have_required=no
439 fi
440   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
441 then :
442
443 else $as_nop
444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
445 as_found=false
446 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
447 do
448   IFS=$as_save_IFS
449   case $as_dir in #(((
450     '') as_dir=./ ;;
451     */) ;;
452     *) as_dir=$as_dir/ ;;
453   esac
454   as_found=:
455   case $as_dir in #(
456          /*)
457            for as_base in sh bash ksh sh5; do
458              # Try only shells that exist, to save several forks.
459              as_shell=$as_dir$as_base
460              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
461                     as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
462 then :
463   CONFIG_SHELL=$as_shell as_have_required=yes
464                    if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
465 then :
466   break 2
467 fi
468 fi
469            done;;
470        esac
471   as_found=false
472 done
473 IFS=$as_save_IFS
474 if $as_found
475 then :
476
477 else $as_nop
478   if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
479               as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
480 then :
481   CONFIG_SHELL=$SHELL as_have_required=yes
482 fi
483 fi
484
485
486       if test "x$CONFIG_SHELL" != x
487 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
506 exit 255
507 fi
508
509     if test x$as_have_required = xno
510 then :
511   printf "%s\n" "$0: This script requires a shell more modern than all"
512   printf "%s\n" "$0: the shells that I found on your system."
513   if test ${ZSH_VERSION+y} ; then
514     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
515     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
516   else
517     printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and a suitable curl
518 $0: mailing list: https://curl.se/mail/ about your system,
519 $0: including any error possibly output before this
520 $0: message. Then install a modern shell, or manually run
521 $0: the script under such a shell if you do have one."
522   fi
523   exit 1
524 fi
525 fi
526 fi
527 SHELL=${CONFIG_SHELL-/bin/sh}
528 export SHELL
529 # Unset more variables known to interfere with behavior of common tools.
530 CLICOLOR_FORCE= GREP_OPTIONS=
531 unset CLICOLOR_FORCE GREP_OPTIONS
532
533 ## --------------------- ##
534 ## M4sh Shell Functions. ##
535 ## --------------------- ##
536 # as_fn_unset VAR
537 # ---------------
538 # Portably unset VAR.
539 as_fn_unset ()
540 {
541   { eval $1=; unset $1;}
542 }
543 as_unset=as_fn_unset
544
545
546 # as_fn_set_status STATUS
547 # -----------------------
548 # Set $? to STATUS, without forking.
549 as_fn_set_status ()
550 {
551   return $1
552 } # as_fn_set_status
553
554 # as_fn_exit STATUS
555 # -----------------
556 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
557 as_fn_exit ()
558 {
559   set +e
560   as_fn_set_status $1
561   exit $1
562 } # as_fn_exit
563 # as_fn_nop
564 # ---------
565 # Do nothing but, unlike ":", preserve the value of $?.
566 as_fn_nop ()
567 {
568   return $?
569 }
570 as_nop=as_fn_nop
571
572 # as_fn_mkdir_p
573 # -------------
574 # Create "$as_dir" as a directory, including parents if necessary.
575 as_fn_mkdir_p ()
576 {
577
578   case $as_dir in #(
579   -*) as_dir=./$as_dir;;
580   esac
581   test -d "$as_dir" || eval $as_mkdir_p || {
582     as_dirs=
583     while :; do
584       case $as_dir in #(
585       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
586       *) as_qdir=$as_dir;;
587       esac
588       as_dirs="'$as_qdir' $as_dirs"
589       as_dir=`$as_dirname -- "$as_dir" ||
590 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
591          X"$as_dir" : 'X\(//\)[^/]' \| \
592          X"$as_dir" : 'X\(//\)$' \| \
593          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
594 printf "%s\n" X"$as_dir" |
595     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
596             s//\1/
597             q
598           }
599           /^X\(\/\/\)[^/].*/{
600             s//\1/
601             q
602           }
603           /^X\(\/\/\)$/{
604             s//\1/
605             q
606           }
607           /^X\(\/\).*/{
608             s//\1/
609             q
610           }
611           s/.*/./; q'`
612       test -d "$as_dir" && break
613     done
614     test -z "$as_dirs" || eval "mkdir $as_dirs"
615   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
616
617
618 } # as_fn_mkdir_p
619
620 # as_fn_executable_p FILE
621 # -----------------------
622 # Test if FILE is an executable regular file.
623 as_fn_executable_p ()
624 {
625   test -f "$1" && test -x "$1"
626 } # as_fn_executable_p
627 # as_fn_append VAR VALUE
628 # ----------------------
629 # Append the text in VALUE to the end of the definition contained in VAR. Take
630 # advantage of any shell optimizations that allow amortized linear growth over
631 # repeated appends, instead of the typical quadratic growth present in naive
632 # implementations.
633 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
634 then :
635   eval 'as_fn_append ()
636   {
637     eval $1+=\$2
638   }'
639 else $as_nop
640   as_fn_append ()
641   {
642     eval $1=\$$1\$2
643   }
644 fi # as_fn_append
645
646 # as_fn_arith ARG...
647 # ------------------
648 # Perform arithmetic evaluation on the ARGs, and store the result in the
649 # global $as_val. Take advantage of shells that can avoid forks. The arguments
650 # must be portable across $(()) and expr.
651 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
652 then :
653   eval 'as_fn_arith ()
654   {
655     as_val=$(( $* ))
656   }'
657 else $as_nop
658   as_fn_arith ()
659   {
660     as_val=`expr "$@" || test $? -eq 1`
661   }
662 fi # as_fn_arith
663
664 # as_fn_nop
665 # ---------
666 # Do nothing but, unlike ":", preserve the value of $?.
667 as_fn_nop ()
668 {
669   return $?
670 }
671 as_nop=as_fn_nop
672
673 # as_fn_error STATUS ERROR [LINENO LOG_FD]
674 # ----------------------------------------
675 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
676 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
677 # script with STATUS, using 1 if that was 0.
678 as_fn_error ()
679 {
680   as_status=$1; test $as_status -eq 0 && as_status=1
681   if test "$4"; then
682     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
683     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
684   fi
685   printf "%s\n" "$as_me: error: $2" >&2
686   as_fn_exit $as_status
687 } # as_fn_error
688
689 if expr a : '\(a\)' >/dev/null 2>&1 &&
690    test "X`expr 00001 : '.*\(...\)'`" = X001; then
691   as_expr=expr
692 else
693   as_expr=false
694 fi
695
696 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
697   as_basename=basename
698 else
699   as_basename=false
700 fi
701
702 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
703   as_dirname=dirname
704 else
705   as_dirname=false
706 fi
707
708 as_me=`$as_basename -- "$0" ||
709 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
710          X"$0" : 'X\(//\)$' \| \
711          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
712 printf "%s\n" X/"$0" |
713     sed '/^.*\/\([^/][^/]*\)\/*$/{
714             s//\1/
715             q
716           }
717           /^X\/\(\/\/\)$/{
718             s//\1/
719             q
720           }
721           /^X\/\(\/\).*/{
722             s//\1/
723             q
724           }
725           s/.*/./; q'`
726
727 # Avoid depending upon Character Ranges.
728 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
729 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
730 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
731 as_cr_digits='0123456789'
732 as_cr_alnum=$as_cr_Letters$as_cr_digits
733
734
735   as_lineno_1=$LINENO as_lineno_1a=$LINENO
736   as_lineno_2=$LINENO as_lineno_2a=$LINENO
737   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
738   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
739   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
740   sed -n '
741     p
742     /[$]LINENO/=
743   ' <$as_myself |
744     sed '
745       s/[$]LINENO.*/&-/
746       t lineno
747       b
748       :lineno
749       N
750       :loop
751       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
752       t loop
753       s/-\n.*//
754     ' >$as_me.lineno &&
755   chmod +x "$as_me.lineno" ||
756     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
757
758   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
759   # already done that, so ensure we don't try to do so again and fall
760   # in an infinite loop.  This has already happened in practice.
761   _as_can_reexec=no; export _as_can_reexec
762   # Don't try to exec as it changes $[0], causing all sort of problems
763   # (the dirname of $[0] is not the place where we might find the
764   # original and so on.  Autoconf is especially sensitive to this).
765   . "./$as_me.lineno"
766   # Exit status is that of the last command.
767   exit
768 }
769
770
771 # Determine whether it's possible to make 'echo' print without a newline.
772 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
773 # for compatibility with existing Makefiles.
774 ECHO_C= ECHO_N= ECHO_T=
775 case `echo -n x` in #(((((
776 -n*)
777   case `echo 'xy\c'` in
778   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
779   xy)  ECHO_C='\c';;
780   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
781        ECHO_T=' ';;
782   esac;;
783 *)
784   ECHO_N='-n';;
785 esac
786
787 # For backward compatibility with old third-party macros, we provide
788 # the shell variables $as_echo and $as_echo_n.  New code should use
789 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
790 as_echo='printf %s\n'
791 as_echo_n='printf %s'
792
793
794 rm -f conf$$ conf$$.exe conf$$.file
795 if test -d conf$$.dir; then
796   rm -f conf$$.dir/conf$$.file
797 else
798   rm -f conf$$.dir
799   mkdir conf$$.dir 2>/dev/null
800 fi
801 if (echo >conf$$.file) 2>/dev/null; then
802   if ln -s conf$$.file conf$$ 2>/dev/null; then
803     as_ln_s='ln -s'
804     # ... but there are two gotchas:
805     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
806     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
807     # In both cases, we have to default to `cp -pR'.
808     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
809       as_ln_s='cp -pR'
810   elif ln conf$$.file conf$$ 2>/dev/null; then
811     as_ln_s=ln
812   else
813     as_ln_s='cp -pR'
814   fi
815 else
816   as_ln_s='cp -pR'
817 fi
818 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
819 rmdir conf$$.dir 2>/dev/null
820
821 if mkdir -p . 2>/dev/null; then
822   as_mkdir_p='mkdir -p "$as_dir"'
823 else
824   test -d ./-p && rmdir ./-p
825   as_mkdir_p=false
826 fi
827
828 as_test_x='test -x'
829 as_executable_p=as_fn_executable_p
830
831 # Sed expression to map a string onto a valid CPP name.
832 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
833
834 # Sed expression to map a string onto a valid variable name.
835 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
836
837 SHELL=${CONFIG_SHELL-/bin/sh}
838
839
840 test -n "$DJDIR" || exec 7<&0 </dev/null
841 exec 6>&1
842
843 # Name of the host.
844 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
845 # so uname gets run too.
846 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
847
848 #
849 # Initializations.
850 #
851 ac_default_prefix=/usr/local
852 ac_clean_files=
853 ac_config_libobj_dir=.
854 LIBOBJS=
855 cross_compiling=no
856 subdirs=
857 MFLAGS=
858 MAKEFLAGS=
859
860 # Identity of this package.
861 PACKAGE_NAME='curl'
862 PACKAGE_TARNAME='curl'
863 PACKAGE_VERSION='-'
864 PACKAGE_STRING='curl -'
865 PACKAGE_BUGREPORT='a suitable curl mailing list: https://curl.se/mail/'
866 PACKAGE_URL=''
867
868 ac_unique_file="lib/urldata.h"
869 # Factoring default headers for most tests.
870 ac_includes_default="\
871 #include <stddef.h>
872 #ifdef HAVE_STDIO_H
873 # include <stdio.h>
874 #endif
875 #ifdef HAVE_STDLIB_H
876 # include <stdlib.h>
877 #endif
878 #ifdef HAVE_STRING_H
879 # include <string.h>
880 #endif
881 #ifdef HAVE_INTTYPES_H
882 # include <inttypes.h>
883 #endif
884 #ifdef HAVE_STDINT_H
885 # include <stdint.h>
886 #endif
887 #ifdef HAVE_STRINGS_H
888 # include <strings.h>
889 #endif
890 #ifdef HAVE_SYS_TYPES_H
891 # include <sys/types.h>
892 #endif
893 #ifdef HAVE_SYS_STAT_H
894 # include <sys/stat.h>
895 #endif
896 #ifdef HAVE_UNISTD_H
897 # include <unistd.h>
898 #endif"
899
900 ac_header_c_list=
901 enable_option_checking=no
902 ac_subst_vars='am__EXEEXT_FALSE
903 am__EXEEXT_TRUE
904 LTLIBOBJS
905 LIBOBJS
906 SSL_BACKENDS
907 SUPPORT_PROTOCOLS
908 SUPPORT_FEATURES
909 LIBCURL_NO_SHARED
910 ENABLE_STATIC
911 ENABLE_SHARED
912 CROSSCOMPILING_FALSE
913 CROSSCOMPILING_TRUE
914 BLANK_AT_MAKETIME
915 CURL_NETWORK_AND_TIME_LIBS
916 CURL_NETWORK_LIBS
917 LIBCURL_LIBS
918 CFLAG_CURL_SYMBOL_HIDING
919 DOING_CURL_SYMBOL_HIDING_FALSE
920 DOING_CURL_SYMBOL_HIDING_TRUE
921 USE_UNIX_SOCKETS
922 BUILD_LIBHOSTNAME_FALSE
923 BUILD_LIBHOSTNAME_TRUE
924 USE_EMBEDDED_ARES_FALSE
925 USE_EMBEDDED_ARES_TRUE
926 USE_ARES
927 subdirs
928 USE_MANUAL_FALSE
929 USE_MANUAL_TRUE
930 MANOPT
931 NROFF
932 PERL
933 FISH_FUNCTIONS_DIR
934 ZSH_FUNCTIONS_DIR
935 USE_QUICHE
936 USE_NGHTTP3
937 USE_NGTCP2_CRYPTO_GNUTLS
938 USE_NGTCP2_CRYPTO_OPENSSL
939 USE_NGTCP2
940 USE_NGHTTP2
941 IDN_ENABLED
942 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
943 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
944 CURL_LT_SHLIB_VERSIONED_FLAVOUR
945 USE_LIBRTMP
946 USE_WOLFSSH
947 USE_LIBSSH
948 USE_LIBSSH2
949 USE_GSASL_FALSE
950 USE_GSASL_TRUE
951 USE_LIBPSL_FALSE
952 USE_LIBPSL_TRUE
953 CURL_CA_BUNDLE
954 CURL_WITH_MULTI_SSL
955 SSL_ENABLED
956 NSS_LIBS
957 USE_NSS
958 USE_RUSTLS
959 USE_BEARSSL
960 USE_MESALINK
961 USE_WOLFSSL
962 USE_MBEDTLS
963 HAVE_GNUTLS_SRP
964 USE_GNUTLS
965 HAVE_OPENSSL_SRP
966 RANDOM_FILE
967 SSL_LIBS
968 USE_SECTRANSP
969 USE_WINDOWS_SSPI
970 USE_SCHANNEL
971 DEFAULT_SSL_BACKEND
972 BUILD_STUB_GSS_FALSE
973 BUILD_STUB_GSS_TRUE
974 IPV6_ENABLED
975 USE_OPENLDAP
976 HAVE_ZSTD
977 HAVE_BROTLI
978 ZLIB_LIBS
979 HAVE_LIBZ_FALSE
980 HAVE_LIBZ_TRUE
981 HAVE_LIBZ
982 HAVE_PROTO_BSDSOCKET_H
983 CURL_DISABLE_MQTT
984 CURL_DISABLE_GOPHER
985 CURL_DISABLE_SMTP
986 CURL_DISABLE_SMB
987 CURL_DISABLE_IMAP
988 CURL_DISABLE_POP3
989 CURL_DISABLE_TFTP
990 CURL_DISABLE_TELNET
991 CURL_DISABLE_DICT
992 CURL_DISABLE_PROXY
993 USE_HYPER
994 PKGCONFIG
995 HAVE_LDAP_SSL
996 CURL_DISABLE_LDAPS
997 CURL_DISABLE_LDAP
998 CURL_DISABLE_FILE
999 CURL_DISABLE_FTP
1000 CURL_DISABLE_RTSP
1001 CURL_DISABLE_HTTP
1002 USE_WIN32_CRYPTO
1003 USE_WIN32_SMALL_FILES
1004 USE_WIN32_LARGE_FILES
1005 DOING_NATIVE_WINDOWS_FALSE
1006 DOING_NATIVE_WINDOWS_TRUE
1007 BUILD_UNITTESTS_FALSE
1008 BUILD_UNITTESTS_TRUE
1009 CURLDEBUG_FALSE
1010 CURLDEBUG_TRUE
1011 CURL_CFLAG_EXTRAS
1012 USE_EXPLICIT_LIB_DEPS_FALSE
1013 USE_EXPLICIT_LIB_DEPS_TRUE
1014 REQUIRE_LIB_DEPS
1015 CPPFLAG_CURL_STATICLIB
1016 USE_CPPFLAG_CURL_STATICLIB_FALSE
1017 USE_CPPFLAG_CURL_STATICLIB_TRUE
1018 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
1019 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
1020 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
1021 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
1022 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
1023 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
1024 LT_SYS_LIBRARY_PATH
1025 OTOOL64
1026 OTOOL
1027 LIPO
1028 NMEDIT
1029 DSYMUTIL
1030 MANIFEST_TOOL
1031 RANLIB
1032 ac_ct_AR
1033 LN_S
1034 NM
1035 ac_ct_DUMPBIN
1036 DUMPBIN
1037 LD
1038 FGREP
1039 LIBTOOL
1040 OBJDUMP
1041 DLLTOOL
1042 AS
1043 AR_FLAGS
1044 host_os
1045 host_vendor
1046 host_cpu
1047 host
1048 build_os
1049 build_vendor
1050 build_cpu
1051 build
1052 PKGADD_VENDOR
1053 PKGADD_NAME
1054 PKGADD_PKG
1055 VERSIONNUM
1056 CURLVERSION
1057 CSCOPE
1058 ETAGS
1059 CTAGS
1060 am__fastdepCC_FALSE
1061 am__fastdepCC_TRUE
1062 CCDEPMODE
1063 am__nodep
1064 AMDEPBACKSLASH
1065 AMDEP_FALSE
1066 AMDEP_TRUE
1067 am__include
1068 DEPDIR
1069 am__untar
1070 am__tar
1071 AMTAR
1072 am__leading_dot
1073 SET_MAKE
1074 AWK
1075 mkdir_p
1076 MKDIR_P
1077 INSTALL_STRIP_PROGRAM
1078 STRIP
1079 install_sh
1080 MAKEINFO
1081 AUTOHEADER
1082 AUTOMAKE
1083 AUTOCONF
1084 ACLOCAL
1085 VERSION
1086 PACKAGE
1087 CYGPATH_W
1088 am__isrc
1089 LCOV
1090 GCOV
1091 CPP
1092 OBJEXT
1093 EXEEXT
1094 ac_ct_CC
1095 CPPFLAGS
1096 LDFLAGS
1097 CFLAGS
1098 CC
1099 INSTALL_DATA
1100 INSTALL_SCRIPT
1101 INSTALL_PROGRAM
1102 libext
1103 AR
1104 EGREP
1105 GREP
1106 SED
1107 CONFIGURE_OPTIONS
1108 AM_BACKSLASH
1109 AM_DEFAULT_VERBOSITY
1110 AM_DEFAULT_V
1111 AM_V
1112 MAINT
1113 MAINTAINER_MODE_FALSE
1114 MAINTAINER_MODE_TRUE
1115 target_alias
1116 host_alias
1117 build_alias
1118 LIBS
1119 ECHO_T
1120 ECHO_N
1121 ECHO_C
1122 DEFS
1123 mandir
1124 localedir
1125 libdir
1126 psdir
1127 pdfdir
1128 dvidir
1129 htmldir
1130 infodir
1131 docdir
1132 oldincludedir
1133 includedir
1134 runstatedir
1135 localstatedir
1136 sharedstatedir
1137 sysconfdir
1138 datadir
1139 datarootdir
1140 libexecdir
1141 sbindir
1142 bindir
1143 program_transform_name
1144 prefix
1145 exec_prefix
1146 PACKAGE_URL
1147 PACKAGE_BUGREPORT
1148 PACKAGE_STRING
1149 PACKAGE_VERSION
1150 PACKAGE_TARNAME
1151 PACKAGE_NAME
1152 SHELL
1153 PATH_SEPARATOR
1154 am__quote'
1155 ac_subst_files=''
1156 ac_user_opts='
1157 enable_option_checking
1158 enable_maintainer_mode
1159 enable_silent_rules
1160 enable_debug
1161 enable_optimize
1162 enable_warnings
1163 enable_werror
1164 enable_curldebug
1165 enable_symbol_hiding
1166 enable_ares
1167 enable_rt
1168 enable_ech
1169 enable_code_coverage
1170 enable_dependency_tracking
1171 with_schannel
1172 with_secure_transport
1173 with_amissl
1174 with_ssl
1175 with_openssl
1176 with_gnutls
1177 with_mbedtls
1178 with_wolfssl
1179 with_mesalink
1180 with_bearssl
1181 with_rustls
1182 with_nss
1183 with_darwinssl
1184 enable_largefile
1185 enable_shared
1186 enable_static
1187 with_pic
1188 enable_fast_install
1189 with_aix_soname
1190 with_gnu_ld
1191 with_sysroot
1192 enable_libtool_lock
1193 enable_http
1194 enable_ftp
1195 enable_file
1196 enable_ldap
1197 enable_ldaps
1198 with_hyper
1199 enable_rtsp
1200 enable_proxy
1201 enable_dict
1202 enable_telnet
1203 enable_tftp
1204 enable_pop3
1205 enable_imap
1206 enable_smb
1207 enable_smtp
1208 enable_gopher
1209 enable_mqtt
1210 enable_manual
1211 enable_libcurl_option
1212 enable_libgcc
1213 with_zlib
1214 with_brotli
1215 with_zstd
1216 with_ldap_lib
1217 with_lber_lib
1218 enable_ipv6
1219 with_gssapi_includes
1220 with_gssapi_libs
1221 with_gssapi
1222 with_default_ssl_backend
1223 with_egd_socket
1224 with_random
1225 enable_openssl_auto_load_config
1226 with_ca_bundle
1227 with_ca_path
1228 with_ca_fallback
1229 with_libpsl
1230 with_libgsasl
1231 with_libmetalink
1232 with_libssh2
1233 with_libssh
1234 with_wolfssh
1235 with_librtmp
1236 enable_versioned_symbols
1237 with_winidn
1238 with_libidn2
1239 with_nghttp2
1240 with_ngtcp2
1241 with_nghttp3
1242 with_quiche
1243 with_zsh_functions_dir
1244 with_fish_functions_dir
1245 enable_threaded_resolver
1246 enable_pthreads
1247 enable_verbose
1248 enable_sspi
1249 enable_crypto_auth
1250 enable_ntlm
1251 enable_ntlm_wb
1252 enable_tls_srp
1253 enable_unix_sockets
1254 enable_cookies
1255 enable_socketpair
1256 enable_http_auth
1257 enable_doh
1258 enable_mime
1259 enable_dateparse
1260 enable_netrc
1261 enable_progress_meter
1262 enable_dnsshuffle
1263 enable_get_easy_options
1264 enable_alt_svc
1265 enable_hsts
1266 '
1267       ac_precious_vars='build_alias
1268 host_alias
1269 target_alias
1270 CC
1271 CFLAGS
1272 LDFLAGS
1273 LIBS
1274 CPPFLAGS
1275 CPP
1276 LT_SYS_LIBRARY_PATH'
1277 ac_subdirs_all='ares'
1278
1279 # Initialize some variables set by options.
1280 ac_init_help=
1281 ac_init_version=false
1282 ac_unrecognized_opts=
1283 ac_unrecognized_sep=
1284 # The variables have the same names as the options, with
1285 # dashes changed to underlines.
1286 cache_file=/dev/null
1287 exec_prefix=NONE
1288 no_create=
1289 no_recursion=
1290 prefix=NONE
1291 program_prefix=NONE
1292 program_suffix=NONE
1293 program_transform_name=s,x,x,
1294 silent=
1295 site=
1296 srcdir=
1297 verbose=
1298 x_includes=NONE
1299 x_libraries=NONE
1300
1301 # Installation directory options.
1302 # These are left unexpanded so users can "make install exec_prefix=/foo"
1303 # and all the variables that are supposed to be based on exec_prefix
1304 # by default will actually change.
1305 # Use braces instead of parens because sh, perl, etc. also accept them.
1306 # (The list follows the same order as the GNU Coding Standards.)
1307 bindir='${exec_prefix}/bin'
1308 sbindir='${exec_prefix}/sbin'
1309 libexecdir='${exec_prefix}/libexec'
1310 datarootdir='${prefix}/share'
1311 datadir='${datarootdir}'
1312 sysconfdir='${prefix}/etc'
1313 sharedstatedir='${prefix}/com'
1314 localstatedir='${prefix}/var'
1315 runstatedir='${localstatedir}/run'
1316 includedir='${prefix}/include'
1317 oldincludedir='/usr/include'
1318 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1319 infodir='${datarootdir}/info'
1320 htmldir='${docdir}'
1321 dvidir='${docdir}'
1322 pdfdir='${docdir}'
1323 psdir='${docdir}'
1324 libdir='${exec_prefix}/lib'
1325 localedir='${datarootdir}/locale'
1326 mandir='${datarootdir}/man'
1327
1328 ac_prev=
1329 ac_dashdash=
1330 for ac_option
1331 do
1332   # If the previous option needs an argument, assign it.
1333   if test -n "$ac_prev"; then
1334     eval $ac_prev=\$ac_option
1335     ac_prev=
1336     continue
1337   fi
1338
1339   case $ac_option in
1340   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1341   *=)   ac_optarg= ;;
1342   *)    ac_optarg=yes ;;
1343   esac
1344
1345   case $ac_dashdash$ac_option in
1346   --)
1347     ac_dashdash=yes ;;
1348
1349   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1350     ac_prev=bindir ;;
1351   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1352     bindir=$ac_optarg ;;
1353
1354   -build | --build | --buil | --bui | --bu)
1355     ac_prev=build_alias ;;
1356   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1357     build_alias=$ac_optarg ;;
1358
1359   -cache-file | --cache-file | --cache-fil | --cache-fi \
1360   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1361     ac_prev=cache_file ;;
1362   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1363   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1364     cache_file=$ac_optarg ;;
1365
1366   --config-cache | -C)
1367     cache_file=config.cache ;;
1368
1369   -datadir | --datadir | --datadi | --datad)
1370     ac_prev=datadir ;;
1371   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1372     datadir=$ac_optarg ;;
1373
1374   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1375   | --dataroo | --dataro | --datar)
1376     ac_prev=datarootdir ;;
1377   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1378   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1379     datarootdir=$ac_optarg ;;
1380
1381   -disable-* | --disable-*)
1382     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1383     # Reject names that are not valid shell variable names.
1384     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1385       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1386     ac_useropt_orig=$ac_useropt
1387     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1388     case $ac_user_opts in
1389       *"
1390 "enable_$ac_useropt"
1391 "*) ;;
1392       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1393          ac_unrecognized_sep=', ';;
1394     esac
1395     eval enable_$ac_useropt=no ;;
1396
1397   -docdir | --docdir | --docdi | --doc | --do)
1398     ac_prev=docdir ;;
1399   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1400     docdir=$ac_optarg ;;
1401
1402   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1403     ac_prev=dvidir ;;
1404   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1405     dvidir=$ac_optarg ;;
1406
1407   -enable-* | --enable-*)
1408     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1409     # Reject names that are not valid shell variable names.
1410     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1411       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1412     ac_useropt_orig=$ac_useropt
1413     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1414     case $ac_user_opts in
1415       *"
1416 "enable_$ac_useropt"
1417 "*) ;;
1418       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1419          ac_unrecognized_sep=', ';;
1420     esac
1421     eval enable_$ac_useropt=\$ac_optarg ;;
1422
1423   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1424   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1425   | --exec | --exe | --ex)
1426     ac_prev=exec_prefix ;;
1427   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1428   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1429   | --exec=* | --exe=* | --ex=*)
1430     exec_prefix=$ac_optarg ;;
1431
1432   -gas | --gas | --ga | --g)
1433     # Obsolete; use --with-gas.
1434     with_gas=yes ;;
1435
1436   -help | --help | --hel | --he | -h)
1437     ac_init_help=long ;;
1438   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1439     ac_init_help=recursive ;;
1440   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1441     ac_init_help=short ;;
1442
1443   -host | --host | --hos | --ho)
1444     ac_prev=host_alias ;;
1445   -host=* | --host=* | --hos=* | --ho=*)
1446     host_alias=$ac_optarg ;;
1447
1448   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1449     ac_prev=htmldir ;;
1450   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1451   | --ht=*)
1452     htmldir=$ac_optarg ;;
1453
1454   -includedir | --includedir | --includedi | --included | --include \
1455   | --includ | --inclu | --incl | --inc)
1456     ac_prev=includedir ;;
1457   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1458   | --includ=* | --inclu=* | --incl=* | --inc=*)
1459     includedir=$ac_optarg ;;
1460
1461   -infodir | --infodir | --infodi | --infod | --info | --inf)
1462     ac_prev=infodir ;;
1463   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1464     infodir=$ac_optarg ;;
1465
1466   -libdir | --libdir | --libdi | --libd)
1467     ac_prev=libdir ;;
1468   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1469     libdir=$ac_optarg ;;
1470
1471   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1472   | --libexe | --libex | --libe)
1473     ac_prev=libexecdir ;;
1474   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1475   | --libexe=* | --libex=* | --libe=*)
1476     libexecdir=$ac_optarg ;;
1477
1478   -localedir | --localedir | --localedi | --localed | --locale)
1479     ac_prev=localedir ;;
1480   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1481     localedir=$ac_optarg ;;
1482
1483   -localstatedir | --localstatedir | --localstatedi | --localstated \
1484   | --localstate | --localstat | --localsta | --localst | --locals)
1485     ac_prev=localstatedir ;;
1486   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1487   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1488     localstatedir=$ac_optarg ;;
1489
1490   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1491     ac_prev=mandir ;;
1492   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1493     mandir=$ac_optarg ;;
1494
1495   -nfp | --nfp | --nf)
1496     # Obsolete; use --without-fp.
1497     with_fp=no ;;
1498
1499   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1500   | --no-cr | --no-c | -n)
1501     no_create=yes ;;
1502
1503   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1504   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1505     no_recursion=yes ;;
1506
1507   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1508   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1509   | --oldin | --oldi | --old | --ol | --o)
1510     ac_prev=oldincludedir ;;
1511   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1512   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1513   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1514     oldincludedir=$ac_optarg ;;
1515
1516   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1517     ac_prev=prefix ;;
1518   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1519     prefix=$ac_optarg ;;
1520
1521   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1522   | --program-pre | --program-pr | --program-p)
1523     ac_prev=program_prefix ;;
1524   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1525   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1526     program_prefix=$ac_optarg ;;
1527
1528   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1529   | --program-suf | --program-su | --program-s)
1530     ac_prev=program_suffix ;;
1531   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1532   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1533     program_suffix=$ac_optarg ;;
1534
1535   -program-transform-name | --program-transform-name \
1536   | --program-transform-nam | --program-transform-na \
1537   | --program-transform-n | --program-transform- \
1538   | --program-transform | --program-transfor \
1539   | --program-transfo | --program-transf \
1540   | --program-trans | --program-tran \
1541   | --progr-tra | --program-tr | --program-t)
1542     ac_prev=program_transform_name ;;
1543   -program-transform-name=* | --program-transform-name=* \
1544   | --program-transform-nam=* | --program-transform-na=* \
1545   | --program-transform-n=* | --program-transform-=* \
1546   | --program-transform=* | --program-transfor=* \
1547   | --program-transfo=* | --program-transf=* \
1548   | --program-trans=* | --program-tran=* \
1549   | --progr-tra=* | --program-tr=* | --program-t=*)
1550     program_transform_name=$ac_optarg ;;
1551
1552   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1553     ac_prev=pdfdir ;;
1554   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1555     pdfdir=$ac_optarg ;;
1556
1557   -psdir | --psdir | --psdi | --psd | --ps)
1558     ac_prev=psdir ;;
1559   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1560     psdir=$ac_optarg ;;
1561
1562   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1563   | -silent | --silent | --silen | --sile | --sil)
1564     silent=yes ;;
1565
1566   -runstatedir | --runstatedir | --runstatedi | --runstated \
1567   | --runstate | --runstat | --runsta | --runst | --runs \
1568   | --run | --ru | --r)
1569     ac_prev=runstatedir ;;
1570   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1571   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1572   | --run=* | --ru=* | --r=*)
1573     runstatedir=$ac_optarg ;;
1574
1575   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1576     ac_prev=sbindir ;;
1577   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1578   | --sbi=* | --sb=*)
1579     sbindir=$ac_optarg ;;
1580
1581   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1582   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1583   | --sharedst | --shareds | --shared | --share | --shar \
1584   | --sha | --sh)
1585     ac_prev=sharedstatedir ;;
1586   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1587   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1588   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1589   | --sha=* | --sh=*)
1590     sharedstatedir=$ac_optarg ;;
1591
1592   -site | --site | --sit)
1593     ac_prev=site ;;
1594   -site=* | --site=* | --sit=*)
1595     site=$ac_optarg ;;
1596
1597   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1598     ac_prev=srcdir ;;
1599   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1600     srcdir=$ac_optarg ;;
1601
1602   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1603   | --syscon | --sysco | --sysc | --sys | --sy)
1604     ac_prev=sysconfdir ;;
1605   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1606   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1607     sysconfdir=$ac_optarg ;;
1608
1609   -target | --target | --targe | --targ | --tar | --ta | --t)
1610     ac_prev=target_alias ;;
1611   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1612     target_alias=$ac_optarg ;;
1613
1614   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1615     verbose=yes ;;
1616
1617   -version | --version | --versio | --versi | --vers | -V)
1618     ac_init_version=: ;;
1619
1620   -with-* | --with-*)
1621     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1622     # Reject names that are not valid shell variable names.
1623     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1624       as_fn_error $? "invalid package name: \`$ac_useropt'"
1625     ac_useropt_orig=$ac_useropt
1626     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1627     case $ac_user_opts in
1628       *"
1629 "with_$ac_useropt"
1630 "*) ;;
1631       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1632          ac_unrecognized_sep=', ';;
1633     esac
1634     eval with_$ac_useropt=\$ac_optarg ;;
1635
1636   -without-* | --without-*)
1637     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1638     # Reject names that are not valid shell variable names.
1639     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1640       as_fn_error $? "invalid package name: \`$ac_useropt'"
1641     ac_useropt_orig=$ac_useropt
1642     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1643     case $ac_user_opts in
1644       *"
1645 "with_$ac_useropt"
1646 "*) ;;
1647       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1648          ac_unrecognized_sep=', ';;
1649     esac
1650     eval with_$ac_useropt=no ;;
1651
1652   --x)
1653     # Obsolete; use --with-x.
1654     with_x=yes ;;
1655
1656   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1657   | --x-incl | --x-inc | --x-in | --x-i)
1658     ac_prev=x_includes ;;
1659   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1660   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1661     x_includes=$ac_optarg ;;
1662
1663   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1664   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1665     ac_prev=x_libraries ;;
1666   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1667   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1668     x_libraries=$ac_optarg ;;
1669
1670   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1671 Try \`$0 --help' for more information"
1672     ;;
1673
1674   *=*)
1675     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1676     # Reject names that are not valid shell variable names.
1677     case $ac_envvar in #(
1678       '' | [0-9]* | *[!_$as_cr_alnum]* )
1679       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1680     esac
1681     eval $ac_envvar=\$ac_optarg
1682     export $ac_envvar ;;
1683
1684   *)
1685     # FIXME: should be removed in autoconf 3.0.
1686     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1687     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1688       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1689     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1690     ;;
1691
1692   esac
1693 done
1694
1695 if test -n "$ac_prev"; then
1696   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1697   as_fn_error $? "missing argument to $ac_option"
1698 fi
1699
1700 if test -n "$ac_unrecognized_opts"; then
1701   case $enable_option_checking in
1702     no) ;;
1703     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1704     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1705   esac
1706 fi
1707
1708 # Check all directory arguments for consistency.
1709 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1710                 datadir sysconfdir sharedstatedir localstatedir includedir \
1711                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1712                 libdir localedir mandir runstatedir
1713 do
1714   eval ac_val=\$$ac_var
1715   # Remove trailing slashes.
1716   case $ac_val in
1717     */ )
1718       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1719       eval $ac_var=\$ac_val;;
1720   esac
1721   # Be sure to have absolute directory names.
1722   case $ac_val in
1723     [\\/$]* | ?:[\\/]* )  continue;;
1724     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1725   esac
1726   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1727 done
1728
1729 # There might be people who depend on the old broken behavior: `$host'
1730 # used to hold the argument of --host etc.
1731 # FIXME: To remove some day.
1732 build=$build_alias
1733 host=$host_alias
1734 target=$target_alias
1735
1736 # FIXME: To remove some day.
1737 if test "x$host_alias" != x; then
1738   if test "x$build_alias" = x; then
1739     cross_compiling=maybe
1740   elif test "x$build_alias" != "x$host_alias"; then
1741     cross_compiling=yes
1742   fi
1743 fi
1744
1745 ac_tool_prefix=
1746 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1747
1748 test "$silent" = yes && exec 6>/dev/null
1749
1750
1751 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1752 ac_ls_di=`ls -di .` &&
1753 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1754   as_fn_error $? "working directory cannot be determined"
1755 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1756   as_fn_error $? "pwd does not report name of working directory"
1757
1758
1759 # Find the source files, if location was not specified.
1760 if test -z "$srcdir"; then
1761   ac_srcdir_defaulted=yes
1762   # Try the directory containing this script, then the parent directory.
1763   ac_confdir=`$as_dirname -- "$as_myself" ||
1764 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1765          X"$as_myself" : 'X\(//\)[^/]' \| \
1766          X"$as_myself" : 'X\(//\)$' \| \
1767          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1768 printf "%s\n" X"$as_myself" |
1769     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1770             s//\1/
1771             q
1772           }
1773           /^X\(\/\/\)[^/].*/{
1774             s//\1/
1775             q
1776           }
1777           /^X\(\/\/\)$/{
1778             s//\1/
1779             q
1780           }
1781           /^X\(\/\).*/{
1782             s//\1/
1783             q
1784           }
1785           s/.*/./; q'`
1786   srcdir=$ac_confdir
1787   if test ! -r "$srcdir/$ac_unique_file"; then
1788     srcdir=..
1789   fi
1790 else
1791   ac_srcdir_defaulted=no
1792 fi
1793 if test ! -r "$srcdir/$ac_unique_file"; then
1794   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1795   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1796 fi
1797 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1798 ac_abs_confdir=`(
1799         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1800         pwd)`
1801 # When building in place, set srcdir=.
1802 if test "$ac_abs_confdir" = "$ac_pwd"; then
1803   srcdir=.
1804 fi
1805 # Remove unnecessary trailing slashes from srcdir.
1806 # Double slashes in file names in object file debugging info
1807 # mess up M-x gdb in Emacs.
1808 case $srcdir in
1809 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1810 esac
1811 for ac_var in $ac_precious_vars; do
1812   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1813   eval ac_env_${ac_var}_value=\$${ac_var}
1814   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1815   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1816 done
1817
1818 #
1819 # Report the --help message.
1820 #
1821 if test "$ac_init_help" = "long"; then
1822   # Omit some internal or obsolete options to make the list less imposing.
1823   # This message is too long to be a string in the A/UX 3.1 sh.
1824   cat <<_ACEOF
1825 \`configure' configures curl - to adapt to many kinds of systems.
1826
1827 Usage: $0 [OPTION]... [VAR=VALUE]...
1828
1829 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1830 VAR=VALUE.  See below for descriptions of some of the useful variables.
1831
1832 Defaults for the options are specified in brackets.
1833
1834 Configuration:
1835   -h, --help              display this help and exit
1836       --help=short        display options specific to this package
1837       --help=recursive    display the short help of all the included packages
1838   -V, --version           display version information and exit
1839   -q, --quiet, --silent   do not print \`checking ...' messages
1840       --cache-file=FILE   cache test results in FILE [disabled]
1841   -C, --config-cache      alias for \`--cache-file=config.cache'
1842   -n, --no-create         do not create output files
1843       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1844
1845 Installation directories:
1846   --prefix=PREFIX         install architecture-independent files in PREFIX
1847                           [$ac_default_prefix]
1848   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1849                           [PREFIX]
1850
1851 By default, \`make install' will install all the files in
1852 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1853 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1854 for instance \`--prefix=\$HOME'.
1855
1856 For better control, use the options below.
1857
1858 Fine tuning of the installation directories:
1859   --bindir=DIR            user executables [EPREFIX/bin]
1860   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1861   --libexecdir=DIR        program executables [EPREFIX/libexec]
1862   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1863   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1864   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1865   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1866   --libdir=DIR            object code libraries [EPREFIX/lib]
1867   --includedir=DIR        C header files [PREFIX/include]
1868   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1869   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1870   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1871   --infodir=DIR           info documentation [DATAROOTDIR/info]
1872   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1873   --mandir=DIR            man documentation [DATAROOTDIR/man]
1874   --docdir=DIR            documentation root [DATAROOTDIR/doc/curl]
1875   --htmldir=DIR           html documentation [DOCDIR]
1876   --dvidir=DIR            dvi documentation [DOCDIR]
1877   --pdfdir=DIR            pdf documentation [DOCDIR]
1878   --psdir=DIR             ps documentation [DOCDIR]
1879 _ACEOF
1880
1881   cat <<\_ACEOF
1882
1883 Program names:
1884   --program-prefix=PREFIX            prepend PREFIX to installed program names
1885   --program-suffix=SUFFIX            append SUFFIX to installed program names
1886   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1887
1888 System types:
1889   --build=BUILD     configure for building on BUILD [guessed]
1890   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1891 _ACEOF
1892 fi
1893
1894 if test -n "$ac_init_help"; then
1895   case $ac_init_help in
1896      short | recursive ) echo "Configuration of curl -:";;
1897    esac
1898   cat <<\_ACEOF
1899
1900 Optional Features:
1901   --disable-option-checking  ignore unrecognized --enable/--with options
1902   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1903   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1904   --enable-maintainer-mode
1905                           enable make rules and dependencies not useful (and
1906                           sometimes confusing) to the casual installer
1907   --enable-silent-rules   less verbose build output (undo: "make V=1")
1908   --disable-silent-rules  verbose build output (undo: "make V=0")
1909   --enable-debug          Enable debug build options
1910   --disable-debug         Disable debug build options
1911   --enable-optimize       Enable compiler optimizations
1912   --disable-optimize      Disable compiler optimizations
1913   --enable-warnings       Enable strict compiler warnings
1914   --disable-warnings      Disable strict compiler warnings
1915   --enable-werror         Enable compiler warnings as errors
1916   --disable-werror        Disable compiler warnings as errors
1917   --enable-curldebug      Enable curl debug memory tracking
1918   --disable-curldebug     Disable curl debug memory tracking
1919   --enable-symbol-hiding  Enable hiding of library internal symbols
1920   --disable-symbol-hiding Disable hiding of library internal symbols
1921   --enable-ares[=PATH]    Enable c-ares for DNS lookups
1922   --disable-ares          Disable c-ares for DNS lookups
1923   --disable-rt            disable dependency on -lrt
1924   --enable-ech            Enable ECH support
1925   --disable-ech           Disable ECH support
1926   --enable-code-coverage  Provide code coverage
1927   --enable-dependency-tracking
1928                           do not reject slow dependency extractors
1929   --disable-dependency-tracking
1930                           speeds up one-time build
1931   --disable-largefile     omit support for large files
1932   --enable-shared[=PKGS]  build shared libraries [default=yes]
1933   --enable-static[=PKGS]  build static libraries [default=yes]
1934   --enable-fast-install[=PKGS]
1935                           optimize for fast installation [default=yes]
1936   --disable-libtool-lock  avoid locking (might break parallel builds)
1937   --enable-http           Enable HTTP support
1938   --disable-http          Disable HTTP support
1939   --enable-ftp            Enable FTP support
1940   --disable-ftp           Disable FTP support
1941   --enable-file           Enable FILE support
1942   --disable-file          Disable FILE support
1943   --enable-ldap           Enable LDAP support
1944   --disable-ldap          Disable LDAP support
1945   --enable-ldaps          Enable LDAPS support
1946   --disable-ldaps         Disable LDAPS support
1947   --enable-rtsp           Enable RTSP support
1948     --disable-rtsp          Disable RTSP support
1949   --enable-proxy          Enable proxy support
1950   --disable-proxy         Disable proxy support
1951   --enable-dict           Enable DICT support
1952   --disable-dict          Disable DICT support
1953   --enable-telnet         Enable TELNET support
1954   --disable-telnet        Disable TELNET support
1955   --enable-tftp           Enable TFTP support
1956   --disable-tftp          Disable TFTP support
1957   --enable-pop3           Enable POP3 support
1958   --disable-pop3          Disable POP3 support
1959   --enable-imap           Enable IMAP support
1960   --disable-imap          Disable IMAP support
1961   --enable-smb            Enable SMB/CIFS support
1962   --disable-smb           Disable SMB/CIFS support
1963   --enable-smtp           Enable SMTP support
1964   --disable-smtp          Disable SMTP support
1965   --enable-gopher         Enable Gopher support
1966   --disable-gopher        Disable Gopher support
1967   --enable-mqtt           Enable MQTT support
1968   --disable-mqtt          Disable MQTT support
1969   --enable-manual         Enable built-in manual
1970   --disable-manual        Disable built-in manual
1971   --enable-libcurl-option Enable --libcurl C code generation support
1972   --disable-libcurl-option
1973                           Disable --libcurl C code generation support
1974   --enable-libgcc         use libgcc when linking
1975   --enable-ipv6           Enable IPv6 (with IPv4) support
1976   --disable-ipv6          Disable IPv6 support
1977   --enable-openssl-auto-load-config
1978                           Enable automatic loading of OpenSSL configuration
1979   --disable-openssl-auto-load-config
1980                           Disable automatic loading of OpenSSL configuration
1981   --enable-versioned-symbols
1982                           Enable versioned symbols in shared library
1983   --disable-versioned-symbols
1984                           Disable versioned symbols in shared library
1985   --enable-threaded-resolver
1986                           Enable threaded resolver
1987   --disable-threaded-resolver
1988                           Disable threaded resolver
1989   --enable-pthreads       Enable POSIX threads (default for threaded resolver)
1990   --disable-pthreads      Disable POSIX threads
1991   --enable-verbose        Enable verbose strings
1992   --disable-verbose       Disable verbose strings
1993   --enable-sspi           Enable SSPI
1994   --disable-sspi          Disable SSPI
1995   --enable-crypto-auth    Enable cryptographic authentication
1996   --disable-crypto-auth   Disable cryptographic authentication
1997   --enable-ntlm           Enable NTLM support
1998   --disable-ntlm          Disable NTLM support
1999   --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
2000                           helper, where FILE is ntlm_auth's absolute filename
2001                           (default: /usr/bin/ntlm_auth)
2002   --disable-ntlm-wb       Disable NTLM delegation to winbind's ntlm_auth
2003                           helper
2004   --enable-tls-srp        Enable TLS-SRP authentication
2005   --disable-tls-srp       Disable TLS-SRP authentication
2006   --enable-unix-sockets   Enable Unix domain sockets
2007   --disable-unix-sockets  Disable Unix domain sockets
2008   --enable-cookies        Enable cookies support
2009   --disable-cookies       Disable cookies support
2010   --enable-socketpair     Enable socketpair support
2011   --disable-socketpair    Disable socketpair support
2012   --enable-http-auth      Enable HTTP authentication support
2013   --disable-http-auth     Disable HTTP authentication support
2014   --enable-doh            Enable DoH support
2015   --disable-doh           Disable DoH support
2016   --enable-mime           Enable mime API support
2017   --disable-mime          Disable mime API support
2018   --enable-dateparse      Enable date parsing
2019   --disable-dateparse     Disable date parsing
2020   --enable-netrc          Enable netrc parsing
2021   --disable-netrc         Disable netrc parsing
2022   --enable-progress-meter Enable progress-meter
2023   --disable-progress-meter
2024                           Disable progress-meter
2025   --enable-dnsshuffle     Enable DNS shuffling
2026   --disable-dnsshuffle    Disable DNS shuffling
2027   --enable-get-easy-options
2028                           Enable curl_easy_options
2029   --disable-get-easy-options
2030                           Disable curl_easy_options
2031   --enable-alt-svc        Enable alt-svc support
2032   --disable-alt-svc       Disable alt-svc support
2033   --enable-hsts           Enable HSTS support
2034     --disable-hsts          Disable HSTS support
2035
2036 Optional Packages:
2037   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2038   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2039   --with-schannel         enable Windows native SSL/TLS
2040   --with-secure-transport enable Apple OS native SSL/TLS
2041   --with-amissl           enable Amiga native SSL/TLS (AmiSSL)
2042   --with-ssl=PATH         old version of --with-openssl
2043   --without-ssl           build without any TLS library
2044   --with-openssl=PATH     Where to look for OpenSSL, PATH points to the SSL
2045                           installation (default: /usr/local/ssl); when
2046                           possible, set the PKG_CONFIG_PATH environment
2047                           variable instead of using this option
2048   --with-gnutls=PATH      where to look for GnuTLS, PATH points to the
2049                           installation root
2050   --with-mbedtls=PATH     where to look for mbedTLS, PATH points to the
2051                           installation root
2052   --with-wolfssl=PATH     where to look for WolfSSL, PATH points to the
2053                           installation root (default: system lib default)
2054   --with-mesalink=PATH    where to look for MesaLink, PATH points to the
2055                           installation root
2056   --with-bearssl=PATH     where to look for BearSSL, PATH points to the
2057                           installation root
2058   --with-rustls=PATH      where to look for rustls, PATH points to the
2059                           installation root
2060   --with-nss=PATH         where to look for NSS, PATH points to the
2061                           installation root
2062
2063   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2064                           both]
2065   --with-aix-soname=aix|svr4|both
2066                           shared library versioning (aka "SONAME") variant to
2067                           provide on AIX, [default=aix].
2068   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2069   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
2070                           compiler's sysroot if not specified).
2071   --with-hyper=PATH       Enable hyper usage
2072   --without-hyper         Disable hyper usage
2073   --with-zlib=PATH        search for zlib in PATH
2074   --without-zlib          disable use of zlib
2075   --with-brotli=PATH      Where to look for brotli, PATH points to the BROTLI
2076                           installation; when possible, set the PKG_CONFIG_PATH
2077                           environment variable instead of using this option
2078   --without-brotli        disable BROTLI
2079   --with-zstd=PATH        Where to look for libzstd, PATH points to the
2080                           libzstd installation; when possible, set the
2081                           PKG_CONFIG_PATH environment variable instead of
2082                           using this option
2083   --without-zstd          disable libzstd
2084   --with-ldap-lib=libname Specify name of ldap lib file
2085   --with-lber-lib=libname Specify name of lber lib file
2086   --with-gssapi-includes=DIR
2087                           Specify location of GSS-API headers
2088   --with-gssapi-libs=DIR  Specify location of GSS-API libs
2089   --with-gssapi=DIR       Where to look for GSS-API
2090   --with-default-ssl-backend=NAME
2091                           Use NAME as default SSL backend
2092   --without-default-ssl-backend
2093                           Use implicit default SSL backend
2094   --with-egd-socket=FILE  Entropy Gathering Daemon socket pathname
2095   --with-random=FILE      read randomness from FILE (default=/dev/urandom)
2096   --with-ca-bundle=FILE   Path to a file containing CA certificates (example:
2097                           /etc/ca-bundle.crt)
2098   --without-ca-bundle     Don't use a default CA bundle
2099   --with-ca-path=DIRECTORY
2100                           Path to a directory containing CA certificates
2101                           stored individually, with their filenames in a hash
2102                           format. This option can be used with the OpenSSL,
2103                           GnuTLS and mbedTLS backends. Refer to OpenSSL
2104                           c_rehash for details. (example: /etc/certificates)
2105   --without-ca-path       Don't use a default CA path
2106   --with-ca-fallback      Use the built in CA store of the SSL library
2107   --without-ca-fallback   Don't use the built in CA store of the SSL library
2108   --without-libpsl        disable support for libpsl cookie checking
2109   --without-libgsasl      disable libgsasl support for SCRAM
2110   --with-libssh2=PATH     Where to look for libssh2, PATH points to the
2111                           libssh2 installation; when possible, set the
2112                           PKG_CONFIG_PATH environment variable instead of
2113                           using this option
2114   --with-libssh2          enable libssh2
2115   --with-libssh=PATH      Where to look for libssh, PATH points to the libssh
2116                           installation; when possible, set the PKG_CONFIG_PATH
2117                           environment variable instead of using this option
2118   --with-libssh           enable libssh
2119   --with-wolfssh=PATH     Where to look for wolfssh, PATH points to the
2120                           wolfSSH installation; when possible, set the
2121                           PKG_CONFIG_PATH environment variable instead of
2122                           using this option
2123   --with-wolfssh          enable wolfssh
2124   --with-librtmp=PATH     Where to look for librtmp, PATH points to the
2125                           LIBRTMP installation; when possible, set the
2126                           PKG_CONFIG_PATH environment variable instead of
2127                           using this option
2128   --without-librtmp       disable LIBRTMP
2129   --with-winidn=PATH      enable Windows native IDN
2130   --without-winidn        disable Windows native IDN
2131   --with-libidn2=PATH     Enable libidn2 usage
2132   --without-libidn2       Disable libidn2 usage
2133   --with-nghttp2=PATH     Enable nghttp2 usage
2134   --without-nghttp2       Disable nghttp2 usage
2135   --with-ngtcp2=PATH      Enable ngtcp2 usage
2136   --without-ngtcp2        Disable ngtcp2 usage
2137   --with-nghttp3=PATH     Enable nghttp3 usage
2138   --without-nghttp3       Disable nghttp3 usage
2139   --with-quiche=PATH      Enable quiche usage
2140   --without-quiche        Disable quiche usage
2141   --with-zsh-functions-dir=PATH
2142                           Install zsh completions to PATH
2143   --without-zsh-functions-dir
2144                           Do not install zsh completions
2145   --with-fish-functions-dir=PATH
2146                           Install fish completions to PATH
2147   --without-fish-functions-dir
2148                           Do not install fish completions
2149
2150 Some influential environment variables:
2151   CC          C compiler command
2152   CFLAGS      C compiler flags
2153   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2154               nonstandard directory <lib dir>
2155   LIBS        libraries to pass to the linker, e.g. -l<library>
2156   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2157               you have headers in a nonstandard directory <include dir>
2158   CPP         C preprocessor
2159   LT_SYS_LIBRARY_PATH
2160               User-defined run-time library search path.
2161
2162 Use these variables to override the choices made by `configure' or to help
2163 it to find libraries and programs with nonstandard names/locations.
2164
2165 Report bugs to <a suitable curl mailing list: https://curl.se/mail/>.
2166 _ACEOF
2167 ac_status=$?
2168 fi
2169
2170 if test "$ac_init_help" = "recursive"; then
2171   # If there are subdirs, report their specific --help.
2172   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2173     test -d "$ac_dir" ||
2174       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2175       continue
2176     ac_builddir=.
2177
2178 case "$ac_dir" in
2179 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2180 *)
2181   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2182   # A ".." for each directory in $ac_dir_suffix.
2183   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2184   case $ac_top_builddir_sub in
2185   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2186   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2187   esac ;;
2188 esac
2189 ac_abs_top_builddir=$ac_pwd
2190 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2191 # for backward compatibility:
2192 ac_top_builddir=$ac_top_build_prefix
2193
2194 case $srcdir in
2195   .)  # We are building in place.
2196     ac_srcdir=.
2197     ac_top_srcdir=$ac_top_builddir_sub
2198     ac_abs_top_srcdir=$ac_pwd ;;
2199   [\\/]* | ?:[\\/]* )  # Absolute name.
2200     ac_srcdir=$srcdir$ac_dir_suffix;
2201     ac_top_srcdir=$srcdir
2202     ac_abs_top_srcdir=$srcdir ;;
2203   *) # Relative name.
2204     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2205     ac_top_srcdir=$ac_top_build_prefix$srcdir
2206     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2207 esac
2208 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2209
2210     cd "$ac_dir" || { ac_status=$?; continue; }
2211     # Check for configure.gnu first; this name is used for a wrapper for
2212     # Metaconfig's "Configure" on case-insensitive file systems.
2213     if test -f "$ac_srcdir/configure.gnu"; then
2214       echo &&
2215       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2216     elif test -f "$ac_srcdir/configure"; then
2217       echo &&
2218       $SHELL "$ac_srcdir/configure" --help=recursive
2219     else
2220       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2221     fi || ac_status=$?
2222     cd "$ac_pwd" || { ac_status=$?; break; }
2223   done
2224 fi
2225
2226 test -n "$ac_init_help" && exit $ac_status
2227 if $ac_init_version; then
2228   cat <<\_ACEOF
2229 curl configure -
2230 generated by GNU Autoconf 2.71
2231
2232 Copyright (C) 2021 Free Software Foundation, Inc.
2233 This configure script is free software; the Free Software Foundation
2234 gives unlimited permission to copy, distribute and modify it.
2235
2236 Copyright (c) 1998 - 2021 Daniel Stenberg, <daniel@haxx.se>
2237 This configure script may be copied, distributed and modified under the
2238 terms of the curl license; see COPYING for more details
2239 _ACEOF
2240   exit
2241 fi
2242
2243 ## ------------------------ ##
2244 ## Autoconf initialization. ##
2245 ## ------------------------ ##
2246
2247 # ac_fn_c_try_compile LINENO
2248 # --------------------------
2249 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2250 ac_fn_c_try_compile ()
2251 {
2252   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253   rm -f conftest.$ac_objext conftest.beam
2254   if { { ac_try="$ac_compile"
2255 case "(($ac_try" in
2256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2257   *) ac_try_echo=$ac_try;;
2258 esac
2259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2260 printf "%s\n" "$ac_try_echo"; } >&5
2261   (eval "$ac_compile") 2>conftest.err
2262   ac_status=$?
2263   if test -s conftest.err; then
2264     grep -v '^ *+' conftest.err >conftest.er1
2265     cat conftest.er1 >&5
2266     mv -f conftest.er1 conftest.err
2267   fi
2268   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2269   test $ac_status = 0; } && {
2270          test -z "$ac_c_werror_flag" ||
2271          test ! -s conftest.err
2272        } && test -s conftest.$ac_objext
2273 then :
2274   ac_retval=0
2275 else $as_nop
2276   printf "%s\n" "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.$ac_ext >&5
2278
2279         ac_retval=1
2280 fi
2281   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2282   as_fn_set_status $ac_retval
2283
2284 } # ac_fn_c_try_compile
2285
2286 # ac_fn_c_try_cpp LINENO
2287 # ----------------------
2288 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2289 ac_fn_c_try_cpp ()
2290 {
2291   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2292   if { { ac_try="$ac_cpp conftest.$ac_ext"
2293 case "(($ac_try" in
2294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2295   *) ac_try_echo=$ac_try;;
2296 esac
2297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2298 printf "%s\n" "$ac_try_echo"; } >&5
2299   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2300   ac_status=$?
2301   if test -s conftest.err; then
2302     grep -v '^ *+' conftest.err >conftest.er1
2303     cat conftest.er1 >&5
2304     mv -f conftest.er1 conftest.err
2305   fi
2306   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2307   test $ac_status = 0; } > conftest.i && {
2308          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2309          test ! -s conftest.err
2310        }
2311 then :
2312   ac_retval=0
2313 else $as_nop
2314   printf "%s\n" "$as_me: failed program was:" >&5
2315 sed 's/^/| /' conftest.$ac_ext >&5
2316
2317     ac_retval=1
2318 fi
2319   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2320   as_fn_set_status $ac_retval
2321
2322 } # ac_fn_c_try_cpp
2323
2324 # ac_fn_c_try_link LINENO
2325 # -----------------------
2326 # Try to link conftest.$ac_ext, and return whether this succeeded.
2327 ac_fn_c_try_link ()
2328 {
2329   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2330   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2331   if { { ac_try="$ac_link"
2332 case "(($ac_try" in
2333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2334   *) ac_try_echo=$ac_try;;
2335 esac
2336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2337 printf "%s\n" "$ac_try_echo"; } >&5
2338   (eval "$ac_link") 2>conftest.err
2339   ac_status=$?
2340   if test -s conftest.err; then
2341     grep -v '^ *+' conftest.err >conftest.er1
2342     cat conftest.er1 >&5
2343     mv -f conftest.er1 conftest.err
2344   fi
2345   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2346   test $ac_status = 0; } && {
2347          test -z "$ac_c_werror_flag" ||
2348          test ! -s conftest.err
2349        } && test -s conftest$ac_exeext && {
2350          test "$cross_compiling" = yes ||
2351          test -x conftest$ac_exeext
2352        }
2353 then :
2354   ac_retval=0
2355 else $as_nop
2356   printf "%s\n" "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.$ac_ext >&5
2358
2359         ac_retval=1
2360 fi
2361   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2362   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2363   # interfere with the next link command; also delete a directory that is
2364   # left behind by Apple's compiler.  We do this before executing the actions.
2365   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2366   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2367   as_fn_set_status $ac_retval
2368
2369 } # ac_fn_c_try_link
2370
2371 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2372 # -------------------------------------------------------
2373 # Tests whether HEADER exists and can be compiled using the include files in
2374 # INCLUDES, setting the cache variable VAR accordingly.
2375 ac_fn_c_check_header_compile ()
2376 {
2377   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2378   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2379 printf %s "checking for $2... " >&6; }
2380 if eval test \${$3+y}
2381 then :
2382   printf %s "(cached) " >&6
2383 else $as_nop
2384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2385 /* end confdefs.h.  */
2386 $4
2387 #include <$2>
2388 _ACEOF
2389 if ac_fn_c_try_compile "$LINENO"
2390 then :
2391   eval "$3=yes"
2392 else $as_nop
2393   eval "$3=no"
2394 fi
2395 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2396 fi
2397 eval ac_res=\$$3
2398                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2399 printf "%s\n" "$ac_res" >&6; }
2400   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2401
2402 } # ac_fn_c_check_header_compile
2403
2404 # ac_fn_c_check_func LINENO FUNC VAR
2405 # ----------------------------------
2406 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2407 ac_fn_c_check_func ()
2408 {
2409   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2410   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2411 printf %s "checking for $2... " >&6; }
2412 if eval test \${$3+y}
2413 then :
2414   printf %s "(cached) " >&6
2415 else $as_nop
2416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h.  */
2418
2419 #define $2 innocuous_$2
2420 #ifdef __STDC__
2421 # include <limits.h>
2422 #else
2423 # include <assert.h>
2424 #endif
2425 #undef $2
2426 #ifdef __cplusplus
2427 extern "C"
2428 #endif
2429 char $2 ();
2430 #if defined __stub_$2 || defined __stub___$2
2431 choke me
2432 #endif
2433
2434 int main (void)
2435 {
2436 return $2 ();
2437  ;
2438  return 0;
2439 }
2440 _ACEOF
2441 if ac_fn_c_try_link "$LINENO"
2442 then :
2443   eval "$3=yes"
2444 else $as_nop
2445   eval "$3=no"
2446 fi
2447 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2448     conftest$ac_exeext conftest.$ac_ext
2449 fi
2450 eval ac_res=\$$3
2451                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2452 printf "%s\n" "$ac_res" >&6; }
2453   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2454
2455 } # ac_fn_c_check_func
2456
2457 # ac_fn_c_try_run LINENO
2458 # ----------------------
2459 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2460 # executables *can* be run.
2461 ac_fn_c_try_run ()
2462 {
2463   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2464   if { { ac_try="$ac_link"
2465 case "(($ac_try" in
2466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467   *) ac_try_echo=$ac_try;;
2468 esac
2469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2470 printf "%s\n" "$ac_try_echo"; } >&5
2471   (eval "$ac_link") 2>&5
2472   ac_status=$?
2473   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2474   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2475   { { case "(($ac_try" in
2476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2477   *) ac_try_echo=$ac_try;;
2478 esac
2479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2480 printf "%s\n" "$ac_try_echo"; } >&5
2481   (eval "$ac_try") 2>&5
2482   ac_status=$?
2483   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2484   test $ac_status = 0; }; }
2485 then :
2486   ac_retval=0
2487 else $as_nop
2488   printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2489        printf "%s\n" "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2491
2492        ac_retval=$ac_status
2493 fi
2494   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2495   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2496   as_fn_set_status $ac_retval
2497
2498 } # ac_fn_c_try_run
2499
2500 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2501 # -------------------------------------------
2502 # Tests whether TYPE exists after having included INCLUDES, setting cache
2503 # variable VAR accordingly.
2504 ac_fn_c_check_type ()
2505 {
2506   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2507   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2508 printf %s "checking for $2... " >&6; }
2509 if eval test \${$3+y}
2510 then :
2511   printf %s "(cached) " >&6
2512 else $as_nop
2513   eval "$3=no"
2514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2515 /* end confdefs.h.  */
2516 $4
2517 int main (void)
2518 {
2519 if (sizeof ($2))
2520          return 0;
2521  ;
2522  return 0;
2523 }
2524 _ACEOF
2525 if ac_fn_c_try_compile "$LINENO"
2526 then :
2527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2528 /* end confdefs.h.  */
2529 $4
2530 int main (void)
2531 {
2532 if (sizeof (($2)))
2533             return 0;
2534  ;
2535  return 0;
2536 }
2537 _ACEOF
2538 if ac_fn_c_try_compile "$LINENO"
2539 then :
2540
2541 else $as_nop
2542   eval "$3=yes"
2543 fi
2544 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2545 fi
2546 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2547 fi
2548 eval ac_res=\$$3
2549                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2550 printf "%s\n" "$ac_res" >&6; }
2551   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2552
2553 } # ac_fn_c_check_type
2554
2555 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2556 # ------------------------------------------------------------------
2557 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2558 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2559 ac_fn_check_decl ()
2560 {
2561   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2562   as_decl_name=`echo $2|sed 's/ *(.*//'`
2563   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2564 printf %s "checking whether $as_decl_name is declared... " >&6; }
2565 if eval test \${$3+y}
2566 then :
2567   printf %s "(cached) " >&6
2568 else $as_nop
2569   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2570   eval ac_save_FLAGS=\$$6
2571   as_fn_append $6 " $5"
2572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2573 /* end confdefs.h.  */
2574 $4
2575 int main (void)
2576 {
2577 #ifndef $as_decl_name
2578 #ifdef __cplusplus
2579   (void) $as_decl_use;
2580 #else
2581   (void) $as_decl_name;
2582 #endif
2583 #endif
2584
2585  ;
2586  return 0;
2587 }
2588 _ACEOF
2589 if ac_fn_c_try_compile "$LINENO"
2590 then :
2591   eval "$3=yes"
2592 else $as_nop
2593   eval "$3=no"
2594 fi
2595 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2596   eval $6=\$ac_save_FLAGS
2597
2598 fi
2599 eval ac_res=\$$3
2600                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2601 printf "%s\n" "$ac_res" >&6; }
2602   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2603
2604 } # ac_fn_check_decl
2605
2606 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2607 # ----------------------------------------------------
2608 # Tries to find if the field MEMBER exists in type AGGR, after including
2609 # INCLUDES, setting cache variable VAR accordingly.
2610 ac_fn_c_check_member ()
2611 {
2612   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2613   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2614 printf %s "checking for $2.$3... " >&6; }
2615 if eval test \${$4+y}
2616 then :
2617   printf %s "(cached) " >&6
2618 else $as_nop
2619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2620 /* end confdefs.h.  */
2621 $5
2622 int main (void)
2623 {
2624 static $2 ac_aggr;
2625 if (ac_aggr.$3)
2626 return 0;
2627  ;
2628  return 0;
2629 }
2630 _ACEOF
2631 if ac_fn_c_try_compile "$LINENO"
2632 then :
2633   eval "$4=yes"
2634 else $as_nop
2635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2636 /* end confdefs.h.  */
2637 $5
2638 int main (void)
2639 {
2640 static $2 ac_aggr;
2641 if (sizeof ac_aggr.$3)
2642 return 0;
2643  ;
2644  return 0;
2645 }
2646 _ACEOF
2647 if ac_fn_c_try_compile "$LINENO"
2648 then :
2649   eval "$4=yes"
2650 else $as_nop
2651   eval "$4=no"
2652 fi
2653 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2654 fi
2655 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2656 fi
2657 eval ac_res=\$$4
2658                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2659 printf "%s\n" "$ac_res" >&6; }
2660   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2661
2662 } # ac_fn_c_check_member
2663 ac_configure_args_raw=
2664 for ac_arg
2665 do
2666   case $ac_arg in
2667   *\'*)
2668     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2669   esac
2670   as_fn_append ac_configure_args_raw " '$ac_arg'"
2671 done
2672
2673 case $ac_configure_args_raw in
2674   *$as_nl*)
2675     ac_safe_unquote= ;;
2676   *)
2677     ac_unsafe_z='|&;<>()$`\\"*?[ ''     ' # This string ends in space, tab.
2678     ac_unsafe_a="$ac_unsafe_z#~"
2679     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2680     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2681 esac
2682
2683 cat >config.log <<_ACEOF
2684 This file contains any messages produced by compilers while
2685 running configure, to aid debugging if configure makes a mistake.
2686
2687 It was created by curl $as_me -, which was
2688 generated by GNU Autoconf 2.71.  Invocation command line was
2689
2690   $ $0$ac_configure_args_raw
2691
2692 _ACEOF
2693 exec 5>>config.log
2694 {
2695 cat <<_ASUNAME
2696 ## --------- ##
2697 ## Platform. ##
2698 ## --------- ##
2699
2700 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2701 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2702 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2703 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2704 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2705
2706 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2707 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2708
2709 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2710 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2711 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2712 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2713 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2714 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2715 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2716
2717 _ASUNAME
2718
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 for as_dir in $PATH
2721 do
2722   IFS=$as_save_IFS
2723   case $as_dir in #(((
2724     '') as_dir=./ ;;
2725     */) ;;
2726     *) as_dir=$as_dir/ ;;
2727   esac
2728     printf "%s\n" "PATH: $as_dir"
2729   done
2730 IFS=$as_save_IFS
2731
2732 } >&5
2733
2734 cat >&5 <<_ACEOF
2735
2736
2737 ## ----------- ##
2738 ## Core tests. ##
2739 ## ----------- ##
2740
2741 _ACEOF
2742
2743
2744 # Keep a trace of the command line.
2745 # Strip out --no-create and --no-recursion so they do not pile up.
2746 # Strip out --silent because we don't want to record it for future runs.
2747 # Also quote any args containing shell meta-characters.
2748 # Make two passes to allow for proper duplicate-argument suppression.
2749 ac_configure_args=
2750 ac_configure_args0=
2751 ac_configure_args1=
2752 ac_must_keep_next=false
2753 for ac_pass in 1 2
2754 do
2755   for ac_arg
2756   do
2757     case $ac_arg in
2758     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2759     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2760     | -silent | --silent | --silen | --sile | --sil)
2761       continue ;;
2762     *\'*)
2763       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2764     esac
2765     case $ac_pass in
2766     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2767     2)
2768       as_fn_append ac_configure_args1 " '$ac_arg'"
2769       if test $ac_must_keep_next = true; then
2770         ac_must_keep_next=false # Got value, back to normal.
2771       else
2772         case $ac_arg in
2773           *=* | --config-cache | -C | -disable-* | --disable-* \
2774           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2775           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2776           | -with-* | --with-* | -without-* | --without-* | --x)
2777             case "$ac_configure_args0 " in
2778               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2779             esac
2780             ;;
2781           -* ) ac_must_keep_next=true ;;
2782         esac
2783       fi
2784       as_fn_append ac_configure_args " '$ac_arg'"
2785       ;;
2786     esac
2787   done
2788 done
2789 { ac_configure_args0=; unset ac_configure_args0;}
2790 { ac_configure_args1=; unset ac_configure_args1;}
2791
2792 # When interrupted or exit'd, cleanup temporary files, and complete
2793 # config.log.  We remove comments because anyway the quotes in there
2794 # would cause problems or look ugly.
2795 # WARNING: Use '\'' to represent an apostrophe within the trap.
2796 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2797 trap 'exit_status=$?
2798   # Sanitize IFS.
2799   IFS=" ""      $as_nl"
2800   # Save into config.log some information that might help in debugging.
2801   {
2802     echo
2803
2804     printf "%s\n" "## ---------------- ##
2805 ## Cache variables. ##
2806 ## ---------------- ##"
2807     echo
2808     # The following way of writing the cache mishandles newlines in values,
2809 (
2810   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2811     eval ac_val=\$$ac_var
2812     case $ac_val in #(
2813     *${as_nl}*)
2814       case $ac_var in #(
2815       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2816 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2817       esac
2818       case $ac_var in #(
2819       _ | IFS | as_nl) ;; #(
2820       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2821       *) { eval $ac_var=; unset $ac_var;} ;;
2822       esac ;;
2823     esac
2824   done
2825   (set) 2>&1 |
2826     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2827     *${as_nl}ac_space=\ *)
2828       sed -n \
2829         "s/'\''/'\''\\\\'\'''\''/g;
2830           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2831       ;; #(
2832     *)
2833       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2834       ;;
2835     esac |
2836     sort
2837 )
2838     echo
2839
2840     printf "%s\n" "## ----------------- ##
2841 ## Output variables. ##
2842 ## ----------------- ##"
2843     echo
2844     for ac_var in $ac_subst_vars
2845     do
2846       eval ac_val=\$$ac_var
2847       case $ac_val in
2848       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2849       esac
2850       printf "%s\n" "$ac_var='\''$ac_val'\''"
2851     done | sort
2852     echo
2853
2854     if test -n "$ac_subst_files"; then
2855       printf "%s\n" "## ------------------- ##
2856 ## File substitutions. ##
2857 ## ------------------- ##"
2858       echo
2859       for ac_var in $ac_subst_files
2860       do
2861         eval ac_val=\$$ac_var
2862         case $ac_val in
2863         *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2864         esac
2865         printf "%s\n" "$ac_var='\''$ac_val'\''"
2866       done | sort
2867       echo
2868     fi
2869
2870     if test -s confdefs.h; then
2871       printf "%s\n" "## ----------- ##
2872 ## confdefs.h. ##
2873 ## ----------- ##"
2874       echo
2875       cat confdefs.h
2876       echo
2877     fi
2878     test "$ac_signal" != 0 &&
2879       printf "%s\n" "$as_me: caught signal $ac_signal"
2880     printf "%s\n" "$as_me: exit $exit_status"
2881   } >&5
2882   rm -f core *.core core.conftest.* &&
2883     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2884     exit $exit_status
2885 ' 0
2886 for ac_signal in 1 2 13 15; do
2887   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2888 done
2889 ac_signal=0
2890
2891 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2892 rm -f -r conftest* confdefs.h
2893
2894 printf "%s\n" "/* confdefs.h */" > confdefs.h
2895
2896 # Predefined preprocessor variables.
2897
2898 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2899
2900 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2901
2902 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2903
2904 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2905
2906 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2907
2908 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2909
2910
2911 # Let the site file select an alternate cache file if it wants to.
2912 # Prefer an explicitly selected file to automatically selected ones.
2913 if test -n "$CONFIG_SITE"; then
2914   ac_site_files="$CONFIG_SITE"
2915 elif test "x$prefix" != xNONE; then
2916   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2917 else
2918   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2919 fi
2920
2921 for ac_site_file in $ac_site_files
2922 do
2923   case $ac_site_file in #(
2924   */*) :
2925      ;; #(
2926   *) :
2927     ac_site_file=./$ac_site_file ;;
2928 esac
2929   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2930     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2931 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2932     sed 's/^/| /' "$ac_site_file" >&5
2933     . "$ac_site_file" \
2934       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2935 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2936 as_fn_error $? "failed to load site script $ac_site_file
2937 See \`config.log' for more details" "$LINENO" 5; }
2938   fi
2939 done
2940
2941 if test -r "$cache_file"; then
2942   # Some versions of bash will fail to source /dev/null (special files
2943   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2944   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2945     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2946 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2947     case $cache_file in
2948       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2949       *)                      . "./$cache_file";;
2950     esac
2951   fi
2952 else
2953   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2954 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2955   >$cache_file
2956 fi
2957
2958 # Test code for whether the C compiler supports C89 (global declarations)
2959 ac_c_conftest_c89_globals='
2960 /* Does the compiler advertise C89 conformance?
2961    Do not test the value of __STDC__, because some compilers set it to 0
2962    while being otherwise adequately conformant. */
2963 #if !defined __STDC__
2964 # error "Compiler does not advertise C89 conformance"
2965 #endif
2966
2967 #include <stddef.h>
2968 #include <stdarg.h>
2969 struct stat;
2970 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2971 struct buf { int x; };
2972 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2973 static char *e (p, i)
2974      char **p;
2975      int i;
2976 {
2977   return p[i];
2978 }
2979 static char *f (char * (*g) (char **, int), char **p, ...)
2980 {
2981   char *s;
2982   va_list v;
2983   va_start (v,p);
2984   s = g (p, va_arg (v,int));
2985   va_end (v);
2986   return s;
2987 }
2988
2989 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2990    function prototypes and stuff, but not \xHH hex character constants.
2991    These do not provoke an error unfortunately, instead are silently treated
2992    as an "x".  The following induces an error, until -std is added to get
2993    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2994    array size at least.  It is necessary to write \x00 == 0 to get something
2995    that is true only with -std.  */
2996 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2997
2998 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2999    inside strings and character constants.  */
3000 #define FOO(x) '\''x'\''
3001 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3002
3003 int test (int i, double x);
3004 struct s1 {int (*f) (int a);};
3005 struct s2 {int (*f) (double a);};
3006 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3007                int, int);'
3008
3009 # Test code for whether the C compiler supports C89 (body of main).
3010 ac_c_conftest_c89_main='
3011 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3012 '
3013
3014 # Test code for whether the C compiler supports C99 (global declarations)
3015 ac_c_conftest_c99_globals='
3016 // Does the compiler advertise C99 conformance?
3017 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3018 # error "Compiler does not advertise C99 conformance"
3019 #endif
3020
3021 #include <stdbool.h>
3022 extern int puts (const char *);
3023 extern int printf (const char *, ...);
3024 extern int dprintf (int, const char *, ...);
3025 extern void *malloc (size_t);
3026
3027 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
3028 // dprintf is used instead of fprintf to avoid needing to declare
3029 // FILE and stderr.
3030 #define debug(...) dprintf (2, __VA_ARGS__)
3031 #define showlist(...) puts (#__VA_ARGS__)
3032 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3033 static void
3034 test_varargs_macros (void)
3035 {
3036   int x = 1234;
3037   int y = 5678;
3038   debug ("Flag");
3039   debug ("X = %d\n", x);
3040   showlist (The first, second, and third items.);
3041   report (x>y, "x is %d but y is %d", x, y);
3042 }
3043
3044 // Check long long types.
3045 #define BIG64 18446744073709551615ull
3046 #define BIG32 4294967295ul
3047 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3048 #if !BIG_OK
3049   #error "your preprocessor is broken"
3050 #endif
3051 #if BIG_OK
3052 #else
3053   #error "your preprocessor is broken"
3054 #endif
3055 static long long int bignum = -9223372036854775807LL;
3056 static unsigned long long int ubignum = BIG64;
3057
3058 struct incomplete_array
3059 {
3060   int datasize;
3061   double data[];
3062 };
3063
3064 struct named_init {
3065   int number;
3066   const wchar_t *name;
3067   double average;
3068 };
3069
3070 typedef const char *ccp;
3071
3072 static inline int
3073 test_restrict (ccp restrict text)
3074 {
3075   // See if C++-style comments work.
3076   // Iterate through items via the restricted pointer.
3077   // Also check for declarations in for loops.
3078   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3079     continue;
3080   return 0;
3081 }
3082
3083 // Check varargs and va_copy.
3084 static bool
3085 test_varargs (const char *format, ...)
3086 {
3087   va_list args;
3088   va_start (args, format);
3089   va_list args_copy;
3090   va_copy (args_copy, args);
3091
3092   const char *str = "";
3093   int number = 0;
3094   float fnumber = 0;
3095
3096   while (*format)
3097     {
3098       switch (*format++)
3099         {
3100         case '\''s'\'': // string
3101           str = va_arg (args_copy, const char *);
3102           break;
3103         case '\''d'\'': // int
3104           number = va_arg (args_copy, int);
3105           break;
3106         case '\''f'\'': // float
3107           fnumber = va_arg (args_copy, double);
3108           break;
3109         default:
3110           break;
3111         }
3112     }
3113   va_end (args_copy);
3114   va_end (args);
3115
3116   return *str && number && fnumber;
3117 }
3118 '
3119
3120 # Test code for whether the C compiler supports C99 (body of main).
3121 ac_c_conftest_c99_main='
3122   // Check bool.
3123   _Bool success = false;
3124   success |= (argc != 0);
3125
3126   // Check restrict.
3127   if (test_restrict ("String literal") == 0)
3128     success = true;
3129   char *restrict newvar = "Another string";
3130
3131   // Check varargs.
3132   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3133   test_varargs_macros ();
3134
3135   // Check flexible array members.
3136   struct incomplete_array *ia =
3137     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3138   ia->datasize = 10;
3139   for (int i = 0; i < ia->datasize; ++i)
3140     ia->data[i] = i * 1.234;
3141
3142   // Check named initializers.
3143   struct named_init ni = {
3144     .number = 34,
3145     .name = L"Test wide string",
3146     .average = 543.34343,
3147   };
3148
3149   ni.number = 58;
3150
3151   int dynamic_array[ni.number];
3152   dynamic_array[0] = argv[0][0];
3153   dynamic_array[ni.number - 1] = 543;
3154
3155   // work around unused variable warnings
3156   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3157          || dynamic_array[ni.number - 1] != 543);
3158 '
3159
3160 # Test code for whether the C compiler supports C11 (global declarations)
3161 ac_c_conftest_c11_globals='
3162 // Does the compiler advertise C11 conformance?
3163 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3164 # error "Compiler does not advertise C11 conformance"
3165 #endif
3166
3167 // Check _Alignas.
3168 char _Alignas (double) aligned_as_double;
3169 char _Alignas (0) no_special_alignment;
3170 extern char aligned_as_int;
3171 char _Alignas (0) _Alignas (int) aligned_as_int;
3172
3173 // Check _Alignof.
3174 enum
3175 {
3176   int_alignment = _Alignof (int),
3177   int_array_alignment = _Alignof (int[100]),
3178   char_alignment = _Alignof (char)
3179 };
3180 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3181
3182 // Check _Noreturn.
3183 int _Noreturn does_not_return (void) { for (;;) continue; }
3184
3185 // Check _Static_assert.
3186 struct test_static_assert
3187 {
3188   int x;
3189   _Static_assert (sizeof (int) <= sizeof (long int),
3190                   "_Static_assert does not work in struct");
3191   long int y;
3192 };
3193
3194 // Check UTF-8 literals.
3195 #define u8 syntax error!
3196 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3197
3198 // Check duplicate typedefs.
3199 typedef long *long_ptr;
3200 typedef long int *long_ptr;
3201 typedef long_ptr long_ptr;
3202
3203 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3204 struct anonymous
3205 {
3206   union {
3207     struct { int i; int j; };
3208     struct { int k; long int l; } w;
3209   };
3210   int m;
3211 } v1;
3212 '
3213
3214 # Test code for whether the C compiler supports C11 (body of main).
3215 ac_c_conftest_c11_main='
3216   _Static_assert ((offsetof (struct anonymous, i)
3217                    == offsetof (struct anonymous, w.k)),
3218                   "Anonymous union alignment botch");
3219   v1.i = 2;
3220   v1.w.k = 5;
3221   ok |= v1.i != 5;
3222 '
3223
3224 # Test code for whether the C compiler supports C11 (complete).
3225 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3226 ${ac_c_conftest_c99_globals}
3227 ${ac_c_conftest_c11_globals}
3228
3229 int
3230 main (int argc, char **argv)
3231 {
3232   int ok = 0;
3233   ${ac_c_conftest_c89_main}
3234   ${ac_c_conftest_c99_main}
3235   ${ac_c_conftest_c11_main}
3236   return ok;
3237 }
3238 "
3239
3240 # Test code for whether the C compiler supports C99 (complete).
3241 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3242 ${ac_c_conftest_c99_globals}
3243
3244 int
3245 main (int argc, char **argv)
3246 {
3247   int ok = 0;
3248   ${ac_c_conftest_c89_main}
3249   ${ac_c_conftest_c99_main}
3250   return ok;
3251 }
3252 "
3253
3254 # Test code for whether the C compiler supports C89 (complete).
3255 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3256
3257 int
3258 main (int argc, char **argv)
3259 {
3260   int ok = 0;
3261   ${ac_c_conftest_c89_main}
3262   return ok;
3263 }
3264 "
3265
3266 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3267 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3268 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3269 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3270 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3271 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3272 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3273 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3274 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3275
3276 # Auxiliary files required by this configure script.
3277 ac_aux_files="ltmain.sh config.guess config.sub missing compile install-sh"
3278
3279 # Locations in which to look for auxiliary files.
3280 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3281
3282 # Search for a directory containing all of the required auxiliary files,
3283 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3284 # If we don't find one directory that contains all the files we need,
3285 # we report the set of missing files from the *first* directory in
3286 # $ac_aux_dir_candidates and give up.
3287 ac_missing_aux_files=""
3288 ac_first_candidate=:
3289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291 as_found=false
3292 for as_dir in $ac_aux_dir_candidates
3293 do
3294   IFS=$as_save_IFS
3295   case $as_dir in #(((
3296     '') as_dir=./ ;;
3297     */) ;;
3298     *) as_dir=$as_dir/ ;;
3299   esac
3300   as_found=:
3301
3302   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
3303   ac_aux_dir_found=yes
3304   ac_install_sh=
3305   for ac_aux in $ac_aux_files
3306   do
3307     # As a special case, if "install-sh" is required, that requirement
3308     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3309     # and $ac_install_sh is set appropriately for whichever one is found.
3310     if test x"$ac_aux" = x"install-sh"
3311     then
3312       if test -f "${as_dir}install-sh"; then
3313         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
3314         ac_install_sh="${as_dir}install-sh -c"
3315       elif test -f "${as_dir}install.sh"; then
3316         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
3317         ac_install_sh="${as_dir}install.sh -c"
3318       elif test -f "${as_dir}shtool"; then
3319         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3320         ac_install_sh="${as_dir}shtool install -c"
3321       else
3322         ac_aux_dir_found=no
3323         if $ac_first_candidate; then
3324           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3325         else
3326           break
3327         fi
3328       fi
3329     else
3330       if test -f "${as_dir}${ac_aux}"; then
3331         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3332       else
3333         ac_aux_dir_found=no
3334         if $ac_first_candidate; then
3335           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3336         else
3337           break
3338         fi
3339       fi
3340     fi
3341   done
3342   if test "$ac_aux_dir_found" = yes; then
3343     ac_aux_dir="$as_dir"
3344     break
3345   fi
3346   ac_first_candidate=false
3347
3348   as_found=false
3349 done
3350 IFS=$as_save_IFS
3351 if $as_found
3352 then :
3353
3354 else $as_nop
3355   as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3356 fi
3357
3358
3359 # These three variables are undocumented and unsupported,
3360 # and are intended to be withdrawn in a future Autoconf release.
3361 # They can cause serious problems if a builder's source tree is in a directory
3362 # whose full name contains unusual characters.
3363 if test -f "${ac_aux_dir}config.guess"; then
3364   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3365 fi
3366 if test -f "${ac_aux_dir}config.sub"; then
3367   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3368 fi
3369 if test -f "$ac_aux_dir/configure"; then
3370   ac_configure="$SHELL ${ac_aux_dir}configure"
3371 fi
3372
3373 # Check that the precious variables saved in the cache have kept the same
3374 # value.
3375 ac_cache_corrupted=false
3376 for ac_var in $ac_precious_vars; do
3377   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3378   eval ac_new_set=\$ac_env_${ac_var}_set
3379   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3380   eval ac_new_val=\$ac_env_${ac_var}_value
3381   case $ac_old_set,$ac_new_set in
3382     set,)
3383       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3384 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3385       ac_cache_corrupted=: ;;
3386     ,set)
3387       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3388 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3389       ac_cache_corrupted=: ;;
3390     ,);;
3391     *)
3392       if test "x$ac_old_val" != "x$ac_new_val"; then
3393         # differences in whitespace do not lead to failure.
3394         ac_old_val_w=`echo x $ac_old_val`
3395         ac_new_val_w=`echo x $ac_new_val`
3396         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3397           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3398 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3399           ac_cache_corrupted=:
3400         else
3401           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3402 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3403           eval $ac_var=\$ac_old_val
3404         fi
3405         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3406 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3407         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3408 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3409       fi;;
3410   esac
3411   # Pass precious variables to config.status.
3412   if test "$ac_new_set" = set; then
3413     case $ac_new_val in
3414     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3415     *) ac_arg=$ac_var=$ac_new_val ;;
3416     esac
3417     case " $ac_configure_args " in
3418       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3419       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3420     esac
3421   fi
3422 done
3423 if $ac_cache_corrupted; then
3424   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3425 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3426   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3427 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3428   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3429             and start over" "$LINENO" 5
3430 fi
3431 ## -------------------- ##
3432 ## Main body of script. ##
3433 ## -------------------- ##
3434
3435 ac_ext=c
3436 ac_cpp='$CPP $CPPFLAGS'
3437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3440
3441
3442
3443
3444
3445
3446
3447 # using curl-override.m4
3448
3449
3450
3451
3452
3453 ac_config_headers="$ac_config_headers lib/curl_config.h"
3454
3455
3456
3457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3458 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3459     # Check whether --enable-maintainer-mode was given.
3460 if test ${enable_maintainer_mode+y}
3461 then :
3462   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3463 else $as_nop
3464   USE_MAINTAINER_MODE=no
3465 fi
3466
3467   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3468 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3469    if test $USE_MAINTAINER_MODE = yes; then
3470   MAINTAINER_MODE_TRUE=
3471   MAINTAINER_MODE_FALSE='#'
3472 else
3473   MAINTAINER_MODE_TRUE='#'
3474   MAINTAINER_MODE_FALSE=
3475 fi
3476
3477   MAINT=$MAINTAINER_MODE_TRUE
3478
3479
3480 # Check whether --enable-silent-rules was given.
3481 if test ${enable_silent_rules+y}
3482 then :
3483   enableval=$enable_silent_rules;
3484 fi
3485
3486 case $enable_silent_rules in # (((
3487   yes) AM_DEFAULT_VERBOSITY=0;;
3488    no) AM_DEFAULT_VERBOSITY=1;;
3489     *) AM_DEFAULT_VERBOSITY=0;;
3490 esac
3491 am_make=${MAKE-make}
3492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3493 printf %s "checking whether $am_make supports nested variables... " >&6; }
3494 if test ${am_cv_make_support_nested_variables+y}
3495 then :
3496   printf %s "(cached) " >&6
3497 else $as_nop
3498   if printf "%s\n" 'TRUE=$(BAR$(V))
3499 BAR0=false
3500 BAR1=true
3501 V=1
3502 am__doit:
3503         @$(TRUE)
3504 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3505   am_cv_make_support_nested_variables=yes
3506 else
3507   am_cv_make_support_nested_variables=no
3508 fi
3509 fi
3510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3511 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3512 if test $am_cv_make_support_nested_variables = yes; then
3513     AM_V='$(V)'
3514   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3515 else
3516   AM_V=$AM_DEFAULT_VERBOSITY
3517   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3518 fi
3519 AM_BACKSLASH='\'
3520
3521
3522
3523         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3524 printf %s "checking whether to enable debug build options... " >&6; }
3525   OPT_DEBUG_BUILD="default"
3526   # Check whether --enable-debug was given.
3527 if test ${enable_debug+y}
3528 then :
3529   enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3530 fi
3531
3532   case "$OPT_DEBUG_BUILD" in
3533     no)
3534             want_debug="no"
3535       ;;
3536     default)
3537             want_debug="no"
3538       ;;
3539     *)
3540             want_debug="yes"
3541
3542 printf "%s\n" "#define DEBUGBUILD 1" >>confdefs.h
3543
3544       ;;
3545   esac
3546   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3547 printf "%s\n" "$want_debug" >&6; }
3548
3549
3550       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3551 printf %s "checking whether to enable compiler optimizer... " >&6; }
3552   OPT_COMPILER_OPTIMIZE="default"
3553   # Check whether --enable-optimize was given.
3554 if test ${enable_optimize+y}
3555 then :
3556   enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3557 fi
3558
3559   case "$OPT_COMPILER_OPTIMIZE" in
3560     no)
3561                               want_optimize="no"
3562       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563 printf "%s\n" "no" >&6; }
3564       ;;
3565     default)
3566                                                                         if test "$want_debug" = "yes"; then
3567         want_optimize="assume_no"
3568         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3569 printf "%s\n" "(assumed) no" >&6; }
3570       else
3571         want_optimize="assume_yes"
3572         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3573 printf "%s\n" "(assumed) yes" >&6; }
3574       fi
3575       ;;
3576     *)
3577                               want_optimize="yes"
3578       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3579 printf "%s\n" "yes" >&6; }
3580       ;;
3581   esac
3582
3583
3584         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3585 printf %s "checking whether to enable strict compiler warnings... " >&6; }
3586   OPT_COMPILER_WARNINGS="default"
3587   # Check whether --enable-warnings was given.
3588 if test ${enable_warnings+y}
3589 then :
3590   enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3591 fi
3592
3593   case "$OPT_COMPILER_WARNINGS" in
3594     no)
3595             want_warnings="no"
3596       ;;
3597     default)
3598                   want_warnings="$want_debug"
3599       ;;
3600     *)
3601             want_warnings="yes"
3602       ;;
3603   esac
3604   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3605 printf "%s\n" "$want_warnings" >&6; }
3606
3607
3608     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3609 printf %s "checking whether to enable compiler warnings as errors... " >&6; }
3610   OPT_COMPILER_WERROR="default"
3611   # Check whether --enable-werror was given.
3612 if test ${enable_werror+y}
3613 then :
3614   enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3615 fi
3616
3617   case "$OPT_COMPILER_WERROR" in
3618     no)
3619             want_werror="no"
3620       ;;
3621     default)
3622             want_werror="no"
3623       ;;
3624     *)
3625             want_werror="yes"
3626       ;;
3627   esac
3628   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3629 printf "%s\n" "$want_werror" >&6; }
3630
3631
3632     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3633 printf %s "checking whether to enable curl debug memory tracking... " >&6; }
3634   OPT_CURLDEBUG_BUILD="default"
3635   # Check whether --enable-curldebug was given.
3636 if test ${enable_curldebug+y}
3637 then :
3638   enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3639 fi
3640
3641   case "$OPT_CURLDEBUG_BUILD" in
3642     no)
3643             want_curldebug="no"
3644       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3645 printf "%s\n" "no" >&6; }
3646       ;;
3647     default)
3648                                           if test "$want_debug" = "yes"; then
3649         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3650 printf "%s\n" "(assumed) yes" >&6; }
3651
3652 printf "%s\n" "#define CURLDEBUG 1" >>confdefs.h
3653
3654       else
3655         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 printf "%s\n" "no" >&6; }
3657       fi
3658       want_curldebug_assumed="yes"
3659       want_curldebug="$want_debug"
3660       ;;
3661     *)
3662                                                       want_curldebug="yes"
3663
3664 printf "%s\n" "#define CURLDEBUG 1" >>confdefs.h
3665
3666       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3667 printf "%s\n" "yes" >&6; }
3668       ;;
3669   esac
3670
3671
3672     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3673 printf %s "checking whether to enable hiding of library internal symbols... " >&6; }
3674   OPT_SYMBOL_HIDING="default"
3675   # Check whether --enable-symbol-hiding was given.
3676 if test ${enable_symbol_hiding+y}
3677 then :
3678   enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3679 fi
3680
3681   case "$OPT_SYMBOL_HIDING" in
3682     no)
3683                               want_symbol_hiding="no"
3684       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685 printf "%s\n" "no" >&6; }
3686       ;;
3687     default)
3688                   want_symbol_hiding="yes"
3689       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3690 printf "%s\n" "yes" >&6; }
3691       ;;
3692     *)
3693                         want_symbol_hiding="yes"
3694       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3695 printf "%s\n" "yes" >&6; }
3696       ;;
3697   esac
3698
3699
3700     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3701 printf %s "checking whether to enable c-ares for DNS lookups... " >&6; }
3702   OPT_ARES="default"
3703   # Check whether --enable-ares was given.
3704 if test ${enable_ares+y}
3705 then :
3706   enableval=$enable_ares; OPT_ARES=$enableval
3707 fi
3708
3709   case "$OPT_ARES" in
3710     no)
3711             want_ares="no"
3712       ;;
3713     default)
3714             want_ares="no"
3715       ;;
3716     *)
3717             want_ares="yes"
3718       if test -n "$enableval" && test "$enableval" != "yes"; then
3719         want_ares_path="$enableval"
3720       fi
3721       ;;
3722   esac
3723   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3724 printf "%s\n" "$want_ares" >&6; }
3725
3726
3727     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3728 printf %s "checking whether to disable dependency on -lrt... " >&6; }
3729   OPT_RT="default"
3730   # Check whether --enable-rt was given.
3731 if test ${enable_rt+y}
3732 then :
3733   enableval=$enable_rt; OPT_RT=$enableval
3734 fi
3735
3736   case "$OPT_RT" in
3737     no)
3738             dontwant_rt="yes"
3739       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3740 printf "%s\n" "yes" >&6; }
3741       ;;
3742     default)
3743             dontwant_rt="no"
3744       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3745 printf "%s\n" "(assumed no)" >&6; }
3746       ;;
3747     *)
3748             dontwant_rt="no"
3749       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3750 printf "%s\n" "no" >&6; }
3751       ;;
3752   esac
3753
3754
3755   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable ECH support" >&5
3756 printf %s "checking whether to enable ECH support... " >&6; }
3757   OPT_ECH="default"
3758   # Check whether --enable-ech was given.
3759 if test ${enable_ech+y}
3760 then :
3761   enableval=$enable_ech; OPT_ECH=$enableval
3762 fi
3763
3764   case "$OPT_ECH" in
3765     no)
3766             want_ech="no"
3767       curl_ech_msg="no      (--enable-ech)"
3768       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3769 printf "%s\n" "no" >&6; }
3770       ;;
3771     default)
3772             want_ech="no"
3773       curl_ech_msg="no      (--enable-ech)"
3774       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775 printf "%s\n" "no" >&6; }
3776       ;;
3777     *)
3778             want_ech="yes"
3779       curl_ech_msg="enabled (--disable-ech)"
3780       experimental="ech"
3781       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3782 printf "%s\n" "yes" >&6; }
3783       ;;
3784   esac
3785
3786
3787 #
3788 # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3789 #
3790
3791 if test -z "$xc_configure_preamble_result"; then
3792   as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3793 fi
3794
3795 #
3796 # Check that 'PATH_SEPARATOR' has already been set.
3797 #
3798
3799 if test -z "$xc_PATH_SEPARATOR"; then
3800   as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3801 fi
3802 if test -z "$PATH_SEPARATOR"; then
3803   as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3804 fi
3805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3806 printf %s "checking for path separator... " >&6; }
3807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3808 printf "%s\n" "$PATH_SEPARATOR" >&6; }
3809 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3810   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3811 printf %s "checking for initial path separator... " >&6; }
3812   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3813 printf "%s\n" "$xc_PATH_SEPARATOR" >&6; }
3814   as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3815 fi
3816
3817
3818 #
3819 # save the configure arguments
3820 #
3821 CONFIGURE_OPTIONS="\"$ac_configure_args\""
3822
3823
3824 if test -z "$SED"; then
3825     # Extract the first word of "sed", so it can be a program name with args.
3826 set dummy sed; ac_word=$2
3827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3828 printf %s "checking for $ac_word... " >&6; }
3829 if test ${ac_cv_path_SED+y}
3830 then :
3831   printf %s "(cached) " >&6
3832 else $as_nop
3833   case $SED in
3834   [\\/]* | ?:[\\/]*)
3835   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3836   ;;
3837   *)
3838   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3840 for as_dir in $as_dummy
3841 do
3842   IFS=$as_save_IFS
3843   case $as_dir in #(((
3844     '') as_dir=./ ;;
3845     */) ;;
3846     *) as_dir=$as_dir/ ;;
3847   esac
3848     for ac_exec_ext in '' $ac_executable_extensions; do
3849   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3850     ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
3851     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3852     break 2
3853   fi
3854 done
3855   done
3856 IFS=$as_save_IFS
3857
3858   test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3859   ;;
3860 esac
3861 fi
3862 SED=$ac_cv_path_SED
3863 if test -n "$SED"; then
3864   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3865 printf "%s\n" "$SED" >&6; }
3866 else
3867   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868 printf "%s\n" "no" >&6; }
3869 fi
3870
3871
3872   if test -z "$SED" || test "$SED" = "not_found"; then
3873     as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3874   fi
3875 fi
3876
3877
3878 if test -z "$GREP"; then
3879     # Extract the first word of "grep", so it can be a program name with args.
3880 set dummy grep; ac_word=$2
3881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3882 printf %s "checking for $ac_word... " >&6; }
3883 if test ${ac_cv_path_GREP+y}
3884 then :
3885   printf %s "(cached) " >&6
3886 else $as_nop
3887   case $GREP in
3888   [\\/]* | ?:[\\/]*)
3889   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3890   ;;
3891   *)
3892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3894 for as_dir in $as_dummy
3895 do
3896   IFS=$as_save_IFS
3897   case $as_dir in #(((
3898     '') as_dir=./ ;;
3899     */) ;;
3900     *) as_dir=$as_dir/ ;;
3901   esac
3902     for ac_exec_ext in '' $ac_executable_extensions; do
3903   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3904     ac_cv_path_GREP="$as_dir$ac_word$ac_exec_ext"
3905     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3906     break 2
3907   fi
3908 done
3909   done
3910 IFS=$as_save_IFS
3911
3912   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3913   ;;
3914 esac
3915 fi
3916 GREP=$ac_cv_path_GREP
3917 if test -n "$GREP"; then
3918   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3919 printf "%s\n" "$GREP" >&6; }
3920 else
3921   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922 printf "%s\n" "no" >&6; }
3923 fi
3924
3925
3926   if test -z "$GREP" || test "$GREP" = "not_found"; then
3927     as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3928   fi
3929 fi
3930
3931
3932 if test -z "$EGREP"; then
3933     if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3934     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3935 printf %s "checking for egrep... " >&6; }
3936     EGREP="$GREP -E"
3937     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3938 printf "%s\n" "$EGREP" >&6; }
3939   else
3940     # Extract the first word of "egrep", so it can be a program name with args.
3941 set dummy egrep; ac_word=$2
3942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3943 printf %s "checking for $ac_word... " >&6; }
3944 if test ${ac_cv_path_EGREP+y}
3945 then :
3946   printf %s "(cached) " >&6
3947 else $as_nop
3948   case $EGREP in
3949   [\\/]* | ?:[\\/]*)
3950   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3951   ;;
3952   *)
3953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3955 for as_dir in $as_dummy
3956 do
3957   IFS=$as_save_IFS
3958   case $as_dir in #(((
3959     '') as_dir=./ ;;
3960     */) ;;
3961     *) as_dir=$as_dir/ ;;
3962   esac
3963     for ac_exec_ext in '' $ac_executable_extensions; do
3964   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3965     ac_cv_path_EGREP="$as_dir$ac_word$ac_exec_ext"
3966     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3967     break 2
3968   fi
3969 done
3970   done
3971 IFS=$as_save_IFS
3972
3973   test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3974   ;;
3975 esac
3976 fi
3977 EGREP=$ac_cv_path_EGREP
3978 if test -n "$EGREP"; then
3979   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3980 printf "%s\n" "$EGREP" >&6; }
3981 else
3982   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3983 printf "%s\n" "no" >&6; }
3984 fi
3985
3986
3987   fi
3988 fi
3989 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3990   as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3991 fi
3992
3993
3994 if test -z "$AR"; then
3995     if test -n "$ac_tool_prefix"; then
3996   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3997 set dummy ${ac_tool_prefix}ar; ac_word=$2
3998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3999 printf %s "checking for $ac_word... " >&6; }
4000 if test ${ac_cv_path_AR+y}
4001 then :
4002   printf %s "(cached) " >&6
4003 else $as_nop
4004   case $AR in
4005   [\\/]* | ?:[\\/]*)
4006   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4007   ;;
4008   *)
4009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 as_dummy="$PATH:/usr/bin:/usr/local/bin"
4011 for as_dir in $as_dummy
4012 do
4013   IFS=$as_save_IFS
4014   case $as_dir in #(((
4015     '') as_dir=./ ;;
4016     */) ;;
4017     *) as_dir=$as_dir/ ;;
4018   esac
4019     for ac_exec_ext in '' $ac_executable_extensions; do
4020   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4021     ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext"
4022     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4023     break 2
4024   fi
4025 done
4026   done
4027 IFS=$as_save_IFS
4028
4029   ;;
4030 esac
4031 fi
4032 AR=$ac_cv_path_AR
4033 if test -n "$AR"; then
4034   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4035 printf "%s\n" "$AR" >&6; }
4036 else
4037   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4038 printf "%s\n" "no" >&6; }
4039 fi
4040
4041
4042 fi
4043 if test -z "$ac_cv_path_AR"; then
4044   ac_pt_AR=$AR
4045   # Extract the first word of "ar", so it can be a program name with args.
4046 set dummy ar; ac_word=$2
4047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4048 printf %s "checking for $ac_word... " >&6; }
4049 if test ${ac_cv_path_ac_pt_AR+y}
4050 then :
4051   printf %s "(cached) " >&6
4052 else $as_nop
4053   case $ac_pt_AR in
4054   [\\/]* | ?:[\\/]*)
4055   ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
4056   ;;
4057   *)
4058   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 as_dummy="$PATH:/usr/bin:/usr/local/bin"
4060 for as_dir in $as_dummy
4061 do
4062   IFS=$as_save_IFS
4063   case $as_dir in #(((
4064     '') as_dir=./ ;;
4065     */) ;;
4066     *) as_dir=$as_dir/ ;;
4067   esac
4068     for ac_exec_ext in '' $ac_executable_extensions; do
4069   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4070     ac_cv_path_ac_pt_AR="$as_dir$ac_word$ac_exec_ext"
4071     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4072     break 2
4073   fi
4074 done
4075   done
4076 IFS=$as_save_IFS
4077
4078   ;;
4079 esac
4080 fi
4081 ac_pt_AR=$ac_cv_path_ac_pt_AR
4082 if test -n "$ac_pt_AR"; then
4083   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
4084 printf "%s\n" "$ac_pt_AR" >&6; }
4085 else
4086   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4087 printf "%s\n" "no" >&6; }
4088 fi
4089
4090   if test "x$ac_pt_AR" = x; then
4091     AR="not_found"
4092   else
4093     case $cross_compiling:$ac_tool_warned in
4094 yes:)
4095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4096 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4097 ac_tool_warned=yes ;;
4098 esac
4099     AR=$ac_pt_AR
4100   fi
4101 else
4102   AR="$ac_cv_path_AR"
4103 fi
4104
4105   if test -z "$AR" || test "$AR" = "not_found"; then
4106     as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
4107   fi
4108 fi
4109
4110
4111
4112
4113 CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
4114
4115   xc_prog_cc_prev_IFS=$IFS
4116   xc_prog_cc_prev_LIBS=$LIBS
4117   xc_prog_cc_prev_CFLAGS=$CFLAGS
4118   xc_prog_cc_prev_LDFLAGS=$LDFLAGS
4119   xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
4120
4121
4122
4123   xc_bad_var_libs=no
4124   for xc_word in $LIBS; do
4125     case "$xc_word" in
4126       -l* | --library=*)
4127         :
4128         ;;
4129       *)
4130         xc_bad_var_libs=yes
4131         ;;
4132     esac
4133   done
4134   if test $xc_bad_var_libs = yes; then
4135     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
4136 printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;}
4137     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
4138 printf "%s\n" "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
4139   fi
4140
4141
4142   xc_bad_var_ldflags=no
4143   for xc_word in $LDFLAGS; do
4144     case "$xc_word" in
4145       -D*)
4146         xc_bad_var_ldflags=yes
4147         ;;
4148       -U*)
4149         xc_bad_var_ldflags=yes
4150         ;;
4151       -I*)
4152         xc_bad_var_ldflags=yes
4153         ;;
4154       -l* | --library=*)
4155         xc_bad_var_ldflags=yes
4156         ;;
4157     esac
4158   done
4159   if test $xc_bad_var_ldflags = yes; then
4160     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
4161 printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
4162     xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
4163     for xc_word in $LDFLAGS; do
4164       case "$xc_word" in
4165         -D*)
4166           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4167 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4168           ;;
4169         -U*)
4170           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4171 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4172           ;;
4173         -I*)
4174           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4175 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4176           ;;
4177         -l* | --library=*)
4178           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4179 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4180           ;;
4181       esac
4182     done
4183   fi
4184
4185
4186   xc_bad_var_cppflags=no
4187   for xc_word in $CPPFLAGS; do
4188     case "$xc_word" in
4189       -rpath*)
4190         xc_bad_var_cppflags=yes
4191         ;;
4192       -L* | --library-path=*)
4193         xc_bad_var_cppflags=yes
4194         ;;
4195       -l* | --library=*)
4196         xc_bad_var_cppflags=yes
4197         ;;
4198     esac
4199   done
4200   if test $xc_bad_var_cppflags = yes; then
4201     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
4202 printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
4203     xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
4204     for xc_word in $CPPFLAGS; do
4205       case "$xc_word" in
4206         -rpath*)
4207           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4208 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4209           ;;
4210         -L* | --library-path=*)
4211           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4212 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4213           ;;
4214         -l* | --library=*)
4215           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4216 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4217           ;;
4218       esac
4219     done
4220   fi
4221
4222
4223   xc_bad_var_cflags=no
4224   for xc_word in $CFLAGS; do
4225     case "$xc_word" in
4226       -D*)
4227         xc_bad_var_cflags=yes
4228         ;;
4229       -U*)
4230         xc_bad_var_cflags=yes
4231         ;;
4232       -I*)
4233         xc_bad_var_cflags=yes
4234         ;;
4235       -rpath*)
4236         xc_bad_var_cflags=yes
4237         ;;
4238       -L* | --library-path=*)
4239         xc_bad_var_cflags=yes
4240         ;;
4241       -l* | --library=*)
4242         xc_bad_var_cflags=yes
4243         ;;
4244     esac
4245   done
4246   if test $xc_bad_var_cflags = yes; then
4247     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
4248 printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;}
4249     xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
4250     for xc_word in $CFLAGS; do
4251       case "$xc_word" in
4252         -D*)
4253           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4254 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4255           ;;
4256         -U*)
4257           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4258 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4259           ;;
4260         -I*)
4261           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4262 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4263           ;;
4264         -rpath*)
4265           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4266 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4267           ;;
4268         -L* | --library-path=*)
4269           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4270 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4271           ;;
4272         -l* | --library=*)
4273           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4274 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4275           ;;
4276       esac
4277     done
4278   fi
4279
4280   if test $xc_bad_var_libs = yes ||
4281      test $xc_bad_var_cflags = yes ||
4282      test $xc_bad_var_ldflags = yes ||
4283      test $xc_bad_var_cppflags = yes; then
4284      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
4285 printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
4286   fi
4287
4288
4289
4290   # Find a good install program.  We prefer a C program (faster),
4291 # so one script is as good as another.  But avoid the broken or
4292 # incompatible versions:
4293 # SysV /etc/install, /usr/sbin/install
4294 # SunOS /usr/etc/install
4295 # IRIX /sbin/install
4296 # AIX /bin/install
4297 # AmigaOS /C/install, which installs bootblocks on floppy discs
4298 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4299 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4300 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4301 # OS/2's system install, which has a completely different semantic
4302 # ./install, which can be erroneously created by make from ./install.sh.
4303 # Reject install programs that cannot install multiple files.
4304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4305 printf %s "checking for a BSD-compatible install... " >&6; }
4306 if test -z "$INSTALL"; then
4307 if test ${ac_cv_path_install+y}
4308 then :
4309   printf %s "(cached) " >&6
4310 else $as_nop
4311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH
4313 do
4314   IFS=$as_save_IFS
4315   case $as_dir in #(((
4316     '') as_dir=./ ;;
4317     */) ;;
4318     *) as_dir=$as_dir/ ;;
4319   esac
4320     # Account for fact that we put trailing slashes in our PATH walk.
4321 case $as_dir in #((
4322   ./ | /[cC]/* | \
4323   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4324   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4325   /usr/ucb/* ) ;;
4326   *)
4327     # OSF1 and SCO ODT 3.0 have their own names for install.
4328     # Don't use installbsd from OSF since it installs stuff as root
4329     # by default.
4330     for ac_prog in ginstall scoinst install; do
4331       for ac_exec_ext in '' $ac_executable_extensions; do
4332         if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4333           if test $ac_prog = install &&
4334             grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4335             # AIX install.  It has an incompatible calling convention.
4336             :
4337           elif test $ac_prog = install &&
4338             grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4339             # program-specific install script used by HP pwplus--don't use.
4340             :
4341           else
4342             rm -rf conftest.one conftest.two conftest.dir
4343             echo one > conftest.one
4344             echo two > conftest.two
4345             mkdir conftest.dir
4346             if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4347               test -s conftest.one && test -s conftest.two &&
4348               test -s conftest.dir/conftest.one &&
4349               test -s conftest.dir/conftest.two
4350             then
4351               ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4352               break 3
4353             fi
4354           fi
4355         fi
4356       done
4357     done
4358     ;;
4359 esac
4360
4361   done
4362 IFS=$as_save_IFS
4363
4364 rm -rf conftest.one conftest.two conftest.dir
4365
4366 fi
4367   if test ${ac_cv_path_install+y}; then
4368     INSTALL=$ac_cv_path_install
4369   else
4370     # As a last resort, use the slow shell script.  Don't cache a
4371     # value for INSTALL within a source directory, because that will
4372     # break other packages using the cache if that directory is
4373     # removed, or if the value is a relative name.
4374     INSTALL=$ac_install_sh
4375   fi
4376 fi
4377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4378 printf "%s\n" "$INSTALL" >&6; }
4379
4380 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4381 # It thinks the first close brace ends the variable substitution.
4382 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4383
4384 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4385
4386 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398 # Expand $ac_aux_dir to an absolute path.
4399 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4400
4401 ac_ext=c
4402 ac_cpp='$CPP $CPPFLAGS'
4403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4406 if test -n "$ac_tool_prefix"; then
4407   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4408 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4410 printf %s "checking for $ac_word... " >&6; }
4411 if test ${ac_cv_prog_CC+y}
4412 then :
4413   printf %s "(cached) " >&6
4414 else $as_nop
4415   if test -n "$CC"; then
4416   ac_cv_prog_CC="$CC" # Let the user override the test.
4417 else
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH
4420 do
4421   IFS=$as_save_IFS
4422   case $as_dir in #(((
4423     '') as_dir=./ ;;
4424     */) ;;
4425     *) as_dir=$as_dir/ ;;
4426   esac
4427     for ac_exec_ext in '' $ac_executable_extensions; do
4428   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4429     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4430     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4431     break 2
4432   fi
4433 done
4434   done
4435 IFS=$as_save_IFS
4436
4437 fi
4438 fi
4439 CC=$ac_cv_prog_CC
4440 if test -n "$CC"; then
4441   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4442 printf "%s\n" "$CC" >&6; }
4443 else
4444   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445 printf "%s\n" "no" >&6; }
4446 fi
4447
4448
4449 fi
4450 if test -z "$ac_cv_prog_CC"; then
4451   ac_ct_CC=$CC
4452   # Extract the first word of "gcc", so it can be a program name with args.
4453 set dummy gcc; ac_word=$2
4454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4455 printf %s "checking for $ac_word... " >&6; }
4456 if test ${ac_cv_prog_ac_ct_CC+y}
4457 then :
4458   printf %s "(cached) " >&6
4459 else $as_nop
4460   if test -n "$ac_ct_CC"; then
4461   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4462 else
4463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464 for as_dir in $PATH
4465 do
4466   IFS=$as_save_IFS
4467   case $as_dir in #(((
4468     '') as_dir=./ ;;
4469     */) ;;
4470     *) as_dir=$as_dir/ ;;
4471   esac
4472     for ac_exec_ext in '' $ac_executable_extensions; do
4473   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4474     ac_cv_prog_ac_ct_CC="gcc"
4475     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4476     break 2
4477   fi
4478 done
4479   done
4480 IFS=$as_save_IFS
4481
4482 fi
4483 fi
4484 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4485 if test -n "$ac_ct_CC"; then
4486   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4487 printf "%s\n" "$ac_ct_CC" >&6; }
4488 else
4489   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4490 printf "%s\n" "no" >&6; }
4491 fi
4492
4493   if test "x$ac_ct_CC" = x; then
4494     CC=""
4495   else
4496     case $cross_compiling:$ac_tool_warned in
4497 yes:)
4498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4499 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4500 ac_tool_warned=yes ;;
4501 esac
4502     CC=$ac_ct_CC
4503   fi
4504 else
4505   CC="$ac_cv_prog_CC"
4506 fi
4507
4508 if test -z "$CC"; then
4509           if test -n "$ac_tool_prefix"; then
4510     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4511 set dummy ${ac_tool_prefix}cc; ac_word=$2
4512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4513 printf %s "checking for $ac_word... " >&6; }
4514 if test ${ac_cv_prog_CC+y}
4515 then :
4516   printf %s "(cached) " >&6
4517 else $as_nop
4518   if test -n "$CC"; then
4519   ac_cv_prog_CC="$CC" # Let the user override the test.
4520 else
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4523 do
4524   IFS=$as_save_IFS
4525   case $as_dir in #(((
4526     '') as_dir=./ ;;
4527     */) ;;
4528     *) as_dir=$as_dir/ ;;
4529   esac
4530     for ac_exec_ext in '' $ac_executable_extensions; do
4531   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4532     ac_cv_prog_CC="${ac_tool_prefix}cc"
4533     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4534     break 2
4535   fi
4536 done
4537   done
4538 IFS=$as_save_IFS
4539
4540 fi
4541 fi
4542 CC=$ac_cv_prog_CC
4543 if test -n "$CC"; then
4544   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4545 printf "%s\n" "$CC" >&6; }
4546 else
4547   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4548 printf "%s\n" "no" >&6; }
4549 fi
4550
4551
4552   fi
4553 fi
4554 if test -z "$CC"; then
4555   # Extract the first word of "cc", so it can be a program name with args.
4556 set dummy cc; ac_word=$2
4557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 printf %s "checking for $ac_word... " >&6; }
4559 if test ${ac_cv_prog_CC+y}
4560 then :
4561   printf %s "(cached) " >&6
4562 else $as_nop
4563   if test -n "$CC"; then
4564   ac_cv_prog_CC="$CC" # Let the user override the test.
4565 else
4566   ac_prog_rejected=no
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH
4569 do
4570   IFS=$as_save_IFS
4571   case $as_dir in #(((
4572     '') as_dir=./ ;;
4573     */) ;;
4574     *) as_dir=$as_dir/ ;;
4575   esac
4576     for ac_exec_ext in '' $ac_executable_extensions; do
4577   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4578     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4579        ac_prog_rejected=yes
4580        continue
4581      fi
4582     ac_cv_prog_CC="cc"
4583     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4584     break 2
4585   fi
4586 done
4587   done
4588 IFS=$as_save_IFS
4589
4590 if test $ac_prog_rejected = yes; then
4591   # We found a bogon in the path, so make sure we never use it.
4592   set dummy $ac_cv_prog_CC
4593   shift
4594   if test $# != 0; then
4595     # We chose a different compiler from the bogus one.
4596     # However, it has the same basename, so the bogon will be chosen
4597     # first if we set CC to just the basename; use the full file name.
4598     shift
4599     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4600   fi
4601 fi
4602 fi
4603 fi
4604 CC=$ac_cv_prog_CC
4605 if test -n "$CC"; then
4606   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4607 printf "%s\n" "$CC" >&6; }
4608 else
4609   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4610 printf "%s\n" "no" >&6; }
4611 fi
4612
4613
4614 fi
4615 if test -z "$CC"; then
4616   if test -n "$ac_tool_prefix"; then
4617   for ac_prog in cl.exe
4618   do
4619     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4622 printf %s "checking for $ac_word... " >&6; }
4623 if test ${ac_cv_prog_CC+y}
4624 then :
4625   printf %s "(cached) " >&6
4626 else $as_nop
4627   if test -n "$CC"; then
4628   ac_cv_prog_CC="$CC" # Let the user override the test.
4629 else
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 for as_dir in $PATH
4632 do
4633   IFS=$as_save_IFS
4634   case $as_dir in #(((
4635     '') as_dir=./ ;;
4636     */) ;;
4637     *) as_dir=$as_dir/ ;;
4638   esac
4639     for ac_exec_ext in '' $ac_executable_extensions; do
4640   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4641     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4642     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4643     break 2
4644   fi
4645 done
4646   done
4647 IFS=$as_save_IFS
4648
4649 fi
4650 fi
4651 CC=$ac_cv_prog_CC
4652 if test -n "$CC"; then
4653   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4654 printf "%s\n" "$CC" >&6; }
4655 else
4656   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4657 printf "%s\n" "no" >&6; }
4658 fi
4659
4660
4661     test -n "$CC" && break
4662   done
4663 fi
4664 if test -z "$CC"; then
4665   ac_ct_CC=$CC
4666   for ac_prog in cl.exe
4667 do
4668   # Extract the first word of "$ac_prog", so it can be a program name with args.
4669 set dummy $ac_prog; ac_word=$2
4670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4671 printf %s "checking for $ac_word... " >&6; }
4672 if test ${ac_cv_prog_ac_ct_CC+y}
4673 then :
4674   printf %s "(cached) " >&6
4675 else $as_nop
4676   if test -n "$ac_ct_CC"; then
4677   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4678 else
4679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680 for as_dir in $PATH
4681 do
4682   IFS=$as_save_IFS
4683   case $as_dir in #(((
4684     '') as_dir=./ ;;
4685     */) ;;
4686     *) as_dir=$as_dir/ ;;
4687   esac
4688     for ac_exec_ext in '' $ac_executable_extensions; do
4689   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4690     ac_cv_prog_ac_ct_CC="$ac_prog"
4691     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4692     break 2
4693   fi
4694 done
4695   done
4696 IFS=$as_save_IFS
4697
4698 fi
4699 fi
4700 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4701 if test -n "$ac_ct_CC"; then
4702   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4703 printf "%s\n" "$ac_ct_CC" >&6; }
4704 else
4705   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4706 printf "%s\n" "no" >&6; }
4707 fi
4708
4709
4710   test -n "$ac_ct_CC" && break
4711 done
4712
4713   if test "x$ac_ct_CC" = x; then
4714     CC=""
4715   else
4716     case $cross_compiling:$ac_tool_warned in
4717 yes:)
4718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4719 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4720 ac_tool_warned=yes ;;
4721 esac
4722     CC=$ac_ct_CC
4723   fi
4724 fi
4725
4726 fi
4727 if test -z "$CC"; then
4728   if test -n "$ac_tool_prefix"; then
4729   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4730 set dummy ${ac_tool_prefix}clang; ac_word=$2
4731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4732 printf %s "checking for $ac_word... " >&6; }
4733 if test ${ac_cv_prog_CC+y}
4734 then :
4735   printf %s "(cached) " >&6
4736 else $as_nop
4737   if test -n "$CC"; then
4738   ac_cv_prog_CC="$CC" # Let the user override the test.
4739 else
4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741 for as_dir in $PATH
4742 do
4743   IFS=$as_save_IFS
4744   case $as_dir in #(((
4745     '') as_dir=./ ;;
4746     */) ;;
4747     *) as_dir=$as_dir/ ;;
4748   esac
4749     for ac_exec_ext in '' $ac_executable_extensions; do
4750   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4751     ac_cv_prog_CC="${ac_tool_prefix}clang"
4752     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4753     break 2
4754   fi
4755 done
4756   done
4757 IFS=$as_save_IFS
4758
4759 fi
4760 fi
4761 CC=$ac_cv_prog_CC
4762 if test -n "$CC"; then
4763   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4764 printf "%s\n" "$CC" >&6; }
4765 else
4766   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 printf "%s\n" "no" >&6; }
4768 fi
4769
4770
4771 fi
4772 if test -z "$ac_cv_prog_CC"; then
4773   ac_ct_CC=$CC
4774   # Extract the first word of "clang", so it can be a program name with args.
4775 set dummy clang; ac_word=$2
4776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 printf %s "checking for $ac_word... " >&6; }
4778 if test ${ac_cv_prog_ac_ct_CC+y}
4779 then :
4780   printf %s "(cached) " >&6
4781 else $as_nop
4782   if test -n "$ac_ct_CC"; then
4783   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4784 else
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 for as_dir in $PATH
4787 do
4788   IFS=$as_save_IFS
4789   case $as_dir in #(((
4790     '') as_dir=./ ;;
4791     */) ;;
4792     *) as_dir=$as_dir/ ;;
4793   esac
4794     for ac_exec_ext in '' $ac_executable_extensions; do
4795   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4796     ac_cv_prog_ac_ct_CC="clang"
4797     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4798     break 2
4799   fi
4800 done
4801   done
4802 IFS=$as_save_IFS
4803
4804 fi
4805 fi
4806 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4807 if test -n "$ac_ct_CC"; then
4808   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4809 printf "%s\n" "$ac_ct_CC" >&6; }
4810 else
4811   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812 printf "%s\n" "no" >&6; }
4813 fi
4814
4815   if test "x$ac_ct_CC" = x; then
4816     CC=""
4817   else
4818     case $cross_compiling:$ac_tool_warned in
4819 yes:)
4820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4821 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4822 ac_tool_warned=yes ;;
4823 esac
4824     CC=$ac_ct_CC
4825   fi
4826 else
4827   CC="$ac_cv_prog_CC"
4828 fi
4829
4830 fi
4831
4832
4833 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4834 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4835 as_fn_error $? "no acceptable C compiler found in \$PATH
4836 See \`config.log' for more details" "$LINENO" 5; }
4837
4838 # Provide some information about the compiler.
4839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4840 set X $ac_compile
4841 ac_compiler=$2
4842 for ac_option in --version -v -V -qversion -version; do
4843   { { ac_try="$ac_compiler $ac_option >&5"
4844 case "(($ac_try" in
4845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4846   *) ac_try_echo=$ac_try;;
4847 esac
4848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4849 printf "%s\n" "$ac_try_echo"; } >&5
4850   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4851   ac_status=$?
4852   if test -s conftest.err; then
4853     sed '10a\
4854 ... rest of stderr output deleted ...
4855          10q' conftest.err >conftest.er1
4856     cat conftest.er1 >&5
4857   fi
4858   rm -f conftest.er1 conftest.err
4859   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4860   test $ac_status = 0; }
4861 done
4862
4863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864 /* end confdefs.h.  */
4865
4866 int main (void)
4867 {
4868
4869  ;
4870  return 0;
4871 }
4872 _ACEOF
4873 ac_clean_files_save=$ac_clean_files
4874 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4875 # Try to create an executable without -o first, disregard a.out.
4876 # It will help us diagnose broken compilers, and finding out an intuition
4877 # of exeext.
4878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4879 printf %s "checking whether the C compiler works... " >&6; }
4880 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4881
4882 # The possible output files:
4883 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4884
4885 ac_rmfiles=
4886 for ac_file in $ac_files
4887 do
4888   case $ac_file in
4889     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4890     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4891   esac
4892 done
4893 rm -f $ac_rmfiles
4894
4895 if { { ac_try="$ac_link_default"
4896 case "(($ac_try" in
4897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4898   *) ac_try_echo=$ac_try;;
4899 esac
4900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4901 printf "%s\n" "$ac_try_echo"; } >&5
4902   (eval "$ac_link_default") 2>&5
4903   ac_status=$?
4904   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4905   test $ac_status = 0; }
4906 then :
4907   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4908 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4909 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4910 # so that the user can short-circuit this test for compilers unknown to
4911 # Autoconf.
4912 for ac_file in $ac_files ''
4913 do
4914   test -f "$ac_file" || continue
4915   case $ac_file in
4916     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4917         ;;
4918     [ab].out )
4919         # We found the default executable, but exeext='' is most
4920         # certainly right.
4921         break;;
4922     *.* )
4923         if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4924         then :; else
4925            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4926         fi
4927         # We set ac_cv_exeext here because the later test for it is not
4928         # safe: cross compilers may not add the suffix if given an `-o'
4929         # argument, so we may need to know it at that point already.
4930         # Even if this section looks crufty: it has the advantage of
4931         # actually working.
4932         break;;
4933     * )
4934         break;;
4935   esac
4936 done
4937 test "$ac_cv_exeext" = no && ac_cv_exeext=
4938
4939 else $as_nop
4940   ac_file=''
4941 fi
4942 if test -z "$ac_file"
4943 then :
4944   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 printf "%s\n" "no" >&6; }
4946 printf "%s\n" "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.$ac_ext >&5
4948
4949 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4950 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4951 as_fn_error 77 "C compiler cannot create executables
4952 See \`config.log' for more details" "$LINENO" 5; }
4953 else $as_nop
4954   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4955 printf "%s\n" "yes" >&6; }
4956 fi
4957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4958 printf %s "checking for C compiler default output file name... " >&6; }
4959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4960 printf "%s\n" "$ac_file" >&6; }
4961 ac_exeext=$ac_cv_exeext
4962
4963 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4964 ac_clean_files=$ac_clean_files_save
4965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4966 printf %s "checking for suffix of executables... " >&6; }
4967 if { { ac_try="$ac_link"
4968 case "(($ac_try" in
4969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970   *) ac_try_echo=$ac_try;;
4971 esac
4972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4973 printf "%s\n" "$ac_try_echo"; } >&5
4974   (eval "$ac_link") 2>&5
4975   ac_status=$?
4976   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4977   test $ac_status = 0; }
4978 then :
4979   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4980 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4981 # work properly (i.e., refer to `conftest.exe'), while it won't with
4982 # `rm'.
4983 for ac_file in conftest.exe conftest conftest.*; do
4984   test -f "$ac_file" || continue
4985   case $ac_file in
4986     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4987     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4988           break;;
4989     * ) break;;
4990   esac
4991 done
4992 else $as_nop
4993   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4994 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4995 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4996 See \`config.log' for more details" "$LINENO" 5; }
4997 fi
4998 rm -f conftest conftest$ac_cv_exeext
4999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5000 printf "%s\n" "$ac_cv_exeext" >&6; }
5001
5002 rm -f conftest.$ac_ext
5003 EXEEXT=$ac_cv_exeext
5004 ac_exeext=$EXEEXT
5005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5006 /* end confdefs.h.  */
5007 #include <stdio.h>
5008 int main (void)
5009 {
5010 FILE *f = fopen ("conftest.out", "w");
5011  return ferror (f) || fclose (f) != 0;
5012
5013  ;
5014  return 0;
5015 }
5016 _ACEOF
5017 ac_clean_files="$ac_clean_files conftest.out"
5018 # Check that the compiler produces executables we can run.  If not, either
5019 # the compiler is broken, or we cross compile.
5020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5021 printf %s "checking whether we are cross compiling... " >&6; }
5022 if test "$cross_compiling" != yes; then
5023   { { ac_try="$ac_link"
5024 case "(($ac_try" in
5025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5026   *) ac_try_echo=$ac_try;;
5027 esac
5028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5029 printf "%s\n" "$ac_try_echo"; } >&5
5030   (eval "$ac_link") 2>&5
5031   ac_status=$?
5032   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5033   test $ac_status = 0; }
5034   if { ac_try='./conftest$ac_cv_exeext'
5035   { { case "(($ac_try" in
5036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5037   *) ac_try_echo=$ac_try;;
5038 esac
5039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5040 printf "%s\n" "$ac_try_echo"; } >&5
5041   (eval "$ac_try") 2>&5
5042   ac_status=$?
5043   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5044   test $ac_status = 0; }; }; then
5045     cross_compiling=no
5046   else
5047     if test "$cross_compiling" = maybe; then
5048         cross_compiling=yes
5049     else
5050         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5051 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5052 as_fn_error 77 "cannot run C compiled programs.
5053 If you meant to cross compile, use \`--host'.
5054 See \`config.log' for more details" "$LINENO" 5; }
5055     fi
5056   fi
5057 fi
5058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5059 printf "%s\n" "$cross_compiling" >&6; }
5060
5061 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5062 ac_clean_files=$ac_clean_files_save
5063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5064 printf %s "checking for suffix of object files... " >&6; }
5065 if test ${ac_cv_objext+y}
5066 then :
5067   printf %s "(cached) " >&6
5068 else $as_nop
5069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5070 /* end confdefs.h.  */
5071
5072 int main (void)
5073 {
5074
5075  ;
5076  return 0;
5077 }
5078 _ACEOF
5079 rm -f conftest.o conftest.obj
5080 if { { ac_try="$ac_compile"
5081 case "(($ac_try" in
5082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5083   *) ac_try_echo=$ac_try;;
5084 esac
5085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5086 printf "%s\n" "$ac_try_echo"; } >&5
5087   (eval "$ac_compile") 2>&5
5088   ac_status=$?
5089   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5090   test $ac_status = 0; }
5091 then :
5092   for ac_file in conftest.o conftest.obj conftest.*; do
5093   test -f "$ac_file" || continue;
5094   case $ac_file in
5095     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5096     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5097        break;;
5098   esac
5099 done
5100 else $as_nop
5101   printf "%s\n" "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5103
5104 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5105 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5106 as_fn_error $? "cannot compute suffix of object files: cannot compile
5107 See \`config.log' for more details" "$LINENO" 5; }
5108 fi
5109 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5110 fi
5111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5112 printf "%s\n" "$ac_cv_objext" >&6; }
5113 OBJEXT=$ac_cv_objext
5114 ac_objext=$OBJEXT
5115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5116 printf %s "checking whether the compiler supports GNU C... " >&6; }
5117 if test ${ac_cv_c_compiler_gnu+y}
5118 then :
5119   printf %s "(cached) " >&6
5120 else $as_nop
5121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5122 /* end confdefs.h.  */
5123
5124 int main (void)
5125 {
5126 #ifndef __GNUC__
5127        choke me
5128 #endif
5129
5130  ;
5131  return 0;
5132 }
5133 _ACEOF
5134 if ac_fn_c_try_compile "$LINENO"
5135 then :
5136   ac_compiler_gnu=yes
5137 else $as_nop
5138   ac_compiler_gnu=no
5139 fi
5140 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5141 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5142
5143 fi
5144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5145 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5147
5148 if test $ac_compiler_gnu = yes; then
5149   GCC=yes
5150 else
5151   GCC=
5152 fi
5153 ac_test_CFLAGS=${CFLAGS+y}
5154 ac_save_CFLAGS=$CFLAGS
5155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5156 printf %s "checking whether $CC accepts -g... " >&6; }
5157 if test ${ac_cv_prog_cc_g+y}
5158 then :
5159   printf %s "(cached) " >&6
5160 else $as_nop
5161   ac_save_c_werror_flag=$ac_c_werror_flag
5162    ac_c_werror_flag=yes
5163    ac_cv_prog_cc_g=no
5164    CFLAGS="-g"
5165    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5166 /* end confdefs.h.  */
5167
5168 int main (void)
5169 {
5170
5171  ;
5172  return 0;
5173 }
5174 _ACEOF
5175 if ac_fn_c_try_compile "$LINENO"
5176 then :
5177   ac_cv_prog_cc_g=yes
5178 else $as_nop
5179   CFLAGS=""
5180       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181 /* end confdefs.h.  */
5182
5183 int main (void)
5184 {
5185
5186  ;
5187  return 0;
5188 }
5189 _ACEOF
5190 if ac_fn_c_try_compile "$LINENO"
5191 then :
5192
5193 else $as_nop
5194   ac_c_werror_flag=$ac_save_c_werror_flag
5195          CFLAGS="-g"
5196          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h.  */
5198
5199 int main (void)
5200 {
5201
5202  ;
5203  return 0;
5204 }
5205 _ACEOF
5206 if ac_fn_c_try_compile "$LINENO"
5207 then :
5208   ac_cv_prog_cc_g=yes
5209 fi
5210 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5211 fi
5212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5213 fi
5214 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5215    ac_c_werror_flag=$ac_save_c_werror_flag
5216 fi
5217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5218 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5219 if test $ac_test_CFLAGS; then
5220   CFLAGS=$ac_save_CFLAGS
5221 elif test $ac_cv_prog_cc_g = yes; then
5222   if test "$GCC" = yes; then
5223     CFLAGS="-g -O2"
5224   else
5225     CFLAGS="-g"
5226   fi
5227 else
5228   if test "$GCC" = yes; then
5229     CFLAGS="-O2"
5230   else
5231     CFLAGS=
5232   fi
5233 fi
5234 ac_prog_cc_stdc=no
5235 if test x$ac_prog_cc_stdc = xno
5236 then :
5237   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5238 printf %s "checking for $CC option to enable C11 features... " >&6; }
5239 if test ${ac_cv_prog_cc_c11+y}
5240 then :
5241   printf %s "(cached) " >&6
5242 else $as_nop
5243   ac_cv_prog_cc_c11=no
5244 ac_save_CC=$CC
5245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246 /* end confdefs.h.  */
5247 $ac_c_conftest_c11_program
5248 _ACEOF
5249 for ac_arg in '' -std=gnu11
5250 do
5251   CC="$ac_save_CC $ac_arg"
5252   if ac_fn_c_try_compile "$LINENO"
5253 then :
5254   ac_cv_prog_cc_c11=$ac_arg
5255 fi
5256 rm -f core conftest.err conftest.$ac_objext conftest.beam
5257   test "x$ac_cv_prog_cc_c11" != "xno" && break
5258 done
5259 rm -f conftest.$ac_ext
5260 CC=$ac_save_CC
5261 fi
5262
5263 if test "x$ac_cv_prog_cc_c11" = xno
5264 then :
5265   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5266 printf "%s\n" "unsupported" >&6; }
5267 else $as_nop
5268   if test "x$ac_cv_prog_cc_c11" = x
5269 then :
5270   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5271 printf "%s\n" "none needed" >&6; }
5272 else $as_nop
5273   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5274 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5275      CC="$CC $ac_cv_prog_cc_c11"
5276 fi
5277   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5278   ac_prog_cc_stdc=c11
5279 fi
5280 fi
5281 if test x$ac_prog_cc_stdc = xno
5282 then :
5283   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5284 printf %s "checking for $CC option to enable C99 features... " >&6; }
5285 if test ${ac_cv_prog_cc_c99+y}
5286 then :
5287   printf %s "(cached) " >&6
5288 else $as_nop
5289   ac_cv_prog_cc_c99=no
5290 ac_save_CC=$CC
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h.  */
5293 $ac_c_conftest_c99_program
5294 _ACEOF
5295 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5296 do
5297   CC="$ac_save_CC $ac_arg"
5298   if ac_fn_c_try_compile "$LINENO"
5299 then :
5300   ac_cv_prog_cc_c99=$ac_arg
5301 fi
5302 rm -f core conftest.err conftest.$ac_objext conftest.beam
5303   test "x$ac_cv_prog_cc_c99" != "xno" && break
5304 done
5305 rm -f conftest.$ac_ext
5306 CC=$ac_save_CC
5307 fi
5308
5309 if test "x$ac_cv_prog_cc_c99" = xno
5310 then :
5311   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5312 printf "%s\n" "unsupported" >&6; }
5313 else $as_nop
5314   if test "x$ac_cv_prog_cc_c99" = x
5315 then :
5316   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5317 printf "%s\n" "none needed" >&6; }
5318 else $as_nop
5319   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5320 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5321      CC="$CC $ac_cv_prog_cc_c99"
5322 fi
5323   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5324   ac_prog_cc_stdc=c99
5325 fi
5326 fi
5327 if test x$ac_prog_cc_stdc = xno
5328 then :
5329   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5330 printf %s "checking for $CC option to enable C89 features... " >&6; }
5331 if test ${ac_cv_prog_cc_c89+y}
5332 then :
5333   printf %s "(cached) " >&6
5334 else $as_nop
5335   ac_cv_prog_cc_c89=no
5336 ac_save_CC=$CC
5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h.  */
5339 $ac_c_conftest_c89_program
5340 _ACEOF
5341 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5342 do
5343   CC="$ac_save_CC $ac_arg"
5344   if ac_fn_c_try_compile "$LINENO"
5345 then :
5346   ac_cv_prog_cc_c89=$ac_arg
5347 fi
5348 rm -f core conftest.err conftest.$ac_objext conftest.beam
5349   test "x$ac_cv_prog_cc_c89" != "xno" && break
5350 done
5351 rm -f conftest.$ac_ext
5352 CC=$ac_save_CC
5353 fi
5354
5355 if test "x$ac_cv_prog_cc_c89" = xno
5356 then :
5357   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5358 printf "%s\n" "unsupported" >&6; }
5359 else $as_nop
5360   if test "x$ac_cv_prog_cc_c89" = x
5361 then :
5362   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5363 printf "%s\n" "none needed" >&6; }
5364 else $as_nop
5365   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5366 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5367      CC="$CC $ac_cv_prog_cc_c89"
5368 fi
5369   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5370   ac_prog_cc_stdc=c89
5371 fi
5372 fi
5373
5374 ac_ext=c
5375 ac_cpp='$CPP $CPPFLAGS'
5376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5379
5380
5381   ac_ext=c
5382 ac_cpp='$CPP $CPPFLAGS'
5383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5387 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5388 if test ${am_cv_prog_cc_c_o+y}
5389 then :
5390   printf %s "(cached) " >&6
5391 else $as_nop
5392   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393 /* end confdefs.h.  */
5394
5395 int main (void)
5396 {
5397
5398  ;
5399  return 0;
5400 }
5401 _ACEOF
5402   # Make sure it works both with $CC and with simple cc.
5403   # Following AC_PROG_CC_C_O, we do the test twice because some
5404   # compilers refuse to overwrite an existing .o file with -o,
5405   # though they will create one.
5406   am_cv_prog_cc_c_o=yes
5407   for am_i in 1 2; do
5408     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5409    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5410    ac_status=$?
5411    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412    (exit $ac_status); } \
5413          && test -f conftest2.$ac_objext; then
5414       : OK
5415     else
5416       am_cv_prog_cc_c_o=no
5417       break
5418     fi
5419   done
5420   rm -f core conftest*
5421   unset am_i
5422 fi
5423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5424 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5425 if test "$am_cv_prog_cc_c_o" != yes; then
5426    # Losing compiler, so override with the script.
5427    # FIXME: It is wrong to rewrite CC.
5428    # But if we don't then we get into trouble of one sort or another.
5429    # A longer-term fix would be to have automake use am__CC in this case,
5430    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5431    CC="$am_aux_dir/compile $CC"
5432 fi
5433 ac_ext=c
5434 ac_cpp='$CPP $CPPFLAGS'
5435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5438
5439
5440
5441 ac_ext=c
5442 ac_cpp='$CPP $CPPFLAGS'
5443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5447 printf %s "checking how to run the C preprocessor... " >&6; }
5448 # On Suns, sometimes $CPP names a directory.
5449 if test -n "$CPP" && test -d "$CPP"; then
5450   CPP=
5451 fi
5452 if test -z "$CPP"; then
5453   if test ${ac_cv_prog_CPP+y}
5454 then :
5455   printf %s "(cached) " >&6
5456 else $as_nop
5457       # Double quotes because $CC needs to be expanded
5458     for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5459     do
5460       ac_preproc_ok=false
5461 for ac_c_preproc_warn_flag in '' yes
5462 do
5463   # Use a header file that comes with gcc, so configuring glibc
5464   # with a fresh cross-compiler works.
5465   # On the NeXT, cc -E runs the code through the compiler's parser,
5466   # not just through cpp. "Syntax error" is here to catch this case.
5467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h.  */
5469 #include <limits.h>
5470                      Syntax error
5471 _ACEOF
5472 if ac_fn_c_try_cpp "$LINENO"
5473 then :
5474
5475 else $as_nop
5476   # Broken: fails on valid input.
5477 continue
5478 fi
5479 rm -f conftest.err conftest.i conftest.$ac_ext
5480
5481   # OK, works on sane cases.  Now check whether nonexistent headers
5482   # can be detected and how.
5483   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484 /* end confdefs.h.  */
5485 #include <ac_nonexistent.h>
5486 _ACEOF
5487 if ac_fn_c_try_cpp "$LINENO"
5488 then :
5489   # Broken: success on invalid input.
5490 continue
5491 else $as_nop
5492   # Passes both tests.
5493 ac_preproc_ok=:
5494 break
5495 fi
5496 rm -f conftest.err conftest.i conftest.$ac_ext
5497
5498 done
5499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5500 rm -f conftest.i conftest.err conftest.$ac_ext
5501 if $ac_preproc_ok
5502 then :
5503   break
5504 fi
5505
5506     done
5507     ac_cv_prog_CPP=$CPP
5508
5509 fi
5510   CPP=$ac_cv_prog_CPP
5511 else
5512   ac_cv_prog_CPP=$CPP
5513 fi
5514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5515 printf "%s\n" "$CPP" >&6; }
5516 ac_preproc_ok=false
5517 for ac_c_preproc_warn_flag in '' yes
5518 do
5519   # Use a header file that comes with gcc, so configuring glibc
5520   # with a fresh cross-compiler works.
5521   # On the NeXT, cc -E runs the code through the compiler's parser,
5522   # not just through cpp. "Syntax error" is here to catch this case.
5523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524 /* end confdefs.h.  */
5525 #include <limits.h>
5526                      Syntax error
5527 _ACEOF
5528 if ac_fn_c_try_cpp "$LINENO"
5529 then :
5530
5531 else $as_nop
5532   # Broken: fails on valid input.
5533 continue
5534 fi
5535 rm -f conftest.err conftest.i conftest.$ac_ext
5536
5537   # OK, works on sane cases.  Now check whether nonexistent headers
5538   # can be detected and how.
5539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h.  */
5541 #include <ac_nonexistent.h>
5542 _ACEOF
5543 if ac_fn_c_try_cpp "$LINENO"
5544 then :
5545   # Broken: success on invalid input.
5546 continue
5547 else $as_nop
5548   # Passes both tests.
5549 ac_preproc_ok=:
5550 break
5551 fi
5552 rm -f conftest.err conftest.i conftest.$ac_ext
5553
5554 done
5555 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5556 rm -f conftest.i conftest.err conftest.$ac_ext
5557 if $ac_preproc_ok
5558 then :
5559
5560 else $as_nop
5561   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5562 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5563 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5564 See \`config.log' for more details" "$LINENO" 5; }
5565 fi
5566
5567 ac_ext=c
5568 ac_cpp='$CPP $CPPFLAGS'
5569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5572
5573
5574   IFS=$xc_prog_cc_prev_IFS
5575   LIBS=$xc_prog_cc_prev_LIBS
5576   CFLAGS=$xc_prog_cc_prev_CFLAGS
5577   LDFLAGS=$xc_prog_cc_prev_LDFLAGS
5578   CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
5579
5580
5581
5582
5583
5584
5585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5586 printf %s "checking for a sed that does not truncate output... " >&6; }
5587 if test ${ac_cv_path_SED+y}
5588 then :
5589   printf %s "(cached) " >&6
5590 else $as_nop
5591             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5592      for ac_i in 1 2 3 4 5 6 7; do
5593        ac_script="$ac_script$as_nl$ac_script"
5594      done
5595      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5596      { ac_script=; unset ac_script;}
5597      if test -z "$SED"; then
5598   ac_path_SED_found=false
5599   # Loop through the user's path and test for each of PROGNAME-LIST
5600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 for as_dir in $PATH
5602 do
5603   IFS=$as_save_IFS
5604   case $as_dir in #(((
5605     '') as_dir=./ ;;
5606     */) ;;
5607     *) as_dir=$as_dir/ ;;
5608   esac
5609     for ac_prog in sed gsed
5610    do
5611     for ac_exec_ext in '' $ac_executable_extensions; do
5612       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5613       as_fn_executable_p "$ac_path_SED" || continue
5614 # Check for GNU ac_path_SED and select it if it is found.
5615   # Check for GNU $ac_path_SED
5616 case `"$ac_path_SED" --version 2>&1` in
5617 *GNU*)
5618   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5619 *)
5620   ac_count=0
5621   printf %s 0123456789 >"conftest.in"
5622   while :
5623   do
5624     cat "conftest.in" "conftest.in" >"conftest.tmp"
5625     mv "conftest.tmp" "conftest.in"
5626     cp "conftest.in" "conftest.nl"
5627     printf "%s\n" '' >> "conftest.nl"
5628     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5629     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5630     as_fn_arith $ac_count + 1 && ac_count=$as_val
5631     if test $ac_count -gt ${ac_path_SED_max-0}; then
5632       # Best one so far, save it but keep looking for a better one
5633       ac_cv_path_SED="$ac_path_SED"
5634       ac_path_SED_max=$ac_count
5635     fi
5636     # 10*(2^10) chars as input seems more than enough
5637     test $ac_count -gt 10 && break
5638   done
5639   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5640 esac
5641
5642       $ac_path_SED_found && break 3
5643     done
5644   done
5645   done
5646 IFS=$as_save_IFS
5647   if test -z "$ac_cv_path_SED"; then
5648     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5649   fi
5650 else
5651   ac_cv_path_SED=$SED
5652 fi
5653
5654 fi
5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5656 printf "%s\n" "$ac_cv_path_SED" >&6; }
5657  SED="$ac_cv_path_SED"
5658   rm -f conftest.sed
5659
5660
5661
5662
5663   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for code coverage support" >&5
5664 printf %s "checking for code coverage support... " >&6; }
5665   coverage="no"
5666   curl_coverage_msg="disabled"
5667
5668     # Check whether --enable-code-coverage was given.
5669 if test ${enable_code_coverage+y}
5670 then :
5671   enableval=$enable_code_coverage; coverage="$enableval"
5672 fi
5673
5674
5675     if  test "$GCC" != "yes"
5676 then :
5677   coverage="no"
5678 fi
5679   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $coverage" >&5
5680 printf "%s\n" "$coverage" >&6; }
5681
5682   if test "x$coverage" = "xyes"; then
5683     curl_coverage_msg="enabled"
5684
5685     if test -n "$ac_tool_prefix"; then
5686   # Extract the first word of "${ac_tool_prefix}gcov", so it can be a program name with args.
5687 set dummy ${ac_tool_prefix}gcov; ac_word=$2
5688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5689 printf %s "checking for $ac_word... " >&6; }
5690 if test ${ac_cv_prog_GCOV+y}
5691 then :
5692   printf %s "(cached) " >&6
5693 else $as_nop
5694   if test -n "$GCOV"; then
5695   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
5696 else
5697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698 for as_dir in $PATH
5699 do
5700   IFS=$as_save_IFS
5701   case $as_dir in #(((
5702     '') as_dir=./ ;;
5703     */) ;;
5704     *) as_dir=$as_dir/ ;;
5705   esac
5706     for ac_exec_ext in '' $ac_executable_extensions; do
5707   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5708     ac_cv_prog_GCOV="${ac_tool_prefix}gcov"
5709     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5710     break 2
5711   fi
5712 done
5713   done
5714 IFS=$as_save_IFS
5715
5716 fi
5717 fi
5718 GCOV=$ac_cv_prog_GCOV
5719 if test -n "$GCOV"; then
5720   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
5721 printf "%s\n" "$GCOV" >&6; }
5722 else
5723   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724 printf "%s\n" "no" >&6; }
5725 fi
5726
5727
5728 fi
5729 if test -z "$ac_cv_prog_GCOV"; then
5730   ac_ct_GCOV=$GCOV
5731   # Extract the first word of "gcov", so it can be a program name with args.
5732 set dummy gcov; ac_word=$2
5733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5734 printf %s "checking for $ac_word... " >&6; }
5735 if test ${ac_cv_prog_ac_ct_GCOV+y}
5736 then :
5737   printf %s "(cached) " >&6
5738 else $as_nop
5739   if test -n "$ac_ct_GCOV"; then
5740   ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
5741 else
5742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743 for as_dir in $PATH
5744 do
5745   IFS=$as_save_IFS
5746   case $as_dir in #(((
5747     '') as_dir=./ ;;
5748     */) ;;
5749     *) as_dir=$as_dir/ ;;
5750   esac
5751     for ac_exec_ext in '' $ac_executable_extensions; do
5752   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5753     ac_cv_prog_ac_ct_GCOV="gcov"
5754     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5755     break 2
5756   fi
5757 done
5758   done
5759 IFS=$as_save_IFS
5760
5761 fi
5762 fi
5763 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
5764 if test -n "$ac_ct_GCOV"; then
5765   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
5766 printf "%s\n" "$ac_ct_GCOV" >&6; }
5767 else
5768   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769 printf "%s\n" "no" >&6; }
5770 fi
5771
5772   if test "x$ac_ct_GCOV" = x; then
5773     GCOV="gcov"
5774   else
5775     case $cross_compiling:$ac_tool_warned in
5776 yes:)
5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5778 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5779 ac_tool_warned=yes ;;
5780 esac
5781     GCOV=$ac_ct_GCOV
5782   fi
5783 else
5784   GCOV="$ac_cv_prog_GCOV"
5785 fi
5786
5787     if test -z "$GCOV"; then
5788       as_fn_error $? "needs gcov for code coverage" "$LINENO" 5
5789     fi
5790     # Extract the first word of "lcov", so it can be a program name with args.
5791 set dummy lcov; ac_word=$2
5792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793 printf %s "checking for $ac_word... " >&6; }
5794 if test ${ac_cv_prog_LCOV+y}
5795 then :
5796   printf %s "(cached) " >&6
5797 else $as_nop
5798   if test -n "$LCOV"; then
5799   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
5800 else
5801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802 for as_dir in $PATH
5803 do
5804   IFS=$as_save_IFS
5805   case $as_dir in #(((
5806     '') as_dir=./ ;;
5807     */) ;;
5808     *) as_dir=$as_dir/ ;;
5809   esac
5810     for ac_exec_ext in '' $ac_executable_extensions; do
5811   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5812     ac_cv_prog_LCOV="lcov"
5813     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5814     break 2
5815   fi
5816 done
5817   done
5818 IFS=$as_save_IFS
5819
5820 fi
5821 fi
5822 LCOV=$ac_cv_prog_LCOV
5823 if test -n "$LCOV"; then
5824   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
5825 printf "%s\n" "$LCOV" >&6; }
5826 else
5827   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828 printf "%s\n" "no" >&6; }
5829 fi
5830
5831
5832     if test -z "$LCOV"; then
5833       as_fn_error $? "needs lcov for code coverage" "$LINENO" 5
5834     fi
5835
5836     CPPFLAGS="$CPPFLAGS -DNDEBUG"
5837     CFLAGS="$CLAGS -O0 -g -fprofile-arcs -ftest-coverage"
5838     LIBS="$LIBS -lgcov"
5839   fi
5840
5841
5842 am__api_version='1.16'
5843
5844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5845 printf %s "checking whether build environment is sane... " >&6; }
5846 # Reject unsafe characters in $srcdir or the absolute working directory
5847 # name.  Accept space and tab only in the latter.
5848 am_lf='
5849 '
5850 case `pwd` in
5851   *[\\\"\#\$\&\'\`$am_lf]*)
5852     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5853 esac
5854 case $srcdir in
5855   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
5856     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5857 esac
5858
5859 # Do 'set' in a subshell so we don't clobber the current shell's
5860 # arguments.  Must try -L first in case configure is actually a
5861 # symlink; some systems play weird games with the mod time of symlinks
5862 # (eg FreeBSD returns the mod time of the symlink's containing
5863 # directory).
5864 if (
5865    am_has_slept=no
5866    for am_try in 1 2; do
5867      echo "timestamp, slept: $am_has_slept" > conftest.file
5868      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5869      if test "$*" = "X"; then
5870         # -L didn't work.
5871         set X `ls -t "$srcdir/configure" conftest.file`
5872      fi
5873      if test "$*" != "X $srcdir/configure conftest.file" \
5874         && test "$*" != "X conftest.file $srcdir/configure"; then
5875
5876         # If neither matched, then we have a broken ls.  This can happen
5877         # if, for instance, CONFIG_SHELL is bash and it inherits a
5878         # broken ls alias from the environment.  This has actually
5879         # happened.  Such a system could not be considered "sane".
5880         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
5881   alias in your environment" "$LINENO" 5
5882      fi
5883      if test "$2" = conftest.file || test $am_try -eq 2; then
5884        break
5885      fi
5886      # Just in case.
5887      sleep 1
5888      am_has_slept=yes
5889    done
5890    test "$2" = conftest.file
5891    )
5892 then
5893    # Ok.
5894    :
5895 else
5896    as_fn_error $? "newly created file is older than distributed files!
5897 Check your system clock" "$LINENO" 5
5898 fi
5899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5900 printf "%s\n" "yes" >&6; }
5901 # If we didn't sleep, we still need to ensure time stamps of config.status and
5902 # generated files are strictly newer.
5903 am_sleep_pid=
5904 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5905   ( sleep 1 ) &
5906   am_sleep_pid=$!
5907 fi
5908
5909 rm -f conftest.file
5910
5911 test "$program_prefix" != NONE &&
5912   program_transform_name="s&^&$program_prefix&;$program_transform_name"
5913 # Use a double $ so make ignores it.
5914 test "$program_suffix" != NONE &&
5915   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5916 # Double any \ or $.
5917 # By default was `s,x,x', remove it if useless.
5918 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5919 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
5920
5921
5922   if test x"${MISSING+set}" != xset; then
5923   MISSING="\${SHELL} '$am_aux_dir/missing'"
5924 fi
5925 # Use eval to expand $SHELL
5926 if eval "$MISSING --is-lightweight"; then
5927   am_missing_run="$MISSING "
5928 else
5929   am_missing_run=
5930   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5931 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5932 fi
5933
5934 if test x"${install_sh+set}" != xset; then
5935   case $am_aux_dir in
5936   *\ * | *\     *)
5937     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5938   *)
5939     install_sh="\${SHELL} $am_aux_dir/install-sh"
5940   esac
5941 fi
5942
5943 # Installed binaries are usually stripped using 'strip' when the user
5944 # run "make install-strip".  However 'strip' might not be the right
5945 # tool to use in cross-compilation environments, therefore Automake
5946 # will honor the 'STRIP' environment variable to overrule this program.
5947 if test "$cross_compiling" != no; then
5948   if test -n "$ac_tool_prefix"; then
5949   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5950 set dummy ${ac_tool_prefix}strip; ac_word=$2
5951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5952 printf %s "checking for $ac_word... " >&6; }
5953 if test ${ac_cv_prog_STRIP+y}
5954 then :
5955   printf %s "(cached) " >&6
5956 else $as_nop
5957   if test -n "$STRIP"; then
5958   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5959 else
5960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961 for as_dir in $PATH
5962 do
5963   IFS=$as_save_IFS
5964   case $as_dir in #(((
5965     '') as_dir=./ ;;
5966     */) ;;
5967     *) as_dir=$as_dir/ ;;
5968   esac
5969     for ac_exec_ext in '' $ac_executable_extensions; do
5970   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5971     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5972     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5973     break 2
5974   fi
5975 done
5976   done
5977 IFS=$as_save_IFS
5978
5979 fi
5980 fi
5981 STRIP=$ac_cv_prog_STRIP
5982 if test -n "$STRIP"; then
5983   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5984 printf "%s\n" "$STRIP" >&6; }
5985 else
5986   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987 printf "%s\n" "no" >&6; }
5988 fi
5989
5990
5991 fi
5992 if test -z "$ac_cv_prog_STRIP"; then
5993   ac_ct_STRIP=$STRIP
5994   # Extract the first word of "strip", so it can be a program name with args.
5995 set dummy strip; ac_word=$2
5996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5997 printf %s "checking for $ac_word... " >&6; }
5998 if test ${ac_cv_prog_ac_ct_STRIP+y}
5999 then :
6000   printf %s "(cached) " >&6
6001 else $as_nop
6002   if test -n "$ac_ct_STRIP"; then
6003   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6004 else
6005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006 for as_dir in $PATH
6007 do
6008   IFS=$as_save_IFS
6009   case $as_dir in #(((
6010     '') as_dir=./ ;;
6011     */) ;;
6012     *) as_dir=$as_dir/ ;;
6013   esac
6014     for ac_exec_ext in '' $ac_executable_extensions; do
6015   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6016     ac_cv_prog_ac_ct_STRIP="strip"
6017     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6018     break 2
6019   fi
6020 done
6021   done
6022 IFS=$as_save_IFS
6023
6024 fi
6025 fi
6026 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6027 if test -n "$ac_ct_STRIP"; then
6028   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6029 printf "%s\n" "$ac_ct_STRIP" >&6; }
6030 else
6031   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032 printf "%s\n" "no" >&6; }
6033 fi
6034
6035   if test "x$ac_ct_STRIP" = x; then
6036     STRIP=":"
6037   else
6038     case $cross_compiling:$ac_tool_warned in
6039 yes:)
6040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6041 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6042 ac_tool_warned=yes ;;
6043 esac
6044     STRIP=$ac_ct_STRIP
6045   fi
6046 else
6047   STRIP="$ac_cv_prog_STRIP"
6048 fi
6049
6050 fi
6051 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
6052
6053
6054   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
6055 printf %s "checking for a race-free mkdir -p... " >&6; }
6056 if test -z "$MKDIR_P"; then
6057   if test ${ac_cv_path_mkdir+y}
6058 then :
6059   printf %s "(cached) " >&6
6060 else $as_nop
6061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6063 do
6064   IFS=$as_save_IFS
6065   case $as_dir in #(((
6066     '') as_dir=./ ;;
6067     */) ;;
6068     *) as_dir=$as_dir/ ;;
6069   esac
6070     for ac_prog in mkdir gmkdir; do
6071          for ac_exec_ext in '' $ac_executable_extensions; do
6072            as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
6073            case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
6074              'mkdir ('*'coreutils) '* | \
6075              'BusyBox '* | \
6076              'mkdir (fileutils) '4.1*)
6077                ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
6078                break 3;;
6079            esac
6080          done
6081        done
6082   done
6083 IFS=$as_save_IFS
6084
6085 fi
6086
6087   test -d ./--version && rmdir ./--version
6088   if test ${ac_cv_path_mkdir+y}; then
6089     MKDIR_P="$ac_cv_path_mkdir -p"
6090   else
6091     # As a last resort, use the slow shell script.  Don't cache a
6092     # value for MKDIR_P within a source directory, because that will
6093     # break other packages using the cache if that directory is
6094     # removed, or if the value is a relative name.
6095     MKDIR_P="$ac_install_sh -d"
6096   fi
6097 fi
6098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6099 printf "%s\n" "$MKDIR_P" >&6; }
6100
6101 for ac_prog in gawk mawk nawk awk
6102 do
6103   # Extract the first word of "$ac_prog", so it can be a program name with args.
6104 set dummy $ac_prog; ac_word=$2
6105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6106 printf %s "checking for $ac_word... " >&6; }
6107 if test ${ac_cv_prog_AWK+y}
6108 then :
6109   printf %s "(cached) " >&6
6110 else $as_nop
6111   if test -n "$AWK"; then
6112   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6113 else
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 for as_dir in $PATH
6116 do
6117   IFS=$as_save_IFS
6118   case $as_dir in #(((
6119     '') as_dir=./ ;;
6120     */) ;;
6121     *) as_dir=$as_dir/ ;;
6122   esac
6123     for ac_exec_ext in '' $ac_executable_extensions; do
6124   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6125     ac_cv_prog_AWK="$ac_prog"
6126     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6127     break 2
6128   fi
6129 done
6130   done
6131 IFS=$as_save_IFS
6132
6133 fi
6134 fi
6135 AWK=$ac_cv_prog_AWK
6136 if test -n "$AWK"; then
6137   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6138 printf "%s\n" "$AWK" >&6; }
6139 else
6140   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141 printf "%s\n" "no" >&6; }
6142 fi
6143
6144
6145   test -n "$AWK" && break
6146 done
6147
6148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6149 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6150 set x ${MAKE-make}
6151 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6152 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
6153 then :
6154   printf %s "(cached) " >&6
6155 else $as_nop
6156   cat >conftest.make <<\_ACEOF
6157 SHELL = /bin/sh
6158 all:
6159         @echo '@@@%%%=$(MAKE)=@@@%%%'
6160 _ACEOF
6161 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6162 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6163   *@@@%%%=?*=@@@%%%*)
6164     eval ac_cv_prog_make_${ac_make}_set=yes;;
6165   *)
6166     eval ac_cv_prog_make_${ac_make}_set=no;;
6167 esac
6168 rm -f conftest.make
6169 fi
6170 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6171   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6172 printf "%s\n" "yes" >&6; }
6173   SET_MAKE=
6174 else
6175   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6176 printf "%s\n" "no" >&6; }
6177   SET_MAKE="MAKE=${MAKE-make}"
6178 fi
6179
6180 rm -rf .tst 2>/dev/null
6181 mkdir .tst 2>/dev/null
6182 if test -d .tst; then
6183   am__leading_dot=.
6184 else
6185   am__leading_dot=_
6186 fi
6187 rmdir .tst 2>/dev/null
6188
6189 DEPDIR="${am__leading_dot}deps"
6190
6191 ac_config_commands="$ac_config_commands depfiles"
6192
6193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
6194 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
6195 cat > confinc.mk << 'END'
6196 am__doit:
6197         @echo this is the am__doit target >confinc.out
6198 .PHONY: am__doit
6199 END
6200 am__include="#"
6201 am__quote=
6202 # BSD make does it like this.
6203 echo '.include "confinc.mk" # ignored' > confmf.BSD
6204 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
6205 echo 'include confinc.mk # ignored' > confmf.GNU
6206 _am_result=no
6207 for s in GNU BSD; do
6208   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
6209    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
6210    ac_status=$?
6211    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212    (exit $ac_status); }
6213   case $?:`cat confinc.out 2>/dev/null` in #(
6214   '0:this is the am__doit target') :
6215     case $s in #(
6216   BSD) :
6217     am__include='.include' am__quote='"' ;; #(
6218   *) :
6219     am__include='include' am__quote='' ;;
6220 esac ;; #(
6221   *) :
6222      ;;
6223 esac
6224   if test "$am__include" != "#"; then
6225     _am_result="yes ($s style)"
6226     break
6227   fi
6228 done
6229 rm -f confinc.* confmf.*
6230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
6231 printf "%s\n" "${_am_result}" >&6; }
6232
6233 # Check whether --enable-dependency-tracking was given.
6234 if test ${enable_dependency_tracking+y}
6235 then :
6236   enableval=$enable_dependency_tracking;
6237 fi
6238
6239 if test "x$enable_dependency_tracking" != xno; then
6240   am_depcomp="$ac_aux_dir/depcomp"
6241   AMDEPBACKSLASH='\'
6242   am__nodep='_no'
6243 fi
6244  if test "x$enable_dependency_tracking" != xno; then
6245   AMDEP_TRUE=
6246   AMDEP_FALSE='#'
6247 else
6248   AMDEP_TRUE='#'
6249   AMDEP_FALSE=
6250 fi
6251
6252
6253 ## --------------------------------------- ##
6254 ##  Start of automake initialization code  ##
6255 ## --------------------------------------- ##
6256
6257 if test "`cd $srcdir && pwd`" != "`pwd`"; then
6258   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
6259   # is not polluted with repeated "-I."
6260   am__isrc=' -I$(srcdir)'
6261   # test to see if srcdir already configured
6262   if test -f $srcdir/config.status; then
6263     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
6264   fi
6265 fi
6266
6267 # test whether we have cygpath
6268 if test -z "$CYGPATH_W"; then
6269   if (cygpath --version) >/dev/null 2>/dev/null; then
6270     CYGPATH_W='cygpath -w'
6271   else
6272     CYGPATH_W=echo
6273   fi
6274 fi
6275
6276
6277 # Define the identity of the package.
6278  PACKAGE='curl'
6279  VERSION='-'
6280
6281
6282 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
6283
6284
6285 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
6286
6287 # Some tools Automake needs.
6288
6289 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6290
6291
6292 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6293
6294
6295 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6296
6297
6298 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6299
6300
6301 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6302
6303 # For better backward compatibility.  To be removed once Automake 1.9.x
6304 # dies out for good.  For more background, see:
6305 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
6306 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
6307 mkdir_p='$(MKDIR_P)'
6308
6309 # We need awk for the "check" target (and possibly the TAP driver).  The
6310 # system "awk" is bad on some platforms.
6311 # Always define AMTAR for backward compatibility.  Yes, it's still used
6312 # in the wild :-(  We should find a proper way to deprecate it ...
6313 AMTAR='$${TAR-tar}'
6314
6315
6316 # We'll loop over all known methods to create a tar archive until one works.
6317 _am_tools='gnutar  pax cpio none'
6318
6319 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
6320
6321
6322
6323
6324
6325 depcc="$CC"   am_compiler_list=
6326
6327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6328 printf %s "checking dependency style of $depcc... " >&6; }
6329 if test ${am_cv_CC_dependencies_compiler_type+y}
6330 then :
6331   printf %s "(cached) " >&6
6332 else $as_nop
6333   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6334   # We make a subdir and do the tests there.  Otherwise we can end up
6335   # making bogus files that we don't know about and never remove.  For
6336   # instance it was reported that on HP-UX the gcc test will end up
6337   # making a dummy file named 'D' -- because '-MD' means "put the output
6338   # in D".
6339   rm -rf conftest.dir
6340   mkdir conftest.dir
6341   # Copy depcomp to subdir because otherwise we won't find it if we're
6342   # using a relative directory.
6343   cp "$am_depcomp" conftest.dir
6344   cd conftest.dir
6345   # We will build objects and dependencies in a subdirectory because
6346   # it helps to detect inapplicable dependency modes.  For instance
6347   # both Tru64's cc and ICC support -MD to output dependencies as a
6348   # side effect of compilation, but ICC will put the dependencies in
6349   # the current directory while Tru64 will put them in the object
6350   # directory.
6351   mkdir sub
6352
6353   am_cv_CC_dependencies_compiler_type=none
6354   if test "$am_compiler_list" = ""; then
6355      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6356   fi
6357   am__universal=false
6358   case " $depcc " in #(
6359      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6360      esac
6361
6362   for depmode in $am_compiler_list; do
6363     # Setup a source with many dependencies, because some compilers
6364     # like to wrap large dependency lists on column 80 (with \), and
6365     # we should not choose a depcomp mode which is confused by this.
6366     #
6367     # We need to recreate these files for each test, as the compiler may
6368     # overwrite some of them when testing with obscure command lines.
6369     # This happens at least with the AIX C compiler.
6370     : > sub/conftest.c
6371     for i in 1 2 3 4 5 6; do
6372       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6373       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6374       # Solaris 10 /bin/sh.
6375       echo '/* dummy */' > sub/conftst$i.h
6376     done
6377     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6378
6379     # We check with '-c' and '-o' for the sake of the "dashmstdout"
6380     # mode.  It turns out that the SunPro C++ compiler does not properly
6381     # handle '-M -o', and we need to detect this.  Also, some Intel
6382     # versions had trouble with output in subdirs.
6383     am__obj=sub/conftest.${OBJEXT-o}
6384     am__minus_obj="-o $am__obj"
6385     case $depmode in
6386     gcc)
6387       # This depmode causes a compiler race in universal mode.
6388       test "$am__universal" = false || continue
6389       ;;
6390     nosideeffect)
6391       # After this tag, mechanisms are not by side-effect, so they'll
6392       # only be used when explicitly requested.
6393       if test "x$enable_dependency_tracking" = xyes; then
6394         continue
6395       else
6396         break
6397       fi
6398       ;;
6399     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6400       # This compiler won't grok '-c -o', but also, the minuso test has
6401       # not run yet.  These depmodes are late enough in the game, and
6402       # so weak that their functioning should not be impacted.
6403       am__obj=conftest.${OBJEXT-o}
6404       am__minus_obj=
6405       ;;
6406     none) break ;;
6407     esac
6408     if depmode=$depmode \
6409        source=sub/conftest.c object=$am__obj \
6410        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6411        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6412          >/dev/null 2>conftest.err &&
6413        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6414        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6415        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6416        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6417       # icc doesn't choke on unknown options, it will just issue warnings
6418       # or remarks (even with -Werror).  So we grep stderr for any message
6419       # that says an option was ignored or not supported.
6420       # When given -MP, icc 7.0 and 7.1 complain thusly:
6421       #   icc: Command line warning: ignoring option '-M'; no argument required
6422       # The diagnosis changed in icc 8.0:
6423       #   icc: Command line remark: option '-MP' not supported
6424       if (grep 'ignoring option' conftest.err ||
6425           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6426         am_cv_CC_dependencies_compiler_type=$depmode
6427         break
6428       fi
6429     fi
6430   done
6431
6432   cd ..
6433   rm -rf conftest.dir
6434 else
6435   am_cv_CC_dependencies_compiler_type=none
6436 fi
6437
6438 fi
6439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6440 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6441 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6442
6443  if
6444   test "x$enable_dependency_tracking" != xno \
6445   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6446   am__fastdepCC_TRUE=
6447   am__fastdepCC_FALSE='#'
6448 else
6449   am__fastdepCC_TRUE='#'
6450   am__fastdepCC_FALSE=
6451 fi
6452
6453
6454 # Variables for tags utilities; see am/tags.am
6455 if test -z "$CTAGS"; then
6456   CTAGS=ctags
6457 fi
6458
6459 if test -z "$ETAGS"; then
6460   ETAGS=etags
6461 fi
6462
6463 if test -z "$CSCOPE"; then
6464   CSCOPE=cscope
6465 fi
6466
6467
6468
6469 # POSIX will say in a future version that running "rm -f" with no argument
6470 # is OK; and we want to be able to make that assumption in our Makefile
6471 # recipes.  So use an aggressive probe to check that the usage we want is
6472 # actually supported "in the wild" to an acceptable degree.
6473 # See automake bug#10828.
6474 # To make any issue more visible, cause the running configure to be aborted
6475 # by default if the 'rm' program in use doesn't match our expectations; the
6476 # user can still override this though.
6477 if rm -f && rm -fr && rm -rf; then : OK; else
6478   cat >&2 <<'END'
6479 Oops!
6480
6481 Your 'rm' program seems unable to run without file operands specified
6482 on the command line, even when the '-f' option is present.  This is contrary
6483 to the behaviour of most rm programs out there, and not conforming with
6484 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6485
6486 Please tell bug-automake@gnu.org about your system, including the value
6487 of your $PATH and any error possibly output before this message.  This
6488 can help us improve future automake versions.
6489
6490 END
6491   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6492     echo 'Configuration will proceed anyway, since you have set the' >&2
6493     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6494     echo >&2
6495   else
6496     cat >&2 <<'END'
6497 Aborting the configuration process, to ensure you take notice of the issue.
6498
6499 You can download and install GNU coreutils to get an 'rm' implementation
6500 that behaves properly: <https://www.gnu.org/software/coreutils/>.
6501
6502 If you want to complete the configuration process using your problematic
6503 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6504 to "yes", and re-run configure.
6505
6506 END
6507     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6508   fi
6509 fi
6510
6511 ## ------------------------------------- ##
6512 ##  End of automake initialization code  ##
6513 ## ------------------------------------- ##
6514
6515
6516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
6517 printf %s "checking curl version... " >&6; }
6518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
6519 printf "%s\n" "$CURLVERSION" >&6; }
6520
6521
6522
6523 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
6524
6525
6526 PKGADD_PKG="HAXXcurl"
6527 PKGADD_NAME="curl - a client that groks URLs"
6528 PKGADD_VENDOR="curl.se"
6529
6530
6531
6532
6533     curl_ssl_msg="no      (--with-{openssl,gnutls,nss,mbedtls,wolfssl,schannel,secure-transport,mesalink,amissl,bearssl,rustls} )"
6534     curl_ssh_msg="no      (--with-{libssh,libssh2})"
6535    curl_zlib_msg="no      (--with-zlib)"
6536  curl_brotli_msg="no      (--with-brotli)"
6537    curl_zstd_msg="no      (--with-zstd)"
6538     curl_gss_msg="no      (--with-gssapi)"
6539   curl_gsasl_msg="no      (--with-gsasl)"
6540 curl_tls_srp_msg="no      (--enable-tls-srp)"
6541     curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
6542    curl_ipv6_msg="no      (--enable-ipv6)"
6543 curl_unix_sockets_msg="no      (--enable-unix-sockets)"
6544     curl_idn_msg="no      (--with-{libidn2,winidn})"
6545  curl_manual_msg="no      (--enable-manual)"
6546 curl_libcurl_msg="enabled (--disable-libcurl-option)"
6547 curl_verbose_msg="enabled (--disable-verbose)"
6548    curl_sspi_msg="no      (--enable-sspi)"
6549    curl_ldap_msg="no      (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
6550   curl_ldaps_msg="no      (--enable-ldaps)"
6551    curl_rtsp_msg="no      (--enable-rtsp)"
6552    curl_rtmp_msg="no      (--with-librtmp)"
6553     curl_psl_msg="no      (--with-libpsl)"
6554  curl_altsvc_msg="enabled (--disable-alt-svc)"
6555    curl_hsts_msg="enabled (--disable-hsts)"
6556     ssl_backends=
6557      curl_h1_msg="enabled (internal)"
6558      curl_h2_msg="no      (--with-nghttp2, --with-hyper)"
6559      curl_h3_msg="no      (--with-ngtcp2, --with-quiche)"
6560
6561 enable_altsvc="yes"
6562 hsts="yes"
6563
6564 INITIAL_LDFLAGS=$LDFLAGS
6565 INITIAL_LIBS=$LIBS
6566
6567 OPT_SCHANNEL=no
6568
6569 # Check whether --with-schannel was given.
6570 if test ${with_schannel+y}
6571 then :
6572   withval=$with_schannel; OPT_SCHANNEL=$withval
6573   TLSCHOICE="schannel"
6574 fi
6575
6576
6577 OPT_SECURETRANSPORT=no
6578
6579 # Check whether --with-secure-transport was given.
6580 if test ${with_secure_transport+y}
6581 then :
6582   withval=$with_secure_transport; OPT_SECURETRANSPORT=$withval
6583   test -z "TLSCHOICE" || TLSCHOICE="${TLSCHOICE:+$TLSCHOICE
6584 else $as_nop
6585   }Secure-Transport"
6586
6587 fi
6588
6589
6590 OPT_AMISSL=no
6591
6592 # Check whether --with-amissl was given.
6593 if test ${with_amissl+y}
6594 then :
6595   withval=$with_amissl; OPT_AMISSL=$withval
6596   test -z "TLSCHOICE" || TLSCHOICE="${TLSCHOICE:+$TLSCHOICE
6597 else $as_nop
6598   }AmiSSL"
6599 fi
6600
6601
6602 OPT_OPENSSL=no
6603 ca="no"
6604
6605 # Check whether --with-ssl was given.
6606 if test ${with_ssl+y}
6607 then :
6608   withval=$with_ssl; OPT_SSL=$withval
6609   OPT_OPENSSL=$withval
6610   if test X"$withval" != Xno; then
6611     test -z "TLSCHOICE" || TLSCHOICE="${TLSCHOICE:+$TLSCHOICE
6612 else $as_nop
6613   }OpenSSL"
6614 fi
6615
6616   fi
6617
6618
6619 # Check whether --with-openssl was given.
6620 if test ${with_openssl+y}
6621 then :
6622   withval=$with_openssl; OPT_OPENSSL=$withval
6623   if test X"$withval" != Xno; then
6624     test -z "TLSCHOICE" || TLSCHOICE="${TLSCHOICE:+$TLSCHOICE
6625 else $as_nop
6626   }OpenSSL"
6627 fi
6628
6629   fi
6630
6631 OPT_GNUTLS=no
6632
6633 # Check whether --with-gnutls was given.
6634 if test ${with_gnutls+y}
6635 then :
6636   withval=$with_gnutls; OPT_GNUTLS=$withval
6637   if test X"$withval" != Xno; then
6638     test -z "TLSCHOICE" || TLSCHOICE="${TLSCHOICE:+$TLSCHOICE
6639 else $as_nop
6640   }GnuTLS"
6641 fi
6642
6643   fi
6644
6645 OPT_MBEDTLS=no
6646
6647 # Check whether --with-mbedtls was given.
6648 if test ${with_mbedtls+y}
6649 then :
6650   withval=$with_mbedtls; OPT_MBEDTLS=$withval
6651   if test X"$withval" != Xno; then
6652     test -z "TLSCHOICE" || TLSCHOICE="${TLSCHOICE:+$TLSCHOICE
6653 else $as_nop
6654   }mbedTLS"
6655 fi
6656
6657   fi
6658
6659 OPT_WOLFSSL=no
6660
6661 # Check whether --with-wolfssl was given.
6662 if test ${with_wolfssl+y}
6663 then :
6664   withval=$with_wolfssl; OPT_WOLFSSL=$withval
6665   if test X"$withval" != Xno; then
6666     test -z "TLSCHOICE" || TLSCHOICE="${TLSCHOICE:+$TLSCHOICE
6667 else $as_nop
6668   }wolfSSL"
6669 fi
6670
6671   fi
6672
6673 OPT_MESALINK=no
6674
6675 # Check whether --with-mesalink was given.
6676 if test ${with_mesalink+y}
6677 then :
6678   withval=$with_mesalink; OPT_MESALINK=$withval
6679   if test X"$withval" != Xno; then
6680     test -z "TLSCHOICE" || TLSCHOICE="${TLSCHOICE:+$TLSCHOICE
6681 else $as_nop
6682   }MesaLink"
6683 fi
6684
6685   fi
6686
6687 OPT_BEARSSL=no
6688
6689 # Check whether --with-bearssl was given.
6690 if test ${with_bearssl+y}
6691 then :
6692   withval=$with_bearssl; OPT_BEARSSL=$withval
6693   if test X"$withval" != Xno; then
6694     test -z "TLSCHOICE" || TLSCHOICE="${TLSCHOICE:+$TLSCHOICE
6695 else $as_nop
6696   }BearSSL"
6697 fi
6698
6699   fi
6700
6701 OPT_RUSTLS=no
6702
6703 # Check whether --with-rustls was given.
6704 if test ${with_rustls+y}
6705 then :
6706   withval=$with_rustls; OPT_RUSTLS=$withval
6707   if test X"$withval" != Xno; then
6708     test -z "TLSCHOICE" || TLSCHOICE="${TLSCHOICE:+$TLSCHOICE
6709 else $as_nop
6710   }rustls"
6711 fi
6712
6713   fi
6714
6715 OPT_NSS=no
6716
6717 # Check whether --with-nss was given.
6718 if test ${with_nss+y}
6719 then :
6720   withval=$with_nss; OPT_NSS=$withval
6721   if test X"$withval" != Xno; then
6722     test -z "TLSCHOICE" || TLSCHOICE="${TLSCHOICE:+$TLSCHOICE
6723 else $as_nop
6724   }NSS"
6725 fi
6726
6727   fi
6728
6729 if test -z "$TLSCHOICE"; then
6730   if test "x$OPT_SSL" != "xno"; then
6731     as_fn_error $? "select TLS backend(s) or disable TLS with --without-ssl.
6732
6733 Select from these:
6734
6735   --with-amissl
6736   --with-bearssl
6737   --with-gnutls
6738   --with-mbedtls
6739   --with-mesalink
6740   --with-nss
6741   --with-openssl (also works for BoringSSL and libressl)
6742   --with-rustls
6743   --with-schannel
6744   --with-secure-transport
6745   --with-wolfssl
6746 " "$LINENO" 5
6747   fi
6748 fi
6749
6750
6751 # Check whether --with-darwinssl was given.
6752 if test ${with_darwinssl+y}
6753 then :
6754   withval=$with_darwinssl; as_fn_error $? "--with-darwin-ssl no longer works!" "$LINENO" 5
6755 fi
6756
6757
6758
6759
6760
6761   # Make sure we can run config.sub.
6762 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6763   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6764
6765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6766 printf %s "checking build system type... " >&6; }
6767 if test ${ac_cv_build+y}
6768 then :
6769   printf %s "(cached) " >&6
6770 else $as_nop
6771   ac_build_alias=$build_alias
6772 test "x$ac_build_alias" = x &&
6773   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6774 test "x$ac_build_alias" = x &&
6775   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6776 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6777   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6778
6779 fi
6780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6781 printf "%s\n" "$ac_cv_build" >&6; }
6782 case $ac_cv_build in
6783 *-*-*) ;;
6784 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6785 esac
6786 build=$ac_cv_build
6787 ac_save_IFS=$IFS; IFS='-'
6788 set x $ac_cv_build
6789 shift
6790 build_cpu=$1
6791 build_vendor=$2
6792 shift; shift
6793 # Remember, the first character of IFS is used to create $*,
6794 # except with old shells:
6795 build_os=$*
6796 IFS=$ac_save_IFS
6797 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6798
6799
6800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6801 printf %s "checking host system type... " >&6; }
6802 if test ${ac_cv_host+y}
6803 then :
6804   printf %s "(cached) " >&6
6805 else $as_nop
6806   if test "x$host_alias" = x; then
6807   ac_cv_host=$ac_cv_build
6808 else
6809   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6810     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6811 fi
6812
6813 fi
6814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6815 printf "%s\n" "$ac_cv_host" >&6; }
6816 case $ac_cv_host in
6817 *-*-*) ;;
6818 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6819 esac
6820 host=$ac_cv_host
6821 ac_save_IFS=$IFS; IFS='-'
6822 set x $ac_cv_host
6823 shift
6824 host_cpu=$1
6825 host_vendor=$2
6826 shift; shift
6827 # Remember, the first character of IFS is used to create $*,
6828 # except with old shells:
6829 host_os=$*
6830 IFS=$ac_save_IFS
6831 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6832
6833
6834
6835 printf "%s\n" "#define OS \"${host}\"" >>confdefs.h
6836
6837
6838 # Silence warning: ar: 'u' modifier ignored since 'D' is the default
6839 AR_FLAGS=cr
6840
6841
6842
6843
6844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6845 printf %s "checking for grep that handles long lines and -e... " >&6; }
6846 if test ${ac_cv_path_GREP+y}
6847 then :
6848   printf %s "(cached) " >&6
6849 else $as_nop
6850   if test -z "$GREP"; then
6851   ac_path_GREP_found=false
6852   # Loop through the user's path and test for each of PROGNAME-LIST
6853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6855 do
6856   IFS=$as_save_IFS
6857   case $as_dir in #(((
6858     '') as_dir=./ ;;
6859     */) ;;
6860     *) as_dir=$as_dir/ ;;
6861   esac
6862     for ac_prog in grep ggrep
6863    do
6864     for ac_exec_ext in '' $ac_executable_extensions; do
6865       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6866       as_fn_executable_p "$ac_path_GREP" || continue
6867 # Check for GNU ac_path_GREP and select it if it is found.
6868   # Check for GNU $ac_path_GREP
6869 case `"$ac_path_GREP" --version 2>&1` in
6870 *GNU*)
6871   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6872 *)
6873   ac_count=0
6874   printf %s 0123456789 >"conftest.in"
6875   while :
6876   do
6877     cat "conftest.in" "conftest.in" >"conftest.tmp"
6878     mv "conftest.tmp" "conftest.in"
6879     cp "conftest.in" "conftest.nl"
6880     printf "%s\n" 'GREP' >> "conftest.nl"
6881     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6882     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6883     as_fn_arith $ac_count + 1 && ac_count=$as_val
6884     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6885       # Best one so far, save it but keep looking for a better one
6886       ac_cv_path_GREP="$ac_path_GREP"
6887       ac_path_GREP_max=$ac_count
6888     fi
6889     # 10*(2^10) chars as input seems more than enough
6890     test $ac_count -gt 10 && break
6891   done
6892   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6893 esac
6894
6895       $ac_path_GREP_found && break 3
6896     done
6897   done
6898   done
6899 IFS=$as_save_IFS
6900   if test -z "$ac_cv_path_GREP"; then
6901     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6902   fi
6903 else
6904   ac_cv_path_GREP=$GREP
6905 fi
6906
6907 fi
6908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6909 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6910  GREP="$ac_cv_path_GREP"
6911
6912
6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6914 printf %s "checking for egrep... " >&6; }
6915 if test ${ac_cv_path_EGREP+y}
6916 then :
6917   printf %s "(cached) " >&6
6918 else $as_nop
6919   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6920    then ac_cv_path_EGREP="$GREP -E"
6921    else
6922      if test -z "$EGREP"; then
6923   ac_path_EGREP_found=false
6924   # Loop through the user's path and test for each of PROGNAME-LIST
6925   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6927 do
6928   IFS=$as_save_IFS
6929   case $as_dir in #(((
6930     '') as_dir=./ ;;
6931     */) ;;
6932     *) as_dir=$as_dir/ ;;
6933   esac
6934     for ac_prog in egrep
6935    do
6936     for ac_exec_ext in '' $ac_executable_extensions; do
6937       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6938       as_fn_executable_p "$ac_path_EGREP" || continue
6939 # Check for GNU ac_path_EGREP and select it if it is found.
6940   # Check for GNU $ac_path_EGREP
6941 case `"$ac_path_EGREP" --version 2>&1` in
6942 *GNU*)
6943   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6944 *)
6945   ac_count=0
6946   printf %s 0123456789 >"conftest.in"
6947   while :
6948   do
6949     cat "conftest.in" "conftest.in" >"conftest.tmp"
6950     mv "conftest.tmp" "conftest.in"
6951     cp "conftest.in" "conftest.nl"
6952     printf "%s\n" 'EGREP' >> "conftest.nl"
6953     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6954     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6955     as_fn_arith $ac_count + 1 && ac_count=$as_val
6956     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6957       # Best one so far, save it but keep looking for a better one
6958       ac_cv_path_EGREP="$ac_path_EGREP"
6959       ac_path_EGREP_max=$ac_count
6960     fi
6961     # 10*(2^10) chars as input seems more than enough
6962     test $ac_count -gt 10 && break
6963   done
6964   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6965 esac
6966
6967       $ac_path_EGREP_found && break 3
6968     done
6969   done
6970   done
6971 IFS=$as_save_IFS
6972   if test -z "$ac_cv_path_EGREP"; then
6973     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6974   fi
6975 else
6976   ac_cv_path_EGREP=$EGREP
6977 fi
6978
6979    fi
6980 fi
6981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6982 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6983  EGREP="$ac_cv_path_EGREP"
6984
6985
6986
6987
6988         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6989 printf %s "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6991 /* end confdefs.h.  */
6992
6993 #ifdef _AIX
6994    yes_this_is_aix
6995 #endif
6996
6997 _ACEOF
6998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6999   $EGREP "yes_this_is_aix" >/dev/null 2>&1
7000 then :
7001
7002     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7003 printf "%s\n" "yes" >&6; }
7004     printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
7005
7006
7007 else $as_nop
7008
7009     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7010 printf "%s\n" "no" >&6; }
7011
7012 fi
7013 rm -rf conftest*
7014
7015
7016
7017
7018     #
7019   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
7020 printf %s "checking if _THREAD_SAFE is already defined... " >&6; }
7021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022 /* end confdefs.h.  */
7023
7024
7025
7026 int main (void)
7027 {
7028
7029 #ifdef _THREAD_SAFE
7030       int dummy=1;
7031 #else
7032       force compilation error
7033 #endif
7034
7035  ;
7036  return 0;
7037 }
7038
7039 _ACEOF
7040 if ac_fn_c_try_compile "$LINENO"
7041 then :
7042
7043     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7044 printf "%s\n" "yes" >&6; }
7045     tmp_thread_safe_initially_defined="yes"
7046
7047 else $as_nop
7048
7049     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050 printf "%s\n" "no" >&6; }
7051     tmp_thread_safe_initially_defined="no"
7052
7053 fi
7054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7055   #
7056   if test "$tmp_thread_safe_initially_defined" = "no"; then
7057     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
7058 printf %s "checking if _THREAD_SAFE is actually needed... " >&6; }
7059
7060   case $host_os in
7061     aix[123].* | aix4.[012].*)
7062             tmp_need_thread_safe="no"
7063       ;;
7064     aix*)
7065             tmp_need_thread_safe="yes"
7066       ;;
7067     *)
7068       tmp_need_thread_safe="no"
7069       ;;
7070   esac
7071
7072     if test "$tmp_need_thread_safe" = "yes"; then
7073       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7074 printf "%s\n" "yes" >&6; }
7075     else
7076       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7077 printf "%s\n" "no" >&6; }
7078     fi
7079   fi
7080   #
7081   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
7082 printf %s "checking if _THREAD_SAFE is onwards defined... " >&6; }
7083   if test "$tmp_thread_safe_initially_defined" = "yes" ||
7084     test "$tmp_need_thread_safe" = "yes"; then
7085
7086
7087 printf "%s\n" "#define NEED_THREAD_SAFE 1" >>confdefs.h
7088
7089 cat >>confdefs.h <<_EOF
7090 #ifndef _THREAD_SAFE
7091 #  define _THREAD_SAFE
7092 #endif
7093 _EOF
7094
7095     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7096 printf "%s\n" "yes" >&6; }
7097   else
7098     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099 printf "%s\n" "no" >&6; }
7100   fi
7101   #
7102
7103
7104     #
7105   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
7106 printf %s "checking if _REENTRANT is already defined... " >&6; }
7107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108 /* end confdefs.h.  */
7109
7110
7111
7112 int main (void)
7113 {
7114
7115 #ifdef _REENTRANT
7116       int dummy=1;
7117 #else
7118       force compilation error
7119 #endif
7120
7121  ;
7122  return 0;
7123 }
7124
7125 _ACEOF
7126 if ac_fn_c_try_compile "$LINENO"
7127 then :
7128
7129     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7130 printf "%s\n" "yes" >&6; }
7131     tmp_reentrant_initially_defined="yes"
7132
7133 else $as_nop
7134
7135     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7136 printf "%s\n" "no" >&6; }
7137     tmp_reentrant_initially_defined="no"
7138
7139 fi
7140 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7141   #
7142   if test "$tmp_reentrant_initially_defined" = "no"; then
7143     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
7144 printf %s "checking if _REENTRANT is actually needed... " >&6; }
7145
7146   case $host_os in
7147     solaris*)
7148       tmp_need_reentrant="yes"
7149       ;;
7150     *)
7151       tmp_need_reentrant="no"
7152       ;;
7153   esac
7154
7155     if test "$tmp_need_reentrant" = "no"; then
7156
7157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158 /* end confdefs.h.  */
7159
7160
7161 #include <errno.h>
7162
7163 int main (void)
7164 {
7165
7166       if(0 != errno)
7167         return 1;
7168
7169  ;
7170  return 0;
7171 }
7172
7173 _ACEOF
7174 if ac_fn_c_try_compile "$LINENO"
7175 then :
7176
7177     tmp_errno="yes"
7178
7179 else $as_nop
7180
7181     tmp_errno="no"
7182
7183 fi
7184 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7185   if test "$tmp_errno" = "yes"; then
7186     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187 /* end confdefs.h.  */
7188
7189
7190 #include <errno.h>
7191
7192 int main (void)
7193 {
7194
7195 #ifdef errno
7196         int dummy=1;
7197 #else
7198         force compilation error
7199 #endif
7200
7201  ;
7202  return 0;
7203 }
7204
7205 _ACEOF
7206 if ac_fn_c_try_compile "$LINENO"
7207 then :
7208
7209       tmp_errno="errno_macro_defined"
7210
7211 else $as_nop
7212
7213       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7214 /* end confdefs.h.  */
7215
7216
7217 #define _REENTRANT
7218 #include <errno.h>
7219
7220 int main (void)
7221 {
7222
7223 #ifdef errno
7224           int dummy=1;
7225 #else
7226           force compilation error
7227 #endif
7228
7229  ;
7230  return 0;
7231 }
7232
7233 _ACEOF
7234 if ac_fn_c_try_compile "$LINENO"
7235 then :
7236
7237         tmp_errno="errno_macro_needs_reentrant"
7238         tmp_need_reentrant="yes"
7239
7240 fi
7241 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7242
7243 fi
7244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7245   fi
7246
7247     fi
7248     if test "$tmp_need_reentrant" = "no"; then
7249
7250   if test "$tmp_need_reentrant" = "no"; then
7251
7252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253 /* end confdefs.h.  */
7254
7255
7256 #define gmtime_r innocuous_gmtime_r
7257 #ifdef __STDC__
7258 # include <limits.h>
7259 #else
7260 # include <assert.h>
7261 #endif
7262 #undef gmtime_r
7263 #ifdef __cplusplus
7264 extern "C"
7265 #endif
7266 char gmtime_r ();
7267 #if defined __stub_gmtime_r || defined __stub___gmtime_r
7268 choke me
7269 #endif
7270
7271 int main (void)
7272 {
7273 return gmtime_r ();
7274  ;
7275  return 0;
7276 }
7277
7278 _ACEOF
7279 if ac_fn_c_try_link "$LINENO"
7280 then :
7281
7282     tmp_gmtime_r="yes"
7283
7284 else $as_nop
7285
7286     tmp_gmtime_r="no"
7287
7288 fi
7289 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7290     conftest$ac_exeext conftest.$ac_ext
7291   if test "$tmp_gmtime_r" = "yes"; then
7292     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293 /* end confdefs.h.  */
7294
7295 #include <sys/types.h>
7296 #include <time.h>
7297
7298 _ACEOF
7299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7300   $EGREP "gmtime_r" >/dev/null 2>&1
7301 then :
7302
7303       tmp_gmtime_r="proto_declared"
7304
7305 else $as_nop
7306
7307       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h.  */
7309
7310 #define _REENTRANT
7311 #include <sys/types.h>
7312 #include <time.h>
7313
7314 _ACEOF
7315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7316   $EGREP "gmtime_r" >/dev/null 2>&1
7317 then :
7318
7319         tmp_gmtime_r="proto_needs_reentrant"
7320         tmp_need_reentrant="yes"
7321
7322 fi
7323 rm -rf conftest*
7324
7325
7326 fi
7327 rm -rf conftest*
7328
7329   fi
7330
7331   fi
7332   if test "$tmp_need_reentrant" = "no"; then
7333
7334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7335 /* end confdefs.h.  */
7336
7337
7338 #define localtime_r innocuous_localtime_r
7339 #ifdef __STDC__
7340 # include <limits.h>
7341 #else
7342 # include <assert.h>
7343 #endif
7344 #undef localtime_r
7345 #ifdef __cplusplus
7346 extern "C"
7347 #endif
7348 char localtime_r ();
7349 #if defined __stub_localtime_r || defined __stub___localtime_r
7350 choke me
7351 #endif
7352
7353 int main (void)
7354 {
7355 return localtime_r ();
7356  ;
7357  return 0;
7358 }
7359
7360 _ACEOF
7361 if ac_fn_c_try_link "$LINENO"
7362 then :
7363
7364     tmp_localtime_r="yes"
7365
7366 else $as_nop
7367
7368     tmp_localtime_r="no"
7369
7370 fi
7371 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7372     conftest$ac_exeext conftest.$ac_ext
7373   if test "$tmp_localtime_r" = "yes"; then
7374     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7375 /* end confdefs.h.  */
7376
7377 #include <sys/types.h>
7378 #include <time.h>
7379
7380 _ACEOF
7381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7382   $EGREP "localtime_r" >/dev/null 2>&1
7383 then :
7384
7385       tmp_localtime_r="proto_declared"
7386
7387 else $as_nop
7388
7389       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7390 /* end confdefs.h.  */
7391
7392 #define _REENTRANT
7393 #include <sys/types.h>
7394 #include <time.h>
7395
7396 _ACEOF
7397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7398   $EGREP "localtime_r" >/dev/null 2>&1
7399 then :
7400
7401         tmp_localtime_r="proto_needs_reentrant"
7402         tmp_need_reentrant="yes"
7403
7404 fi
7405 rm -rf conftest*
7406
7407
7408 fi
7409 rm -rf conftest*
7410
7411   fi
7412
7413   fi
7414   if test "$tmp_need_reentrant" = "no"; then
7415
7416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7417 /* end confdefs.h.  */
7418
7419
7420 #define strerror_r innocuous_strerror_r
7421 #ifdef __STDC__
7422 # include <limits.h>
7423 #else
7424 # include <assert.h>
7425 #endif
7426 #undef strerror_r
7427 #ifdef __cplusplus
7428 extern "C"
7429 #endif
7430 char strerror_r ();
7431 #if defined __stub_strerror_r || defined __stub___strerror_r
7432 choke me
7433 #endif
7434
7435 int main (void)
7436 {
7437 return strerror_r ();
7438  ;
7439  return 0;
7440 }
7441
7442 _ACEOF
7443 if ac_fn_c_try_link "$LINENO"
7444 then :
7445
7446     tmp_strerror_r="yes"
7447
7448 else $as_nop
7449
7450     tmp_strerror_r="no"
7451
7452 fi
7453 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7454     conftest$ac_exeext conftest.$ac_ext
7455   if test "$tmp_strerror_r" = "yes"; then
7456     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7457 /* end confdefs.h.  */
7458
7459 #include <sys/types.h>
7460 #include <string.h>
7461
7462 _ACEOF
7463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7464   $EGREP "strerror_r" >/dev/null 2>&1
7465 then :
7466
7467       tmp_strerror_r="proto_declared"
7468
7469 else $as_nop
7470
7471       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472 /* end confdefs.h.  */
7473
7474 #define _REENTRANT
7475 #include <sys/types.h>
7476 #include <string.h>
7477
7478 _ACEOF
7479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7480   $EGREP "strerror_r" >/dev/null 2>&1
7481 then :
7482
7483         tmp_strerror_r="proto_needs_reentrant"
7484         tmp_need_reentrant="yes"
7485
7486 fi
7487 rm -rf conftest*
7488
7489
7490 fi
7491 rm -rf conftest*
7492
7493   fi
7494
7495   fi
7496   if test "$tmp_need_reentrant" = "no"; then
7497
7498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7499 /* end confdefs.h.  */
7500
7501
7502 #define strtok_r innocuous_strtok_r
7503 #ifdef __STDC__
7504 # include <limits.h>
7505 #else
7506 # include <assert.h>
7507 #endif
7508 #undef strtok_r
7509 #ifdef __cplusplus
7510 extern "C"
7511 #endif
7512 char strtok_r ();
7513 #if defined __stub_strtok_r || defined __stub___strtok_r
7514 choke me
7515 #endif
7516
7517 int main (void)
7518 {
7519 return strtok_r ();
7520  ;
7521  return 0;
7522 }
7523
7524 _ACEOF
7525 if ac_fn_c_try_link "$LINENO"
7526 then :
7527
7528     tmp_strtok_r="yes"
7529
7530 else $as_nop
7531
7532     tmp_strtok_r="no"
7533
7534 fi
7535 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7536     conftest$ac_exeext conftest.$ac_ext
7537   if test "$tmp_strtok_r" = "yes"; then
7538     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539 /* end confdefs.h.  */
7540
7541 #include <sys/types.h>
7542 #include <string.h>
7543
7544 _ACEOF
7545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7546   $EGREP "strtok_r" >/dev/null 2>&1
7547 then :
7548
7549       tmp_strtok_r="proto_declared"
7550
7551 else $as_nop
7552
7553       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h.  */
7555
7556 #define _REENTRANT
7557 #include <sys/types.h>
7558 #include <string.h>
7559
7560 _ACEOF
7561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7562   $EGREP "strtok_r" >/dev/null 2>&1
7563 then :
7564
7565         tmp_strtok_r="proto_needs_reentrant"
7566         tmp_need_reentrant="yes"
7567
7568 fi
7569 rm -rf conftest*
7570
7571
7572 fi
7573 rm -rf conftest*
7574
7575   fi
7576
7577   fi
7578   if test "$tmp_need_reentrant" = "no"; then
7579
7580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7581 /* end confdefs.h.  */
7582
7583
7584 #define gethostbyname_r innocuous_gethostbyname_r
7585 #ifdef __STDC__
7586 # include <limits.h>
7587 #else
7588 # include <assert.h>
7589 #endif
7590 #undef gethostbyname_r
7591 #ifdef __cplusplus
7592 extern "C"
7593 #endif
7594 char gethostbyname_r ();
7595 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7596 choke me
7597 #endif
7598
7599 int main (void)
7600 {
7601 return gethostbyname_r ();
7602  ;
7603  return 0;
7604 }
7605
7606 _ACEOF
7607 if ac_fn_c_try_link "$LINENO"
7608 then :
7609
7610     tmp_gethostbyname_r="yes"
7611
7612 else $as_nop
7613
7614     tmp_gethostbyname_r="no"
7615
7616 fi
7617 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7618     conftest$ac_exeext conftest.$ac_ext
7619   if test "$tmp_gethostbyname_r" = "yes"; then
7620     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7621 /* end confdefs.h.  */
7622
7623 #include <sys/types.h>
7624 #include <netdb.h>
7625
7626 _ACEOF
7627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7628   $EGREP "gethostbyname_r" >/dev/null 2>&1
7629 then :
7630
7631       tmp_gethostbyname_r="proto_declared"
7632
7633 else $as_nop
7634
7635       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636 /* end confdefs.h.  */
7637
7638 #define _REENTRANT
7639 #include <sys/types.h>
7640 #include <netdb.h>
7641
7642 _ACEOF
7643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7644   $EGREP "gethostbyname_r" >/dev/null 2>&1
7645 then :
7646
7647         tmp_gethostbyname_r="proto_needs_reentrant"
7648         tmp_need_reentrant="yes"
7649
7650 fi
7651 rm -rf conftest*
7652
7653
7654 fi
7655 rm -rf conftest*
7656
7657   fi
7658
7659   fi
7660   if test "$tmp_need_reentrant" = "no"; then
7661
7662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663 /* end confdefs.h.  */
7664
7665
7666 #define getprotobyname_r innocuous_getprotobyname_r
7667 #ifdef __STDC__
7668 # include <limits.h>
7669 #else
7670 # include <assert.h>
7671 #endif
7672 #undef getprotobyname_r
7673 #ifdef __cplusplus
7674 extern "C"
7675 #endif
7676 char getprotobyname_r ();
7677 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7678 choke me
7679 #endif
7680
7681 int main (void)
7682 {
7683 return getprotobyname_r ();
7684  ;
7685  return 0;
7686 }
7687
7688 _ACEOF
7689 if ac_fn_c_try_link "$LINENO"
7690 then :
7691
7692     tmp_getprotobyname_r="yes"
7693
7694 else $as_nop
7695
7696     tmp_getprotobyname_r="no"
7697
7698 fi
7699 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7700     conftest$ac_exeext conftest.$ac_ext
7701   if test "$tmp_getprotobyname_r" = "yes"; then
7702     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7703 /* end confdefs.h.  */
7704
7705 #include <sys/types.h>
7706 #include <netdb.h>
7707
7708 _ACEOF
7709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7710   $EGREP "getprotobyname_r" >/dev/null 2>&1
7711 then :
7712
7713       tmp_getprotobyname_r="proto_declared"
7714
7715 else $as_nop
7716
7717       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718 /* end confdefs.h.  */
7719
7720 #define _REENTRANT
7721 #include <sys/types.h>
7722 #include <netdb.h>
7723
7724 _ACEOF
7725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7726   $EGREP "getprotobyname_r" >/dev/null 2>&1
7727 then :
7728
7729         tmp_getprotobyname_r="proto_needs_reentrant"
7730         tmp_need_reentrant="yes"
7731
7732 fi
7733 rm -rf conftest*
7734
7735
7736 fi
7737 rm -rf conftest*
7738
7739   fi
7740
7741   fi
7742
7743     fi
7744     if test "$tmp_need_reentrant" = "yes"; then
7745       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7746 printf "%s\n" "yes" >&6; }
7747     else
7748       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749 printf "%s\n" "no" >&6; }
7750     fi
7751   fi
7752   #
7753   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7754 printf %s "checking if _REENTRANT is onwards defined... " >&6; }
7755   if test "$tmp_reentrant_initially_defined" = "yes" ||
7756     test "$tmp_need_reentrant" = "yes"; then
7757
7758
7759 printf "%s\n" "#define NEED_REENTRANT 1" >>confdefs.h
7760
7761 cat >>confdefs.h <<_EOF
7762 #ifndef _REENTRANT
7763 #  define _REENTRANT
7764 #endif
7765 _EOF
7766
7767     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7768 printf "%s\n" "yes" >&6; }
7769   else
7770     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7771 printf "%s\n" "no" >&6; }
7772   fi
7773   #
7774
7775
7776 # Check whether --enable-largefile was given.
7777 if test ${enable_largefile+y}
7778 then :
7779   enableval=$enable_largefile;
7780 fi
7781
7782 if test "$enable_largefile" != no; then
7783
7784   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7785 printf %s "checking for special C compiler options needed for large files... " >&6; }
7786 if test ${ac_cv_sys_largefile_CC+y}
7787 then :
7788   printf %s "(cached) " >&6
7789 else $as_nop
7790   ac_cv_sys_largefile_CC=no
7791      if test "$GCC" != yes; then
7792        ac_save_CC=$CC
7793        while :; do
7794          # IRIX 6.2 and later do not support large files by default,
7795          # so use the C compiler's -n32 option if that helps.
7796          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797 /* end confdefs.h.  */
7798 #include <sys/types.h>
7799  /* Check that off_t can represent 2**63 - 1 correctly.
7800     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7801     since some C++ compilers masquerading as C compilers
7802     incorrectly reject 9223372036854775807.  */
7803 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7804   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7805                        && LARGE_OFF_T % 2147483647 == 1)
7806                       ? 1 : -1];
7807 int main (void)
7808 {
7809
7810  ;
7811  return 0;
7812 }
7813 _ACEOF
7814          if ac_fn_c_try_compile "$LINENO"
7815 then :
7816   break
7817 fi
7818 rm -f core conftest.err conftest.$ac_objext conftest.beam
7819          CC="$CC -n32"
7820          if ac_fn_c_try_compile "$LINENO"
7821 then :
7822   ac_cv_sys_largefile_CC=' -n32'; break
7823 fi
7824 rm -f core conftest.err conftest.$ac_objext conftest.beam
7825          break
7826        done
7827        CC=$ac_save_CC
7828        rm -f conftest.$ac_ext
7829     fi
7830 fi
7831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7832 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
7833   if test "$ac_cv_sys_largefile_CC" != no; then
7834     CC=$CC$ac_cv_sys_largefile_CC
7835   fi
7836
7837   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7838 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7839 if test ${ac_cv_sys_file_offset_bits+y}
7840 then :
7841   printf %s "(cached) " >&6
7842 else $as_nop
7843   while :; do
7844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845 /* end confdefs.h.  */
7846 #include <sys/types.h>
7847  /* Check that off_t can represent 2**63 - 1 correctly.
7848     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7849     since some C++ compilers masquerading as C compilers
7850     incorrectly reject 9223372036854775807.  */
7851 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7852   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7853                        && LARGE_OFF_T % 2147483647 == 1)
7854                       ? 1 : -1];
7855 int main (void)
7856 {
7857
7858  ;
7859  return 0;
7860 }
7861 _ACEOF
7862 if ac_fn_c_try_compile "$LINENO"
7863 then :
7864   ac_cv_sys_file_offset_bits=no; break
7865 fi
7866 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868 /* end confdefs.h.  */
7869 #define _FILE_OFFSET_BITS 64
7870 #include <sys/types.h>
7871  /* Check that off_t can represent 2**63 - 1 correctly.
7872     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7873     since some C++ compilers masquerading as C compilers
7874     incorrectly reject 9223372036854775807.  */
7875 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7876   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7877                        && LARGE_OFF_T % 2147483647 == 1)
7878                       ? 1 : -1];
7879 int main (void)
7880 {
7881
7882  ;
7883  return 0;
7884 }
7885 _ACEOF
7886 if ac_fn_c_try_compile "$LINENO"
7887 then :
7888   ac_cv_sys_file_offset_bits=64; break
7889 fi
7890 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7891   ac_cv_sys_file_offset_bits=unknown
7892   break
7893 done
7894 fi
7895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7896 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
7897 case $ac_cv_sys_file_offset_bits in #(
7898   no | unknown) ;;
7899   *)
7900 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
7901 ;;
7902 esac
7903 rm -rf conftest*
7904   if test $ac_cv_sys_file_offset_bits = unknown; then
7905     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7906 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
7907 if test ${ac_cv_sys_large_files+y}
7908 then :
7909   printf %s "(cached) " >&6
7910 else $as_nop
7911   while :; do
7912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h.  */
7914 #include <sys/types.h>
7915  /* Check that off_t can represent 2**63 - 1 correctly.
7916     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7917     since some C++ compilers masquerading as C compilers
7918     incorrectly reject 9223372036854775807.  */
7919 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7920   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7921                        && LARGE_OFF_T % 2147483647 == 1)
7922                       ? 1 : -1];
7923 int main (void)
7924 {
7925
7926  ;
7927  return 0;
7928 }
7929 _ACEOF
7930 if ac_fn_c_try_compile "$LINENO"
7931 then :
7932   ac_cv_sys_large_files=no; break
7933 fi
7934 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936 /* end confdefs.h.  */
7937 #define _LARGE_FILES 1
7938 #include <sys/types.h>
7939  /* Check that off_t can represent 2**63 - 1 correctly.
7940     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7941     since some C++ compilers masquerading as C compilers
7942     incorrectly reject 9223372036854775807.  */
7943 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7944   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7945                        && LARGE_OFF_T % 2147483647 == 1)
7946                       ? 1 : -1];
7947 int main (void)
7948 {
7949
7950  ;
7951  return 0;
7952 }
7953 _ACEOF
7954 if ac_fn_c_try_compile "$LINENO"
7955 then :
7956   ac_cv_sys_large_files=1; break
7957 fi
7958 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7959   ac_cv_sys_large_files=unknown
7960   break
7961 done
7962 fi
7963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7964 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
7965 case $ac_cv_sys_large_files in #(
7966   no | unknown) ;;
7967   *)
7968 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
7969 ;;
7970 esac
7971 rm -rf conftest*
7972   fi
7973 fi
7974
7975
7976 case `pwd` in
7977   *\ * | *\     *)
7978     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7979 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7980 esac
7981
7982
7983
7984 macro_version='2.4.6'
7985 macro_revision='2.4.6'
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000 ltmain=$ac_aux_dir/ltmain.sh
8001
8002 # Backslashify metacharacters that are still active within
8003 # double-quoted strings.
8004 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8005
8006 # Same as above, but do not quote variable references.
8007 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8008
8009 # Sed substitution to delay expansion of an escaped shell variable in a
8010 # double_quote_subst'ed string.
8011 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8012
8013 # Sed substitution to delay expansion of an escaped single quote.
8014 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8015
8016 # Sed substitution to avoid accidental globbing in evaled expressions
8017 no_glob_subst='s/\*/\\\*/g'
8018
8019 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8020 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8021 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8022
8023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8024 printf %s "checking how to print strings... " >&6; }
8025 # Test print first, because it will be a builtin if present.
8026 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8027    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8028   ECHO='print -r --'
8029 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8030   ECHO='printf %s\n'
8031 else
8032   # Use this function as a fallback that always works.
8033   func_fallback_echo ()
8034   {
8035     eval 'cat <<_LTECHO_EOF
8036 $1
8037 _LTECHO_EOF'
8038   }
8039   ECHO='func_fallback_echo'
8040 fi
8041
8042 # func_echo_all arg...
8043 # Invoke $ECHO with all args, space-separated.
8044 func_echo_all ()
8045 {
8046     $ECHO ""
8047 }
8048
8049 case $ECHO in
8050   printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8051 printf "%s\n" "printf" >&6; } ;;
8052   print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8053 printf "%s\n" "print -r" >&6; } ;;
8054   *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8055 printf "%s\n" "cat" >&6; } ;;
8056 esac
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8072 printf %s "checking for a sed that does not truncate output... " >&6; }
8073 if test ${ac_cv_path_SED+y}
8074 then :
8075   printf %s "(cached) " >&6
8076 else $as_nop
8077             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8078      for ac_i in 1 2 3 4 5 6 7; do
8079        ac_script="$ac_script$as_nl$ac_script"
8080      done
8081      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8082      { ac_script=; unset ac_script;}
8083      if test -z "$SED"; then
8084   ac_path_SED_found=false
8085   # Loop through the user's path and test for each of PROGNAME-LIST
8086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8087 for as_dir in $PATH
8088 do
8089   IFS=$as_save_IFS
8090   case $as_dir in #(((
8091     '') as_dir=./ ;;
8092     */) ;;
8093     *) as_dir=$as_dir/ ;;
8094   esac
8095     for ac_prog in sed gsed
8096    do
8097     for ac_exec_ext in '' $ac_executable_extensions; do
8098       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
8099       as_fn_executable_p "$ac_path_SED" || continue
8100 # Check for GNU ac_path_SED and select it if it is found.
8101   # Check for GNU $ac_path_SED
8102 case `"$ac_path_SED" --version 2>&1` in
8103 *GNU*)
8104   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8105 *)
8106   ac_count=0
8107   printf %s 0123456789 >"conftest.in"
8108   while :
8109   do
8110     cat "conftest.in" "conftest.in" >"conftest.tmp"
8111     mv "conftest.tmp" "conftest.in"
8112     cp "conftest.in" "conftest.nl"
8113     printf "%s\n" '' >> "conftest.nl"
8114     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8115     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8116     as_fn_arith $ac_count + 1 && ac_count=$as_val
8117     if test $ac_count -gt ${ac_path_SED_max-0}; then
8118       # Best one so far, save it but keep looking for a better one
8119       ac_cv_path_SED="$ac_path_SED"
8120       ac_path_SED_max=$ac_count
8121     fi
8122     # 10*(2^10) chars as input seems more than enough
8123     test $ac_count -gt 10 && break
8124   done
8125   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8126 esac
8127
8128       $ac_path_SED_found && break 3
8129     done
8130   done
8131   done
8132 IFS=$as_save_IFS
8133   if test -z "$ac_cv_path_SED"; then
8134     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8135   fi
8136 else
8137   ac_cv_path_SED=$SED
8138 fi
8139
8140 fi
8141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8142 printf "%s\n" "$ac_cv_path_SED" >&6; }
8143  SED="$ac_cv_path_SED"
8144   rm -f conftest.sed
8145
8146 test -z "$SED" && SED=sed
8147 Xsed="$SED -e 1s/^X//"
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8160 printf %s "checking for fgrep... " >&6; }
8161 if test ${ac_cv_path_FGREP+y}
8162 then :
8163   printf %s "(cached) " >&6
8164 else $as_nop
8165   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8166    then ac_cv_path_FGREP="$GREP -F"
8167    else
8168      if test -z "$FGREP"; then
8169   ac_path_FGREP_found=false
8170   # Loop through the user's path and test for each of PROGNAME-LIST
8171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8173 do
8174   IFS=$as_save_IFS
8175   case $as_dir in #(((
8176     '') as_dir=./ ;;
8177     */) ;;
8178     *) as_dir=$as_dir/ ;;
8179   esac
8180     for ac_prog in fgrep
8181    do
8182     for ac_exec_ext in '' $ac_executable_extensions; do
8183       ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
8184       as_fn_executable_p "$ac_path_FGREP" || continue
8185 # Check for GNU ac_path_FGREP and select it if it is found.
8186   # Check for GNU $ac_path_FGREP
8187 case `"$ac_path_FGREP" --version 2>&1` in
8188 *GNU*)
8189   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8190 *)
8191   ac_count=0
8192   printf %s 0123456789 >"conftest.in"
8193   while :
8194   do
8195     cat "conftest.in" "conftest.in" >"conftest.tmp"
8196     mv "conftest.tmp" "conftest.in"
8197     cp "conftest.in" "conftest.nl"
8198     printf "%s\n" 'FGREP' >> "conftest.nl"
8199     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8200     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8201     as_fn_arith $ac_count + 1 && ac_count=$as_val
8202     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8203       # Best one so far, save it but keep looking for a better one
8204       ac_cv_path_FGREP="$ac_path_FGREP"
8205       ac_path_FGREP_max=$ac_count
8206     fi
8207     # 10*(2^10) chars as input seems more than enough
8208     test $ac_count -gt 10 && break
8209   done
8210   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8211 esac
8212
8213       $ac_path_FGREP_found && break 3
8214     done
8215   done
8216   done
8217 IFS=$as_save_IFS
8218   if test -z "$ac_cv_path_FGREP"; then
8219     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8220   fi
8221 else
8222   ac_cv_path_FGREP=$FGREP
8223 fi
8224
8225    fi
8226 fi
8227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8228 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
8229  FGREP="$ac_cv_path_FGREP"
8230
8231
8232 test -z "$GREP" && GREP=grep
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252 # Check whether --with-gnu-ld was given.
8253 if test ${with_gnu_ld+y}
8254 then :
8255   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8256 else $as_nop
8257   with_gnu_ld=no
8258 fi
8259
8260 ac_prog=ld
8261 if test yes = "$GCC"; then
8262   # Check if gcc -print-prog-name=ld gives a path.
8263   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8264 printf %s "checking for ld used by $CC... " >&6; }
8265   case $host in
8266   *-*-mingw*)
8267     # gcc leaves a trailing carriage return, which upsets mingw
8268     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8269   *)
8270     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8271   esac
8272   case $ac_prog in
8273     # Accept absolute paths.
8274     [\\/]* | ?:[\\/]*)
8275       re_direlt='/[^/][^/]*/\.\./'
8276       # Canonicalize the pathname of ld
8277       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8278       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8279         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8280       done
8281       test -z "$LD" && LD=$ac_prog
8282       ;;
8283   "")
8284     # If it fails, then pretend we aren't using GCC.
8285     ac_prog=ld
8286     ;;
8287   *)
8288     # If it is relative, then search for the first ld in PATH.
8289     with_gnu_ld=unknown
8290     ;;
8291   esac
8292 elif test yes = "$with_gnu_ld"; then
8293   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8294 printf %s "checking for GNU ld... " >&6; }
8295 else
8296   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8297 printf %s "checking for non-GNU ld... " >&6; }
8298 fi
8299 if test ${lt_cv_path_LD+y}
8300 then :
8301   printf %s "(cached) " >&6
8302 else $as_nop
8303   if test -z "$LD"; then
8304   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8305   for ac_dir in $PATH; do
8306     IFS=$lt_save_ifs
8307     test -z "$ac_dir" && ac_dir=.
8308     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8309       lt_cv_path_LD=$ac_dir/$ac_prog
8310       # Check to see if the program is GNU ld.  I'd rather use --version,
8311       # but apparently some variants of GNU ld only accept -v.
8312       # Break only if it was the GNU/non-GNU ld that we prefer.
8313       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8314       *GNU* | *'with BFD'*)
8315         test no != "$with_gnu_ld" && break
8316         ;;
8317       *)
8318         test yes != "$with_gnu_ld" && break
8319         ;;
8320       esac
8321     fi
8322   done
8323   IFS=$lt_save_ifs
8324 else
8325   lt_cv_path_LD=$LD # Let the user override the test with a path.
8326 fi
8327 fi
8328
8329 LD=$lt_cv_path_LD
8330 if test -n "$LD"; then
8331   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8332 printf "%s\n" "$LD" >&6; }
8333 else
8334   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8335 printf "%s\n" "no" >&6; }
8336 fi
8337 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8339 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8340 if test ${lt_cv_prog_gnu_ld+y}
8341 then :
8342   printf %s "(cached) " >&6
8343 else $as_nop
8344   # I'd rather use --version here, but apparently some GNU lds only accept -v.
8345 case `$LD -v 2>&1 </dev/null` in
8346 *GNU* | *'with BFD'*)
8347   lt_cv_prog_gnu_ld=yes
8348   ;;
8349 *)
8350   lt_cv_prog_gnu_ld=no
8351   ;;
8352 esac
8353 fi
8354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8355 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
8356 with_gnu_ld=$lt_cv_prog_gnu_ld
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8367 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8368 if test ${lt_cv_path_NM+y}
8369 then :
8370   printf %s "(cached) " >&6
8371 else $as_nop
8372   if test -n "$NM"; then
8373   # Let the user override the test.
8374   lt_cv_path_NM=$NM
8375 else
8376   lt_nm_to_check=${ac_tool_prefix}nm
8377   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8378     lt_nm_to_check="$lt_nm_to_check nm"
8379   fi
8380   for lt_tmp_nm in $lt_nm_to_check; do
8381     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8382     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8383       IFS=$lt_save_ifs
8384       test -z "$ac_dir" && ac_dir=.
8385       tmp_nm=$ac_dir/$lt_tmp_nm
8386       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8387         # Check to see if the nm accepts a BSD-compat flag.
8388         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8389         #   nm: unknown option "B" ignored
8390         # Tru64's nm complains that /dev/null is an invalid object file
8391         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8392         case $build_os in
8393         mingw*) lt_bad_file=conftest.nm/nofile ;;
8394         *) lt_bad_file=/dev/null ;;
8395         esac
8396         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
8397         *$lt_bad_file* | *'Invalid file or object type'*)
8398           lt_cv_path_NM="$tmp_nm -B"
8399           break 2
8400           ;;
8401         *)
8402           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8403           */dev/null*)
8404             lt_cv_path_NM="$tmp_nm -p"
8405             break 2
8406             ;;
8407           *)
8408             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8409             continue # so that we can try to find one that supports BSD flags
8410             ;;
8411           esac
8412           ;;
8413         esac
8414       fi
8415     done
8416     IFS=$lt_save_ifs
8417   done
8418   : ${lt_cv_path_NM=no}
8419 fi
8420 fi
8421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8422 printf "%s\n" "$lt_cv_path_NM" >&6; }
8423 if test no != "$lt_cv_path_NM"; then
8424   NM=$lt_cv_path_NM
8425 else
8426   # Didn't find any BSD compatible name lister, look for dumpbin.
8427   if test -n "$DUMPBIN"; then :
8428     # Let the user override the test.
8429   else
8430     if test -n "$ac_tool_prefix"; then
8431   for ac_prog in dumpbin "link -dump"
8432   do
8433     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8434 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8436 printf %s "checking for $ac_word... " >&6; }
8437 if test ${ac_cv_prog_DUMPBIN+y}
8438 then :
8439   printf %s "(cached) " >&6
8440 else $as_nop
8441   if test -n "$DUMPBIN"; then
8442   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8443 else
8444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8445 for as_dir in $PATH
8446 do
8447   IFS=$as_save_IFS
8448   case $as_dir in #(((
8449     '') as_dir=./ ;;
8450     */) ;;
8451     *) as_dir=$as_dir/ ;;
8452   esac
8453     for ac_exec_ext in '' $ac_executable_extensions; do
8454   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8455     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8456     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8457     break 2
8458   fi
8459 done
8460   done
8461 IFS=$as_save_IFS
8462
8463 fi
8464 fi
8465 DUMPBIN=$ac_cv_prog_DUMPBIN
8466 if test -n "$DUMPBIN"; then
8467   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8468 printf "%s\n" "$DUMPBIN" >&6; }
8469 else
8470   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8471 printf "%s\n" "no" >&6; }
8472 fi
8473
8474
8475     test -n "$DUMPBIN" && break
8476   done
8477 fi
8478 if test -z "$DUMPBIN"; then
8479   ac_ct_DUMPBIN=$DUMPBIN
8480   for ac_prog in dumpbin "link -dump"
8481 do
8482   # Extract the first word of "$ac_prog", so it can be a program name with args.
8483 set dummy $ac_prog; ac_word=$2
8484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8485 printf %s "checking for $ac_word... " >&6; }
8486 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
8487 then :
8488   printf %s "(cached) " >&6
8489 else $as_nop
8490   if test -n "$ac_ct_DUMPBIN"; then
8491   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8492 else
8493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494 for as_dir in $PATH
8495 do
8496   IFS=$as_save_IFS
8497   case $as_dir in #(((
8498     '') as_dir=./ ;;
8499     */) ;;
8500     *) as_dir=$as_dir/ ;;
8501   esac
8502     for ac_exec_ext in '' $ac_executable_extensions; do
8503   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8504     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8505     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8506     break 2
8507   fi
8508 done
8509   done
8510 IFS=$as_save_IFS
8511
8512 fi
8513 fi
8514 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8515 if test -n "$ac_ct_DUMPBIN"; then
8516   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8517 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
8518 else
8519   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8520 printf "%s\n" "no" >&6; }
8521 fi
8522
8523
8524   test -n "$ac_ct_DUMPBIN" && break
8525 done
8526
8527   if test "x$ac_ct_DUMPBIN" = x; then
8528     DUMPBIN=":"
8529   else
8530     case $cross_compiling:$ac_tool_warned in
8531 yes:)
8532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8533 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8534 ac_tool_warned=yes ;;
8535 esac
8536     DUMPBIN=$ac_ct_DUMPBIN
8537   fi
8538 fi
8539
8540     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8541     *COFF*)
8542       DUMPBIN="$DUMPBIN -symbols -headers"
8543       ;;
8544     *)
8545       DUMPBIN=:
8546       ;;
8547     esac
8548   fi
8549
8550   if test : != "$DUMPBIN"; then
8551     NM=$DUMPBIN
8552   fi
8553 fi
8554 test -z "$NM" && NM=nm
8555
8556
8557
8558
8559
8560
8561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8562 printf %s "checking the name lister ($NM) interface... " >&6; }
8563 if test ${lt_cv_nm_interface+y}
8564 then :
8565   printf %s "(cached) " >&6
8566 else $as_nop
8567   lt_cv_nm_interface="BSD nm"
8568   echo "int some_variable = 0;" > conftest.$ac_ext
8569   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8570   (eval "$ac_compile" 2>conftest.err)
8571   cat conftest.err >&5
8572   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8573   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8574   cat conftest.err >&5
8575   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8576   cat conftest.out >&5
8577   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8578     lt_cv_nm_interface="MS dumpbin"
8579   fi
8580   rm -f conftest*
8581 fi
8582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8583 printf "%s\n" "$lt_cv_nm_interface" >&6; }
8584
8585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8586 printf %s "checking whether ln -s works... " >&6; }
8587 LN_S=$as_ln_s
8588 if test "$LN_S" = "ln -s"; then
8589   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8590 printf "%s\n" "yes" >&6; }
8591 else
8592   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8593 printf "%s\n" "no, using $LN_S" >&6; }
8594 fi
8595
8596 # find the maximum length of command line arguments
8597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8598 printf %s "checking the maximum length of command line arguments... " >&6; }
8599 if test ${lt_cv_sys_max_cmd_len+y}
8600 then :
8601   printf %s "(cached) " >&6
8602 else $as_nop
8603     i=0
8604   teststring=ABCD
8605
8606   case $build_os in
8607   msdosdjgpp*)
8608     # On DJGPP, this test can blow up pretty badly due to problems in libc
8609     # (any single argument exceeding 2000 bytes causes a buffer overrun
8610     # during glob expansion).  Even if it were fixed, the result of this
8611     # check would be larger than it should be.
8612     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8613     ;;
8614
8615   gnu*)
8616     # Under GNU Hurd, this test is not required because there is
8617     # no limit to the length of command line arguments.
8618     # Libtool will interpret -1 as no limit whatsoever
8619     lt_cv_sys_max_cmd_len=-1;
8620     ;;
8621
8622   cygwin* | mingw* | cegcc*)
8623     # On Win9x/ME, this test blows up -- it succeeds, but takes
8624     # about 5 minutes as the teststring grows exponentially.
8625     # Worse, since 9x/ME are not pre-emptively multitasking,
8626     # you end up with a "frozen" computer, even though with patience
8627     # the test eventually succeeds (with a max line length of 256k).
8628     # Instead, let's just punt: use the minimum linelength reported by
8629     # all of the supported platforms: 8192 (on NT/2K/XP).
8630     lt_cv_sys_max_cmd_len=8192;
8631     ;;
8632
8633   mint*)
8634     # On MiNT this can take a long time and run out of memory.
8635     lt_cv_sys_max_cmd_len=8192;
8636     ;;
8637
8638   amigaos*)
8639     # On AmigaOS with pdksh, this test takes hours, literally.
8640     # So we just punt and use a minimum line length of 8192.
8641     lt_cv_sys_max_cmd_len=8192;
8642     ;;
8643
8644   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8645     # This has been around since 386BSD, at least.  Likely further.
8646     if test -x /sbin/sysctl; then
8647       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8648     elif test -x /usr/sbin/sysctl; then
8649       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8650     else
8651       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8652     fi
8653     # And add a safety zone
8654     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8655     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8656     ;;
8657
8658   interix*)
8659     # We know the value 262144 and hardcode it with a safety zone (like BSD)
8660     lt_cv_sys_max_cmd_len=196608
8661     ;;
8662
8663   os2*)
8664     # The test takes a long time on OS/2.
8665     lt_cv_sys_max_cmd_len=8192
8666     ;;
8667
8668   osf*)
8669     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8670     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8671     # nice to cause kernel panics so lets avoid the loop below.
8672     # First set a reasonable default.
8673     lt_cv_sys_max_cmd_len=16384
8674     #
8675     if test -x /sbin/sysconfig; then
8676       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8677         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8678       esac
8679     fi
8680     ;;
8681   sco3.2v5*)
8682     lt_cv_sys_max_cmd_len=102400
8683     ;;
8684   sysv5* | sco5v6* | sysv4.2uw2*)
8685     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8686     if test -n "$kargmax"; then
8687       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
8688     else
8689       lt_cv_sys_max_cmd_len=32768
8690     fi
8691     ;;
8692   *)
8693     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8694     if test -n "$lt_cv_sys_max_cmd_len" && \
8695        test undefined != "$lt_cv_sys_max_cmd_len"; then
8696       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8697       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8698     else
8699       # Make teststring a little bigger before we do anything with it.
8700       # a 1K string should be a reasonable start.
8701       for i in 1 2 3 4 5 6 7 8; do
8702         teststring=$teststring$teststring
8703       done
8704       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8705       # If test is not a shell built-in, we'll probably end up computing a
8706       # maximum length that is only half of the actual maximum length, but
8707       # we can't tell.
8708       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8709                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8710               test 17 != "$i" # 1/2 MB should be enough
8711       do
8712         i=`expr $i + 1`
8713         teststring=$teststring$teststring
8714       done
8715       # Only check the string length outside the loop.
8716       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8717       teststring=
8718       # Add a significant safety factor because C++ compilers can tack on
8719       # massive amounts of additional arguments before passing them to the
8720       # linker.  It appears as though 1/2 is a usable value.
8721       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8722     fi
8723     ;;
8724   esac
8725
8726 fi
8727
8728 if test -n "$lt_cv_sys_max_cmd_len"; then
8729   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8730 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
8731 else
8732   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8733 printf "%s\n" "none" >&6; }
8734 fi
8735 max_cmd_len=$lt_cv_sys_max_cmd_len
8736
8737
8738
8739
8740
8741
8742 : ${CP="cp -f"}
8743 : ${MV="mv -f"}
8744 : ${RM="rm -f"}
8745
8746 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8747   lt_unset=unset
8748 else
8749   lt_unset=false
8750 fi
8751
8752
8753
8754
8755
8756 # test EBCDIC or ASCII
8757 case `echo X|tr X '\101'` in
8758  A) # ASCII based system
8759     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8760   lt_SP2NL='tr \040 \012'
8761   lt_NL2SP='tr \015\012 \040\040'
8762   ;;
8763  *) # EBCDIC based system
8764   lt_SP2NL='tr \100 \n'
8765   lt_NL2SP='tr \r\n \100\100'
8766   ;;
8767 esac
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8778 printf %s "checking how to convert $build file names to $host format... " >&6; }
8779 if test ${lt_cv_to_host_file_cmd+y}
8780 then :
8781   printf %s "(cached) " >&6
8782 else $as_nop
8783   case $host in
8784   *-*-mingw* )
8785     case $build in
8786       *-*-mingw* ) # actually msys
8787         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8788         ;;
8789       *-*-cygwin* )
8790         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8791         ;;
8792       * ) # otherwise, assume *nix
8793         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8794         ;;
8795     esac
8796     ;;
8797   *-*-cygwin* )
8798     case $build in
8799       *-*-mingw* ) # actually msys
8800         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8801         ;;
8802       *-*-cygwin* )
8803         lt_cv_to_host_file_cmd=func_convert_file_noop
8804         ;;
8805       * ) # otherwise, assume *nix
8806         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8807         ;;
8808     esac
8809     ;;
8810   * ) # unhandled hosts (and "normal" native builds)
8811     lt_cv_to_host_file_cmd=func_convert_file_noop
8812     ;;
8813 esac
8814
8815 fi
8816
8817 to_host_file_cmd=$lt_cv_to_host_file_cmd
8818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8819 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
8820
8821
8822
8823
8824
8825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8826 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
8827 if test ${lt_cv_to_tool_file_cmd+y}
8828 then :
8829   printf %s "(cached) " >&6
8830 else $as_nop
8831   #assume ordinary cross tools, or native build.
8832 lt_cv_to_tool_file_cmd=func_convert_file_noop
8833 case $host in
8834   *-*-mingw* )
8835     case $build in
8836       *-*-mingw* ) # actually msys
8837         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8838         ;;
8839     esac
8840     ;;
8841 esac
8842
8843 fi
8844
8845 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8847 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
8848
8849
8850
8851
8852
8853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8854 printf %s "checking for $LD option to reload object files... " >&6; }
8855 if test ${lt_cv_ld_reload_flag+y}
8856 then :
8857   printf %s "(cached) " >&6
8858 else $as_nop
8859   lt_cv_ld_reload_flag='-r'
8860 fi
8861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8862 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
8863 reload_flag=$lt_cv_ld_reload_flag
8864 case $reload_flag in
8865 "" | " "*) ;;
8866 *) reload_flag=" $reload_flag" ;;
8867 esac
8868 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8869 case $host_os in
8870   cygwin* | mingw* | pw32* | cegcc*)
8871     if test yes != "$GCC"; then
8872       reload_cmds=false
8873     fi
8874     ;;
8875   darwin*)
8876     if test yes = "$GCC"; then
8877       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8878     else
8879       reload_cmds='$LD$reload_flag -o $output$reload_objs'
8880     fi
8881     ;;
8882 esac
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892 if test -n "$ac_tool_prefix"; then
8893   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8894 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8896 printf %s "checking for $ac_word... " >&6; }
8897 if test ${ac_cv_prog_OBJDUMP+y}
8898 then :
8899   printf %s "(cached) " >&6
8900 else $as_nop
8901   if test -n "$OBJDUMP"; then
8902   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8903 else
8904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8905 for as_dir in $PATH
8906 do
8907   IFS=$as_save_IFS
8908   case $as_dir in #(((
8909     '') as_dir=./ ;;
8910     */) ;;
8911     *) as_dir=$as_dir/ ;;
8912   esac
8913     for ac_exec_ext in '' $ac_executable_extensions; do
8914   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8915     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8916     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8917     break 2
8918   fi
8919 done
8920   done
8921 IFS=$as_save_IFS
8922
8923 fi
8924 fi
8925 OBJDUMP=$ac_cv_prog_OBJDUMP
8926 if test -n "$OBJDUMP"; then
8927   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8928 printf "%s\n" "$OBJDUMP" >&6; }
8929 else
8930   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8931 printf "%s\n" "no" >&6; }
8932 fi
8933
8934
8935 fi
8936 if test -z "$ac_cv_prog_OBJDUMP"; then
8937   ac_ct_OBJDUMP=$OBJDUMP
8938   # Extract the first word of "objdump", so it can be a program name with args.
8939 set dummy objdump; ac_word=$2
8940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8941 printf %s "checking for $ac_word... " >&6; }
8942 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8943 then :
8944   printf %s "(cached) " >&6
8945 else $as_nop
8946   if test -n "$ac_ct_OBJDUMP"; then
8947   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8948 else
8949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8950 for as_dir in $PATH
8951 do
8952   IFS=$as_save_IFS
8953   case $as_dir in #(((
8954     '') as_dir=./ ;;
8955     */) ;;
8956     *) as_dir=$as_dir/ ;;
8957   esac
8958     for ac_exec_ext in '' $ac_executable_extensions; do
8959   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8960     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8961     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8962     break 2
8963   fi
8964 done
8965   done
8966 IFS=$as_save_IFS
8967
8968 fi
8969 fi
8970 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8971 if test -n "$ac_ct_OBJDUMP"; then
8972   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8973 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
8974 else
8975   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8976 printf "%s\n" "no" >&6; }
8977 fi
8978
8979   if test "x$ac_ct_OBJDUMP" = x; then
8980     OBJDUMP="false"
8981   else
8982     case $cross_compiling:$ac_tool_warned in
8983 yes:)
8984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8985 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8986 ac_tool_warned=yes ;;
8987 esac
8988     OBJDUMP=$ac_ct_OBJDUMP
8989   fi
8990 else
8991   OBJDUMP="$ac_cv_prog_OBJDUMP"
8992 fi
8993
8994 test -z "$OBJDUMP" && OBJDUMP=objdump
8995
8996
8997
8998
8999
9000
9001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9002 printf %s "checking how to recognize dependent libraries... " >&6; }
9003 if test ${lt_cv_deplibs_check_method+y}
9004 then :
9005   printf %s "(cached) " >&6
9006 else $as_nop
9007   lt_cv_file_magic_cmd='$MAGIC_CMD'
9008 lt_cv_file_magic_test_file=
9009 lt_cv_deplibs_check_method='unknown'
9010 # Need to set the preceding variable on all platforms that support
9011 # interlibrary dependencies.
9012 # 'none' -- dependencies not supported.
9013 # 'unknown' -- same as none, but documents that we really don't know.
9014 # 'pass_all' -- all dependencies passed with no checks.
9015 # 'test_compile' -- check by making test program.
9016 # 'file_magic [[regex]]' -- check by looking for files in library path
9017 # that responds to the $file_magic_cmd with a given extended regex.
9018 # If you have 'file' or equivalent on your system and you're not sure
9019 # whether 'pass_all' will *always* work, you probably want this one.
9020
9021 case $host_os in
9022 aix[4-9]*)
9023   lt_cv_deplibs_check_method=pass_all
9024   ;;
9025
9026 beos*)
9027   lt_cv_deplibs_check_method=pass_all
9028   ;;
9029
9030 bsdi[45]*)
9031   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9032   lt_cv_file_magic_cmd='/usr/bin/file -L'
9033   lt_cv_file_magic_test_file=/shlib/libc.so
9034   ;;
9035
9036 cygwin*)
9037   # func_win32_libid is a shell function defined in ltmain.sh
9038   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9039   lt_cv_file_magic_cmd='func_win32_libid'
9040   ;;
9041
9042 mingw* | pw32*)
9043   # Base MSYS/MinGW do not provide the 'file' command needed by
9044   # func_win32_libid shell function, so use a weaker test based on 'objdump',
9045   # unless we find 'file', for example because we are cross-compiling.
9046   if ( file / ) >/dev/null 2>&1; then
9047     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9048     lt_cv_file_magic_cmd='func_win32_libid'
9049   else
9050     # Keep this pattern in sync with the one in func_win32_libid.
9051     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9052     lt_cv_file_magic_cmd='$OBJDUMP -f'
9053   fi
9054   ;;
9055
9056 cegcc*)
9057   # use the weaker test based on 'objdump'. See mingw*.
9058   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9059   lt_cv_file_magic_cmd='$OBJDUMP -f'
9060   ;;
9061
9062 darwin* | rhapsody*)
9063   lt_cv_deplibs_check_method=pass_all
9064   ;;
9065
9066 freebsd* | dragonfly*)
9067   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9068     case $host_cpu in
9069     i*86 )
9070       # Not sure whether the presence of OpenBSD here was a mistake.
9071       # Let's accept both of them until this is cleared up.
9072       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9073       lt_cv_file_magic_cmd=/usr/bin/file
9074       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9075       ;;
9076     esac
9077   else
9078     lt_cv_deplibs_check_method=pass_all
9079   fi
9080   ;;
9081
9082 haiku*)
9083   lt_cv_deplibs_check_method=pass_all
9084   ;;
9085
9086 hpux10.20* | hpux11*)
9087   lt_cv_file_magic_cmd=/usr/bin/file
9088   case $host_cpu in
9089   ia64*)
9090     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9091     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9092     ;;
9093   hppa*64*)
9094     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]'
9095     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9096     ;;
9097   *)
9098     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9099     lt_cv_file_magic_test_file=/usr/lib/libc.sl
9100     ;;
9101   esac
9102   ;;
9103
9104 interix[3-9]*)
9105   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9106   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9107   ;;
9108
9109 irix5* | irix6* | nonstopux*)
9110   case $LD in
9111   *-32|*"-32 ") libmagic=32-bit;;
9112   *-n32|*"-n32 ") libmagic=N32;;
9113   *-64|*"-64 ") libmagic=64-bit;;
9114   *) libmagic=never-match;;
9115   esac
9116   lt_cv_deplibs_check_method=pass_all
9117   ;;
9118
9119 # This must be glibc/ELF.
9120 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9121   lt_cv_deplibs_check_method=pass_all
9122   ;;
9123
9124 netbsd* | netbsdelf*-gnu)
9125   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9126     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9127   else
9128     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9129   fi
9130   ;;
9131
9132 newos6*)
9133   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9134   lt_cv_file_magic_cmd=/usr/bin/file
9135   lt_cv_file_magic_test_file=/usr/lib/libnls.so
9136   ;;
9137
9138 *nto* | *qnx*)
9139   lt_cv_deplibs_check_method=pass_all
9140   ;;
9141
9142 openbsd* | bitrig*)
9143   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9144     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9145   else
9146     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9147   fi
9148   ;;
9149
9150 osf3* | osf4* | osf5*)
9151   lt_cv_deplibs_check_method=pass_all
9152   ;;
9153
9154 rdos*)
9155   lt_cv_deplibs_check_method=pass_all
9156   ;;
9157
9158 solaris*)
9159   lt_cv_deplibs_check_method=pass_all
9160   ;;
9161
9162 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9163   lt_cv_deplibs_check_method=pass_all
9164   ;;
9165
9166 sysv4 | sysv4.3*)
9167   case $host_vendor in
9168   motorola)
9169     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]'
9170     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9171     ;;
9172   ncr)
9173     lt_cv_deplibs_check_method=pass_all
9174     ;;
9175   sequent)
9176     lt_cv_file_magic_cmd='/bin/file'
9177     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9178     ;;
9179   sni)
9180     lt_cv_file_magic_cmd='/bin/file'
9181     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9182     lt_cv_file_magic_test_file=/lib/libc.so
9183     ;;
9184   siemens)
9185     lt_cv_deplibs_check_method=pass_all
9186     ;;
9187   pc)
9188     lt_cv_deplibs_check_method=pass_all
9189     ;;
9190   esac
9191   ;;
9192
9193 tpf*)
9194   lt_cv_deplibs_check_method=pass_all
9195   ;;
9196 os2*)
9197   lt_cv_deplibs_check_method=pass_all
9198   ;;
9199 esac
9200
9201 fi
9202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9203 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
9204
9205 file_magic_glob=
9206 want_nocaseglob=no
9207 if test "$build" = "$host"; then
9208   case $host_os in
9209   mingw* | pw32*)
9210     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9211       want_nocaseglob=yes
9212     else
9213       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9214     fi
9215     ;;
9216   esac
9217 fi
9218
9219 file_magic_cmd=$lt_cv_file_magic_cmd
9220 deplibs_check_method=$lt_cv_deplibs_check_method
9221 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244 if test -n "$ac_tool_prefix"; then
9245   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9246 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9248 printf %s "checking for $ac_word... " >&6; }
9249 if test ${ac_cv_prog_DLLTOOL+y}
9250 then :
9251   printf %s "(cached) " >&6
9252 else $as_nop
9253   if test -n "$DLLTOOL"; then
9254   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9255 else
9256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9257 for as_dir in $PATH
9258 do
9259   IFS=$as_save_IFS
9260   case $as_dir in #(((
9261     '') as_dir=./ ;;
9262     */) ;;
9263     *) as_dir=$as_dir/ ;;
9264   esac
9265     for ac_exec_ext in '' $ac_executable_extensions; do
9266   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9267     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9268     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9269     break 2
9270   fi
9271 done
9272   done
9273 IFS=$as_save_IFS
9274
9275 fi
9276 fi
9277 DLLTOOL=$ac_cv_prog_DLLTOOL
9278 if test -n "$DLLTOOL"; then
9279   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9280 printf "%s\n" "$DLLTOOL" >&6; }
9281 else
9282   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9283 printf "%s\n" "no" >&6; }
9284 fi
9285
9286
9287 fi
9288 if test -z "$ac_cv_prog_DLLTOOL"; then
9289   ac_ct_DLLTOOL=$DLLTOOL
9290   # Extract the first word of "dlltool", so it can be a program name with args.
9291 set dummy dlltool; ac_word=$2
9292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9293 printf %s "checking for $ac_word... " >&6; }
9294 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9295 then :
9296   printf %s "(cached) " >&6
9297 else $as_nop
9298   if test -n "$ac_ct_DLLTOOL"; then
9299   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9300 else
9301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9302 for as_dir in $PATH
9303 do
9304   IFS=$as_save_IFS
9305   case $as_dir in #(((
9306     '') as_dir=./ ;;
9307     */) ;;
9308     *) as_dir=$as_dir/ ;;
9309   esac
9310     for ac_exec_ext in '' $ac_executable_extensions; do
9311   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9312     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9313     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9314     break 2
9315   fi
9316 done
9317   done
9318 IFS=$as_save_IFS
9319
9320 fi
9321 fi
9322 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9323 if test -n "$ac_ct_DLLTOOL"; then
9324   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9325 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9326 else
9327   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9328 printf "%s\n" "no" >&6; }
9329 fi
9330
9331   if test "x$ac_ct_DLLTOOL" = x; then
9332     DLLTOOL="false"
9333   else
9334     case $cross_compiling:$ac_tool_warned in
9335 yes:)
9336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9337 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9338 ac_tool_warned=yes ;;
9339 esac
9340     DLLTOOL=$ac_ct_DLLTOOL
9341   fi
9342 else
9343   DLLTOOL="$ac_cv_prog_DLLTOOL"
9344 fi
9345
9346 test -z "$DLLTOOL" && DLLTOOL=dlltool
9347
9348
9349
9350
9351
9352
9353
9354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9355 printf %s "checking how to associate runtime and link libraries... " >&6; }
9356 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
9357 then :
9358   printf %s "(cached) " >&6
9359 else $as_nop
9360   lt_cv_sharedlib_from_linklib_cmd='unknown'
9361
9362 case $host_os in
9363 cygwin* | mingw* | pw32* | cegcc*)
9364   # two different shell functions defined in ltmain.sh;
9365   # decide which one to use based on capabilities of $DLLTOOL
9366   case `$DLLTOOL --help 2>&1` in
9367   *--identify-strict*)
9368     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9369     ;;
9370   *)
9371     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9372     ;;
9373   esac
9374   ;;
9375 *)
9376   # fallback: assume linklib IS sharedlib
9377   lt_cv_sharedlib_from_linklib_cmd=$ECHO
9378   ;;
9379 esac
9380
9381 fi
9382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9383 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9384 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9385 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9386
9387
9388
9389
9390
9391
9392
9393 if test -n "$ac_tool_prefix"; then
9394   for ac_prog in ar
9395   do
9396     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9397 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9399 printf %s "checking for $ac_word... " >&6; }
9400 if test ${ac_cv_prog_AR+y}
9401 then :
9402   printf %s "(cached) " >&6
9403 else $as_nop
9404   if test -n "$AR"; then
9405   ac_cv_prog_AR="$AR" # Let the user override the test.
9406 else
9407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9408 for as_dir in $PATH
9409 do
9410   IFS=$as_save_IFS
9411   case $as_dir in #(((
9412     '') as_dir=./ ;;
9413     */) ;;
9414     *) as_dir=$as_dir/ ;;
9415   esac
9416     for ac_exec_ext in '' $ac_executable_extensions; do
9417   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9418     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9419     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9420     break 2
9421   fi
9422 done
9423   done
9424 IFS=$as_save_IFS
9425
9426 fi
9427 fi
9428 AR=$ac_cv_prog_AR
9429 if test -n "$AR"; then
9430   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9431 printf "%s\n" "$AR" >&6; }
9432 else
9433   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9434 printf "%s\n" "no" >&6; }
9435 fi
9436
9437
9438     test -n "$AR" && break
9439   done
9440 fi
9441 if test -z "$AR"; then
9442   ac_ct_AR=$AR
9443   for ac_prog in ar
9444 do
9445   # Extract the first word of "$ac_prog", so it can be a program name with args.
9446 set dummy $ac_prog; ac_word=$2
9447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9448 printf %s "checking for $ac_word... " >&6; }
9449 if test ${ac_cv_prog_ac_ct_AR+y}
9450 then :
9451   printf %s "(cached) " >&6
9452 else $as_nop
9453   if test -n "$ac_ct_AR"; then
9454   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9455 else
9456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9457 for as_dir in $PATH
9458 do
9459   IFS=$as_save_IFS
9460   case $as_dir in #(((
9461     '') as_dir=./ ;;
9462     */) ;;
9463     *) as_dir=$as_dir/ ;;
9464   esac
9465     for ac_exec_ext in '' $ac_executable_extensions; do
9466   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9467     ac_cv_prog_ac_ct_AR="$ac_prog"
9468     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9469     break 2
9470   fi
9471 done
9472   done
9473 IFS=$as_save_IFS
9474
9475 fi
9476 fi
9477 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9478 if test -n "$ac_ct_AR"; then
9479   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9480 printf "%s\n" "$ac_ct_AR" >&6; }
9481 else
9482   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9483 printf "%s\n" "no" >&6; }
9484 fi
9485
9486
9487   test -n "$ac_ct_AR" && break
9488 done
9489
9490   if test "x$ac_ct_AR" = x; then
9491     AR="false"
9492   else
9493     case $cross_compiling:$ac_tool_warned in
9494 yes:)
9495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9496 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9497 ac_tool_warned=yes ;;
9498 esac
9499     AR=$ac_ct_AR
9500   fi
9501 fi
9502
9503 : ${AR=ar}
9504 : ${AR_FLAGS=cr}
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9517 printf %s "checking for archiver @FILE support... " >&6; }
9518 if test ${lt_cv_ar_at_file+y}
9519 then :
9520   printf %s "(cached) " >&6
9521 else $as_nop
9522   lt_cv_ar_at_file=no
9523    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9524 /* end confdefs.h.  */
9525
9526 int main (void)
9527 {
9528
9529  ;
9530  return 0;
9531 }
9532 _ACEOF
9533 if ac_fn_c_try_compile "$LINENO"
9534 then :
9535   echo conftest.$ac_objext > conftest.lst
9536       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9537       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9538   (eval $lt_ar_try) 2>&5
9539   ac_status=$?
9540   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9541   test $ac_status = 0; }
9542       if test 0 -eq "$ac_status"; then
9543         # Ensure the archiver fails upon bogus file names.
9544         rm -f conftest.$ac_objext libconftest.a
9545         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9546   (eval $lt_ar_try) 2>&5
9547   ac_status=$?
9548   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9549   test $ac_status = 0; }
9550         if test 0 -ne "$ac_status"; then
9551           lt_cv_ar_at_file=@
9552         fi
9553       fi
9554       rm -f conftest.* libconftest.a
9555
9556 fi
9557 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9558
9559 fi
9560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9561 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
9562
9563 if test no = "$lt_cv_ar_at_file"; then
9564   archiver_list_spec=
9565 else
9566   archiver_list_spec=$lt_cv_ar_at_file
9567 fi
9568
9569
9570
9571
9572
9573
9574
9575 if test -n "$ac_tool_prefix"; then
9576   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9577 set dummy ${ac_tool_prefix}strip; ac_word=$2
9578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9579 printf %s "checking for $ac_word... " >&6; }
9580 if test ${ac_cv_prog_STRIP+y}
9581 then :
9582   printf %s "(cached) " >&6
9583 else $as_nop
9584   if test -n "$STRIP"; then
9585   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9586 else
9587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9588 for as_dir in $PATH
9589 do
9590   IFS=$as_save_IFS
9591   case $as_dir in #(((
9592     '') as_dir=./ ;;
9593     */) ;;
9594     *) as_dir=$as_dir/ ;;
9595   esac
9596     for ac_exec_ext in '' $ac_executable_extensions; do
9597   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9598     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9599     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9600     break 2
9601   fi
9602 done
9603   done
9604 IFS=$as_save_IFS
9605
9606 fi
9607 fi
9608 STRIP=$ac_cv_prog_STRIP
9609 if test -n "$STRIP"; then
9610   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9611 printf "%s\n" "$STRIP" >&6; }
9612 else
9613   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9614 printf "%s\n" "no" >&6; }
9615 fi
9616
9617
9618 fi
9619 if test -z "$ac_cv_prog_STRIP"; then
9620   ac_ct_STRIP=$STRIP
9621   # Extract the first word of "strip", so it can be a program name with args.
9622 set dummy strip; ac_word=$2
9623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9624 printf %s "checking for $ac_word... " >&6; }
9625 if test ${ac_cv_prog_ac_ct_STRIP+y}
9626 then :
9627   printf %s "(cached) " >&6
9628 else $as_nop
9629   if test -n "$ac_ct_STRIP"; then
9630   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9631 else
9632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9633 for as_dir in $PATH
9634 do
9635   IFS=$as_save_IFS
9636   case $as_dir in #(((
9637     '') as_dir=./ ;;
9638     */) ;;
9639     *) as_dir=$as_dir/ ;;
9640   esac
9641     for ac_exec_ext in '' $ac_executable_extensions; do
9642   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9643     ac_cv_prog_ac_ct_STRIP="strip"
9644     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9645     break 2
9646   fi
9647 done
9648   done
9649 IFS=$as_save_IFS
9650
9651 fi
9652 fi
9653 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9654 if test -n "$ac_ct_STRIP"; then
9655   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9656 printf "%s\n" "$ac_ct_STRIP" >&6; }
9657 else
9658   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9659 printf "%s\n" "no" >&6; }
9660 fi
9661
9662   if test "x$ac_ct_STRIP" = x; then
9663     STRIP=":"
9664   else
9665     case $cross_compiling:$ac_tool_warned in
9666 yes:)
9667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9668 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9669 ac_tool_warned=yes ;;
9670 esac
9671     STRIP=$ac_ct_STRIP
9672   fi
9673 else
9674   STRIP="$ac_cv_prog_STRIP"
9675 fi
9676
9677 test -z "$STRIP" && STRIP=:
9678
9679
9680
9681
9682
9683
9684 if test -n "$ac_tool_prefix"; then
9685   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9686 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9688 printf %s "checking for $ac_word... " >&6; }
9689 if test ${ac_cv_prog_RANLIB+y}
9690 then :
9691   printf %s "(cached) " >&6
9692 else $as_nop
9693   if test -n "$RANLIB"; then
9694   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9695 else
9696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9697 for as_dir in $PATH
9698 do
9699   IFS=$as_save_IFS
9700   case $as_dir in #(((
9701     '') as_dir=./ ;;
9702     */) ;;
9703     *) as_dir=$as_dir/ ;;
9704   esac
9705     for ac_exec_ext in '' $ac_executable_extensions; do
9706   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9707     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9708     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9709     break 2
9710   fi
9711 done
9712   done
9713 IFS=$as_save_IFS
9714
9715 fi
9716 fi
9717 RANLIB=$ac_cv_prog_RANLIB
9718 if test -n "$RANLIB"; then
9719   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9720 printf "%s\n" "$RANLIB" >&6; }
9721 else
9722   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9723 printf "%s\n" "no" >&6; }
9724 fi
9725
9726
9727 fi
9728 if test -z "$ac_cv_prog_RANLIB"; then
9729   ac_ct_RANLIB=$RANLIB
9730   # Extract the first word of "ranlib", so it can be a program name with args.
9731 set dummy ranlib; ac_word=$2
9732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9733 printf %s "checking for $ac_word... " >&6; }
9734 if test ${ac_cv_prog_ac_ct_RANLIB+y}
9735 then :
9736   printf %s "(cached) " >&6
9737 else $as_nop
9738   if test -n "$ac_ct_RANLIB"; then
9739   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9740 else
9741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9742 for as_dir in $PATH
9743 do
9744   IFS=$as_save_IFS
9745   case $as_dir in #(((
9746     '') as_dir=./ ;;
9747     */) ;;
9748     *) as_dir=$as_dir/ ;;
9749   esac
9750     for ac_exec_ext in '' $ac_executable_extensions; do
9751   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9752     ac_cv_prog_ac_ct_RANLIB="ranlib"
9753     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9754     break 2
9755   fi
9756 done
9757   done
9758 IFS=$as_save_IFS
9759
9760 fi
9761 fi
9762 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9763 if test -n "$ac_ct_RANLIB"; then
9764   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9765 printf "%s\n" "$ac_ct_RANLIB" >&6; }
9766 else
9767   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9768 printf "%s\n" "no" >&6; }
9769 fi
9770
9771   if test "x$ac_ct_RANLIB" = x; then
9772     RANLIB=":"
9773   else
9774     case $cross_compiling:$ac_tool_warned in
9775 yes:)
9776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9777 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9778 ac_tool_warned=yes ;;
9779 esac
9780     RANLIB=$ac_ct_RANLIB
9781   fi
9782 else
9783   RANLIB="$ac_cv_prog_RANLIB"
9784 fi
9785
9786 test -z "$RANLIB" && RANLIB=:
9787
9788
9789
9790
9791
9792
9793 # Determine commands to create old-style static archives.
9794 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9795 old_postinstall_cmds='chmod 644 $oldlib'
9796 old_postuninstall_cmds=
9797
9798 if test -n "$RANLIB"; then
9799   case $host_os in
9800   bitrig* | openbsd*)
9801     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9802     ;;
9803   *)
9804     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9805     ;;
9806   esac
9807   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9808 fi
9809
9810 case $host_os in
9811   darwin*)
9812     lock_old_archive_extraction=yes ;;
9813   *)
9814     lock_old_archive_extraction=no ;;
9815 esac
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855 # If no C compiler was specified, use CC.
9856 LTCC=${LTCC-"$CC"}
9857
9858 # If no C compiler flags were specified, use CFLAGS.
9859 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9860
9861 # Allow CC to be a program name with arguments.
9862 compiler=$CC
9863
9864
9865 # Check for command to grab the raw symbol name followed by C symbol from nm.
9866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9867 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
9868 if test ${lt_cv_sys_global_symbol_pipe+y}
9869 then :
9870   printf %s "(cached) " >&6
9871 else $as_nop
9872
9873 # These are sane defaults that work on at least a few old systems.
9874 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9875
9876 # Character class describing NM global symbol codes.
9877 symcode='[BCDEGRST]'
9878
9879 # Regexp to match symbols that can be accessed directly from C.
9880 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9881
9882 # Define system-specific variables.
9883 case $host_os in
9884 aix*)
9885   symcode='[BCDT]'
9886   ;;
9887 cygwin* | mingw* | pw32* | cegcc*)
9888   symcode='[ABCDGISTW]'
9889   ;;
9890 hpux*)
9891   if test ia64 = "$host_cpu"; then
9892     symcode='[ABCDEGRST]'
9893   fi
9894   ;;
9895 irix* | nonstopux*)
9896   symcode='[BCDEGRST]'
9897   ;;
9898 osf*)
9899   symcode='[BCDEGQRST]'
9900   ;;
9901 solaris*)
9902   symcode='[BDRT]'
9903   ;;
9904 sco3.2v5*)
9905   symcode='[DT]'
9906   ;;
9907 sysv4.2uw2*)
9908   symcode='[DT]'
9909   ;;
9910 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9911   symcode='[ABDT]'
9912   ;;
9913 sysv4)
9914   symcode='[DFNSTU]'
9915   ;;
9916 esac
9917
9918 # If we're using GNU nm, then use its standard symbol codes.
9919 case `$NM -V 2>&1` in
9920 *GNU* | *'with BFD'*)
9921   symcode='[ABCDGIRSTW]' ;;
9922 esac
9923
9924 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9925   # Gets list of data symbols to import.
9926   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9927   # Adjust the below global symbol transforms to fixup imported variables.
9928   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9929   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
9930   lt_c_name_lib_hook="\
9931   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
9932   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
9933 else
9934   # Disable hooks by default.
9935   lt_cv_sys_global_symbol_to_import=
9936   lt_cdecl_hook=
9937   lt_c_name_hook=
9938   lt_c_name_lib_hook=
9939 fi
9940
9941 # Transform an extracted symbol line into a proper C declaration.
9942 # Some systems (esp. on ia64) link data and code symbols differently,
9943 # so use this general approach.
9944 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9945 $lt_cdecl_hook\
9946 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9947 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9948
9949 # Transform an extracted symbol line into symbol name and symbol address
9950 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9951 $lt_c_name_hook\
9952 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9953 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
9954
9955 # Transform an extracted symbol line into symbol name with lib prefix and
9956 # symbol address.
9957 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9958 $lt_c_name_lib_hook\
9959 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9960 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
9961 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
9962
9963 # Handle CRLF in mingw tool chain
9964 opt_cr=
9965 case $build_os in
9966 mingw*)
9967   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9968   ;;
9969 esac
9970
9971 # Try without a prefix underscore, then with it.
9972 for ac_symprfx in "" "_"; do
9973
9974   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9975   symxfrm="\\1 $ac_symprfx\\2 \\2"
9976
9977   # Write the raw and C identifiers.
9978   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9979     # Fake it for dumpbin and say T for any non-static function,
9980     # D for any global variable and I for any imported variable.
9981     # Also find C++ and __fastcall symbols from MSVC++,
9982     # which start with @ or ?.
9983     lt_cv_sys_global_symbol_pipe="$AWK '"\
9984 "     {last_section=section; section=\$ 3};"\
9985 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9986 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9987 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9988 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9989 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9990 "     \$ 0!~/External *\|/{next};"\
9991 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9992 "     {if(hide[section]) next};"\
9993 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9994 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9995 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9996 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9997 "     ' prfx=^$ac_symprfx"
9998   else
9999     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10000   fi
10001   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
10002
10003   # Check to see that the pipe works correctly.
10004   pipe_works=no
10005
10006   rm -f conftest*
10007   cat > conftest.$ac_ext <<_LT_EOF
10008 #ifdef __cplusplus
10009 extern "C" {
10010 #endif
10011 char nm_test_var;
10012 void nm_test_func(void);
10013 void nm_test_func(void){}
10014 #ifdef __cplusplus
10015 }
10016 #endif
10017 int main(){nm_test_var='a';nm_test_func();return(0);}
10018 _LT_EOF
10019
10020   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10021   (eval $ac_compile) 2>&5
10022   ac_status=$?
10023   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10024   test $ac_status = 0; }; then
10025     # Now try to grab the symbols.
10026     nlist=conftest.nm
10027     $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
10028     if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
10029       # Try sorting and uniquifying the output.
10030       if sort "$nlist" | uniq > "$nlist"T; then
10031         mv -f "$nlist"T "$nlist"
10032       else
10033         rm -f "$nlist"T
10034       fi
10035
10036       # Make sure that we snagged all the symbols we need.
10037       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10038         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10039           cat <<_LT_EOF > conftest.$ac_ext
10040 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
10041 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
10042 /* DATA imports from DLLs on WIN32 can't be const, because runtime
10043    relocations are performed -- see ld's documentation on pseudo-relocs.  */
10044 # define LT_DLSYM_CONST
10045 #elif defined __osf__
10046 /* This system does not cope well with relocations in const data.  */
10047 # define LT_DLSYM_CONST
10048 #else
10049 # define LT_DLSYM_CONST const
10050 #endif
10051
10052 #ifdef __cplusplus
10053 extern "C" {
10054 #endif
10055
10056 _LT_EOF
10057           # Now generate the symbol file.
10058           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10059
10060           cat <<_LT_EOF >> conftest.$ac_ext
10061
10062 /* The mapping between symbol names and symbols.  */
10063 LT_DLSYM_CONST struct {
10064   const char *name;
10065   void       *address;
10066 }
10067 lt__PROGRAM__LTX_preloaded_symbols[] =
10068 {
10069   { "@PROGRAM@", (void *) 0 },
10070 _LT_EOF
10071           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10072           cat <<\_LT_EOF >> conftest.$ac_ext
10073   {0, (void *) 0}
10074 };
10075
10076 /* This works around a problem in FreeBSD linker */
10077 #ifdef FREEBSD_WORKAROUND
10078 static const void *lt_preloaded_setup() {
10079   return lt__PROGRAM__LTX_preloaded_symbols;
10080 }
10081 #endif
10082
10083 #ifdef __cplusplus
10084 }
10085 #endif
10086 _LT_EOF
10087           # Now try linking the two files.
10088           mv conftest.$ac_objext conftstm.$ac_objext
10089           lt_globsym_save_LIBS=$LIBS
10090           lt_globsym_save_CFLAGS=$CFLAGS
10091           LIBS=conftstm.$ac_objext
10092           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10093           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10094   (eval $ac_link) 2>&5
10095   ac_status=$?
10096   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10097   test $ac_status = 0; } && test -s conftest$ac_exeext; then
10098             pipe_works=yes
10099           fi
10100           LIBS=$lt_globsym_save_LIBS
10101           CFLAGS=$lt_globsym_save_CFLAGS
10102         else
10103           echo "cannot find nm_test_func in $nlist" >&5
10104         fi
10105       else
10106         echo "cannot find nm_test_var in $nlist" >&5
10107       fi
10108     else
10109       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10110     fi
10111   else
10112     echo "$progname: failed program was:" >&5
10113     cat conftest.$ac_ext >&5
10114   fi
10115   rm -rf conftest* conftst*
10116
10117   # Do not use the global_symbol_pipe unless it works.
10118   if test yes = "$pipe_works"; then
10119     break
10120   else
10121     lt_cv_sys_global_symbol_pipe=
10122   fi
10123 done
10124
10125 fi
10126
10127 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10128   lt_cv_sys_global_symbol_to_cdecl=
10129 fi
10130 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10131   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10132 printf "%s\n" "failed" >&6; }
10133 else
10134   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10135 printf "%s\n" "ok" >&6; }
10136 fi
10137
10138 # Response file support.
10139 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10140   nm_file_list_spec='@'
10141 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10142   nm_file_list_spec='@'
10143 fi
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10182 printf %s "checking for sysroot... " >&6; }
10183
10184 # Check whether --with-sysroot was given.
10185 if test ${with_sysroot+y}
10186 then :
10187   withval=$with_sysroot;
10188 else $as_nop
10189   with_sysroot=no
10190 fi
10191
10192
10193 lt_sysroot=
10194 case $with_sysroot in #(
10195  yes)
10196    if test yes = "$GCC"; then
10197      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10198    fi
10199    ;; #(
10200  /*)
10201    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
10202    ;; #(
10203  no|'')
10204    ;; #(
10205  *)
10206    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
10207 printf "%s\n" "$with_sysroot" >&6; }
10208    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10209    ;;
10210 esac
10211
10212  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10213 printf "%s\n" "${lt_sysroot:-no}" >&6; }
10214
10215
10216
10217
10218
10219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10220 printf %s "checking for a working dd... " >&6; }
10221 if test ${ac_cv_path_lt_DD+y}
10222 then :
10223   printf %s "(cached) " >&6
10224 else $as_nop
10225   printf 0123456789abcdef0123456789abcdef >conftest.i
10226 cat conftest.i conftest.i >conftest2.i
10227 : ${lt_DD:=$DD}
10228 if test -z "$lt_DD"; then
10229   ac_path_lt_DD_found=false
10230   # Loop through the user's path and test for each of PROGNAME-LIST
10231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10232 for as_dir in $PATH
10233 do
10234   IFS=$as_save_IFS
10235   case $as_dir in #(((
10236     '') as_dir=./ ;;
10237     */) ;;
10238     *) as_dir=$as_dir/ ;;
10239   esac
10240     for ac_prog in dd
10241    do
10242     for ac_exec_ext in '' $ac_executable_extensions; do
10243       ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
10244       as_fn_executable_p "$ac_path_lt_DD" || continue
10245 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10246   cmp -s conftest.i conftest.out \
10247   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
10248 fi
10249       $ac_path_lt_DD_found && break 3
10250     done
10251   done
10252   done
10253 IFS=$as_save_IFS
10254   if test -z "$ac_cv_path_lt_DD"; then
10255     :
10256   fi
10257 else
10258   ac_cv_path_lt_DD=$lt_DD
10259 fi
10260
10261 rm -f conftest.i conftest2.i conftest.out
10262 fi
10263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10264 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
10265
10266
10267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10268 printf %s "checking how to truncate binary pipes... " >&6; }
10269 if test ${lt_cv_truncate_bin+y}
10270 then :
10271   printf %s "(cached) " >&6
10272 else $as_nop
10273   printf 0123456789abcdef0123456789abcdef >conftest.i
10274 cat conftest.i conftest.i >conftest2.i
10275 lt_cv_truncate_bin=
10276 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10277   cmp -s conftest.i conftest.out \
10278   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10279 fi
10280 rm -f conftest.i conftest2.i conftest.out
10281 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10282 fi
10283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10284 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
10285
10286
10287
10288
10289
10290
10291
10292 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
10293 func_cc_basename ()
10294 {
10295     for cc_temp in $*""; do
10296       case $cc_temp in
10297         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10298         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10299         \-*) ;;
10300         *) break;;
10301       esac
10302     done
10303     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10304 }
10305
10306 # Check whether --enable-libtool-lock was given.
10307 if test ${enable_libtool_lock+y}
10308 then :
10309   enableval=$enable_libtool_lock;
10310 fi
10311
10312 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10313
10314 # Some flags need to be propagated to the compiler or linker for good
10315 # libtool support.
10316 case $host in
10317 ia64-*-hpux*)
10318   # Find out what ABI is being produced by ac_compile, and set mode
10319   # options accordingly.
10320   echo 'int i;' > conftest.$ac_ext
10321   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10322   (eval $ac_compile) 2>&5
10323   ac_status=$?
10324   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10325   test $ac_status = 0; }; then
10326     case `/usr/bin/file conftest.$ac_objext` in
10327       *ELF-32*)
10328         HPUX_IA64_MODE=32
10329         ;;
10330       *ELF-64*)
10331         HPUX_IA64_MODE=64
10332         ;;
10333     esac
10334   fi
10335   rm -rf conftest*
10336   ;;
10337 *-*-irix6*)
10338   # Find out what ABI is being produced by ac_compile, and set linker
10339   # options accordingly.
10340   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10341   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10342   (eval $ac_compile) 2>&5
10343   ac_status=$?
10344   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10345   test $ac_status = 0; }; then
10346     if test yes = "$lt_cv_prog_gnu_ld"; then
10347       case `/usr/bin/file conftest.$ac_objext` in
10348         *32-bit*)
10349           LD="${LD-ld} -melf32bsmip"
10350           ;;
10351         *N32*)
10352           LD="${LD-ld} -melf32bmipn32"
10353           ;;
10354         *64-bit*)
10355           LD="${LD-ld} -melf64bmip"
10356         ;;
10357       esac
10358     else
10359       case `/usr/bin/file conftest.$ac_objext` in
10360         *32-bit*)
10361           LD="${LD-ld} -32"
10362           ;;
10363         *N32*)
10364           LD="${LD-ld} -n32"
10365           ;;
10366         *64-bit*)
10367           LD="${LD-ld} -64"
10368           ;;
10369       esac
10370     fi
10371   fi
10372   rm -rf conftest*
10373   ;;
10374
10375 mips64*-*linux*)
10376   # Find out what ABI is being produced by ac_compile, and set linker
10377   # options accordingly.
10378   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10379   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10380   (eval $ac_compile) 2>&5
10381   ac_status=$?
10382   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10383   test $ac_status = 0; }; then
10384     emul=elf
10385     case `/usr/bin/file conftest.$ac_objext` in
10386       *32-bit*)
10387         emul="${emul}32"
10388         ;;
10389       *64-bit*)
10390         emul="${emul}64"
10391         ;;
10392     esac
10393     case `/usr/bin/file conftest.$ac_objext` in
10394       *MSB*)
10395         emul="${emul}btsmip"
10396         ;;
10397       *LSB*)
10398         emul="${emul}ltsmip"
10399         ;;
10400     esac
10401     case `/usr/bin/file conftest.$ac_objext` in
10402       *N32*)
10403         emul="${emul}n32"
10404         ;;
10405     esac
10406     LD="${LD-ld} -m $emul"
10407   fi
10408   rm -rf conftest*
10409   ;;
10410
10411 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10412 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10413   # Find out what ABI is being produced by ac_compile, and set linker
10414   # options accordingly.  Note that the listed cases only cover the
10415   # situations where additional linker options are needed (such as when
10416   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
10417   # vice versa); the common cases where no linker options are needed do
10418   # not appear in the list.
10419   echo 'int i;' > conftest.$ac_ext
10420   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10421   (eval $ac_compile) 2>&5
10422   ac_status=$?
10423   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10424   test $ac_status = 0; }; then
10425     case `/usr/bin/file conftest.o` in
10426       *32-bit*)
10427         case $host in
10428           x86_64-*kfreebsd*-gnu)
10429             LD="${LD-ld} -m elf_i386_fbsd"
10430             ;;
10431           x86_64-*linux*)
10432             case `/usr/bin/file conftest.o` in
10433               *x86-64*)
10434                 LD="${LD-ld} -m elf32_x86_64"
10435                 ;;
10436               *)
10437                 LD="${LD-ld} -m elf_i386"
10438                 ;;
10439             esac
10440             ;;
10441           powerpc64le-*linux*)
10442             LD="${LD-ld} -m elf32lppclinux"
10443             ;;
10444           powerpc64-*linux*)
10445             LD="${LD-ld} -m elf32ppclinux"
10446             ;;
10447           s390x-*linux*)
10448             LD="${LD-ld} -m elf_s390"
10449             ;;
10450           sparc64-*linux*)
10451             LD="${LD-ld} -m elf32_sparc"
10452             ;;
10453         esac
10454         ;;
10455       *64-bit*)
10456         case $host in
10457           x86_64-*kfreebsd*-gnu)
10458             LD="${LD-ld} -m elf_x86_64_fbsd"
10459             ;;
10460           x86_64-*linux*)
10461             LD="${LD-ld} -m elf_x86_64"
10462             ;;
10463           powerpcle-*linux*)
10464             LD="${LD-ld} -m elf64lppc"
10465             ;;
10466           powerpc-*linux*)
10467             LD="${LD-ld} -m elf64ppc"
10468             ;;
10469           s390*-*linux*|s390*-*tpf*)
10470             LD="${LD-ld} -m elf64_s390"
10471             ;;
10472           sparc*-*linux*)
10473             LD="${LD-ld} -m elf64_sparc"
10474             ;;
10475         esac
10476         ;;
10477     esac
10478   fi
10479   rm -rf conftest*
10480   ;;
10481
10482 *-*-sco3.2v5*)
10483   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10484   SAVE_CFLAGS=$CFLAGS
10485   CFLAGS="$CFLAGS -belf"
10486   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10487 printf %s "checking whether the C compiler needs -belf... " >&6; }
10488 if test ${lt_cv_cc_needs_belf+y}
10489 then :
10490   printf %s "(cached) " >&6
10491 else $as_nop
10492   ac_ext=c
10493 ac_cpp='$CPP $CPPFLAGS'
10494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10497
10498      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10499 /* end confdefs.h.  */
10500
10501 int main (void)
10502 {
10503
10504  ;
10505  return 0;
10506 }
10507 _ACEOF
10508 if ac_fn_c_try_link "$LINENO"
10509 then :
10510   lt_cv_cc_needs_belf=yes
10511 else $as_nop
10512   lt_cv_cc_needs_belf=no
10513 fi
10514 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10515     conftest$ac_exeext conftest.$ac_ext
10516      ac_ext=c
10517 ac_cpp='$CPP $CPPFLAGS'
10518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10521
10522 fi
10523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10524 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
10525   if test yes != "$lt_cv_cc_needs_belf"; then
10526     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10527     CFLAGS=$SAVE_CFLAGS
10528   fi
10529   ;;
10530 *-*solaris*)
10531   # Find out what ABI is being produced by ac_compile, and set linker
10532   # options accordingly.
10533   echo 'int i;' > conftest.$ac_ext
10534   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10535   (eval $ac_compile) 2>&5
10536   ac_status=$?
10537   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10538   test $ac_status = 0; }; then
10539     case `/usr/bin/file conftest.o` in
10540     *64-bit*)
10541       case $lt_cv_prog_gnu_ld in
10542       yes*)
10543         case $host in
10544         i?86-*-solaris*|x86_64-*-solaris*)
10545           LD="${LD-ld} -m elf_x86_64"
10546           ;;
10547         sparc*-*-solaris*)
10548           LD="${LD-ld} -m elf64_sparc"
10549           ;;
10550         esac
10551         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
10552         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10553           LD=${LD-ld}_sol2
10554         fi
10555         ;;
10556       *)
10557         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10558           LD="${LD-ld} -64"
10559         fi
10560         ;;
10561       esac
10562       ;;
10563     esac
10564   fi
10565   rm -rf conftest*
10566   ;;
10567 esac
10568
10569 need_locks=$enable_libtool_lock
10570
10571 if test -n "$ac_tool_prefix"; then
10572   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10573 set dummy ${ac_tool_prefix}mt; ac_word=$2
10574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10575 printf %s "checking for $ac_word... " >&6; }
10576 if test ${ac_cv_prog_MANIFEST_TOOL+y}
10577 then :
10578   printf %s "(cached) " >&6
10579 else $as_nop
10580   if test -n "$MANIFEST_TOOL"; then
10581   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10582 else
10583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10584 for as_dir in $PATH
10585 do
10586   IFS=$as_save_IFS
10587   case $as_dir in #(((
10588     '') as_dir=./ ;;
10589     */) ;;
10590     *) as_dir=$as_dir/ ;;
10591   esac
10592     for ac_exec_ext in '' $ac_executable_extensions; do
10593   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10594     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10595     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10596     break 2
10597   fi
10598 done
10599   done
10600 IFS=$as_save_IFS
10601
10602 fi
10603 fi
10604 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10605 if test -n "$MANIFEST_TOOL"; then
10606   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10607 printf "%s\n" "$MANIFEST_TOOL" >&6; }
10608 else
10609   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10610 printf "%s\n" "no" >&6; }
10611 fi
10612
10613
10614 fi
10615 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10616   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10617   # Extract the first word of "mt", so it can be a program name with args.
10618 set dummy mt; ac_word=$2
10619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10620 printf %s "checking for $ac_word... " >&6; }
10621 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
10622 then :
10623   printf %s "(cached) " >&6
10624 else $as_nop
10625   if test -n "$ac_ct_MANIFEST_TOOL"; then
10626   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10627 else
10628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10629 for as_dir in $PATH
10630 do
10631   IFS=$as_save_IFS
10632   case $as_dir in #(((
10633     '') as_dir=./ ;;
10634     */) ;;
10635     *) as_dir=$as_dir/ ;;
10636   esac
10637     for ac_exec_ext in '' $ac_executable_extensions; do
10638   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10639     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10640     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10641     break 2
10642   fi
10643 done
10644   done
10645 IFS=$as_save_IFS
10646
10647 fi
10648 fi
10649 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10650 if test -n "$ac_ct_MANIFEST_TOOL"; then
10651   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10652 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
10653 else
10654   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10655 printf "%s\n" "no" >&6; }
10656 fi
10657
10658   if test "x$ac_ct_MANIFEST_TOOL" = x; then
10659     MANIFEST_TOOL=":"
10660   else
10661     case $cross_compiling:$ac_tool_warned in
10662 yes:)
10663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10664 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10665 ac_tool_warned=yes ;;
10666 esac
10667     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10668   fi
10669 else
10670   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10671 fi
10672
10673 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10675 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10676 if test ${lt_cv_path_mainfest_tool+y}
10677 then :
10678   printf %s "(cached) " >&6
10679 else $as_nop
10680   lt_cv_path_mainfest_tool=no
10681   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10682   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10683   cat conftest.err >&5
10684   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10685     lt_cv_path_mainfest_tool=yes
10686   fi
10687   rm -f conftest*
10688 fi
10689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10690 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
10691 if test yes != "$lt_cv_path_mainfest_tool"; then
10692   MANIFEST_TOOL=:
10693 fi
10694
10695
10696
10697
10698
10699
10700   case $host_os in
10701     rhapsody* | darwin*)
10702     if test -n "$ac_tool_prefix"; then
10703   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10704 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10706 printf %s "checking for $ac_word... " >&6; }
10707 if test ${ac_cv_prog_DSYMUTIL+y}
10708 then :
10709   printf %s "(cached) " >&6
10710 else $as_nop
10711   if test -n "$DSYMUTIL"; then
10712   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10713 else
10714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10715 for as_dir in $PATH
10716 do
10717   IFS=$as_save_IFS
10718   case $as_dir in #(((
10719     '') as_dir=./ ;;
10720     */) ;;
10721     *) as_dir=$as_dir/ ;;
10722   esac
10723     for ac_exec_ext in '' $ac_executable_extensions; do
10724   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10725     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10726     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10727     break 2
10728   fi
10729 done
10730   done
10731 IFS=$as_save_IFS
10732
10733 fi
10734 fi
10735 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10736 if test -n "$DSYMUTIL"; then
10737   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10738 printf "%s\n" "$DSYMUTIL" >&6; }
10739 else
10740   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10741 printf "%s\n" "no" >&6; }
10742 fi
10743
10744
10745 fi
10746 if test -z "$ac_cv_prog_DSYMUTIL"; then
10747   ac_ct_DSYMUTIL=$DSYMUTIL
10748   # Extract the first word of "dsymutil", so it can be a program name with args.
10749 set dummy dsymutil; ac_word=$2
10750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10751 printf %s "checking for $ac_word... " >&6; }
10752 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
10753 then :
10754   printf %s "(cached) " >&6
10755 else $as_nop
10756   if test -n "$ac_ct_DSYMUTIL"; then
10757   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10758 else
10759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10760 for as_dir in $PATH
10761 do
10762   IFS=$as_save_IFS
10763   case $as_dir in #(((
10764     '') as_dir=./ ;;
10765     */) ;;
10766     *) as_dir=$as_dir/ ;;
10767   esac
10768     for ac_exec_ext in '' $ac_executable_extensions; do
10769   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10770     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10771     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10772     break 2
10773   fi
10774 done
10775   done
10776 IFS=$as_save_IFS
10777
10778 fi
10779 fi
10780 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10781 if test -n "$ac_ct_DSYMUTIL"; then
10782   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10783 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
10784 else
10785   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10786 printf "%s\n" "no" >&6; }
10787 fi
10788
10789   if test "x$ac_ct_DSYMUTIL" = x; then
10790     DSYMUTIL=":"
10791   else
10792     case $cross_compiling:$ac_tool_warned in
10793 yes:)
10794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10795 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10796 ac_tool_warned=yes ;;
10797 esac
10798     DSYMUTIL=$ac_ct_DSYMUTIL
10799   fi
10800 else
10801   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10802 fi
10803
10804     if test -n "$ac_tool_prefix"; then
10805   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10806 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10808 printf %s "checking for $ac_word... " >&6; }
10809 if test ${ac_cv_prog_NMEDIT+y}
10810 then :
10811   printf %s "(cached) " >&6
10812 else $as_nop
10813   if test -n "$NMEDIT"; then
10814   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10815 else
10816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10817 for as_dir in $PATH
10818 do
10819   IFS=$as_save_IFS
10820   case $as_dir in #(((
10821     '') as_dir=./ ;;
10822     */) ;;
10823     *) as_dir=$as_dir/ ;;
10824   esac
10825     for ac_exec_ext in '' $ac_executable_extensions; do
10826   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10827     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10828     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10829     break 2
10830   fi
10831 done
10832   done
10833 IFS=$as_save_IFS
10834
10835 fi
10836 fi
10837 NMEDIT=$ac_cv_prog_NMEDIT
10838 if test -n "$NMEDIT"; then
10839   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10840 printf "%s\n" "$NMEDIT" >&6; }
10841 else
10842   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10843 printf "%s\n" "no" >&6; }
10844 fi
10845
10846
10847 fi
10848 if test -z "$ac_cv_prog_NMEDIT"; then
10849   ac_ct_NMEDIT=$NMEDIT
10850   # Extract the first word of "nmedit", so it can be a program name with args.
10851 set dummy nmedit; ac_word=$2
10852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10853 printf %s "checking for $ac_word... " >&6; }
10854 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
10855 then :
10856   printf %s "(cached) " >&6
10857 else $as_nop
10858   if test -n "$ac_ct_NMEDIT"; then
10859   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10860 else
10861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10862 for as_dir in $PATH
10863 do
10864   IFS=$as_save_IFS
10865   case $as_dir in #(((
10866     '') as_dir=./ ;;
10867     */) ;;
10868     *) as_dir=$as_dir/ ;;
10869   esac
10870     for ac_exec_ext in '' $ac_executable_extensions; do
10871   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10872     ac_cv_prog_ac_ct_NMEDIT="nmedit"
10873     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10874     break 2
10875   fi
10876 done
10877   done
10878 IFS=$as_save_IFS
10879
10880 fi
10881 fi
10882 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10883 if test -n "$ac_ct_NMEDIT"; then
10884   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10885 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
10886 else
10887   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10888 printf "%s\n" "no" >&6; }
10889 fi
10890
10891   if test "x$ac_ct_NMEDIT" = x; then
10892     NMEDIT=":"
10893   else
10894     case $cross_compiling:$ac_tool_warned in
10895 yes:)
10896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10897 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10898 ac_tool_warned=yes ;;
10899 esac
10900     NMEDIT=$ac_ct_NMEDIT
10901   fi
10902 else
10903   NMEDIT="$ac_cv_prog_NMEDIT"
10904 fi
10905
10906     if test -n "$ac_tool_prefix"; then
10907   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10908 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10910 printf %s "checking for $ac_word... " >&6; }
10911 if test ${ac_cv_prog_LIPO+y}
10912 then :
10913   printf %s "(cached) " >&6
10914 else $as_nop
10915   if test -n "$LIPO"; then
10916   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10917 else
10918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10919 for as_dir in $PATH
10920 do
10921   IFS=$as_save_IFS
10922   case $as_dir in #(((
10923     '') as_dir=./ ;;
10924     */) ;;
10925     *) as_dir=$as_dir/ ;;
10926   esac
10927     for ac_exec_ext in '' $ac_executable_extensions; do
10928   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10929     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10930     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10931     break 2
10932   fi
10933 done
10934   done
10935 IFS=$as_save_IFS
10936
10937 fi
10938 fi
10939 LIPO=$ac_cv_prog_LIPO
10940 if test -n "$LIPO"; then
10941   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10942 printf "%s\n" "$LIPO" >&6; }
10943 else
10944   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10945 printf "%s\n" "no" >&6; }
10946 fi
10947
10948
10949 fi
10950 if test -z "$ac_cv_prog_LIPO"; then
10951   ac_ct_LIPO=$LIPO
10952   # Extract the first word of "lipo", so it can be a program name with args.
10953 set dummy lipo; ac_word=$2
10954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10955 printf %s "checking for $ac_word... " >&6; }
10956 if test ${ac_cv_prog_ac_ct_LIPO+y}
10957 then :
10958   printf %s "(cached) " >&6
10959 else $as_nop
10960   if test -n "$ac_ct_LIPO"; then
10961   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10962 else
10963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10964 for as_dir in $PATH
10965 do
10966   IFS=$as_save_IFS
10967   case $as_dir in #(((
10968     '') as_dir=./ ;;
10969     */) ;;
10970     *) as_dir=$as_dir/ ;;
10971   esac
10972     for ac_exec_ext in '' $ac_executable_extensions; do
10973   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10974     ac_cv_prog_ac_ct_LIPO="lipo"
10975     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10976     break 2
10977   fi
10978 done
10979   done
10980 IFS=$as_save_IFS
10981
10982 fi
10983 fi
10984 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10985 if test -n "$ac_ct_LIPO"; then
10986   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10987 printf "%s\n" "$ac_ct_LIPO" >&6; }
10988 else
10989   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10990 printf "%s\n" "no" >&6; }
10991 fi
10992
10993   if test "x$ac_ct_LIPO" = x; then
10994     LIPO=":"
10995   else
10996     case $cross_compiling:$ac_tool_warned in
10997 yes:)
10998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10999 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11000 ac_tool_warned=yes ;;
11001 esac
11002     LIPO=$ac_ct_LIPO
11003   fi
11004 else
11005   LIPO="$ac_cv_prog_LIPO"
11006 fi
11007
11008     if test -n "$ac_tool_prefix"; then
11009   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11010 set dummy ${ac_tool_prefix}otool; ac_word=$2
11011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11012 printf %s "checking for $ac_word... " >&6; }
11013 if test ${ac_cv_prog_OTOOL+y}
11014 then :
11015   printf %s "(cached) " >&6
11016 else $as_nop
11017   if test -n "$OTOOL"; then
11018   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11019 else
11020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11021 for as_dir in $PATH
11022 do
11023   IFS=$as_save_IFS
11024   case $as_dir in #(((
11025     '') as_dir=./ ;;
11026     */) ;;
11027     *) as_dir=$as_dir/ ;;
11028   esac
11029     for ac_exec_ext in '' $ac_executable_extensions; do
11030   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11031     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11032     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11033     break 2
11034   fi
11035 done
11036   done
11037 IFS=$as_save_IFS
11038
11039 fi
11040 fi
11041 OTOOL=$ac_cv_prog_OTOOL
11042 if test -n "$OTOOL"; then
11043   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11044 printf "%s\n" "$OTOOL" >&6; }
11045 else
11046   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11047 printf "%s\n" "no" >&6; }
11048 fi
11049
11050
11051 fi
11052 if test -z "$ac_cv_prog_OTOOL"; then
11053   ac_ct_OTOOL=$OTOOL
11054   # Extract the first word of "otool", so it can be a program name with args.
11055 set dummy otool; ac_word=$2
11056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11057 printf %s "checking for $ac_word... " >&6; }
11058 if test ${ac_cv_prog_ac_ct_OTOOL+y}
11059 then :
11060   printf %s "(cached) " >&6
11061 else $as_nop
11062   if test -n "$ac_ct_OTOOL"; then
11063   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11064 else
11065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11066 for as_dir in $PATH
11067 do
11068   IFS=$as_save_IFS
11069   case $as_dir in #(((
11070     '') as_dir=./ ;;
11071     */) ;;
11072     *) as_dir=$as_dir/ ;;
11073   esac
11074     for ac_exec_ext in '' $ac_executable_extensions; do
11075   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11076     ac_cv_prog_ac_ct_OTOOL="otool"
11077     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11078     break 2
11079   fi
11080 done
11081   done
11082 IFS=$as_save_IFS
11083
11084 fi
11085 fi
11086 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11087 if test -n "$ac_ct_OTOOL"; then
11088   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11089 printf "%s\n" "$ac_ct_OTOOL" >&6; }
11090 else
11091   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11092 printf "%s\n" "no" >&6; }
11093 fi
11094
11095   if test "x$ac_ct_OTOOL" = x; then
11096     OTOOL=":"
11097   else
11098     case $cross_compiling:$ac_tool_warned in
11099 yes:)
11100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11101 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11102 ac_tool_warned=yes ;;
11103 esac
11104     OTOOL=$ac_ct_OTOOL
11105   fi
11106 else
11107   OTOOL="$ac_cv_prog_OTOOL"
11108 fi
11109
11110     if test -n "$ac_tool_prefix"; then
11111   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11112 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11114 printf %s "checking for $ac_word... " >&6; }
11115 if test ${ac_cv_prog_OTOOL64+y}
11116 then :
11117   printf %s "(cached) " >&6
11118 else $as_nop
11119   if test -n "$OTOOL64"; then
11120   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11121 else
11122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11123 for as_dir in $PATH
11124 do
11125   IFS=$as_save_IFS
11126   case $as_dir in #(((
11127     '') as_dir=./ ;;
11128     */) ;;
11129     *) as_dir=$as_dir/ ;;
11130   esac
11131     for ac_exec_ext in '' $ac_executable_extensions; do
11132   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11133     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11134     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11135     break 2
11136   fi
11137 done
11138   done
11139 IFS=$as_save_IFS
11140
11141 fi
11142 fi
11143 OTOOL64=$ac_cv_prog_OTOOL64
11144 if test -n "$OTOOL64"; then
11145   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11146 printf "%s\n" "$OTOOL64" >&6; }
11147 else
11148   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11149 printf "%s\n" "no" >&6; }
11150 fi
11151
11152
11153 fi
11154 if test -z "$ac_cv_prog_OTOOL64"; then
11155   ac_ct_OTOOL64=$OTOOL64
11156   # Extract the first word of "otool64", so it can be a program name with args.
11157 set dummy otool64; ac_word=$2
11158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11159 printf %s "checking for $ac_word... " >&6; }
11160 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
11161 then :
11162   printf %s "(cached) " >&6
11163 else $as_nop
11164   if test -n "$ac_ct_OTOOL64"; then
11165   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11166 else
11167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168 for as_dir in $PATH
11169 do
11170   IFS=$as_save_IFS
11171   case $as_dir in #(((
11172     '') as_dir=./ ;;
11173     */) ;;
11174     *) as_dir=$as_dir/ ;;
11175   esac
11176     for ac_exec_ext in '' $ac_executable_extensions; do
11177   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11178     ac_cv_prog_ac_ct_OTOOL64="otool64"
11179     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11180     break 2
11181   fi
11182 done
11183   done
11184 IFS=$as_save_IFS
11185
11186 fi
11187 fi
11188 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11189 if test -n "$ac_ct_OTOOL64"; then
11190   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11191 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
11192 else
11193   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11194 printf "%s\n" "no" >&6; }
11195 fi
11196
11197   if test "x$ac_ct_OTOOL64" = x; then
11198     OTOOL64=":"
11199   else
11200     case $cross_compiling:$ac_tool_warned in
11201 yes:)
11202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11203 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11204 ac_tool_warned=yes ;;
11205 esac
11206     OTOOL64=$ac_ct_OTOOL64
11207   fi
11208 else
11209   OTOOL64="$ac_cv_prog_OTOOL64"
11210 fi
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11239 printf %s "checking for -single_module linker flag... " >&6; }
11240 if test ${lt_cv_apple_cc_single_mod+y}
11241 then :
11242   printf %s "(cached) " >&6
11243 else $as_nop
11244   lt_cv_apple_cc_single_mod=no
11245       if test -z "$LT_MULTI_MODULE"; then
11246         # By default we will add the -single_module flag. You can override
11247         # by either setting the environment variable LT_MULTI_MODULE
11248         # non-empty at configure time, or by adding -multi_module to the
11249         # link flags.
11250         rm -rf libconftest.dylib*
11251         echo "int foo(void){return 1;}" > conftest.c
11252         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11253 -dynamiclib -Wl,-single_module conftest.c" >&5
11254         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11255           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11256         _lt_result=$?
11257         # If there is a non-empty error log, and "single_module"
11258         # appears in it, assume the flag caused a linker warning
11259         if test -s conftest.err && $GREP single_module conftest.err; then
11260           cat conftest.err >&5
11261         # Otherwise, if the output was created with a 0 exit code from
11262         # the compiler, it worked.
11263         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
11264           lt_cv_apple_cc_single_mod=yes
11265         else
11266           cat conftest.err >&5
11267         fi
11268         rm -rf libconftest.dylib*
11269         rm -f conftest.*
11270       fi
11271 fi
11272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11273 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
11274
11275     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11276 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
11277 if test ${lt_cv_ld_exported_symbols_list+y}
11278 then :
11279   printf %s "(cached) " >&6
11280 else $as_nop
11281   lt_cv_ld_exported_symbols_list=no
11282       save_LDFLAGS=$LDFLAGS
11283       echo "_main" > conftest.sym
11284       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11285       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11286 /* end confdefs.h.  */
11287
11288 int main (void)
11289 {
11290
11291  ;
11292  return 0;
11293 }
11294 _ACEOF
11295 if ac_fn_c_try_link "$LINENO"
11296 then :
11297   lt_cv_ld_exported_symbols_list=yes
11298 else $as_nop
11299   lt_cv_ld_exported_symbols_list=no
11300 fi
11301 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11302     conftest$ac_exeext conftest.$ac_ext
11303         LDFLAGS=$save_LDFLAGS
11304
11305 fi
11306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11307 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
11308
11309     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11310 printf %s "checking for -force_load linker flag... " >&6; }
11311 if test ${lt_cv_ld_force_load+y}
11312 then :
11313   printf %s "(cached) " >&6
11314 else $as_nop
11315   lt_cv_ld_force_load=no
11316       cat > conftest.c << _LT_EOF
11317 int forced_loaded() { return 2;}
11318 _LT_EOF
11319       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11320       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11321       echo "$AR cr libconftest.a conftest.o" >&5
11322       $AR cr libconftest.a conftest.o 2>&5
11323       echo "$RANLIB libconftest.a" >&5
11324       $RANLIB libconftest.a 2>&5
11325       cat > conftest.c << _LT_EOF
11326 int main() { return 0;}
11327 _LT_EOF
11328       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11329       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11330       _lt_result=$?
11331       if test -s conftest.err && $GREP force_load conftest.err; then
11332         cat conftest.err >&5
11333       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11334         lt_cv_ld_force_load=yes
11335       else
11336         cat conftest.err >&5
11337       fi
11338         rm -f conftest.err libconftest.a conftest conftest.c
11339         rm -rf conftest.dSYM
11340
11341 fi
11342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11343 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
11344     case $host_os in
11345     rhapsody* | darwin1.[012])
11346       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11347     darwin1.*)
11348       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11349     darwin*) # darwin 5.x on
11350       # if running on 10.5 or later, the deployment target defaults
11351       # to the OS version, if on x86, and 10.4, the deployment
11352       # target defaults to 10.4. Don't you love it?
11353       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11354         10.0,*86*-darwin8*|10.0,*-darwin[912]*)
11355           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11356         10.[012][,.]*)
11357           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11358         10.*|11.*)
11359           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11360       esac
11361     ;;
11362   esac
11363     if test yes = "$lt_cv_apple_cc_single_mod"; then
11364       _lt_dar_single_mod='$single_module'
11365     fi
11366     if test yes = "$lt_cv_ld_exported_symbols_list"; then
11367       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
11368     else
11369       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
11370     fi
11371     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
11372       _lt_dsymutil='~$DSYMUTIL $lib || :'
11373     else
11374       _lt_dsymutil=
11375     fi
11376     ;;
11377   esac
11378
11379 # func_munge_path_list VARIABLE PATH
11380 # -----------------------------------
11381 # VARIABLE is name of variable containing _space_ separated list of
11382 # directories to be munged by the contents of PATH, which is string
11383 # having a format:
11384 # "DIR[:DIR]:"
11385 #       string "DIR[ DIR]" will be prepended to VARIABLE
11386 # ":DIR[:DIR]"
11387 #       string "DIR[ DIR]" will be appended to VARIABLE
11388 # "DIRP[:DIRP]::[DIRA:]DIRA"
11389 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
11390 #       "DIRA[ DIRA]" will be appended to VARIABLE
11391 # "DIR[:DIR]"
11392 #       VARIABLE will be replaced by "DIR[ DIR]"
11393 func_munge_path_list ()
11394 {
11395     case x$2 in
11396     x)
11397         ;;
11398     *:)
11399         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
11400         ;;
11401     x:*)
11402         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
11403         ;;
11404     *::*)
11405         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11406         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11407         ;;
11408     *)
11409         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
11410         ;;
11411     esac
11412 }
11413
11414 ac_header= ac_cache=
11415 for ac_item in $ac_header_c_list
11416 do
11417   if test $ac_cache; then
11418     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
11419     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
11420       printf "%s\n" "#define $ac_item 1" >> confdefs.h
11421     fi
11422     ac_header= ac_cache=
11423   elif test $ac_header; then
11424     ac_cache=$ac_item
11425   else
11426     ac_header=$ac_item
11427   fi
11428 done
11429
11430
11431
11432
11433
11434
11435
11436
11437 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
11438 then :
11439
11440 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
11441
11442 fi
11443 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11444 "
11445 if test "x$ac_cv_header_dlfcn_h" = xyes
11446 then :
11447   printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
11448
11449 fi
11450
11451 # ------------------------------------ #
11452 #  Determine libtool default behavior  #
11453 # ------------------------------------ #
11454
11455 #
11456 # Default behavior is to enable shared and static libraries on systems
11457 # where libtool knows how to build both library versions, and does not
11458 # require separate configuration and build runs for each flavor.
11459 #
11460
11461 xc_lt_want_enable_shared='yes'
11462 xc_lt_want_enable_static='yes'
11463
11464 #
11465 # User may have disabled shared or static libraries.
11466 #
11467 case "x$enable_shared" in # (
11468   xno)
11469     xc_lt_want_enable_shared='no'
11470     ;;
11471 esac
11472 case "x$enable_static" in # (
11473   xno)
11474     xc_lt_want_enable_static='no'
11475     ;;
11476 esac
11477 if test "x$xc_lt_want_enable_shared" = 'xno' &&
11478   test "x$xc_lt_want_enable_static" = 'xno'; then
11479   as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
11480 fi
11481
11482 #
11483 # Default behavior on systems that require independent configuration
11484 # and build runs for shared and static is to enable shared libraries
11485 # and disable static ones. On these systems option '--disable-shared'
11486 # must be used in order to build a proper static library.
11487 #
11488
11489 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
11490   test "x$xc_lt_want_enable_static" = 'xyes'; then
11491   case $host_os in # (
11492     pw32* | cegcc* | os2* | aix*)
11493       xc_lt_want_enable_static='no'
11494       ;;
11495   esac
11496 fi
11497
11498 #
11499 # Make libtool aware of current shared and static library preferences
11500 # taking in account that, depending on host characteristics, libtool
11501 # may modify these option preferences later in this configure script.
11502 #
11503
11504 enable_shared=$xc_lt_want_enable_shared
11505 enable_static=$xc_lt_want_enable_static
11506
11507 #
11508 # Default behavior is to build PIC objects for shared libraries and
11509 # non-PIC objects for static libraries.
11510 #
11511
11512 xc_lt_want_with_pic='default'
11513
11514 #
11515 # User may have specified PIC preference.
11516 #
11517
11518 case "x$with_pic" in # ((
11519   xno)
11520     xc_lt_want_with_pic='no'
11521     ;;
11522   xyes)
11523     xc_lt_want_with_pic='yes'
11524     ;;
11525 esac
11526
11527 #
11528 # Default behavior on some systems where building a shared library out
11529 # of non-PIC compiled objects will fail with following linker error
11530 # "relocation R_X86_64_32 can not be used when making a shared object"
11531 # is to build PIC objects even for static libraries. This behavior may
11532 # be overridden using 'configure --disable-shared --without-pic'.
11533 #
11534
11535 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
11536   case $host_cpu in # (
11537     x86_64 | amd64 | ia64)
11538       case $host_os in # (
11539         linux* | freebsd* | midnightbsd*)
11540           xc_lt_want_with_pic='yes'
11541           ;;
11542       esac
11543       ;;
11544   esac
11545 fi
11546
11547 #
11548 # Make libtool aware of current PIC preference taking in account that,
11549 # depending on host characteristics, libtool may modify PIC default
11550 # behavior to fit host system idiosyncrasies later in this script.
11551 #
11552
11553 with_pic=$xc_lt_want_with_pic
11554
11555 ## ----------------------- ##
11556 ##  Start of libtool code  ##
11557 ## ----------------------- ##
11558
11559
11560
11561
11562 # Set options
11563 enable_win32_dll=yes
11564
11565 case $host in
11566 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11567   if test -n "$ac_tool_prefix"; then
11568   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11569 set dummy ${ac_tool_prefix}as; ac_word=$2
11570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11571 printf %s "checking for $ac_word... " >&6; }
11572 if test ${ac_cv_prog_AS+y}
11573 then :
11574   printf %s "(cached) " >&6
11575 else $as_nop
11576   if test -n "$AS"; then
11577   ac_cv_prog_AS="$AS" # Let the user override the test.
11578 else
11579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11580 for as_dir in $PATH
11581 do
11582   IFS=$as_save_IFS
11583   case $as_dir in #(((
11584     '') as_dir=./ ;;
11585     */) ;;
11586     *) as_dir=$as_dir/ ;;
11587   esac
11588     for ac_exec_ext in '' $ac_executable_extensions; do
11589   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11590     ac_cv_prog_AS="${ac_tool_prefix}as"
11591     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11592     break 2
11593   fi
11594 done
11595   done
11596 IFS=$as_save_IFS
11597
11598 fi
11599 fi
11600 AS=$ac_cv_prog_AS
11601 if test -n "$AS"; then
11602   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11603 printf "%s\n" "$AS" >&6; }
11604 else
11605   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11606 printf "%s\n" "no" >&6; }
11607 fi
11608
11609
11610 fi
11611 if test -z "$ac_cv_prog_AS"; then
11612   ac_ct_AS=$AS
11613   # Extract the first word of "as", so it can be a program name with args.
11614 set dummy as; ac_word=$2
11615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11616 printf %s "checking for $ac_word... " >&6; }
11617 if test ${ac_cv_prog_ac_ct_AS+y}
11618 then :
11619   printf %s "(cached) " >&6
11620 else $as_nop
11621   if test -n "$ac_ct_AS"; then
11622   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11623 else
11624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11625 for as_dir in $PATH
11626 do
11627   IFS=$as_save_IFS
11628   case $as_dir in #(((
11629     '') as_dir=./ ;;
11630     */) ;;
11631     *) as_dir=$as_dir/ ;;
11632   esac
11633     for ac_exec_ext in '' $ac_executable_extensions; do
11634   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11635     ac_cv_prog_ac_ct_AS="as"
11636     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11637     break 2
11638   fi
11639 done
11640   done
11641 IFS=$as_save_IFS
11642
11643 fi
11644 fi
11645 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11646 if test -n "$ac_ct_AS"; then
11647   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11648 printf "%s\n" "$ac_ct_AS" >&6; }
11649 else
11650   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11651 printf "%s\n" "no" >&6; }
11652 fi
11653
11654   if test "x$ac_ct_AS" = x; then
11655     AS="false"
11656   else
11657     case $cross_compiling:$ac_tool_warned in
11658 yes:)
11659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11660 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11661 ac_tool_warned=yes ;;
11662 esac
11663     AS=$ac_ct_AS
11664   fi
11665 else
11666   AS="$ac_cv_prog_AS"
11667 fi
11668
11669   if test -n "$ac_tool_prefix"; then
11670   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11671 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11673 printf %s "checking for $ac_word... " >&6; }
11674 if test ${ac_cv_prog_DLLTOOL+y}
11675 then :
11676   printf %s "(cached) " >&6
11677 else $as_nop
11678   if test -n "$DLLTOOL"; then
11679   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11680 else
11681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11682 for as_dir in $PATH
11683 do
11684   IFS=$as_save_IFS
11685   case $as_dir in #(((
11686     '') as_dir=./ ;;
11687     */) ;;
11688     *) as_dir=$as_dir/ ;;
11689   esac
11690     for ac_exec_ext in '' $ac_executable_extensions; do
11691   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11692     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11693     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11694     break 2
11695   fi
11696 done
11697   done
11698 IFS=$as_save_IFS
11699
11700 fi
11701 fi
11702 DLLTOOL=$ac_cv_prog_DLLTOOL
11703 if test -n "$DLLTOOL"; then
11704   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11705 printf "%s\n" "$DLLTOOL" >&6; }
11706 else
11707   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708 printf "%s\n" "no" >&6; }
11709 fi
11710
11711
11712 fi
11713 if test -z "$ac_cv_prog_DLLTOOL"; then
11714   ac_ct_DLLTOOL=$DLLTOOL
11715   # Extract the first word of "dlltool", so it can be a program name with args.
11716 set dummy dlltool; ac_word=$2
11717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11718 printf %s "checking for $ac_word... " >&6; }
11719 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
11720 then :
11721   printf %s "(cached) " >&6
11722 else $as_nop
11723   if test -n "$ac_ct_DLLTOOL"; then
11724   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11725 else
11726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11727 for as_dir in $PATH
11728 do
11729   IFS=$as_save_IFS
11730   case $as_dir in #(((
11731     '') as_dir=./ ;;
11732     */) ;;
11733     *) as_dir=$as_dir/ ;;
11734   esac
11735     for ac_exec_ext in '' $ac_executable_extensions; do
11736   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11737     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11738     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11739     break 2
11740   fi
11741 done
11742   done
11743 IFS=$as_save_IFS
11744
11745 fi
11746 fi
11747 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11748 if test -n "$ac_ct_DLLTOOL"; then
11749   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11750 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
11751 else
11752   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753 printf "%s\n" "no" >&6; }
11754 fi
11755
11756   if test "x$ac_ct_DLLTOOL" = x; then
11757     DLLTOOL="false"
11758   else
11759     case $cross_compiling:$ac_tool_warned in
11760 yes:)
11761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11762 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11763 ac_tool_warned=yes ;;
11764 esac
11765     DLLTOOL=$ac_ct_DLLTOOL
11766   fi
11767 else
11768   DLLTOOL="$ac_cv_prog_DLLTOOL"
11769 fi
11770
11771   if test -n "$ac_tool_prefix"; then
11772   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11773 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11775 printf %s "checking for $ac_word... " >&6; }
11776 if test ${ac_cv_prog_OBJDUMP+y}
11777 then :
11778   printf %s "(cached) " >&6
11779 else $as_nop
11780   if test -n "$OBJDUMP"; then
11781   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11782 else
11783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11784 for as_dir in $PATH
11785 do
11786   IFS=$as_save_IFS
11787   case $as_dir in #(((
11788     '') as_dir=./ ;;
11789     */) ;;
11790     *) as_dir=$as_dir/ ;;
11791   esac
11792     for ac_exec_ext in '' $ac_executable_extensions; do
11793   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11794     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11795     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11796     break 2
11797   fi
11798 done
11799   done
11800 IFS=$as_save_IFS
11801
11802 fi
11803 fi
11804 OBJDUMP=$ac_cv_prog_OBJDUMP
11805 if test -n "$OBJDUMP"; then
11806   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11807 printf "%s\n" "$OBJDUMP" >&6; }
11808 else
11809   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11810 printf "%s\n" "no" >&6; }
11811 fi
11812
11813
11814 fi
11815 if test -z "$ac_cv_prog_OBJDUMP"; then
11816   ac_ct_OBJDUMP=$OBJDUMP
11817   # Extract the first word of "objdump", so it can be a program name with args.
11818 set dummy objdump; ac_word=$2
11819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11820 printf %s "checking for $ac_word... " >&6; }
11821 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
11822 then :
11823   printf %s "(cached) " >&6
11824 else $as_nop
11825   if test -n "$ac_ct_OBJDUMP"; then
11826   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11827 else
11828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11829 for as_dir in $PATH
11830 do
11831   IFS=$as_save_IFS
11832   case $as_dir in #(((
11833     '') as_dir=./ ;;
11834     */) ;;
11835     *) as_dir=$as_dir/ ;;
11836   esac
11837     for ac_exec_ext in '' $ac_executable_extensions; do
11838   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11839     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11840     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11841     break 2
11842   fi
11843 done
11844   done
11845 IFS=$as_save_IFS
11846
11847 fi
11848 fi
11849 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11850 if test -n "$ac_ct_OBJDUMP"; then
11851   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11852 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
11853 else
11854   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11855 printf "%s\n" "no" >&6; }
11856 fi
11857
11858   if test "x$ac_ct_OBJDUMP" = x; then
11859     OBJDUMP="false"
11860   else
11861     case $cross_compiling:$ac_tool_warned in
11862 yes:)
11863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11864 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11865 ac_tool_warned=yes ;;
11866 esac
11867     OBJDUMP=$ac_ct_OBJDUMP
11868   fi
11869 else
11870   OBJDUMP="$ac_cv_prog_OBJDUMP"
11871 fi
11872
11873   ;;
11874 esac
11875
11876 test -z "$AS" && AS=as
11877
11878
11879
11880
11881
11882 test -z "$DLLTOOL" && DLLTOOL=dlltool
11883
11884
11885
11886
11887
11888 test -z "$OBJDUMP" && OBJDUMP=objdump
11889
11890
11891
11892
11893
11894
11895
11896         enable_dlopen=no
11897
11898
11899
11900             # Check whether --enable-shared was given.
11901 if test ${enable_shared+y}
11902 then :
11903   enableval=$enable_shared; p=${PACKAGE-default}
11904     case $enableval in
11905     yes) enable_shared=yes ;;
11906     no) enable_shared=no ;;
11907     *)
11908       enable_shared=no
11909       # Look at the argument we got.  We use all the common list separators.
11910       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11911       for pkg in $enableval; do
11912         IFS=$lt_save_ifs
11913         if test "X$pkg" = "X$p"; then
11914           enable_shared=yes
11915         fi
11916       done
11917       IFS=$lt_save_ifs
11918       ;;
11919     esac
11920 else $as_nop
11921   enable_shared=yes
11922 fi
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932   # Check whether --enable-static was given.
11933 if test ${enable_static+y}
11934 then :
11935   enableval=$enable_static; p=${PACKAGE-default}
11936     case $enableval in
11937     yes) enable_static=yes ;;
11938     no) enable_static=no ;;
11939     *)
11940      enable_static=no
11941       # Look at the argument we got.  We use all the common list separators.
11942       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11943       for pkg in $enableval; do
11944         IFS=$lt_save_ifs
11945         if test "X$pkg" = "X$p"; then
11946           enable_static=yes
11947         fi
11948       done
11949       IFS=$lt_save_ifs
11950       ;;
11951     esac
11952 else $as_nop
11953   enable_static=yes
11954 fi
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965 # Check whether --with-pic was given.
11966 if test ${with_pic+y}
11967 then :
11968   withval=$with_pic; lt_p=${PACKAGE-default}
11969     case $withval in
11970     yes|no) pic_mode=$withval ;;
11971     *)
11972       pic_mode=default
11973       # Look at the argument we got.  We use all the common list separators.
11974       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11975       for lt_pkg in $withval; do
11976         IFS=$lt_save_ifs
11977         if test "X$lt_pkg" = "X$lt_p"; then
11978           pic_mode=yes
11979         fi
11980       done
11981       IFS=$lt_save_ifs
11982       ;;
11983     esac
11984 else $as_nop
11985   pic_mode=default
11986 fi
11987
11988
11989
11990
11991
11992
11993
11994
11995   # Check whether --enable-fast-install was given.
11996 if test ${enable_fast_install+y}
11997 then :
11998   enableval=$enable_fast_install; p=${PACKAGE-default}
11999     case $enableval in
12000     yes) enable_fast_install=yes ;;
12001     no) enable_fast_install=no ;;
12002     *)
12003       enable_fast_install=no
12004       # Look at the argument we got.  We use all the common list separators.
12005       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12006       for pkg in $enableval; do
12007         IFS=$lt_save_ifs
12008         if test "X$pkg" = "X$p"; then
12009           enable_fast_install=yes
12010         fi
12011       done
12012       IFS=$lt_save_ifs
12013       ;;
12014     esac
12015 else $as_nop
12016   enable_fast_install=yes
12017 fi
12018
12019
12020
12021
12022
12023
12024
12025
12026   shared_archive_member_spec=
12027 case $host,$enable_shared in
12028 power*-*-aix[5-9]*,yes)
12029   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
12030 printf %s "checking which variant of shared library versioning to provide... " >&6; }
12031
12032 # Check whether --with-aix-soname was given.
12033 if test ${with_aix_soname+y}
12034 then :
12035   withval=$with_aix_soname; case $withval in
12036     aix|svr4|both)
12037       ;;
12038     *)
12039       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
12040       ;;
12041     esac
12042     lt_cv_with_aix_soname=$with_aix_soname
12043 else $as_nop
12044   if test ${lt_cv_with_aix_soname+y}
12045 then :
12046   printf %s "(cached) " >&6
12047 else $as_nop
12048   lt_cv_with_aix_soname=aix
12049 fi
12050
12051     with_aix_soname=$lt_cv_with_aix_soname
12052 fi
12053
12054   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
12055 printf "%s\n" "$with_aix_soname" >&6; }
12056   if test aix != "$with_aix_soname"; then
12057     # For the AIX way of multilib, we name the shared archive member
12058     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
12059     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
12060     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
12061     # the AIX toolchain works better with OBJECT_MODE set (default 32).
12062     if test 64 = "${OBJECT_MODE-32}"; then
12063       shared_archive_member_spec=shr_64
12064     else
12065       shared_archive_member_spec=shr
12066     fi
12067   fi
12068   ;;
12069 *)
12070   with_aix_soname=aix
12071   ;;
12072 esac
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083 # This can be used to rebuild libtool when needed
12084 LIBTOOL_DEPS=$ltmain
12085
12086 # Always use our own libtool.
12087 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118 test -z "$LN_S" && LN_S="ln -s"
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133 if test -n "${ZSH_VERSION+set}"; then
12134    setopt NO_GLOB_SUBST
12135 fi
12136
12137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12138 printf %s "checking for objdir... " >&6; }
12139 if test ${lt_cv_objdir+y}
12140 then :
12141   printf %s "(cached) " >&6
12142 else $as_nop
12143   rm -f .libs 2>/dev/null
12144 mkdir .libs 2>/dev/null
12145 if test -d .libs; then
12146   lt_cv_objdir=.libs
12147 else
12148   # MS-DOS does not allow filenames that begin with a dot.
12149   lt_cv_objdir=_libs
12150 fi
12151 rmdir .libs 2>/dev/null
12152 fi
12153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12154 printf "%s\n" "$lt_cv_objdir" >&6; }
12155 objdir=$lt_cv_objdir
12156
12157
12158
12159
12160
12161 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
12162
12163
12164
12165
12166 case $host_os in
12167 aix3*)
12168   # AIX sometimes has problems with the GCC collect2 program.  For some
12169   # reason, if we set the COLLECT_NAMES environment variable, the problems
12170   # vanish in a puff of smoke.
12171   if test set != "${COLLECT_NAMES+set}"; then
12172     COLLECT_NAMES=
12173     export COLLECT_NAMES
12174   fi
12175   ;;
12176 esac
12177
12178 # Global variables:
12179 ofile=libtool
12180 can_build_shared=yes
12181
12182 # All known linkers require a '.a' archive for static linking (except MSVC,
12183 # which needs '.lib').
12184 libext=a
12185
12186 with_gnu_ld=$lt_cv_prog_gnu_ld
12187
12188 old_CC=$CC
12189 old_CFLAGS=$CFLAGS
12190
12191 # Set sane defaults for various variables
12192 test -z "$CC" && CC=cc
12193 test -z "$LTCC" && LTCC=$CC
12194 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12195 test -z "$LD" && LD=ld
12196 test -z "$ac_objext" && ac_objext=o
12197
12198 func_cc_basename $compiler
12199 cc_basename=$func_cc_basename_result
12200
12201
12202 # Only perform the check for file, if the check method requires it
12203 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12204 case $deplibs_check_method in
12205 file_magic*)
12206   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12207     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12208 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
12209 if test ${lt_cv_path_MAGIC_CMD+y}
12210 then :
12211   printf %s "(cached) " >&6
12212 else $as_nop
12213   case $MAGIC_CMD in
12214 [\\/*] |  ?:[\\/]*)
12215   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12216   ;;
12217 *)
12218   lt_save_MAGIC_CMD=$MAGIC_CMD
12219   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12220   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12221   for ac_dir in $ac_dummy; do
12222     IFS=$lt_save_ifs
12223     test -z "$ac_dir" && ac_dir=.
12224     if test -f "$ac_dir/${ac_tool_prefix}file"; then
12225       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
12226       if test -n "$file_magic_test_file"; then
12227         case $deplibs_check_method in
12228         "file_magic "*)
12229           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12230           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12231           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12232             $EGREP "$file_magic_regex" > /dev/null; then
12233             :
12234           else
12235             cat <<_LT_EOF 1>&2
12236
12237 *** Warning: the command libtool uses to detect shared libraries,
12238 *** $file_magic_cmd, produces output that libtool cannot recognize.
12239 *** The result is that libtool may fail to recognize shared libraries
12240 *** as such.  This will affect the creation of libtool libraries that
12241 *** depend on shared libraries, but programs linked with such libtool
12242 *** libraries will work regardless of this problem.  Nevertheless, you
12243 *** may want to report the problem to your system manager and/or to
12244 *** bug-libtool@gnu.org
12245
12246 _LT_EOF
12247           fi ;;
12248         esac
12249       fi
12250       break
12251     fi
12252   done
12253   IFS=$lt_save_ifs
12254   MAGIC_CMD=$lt_save_MAGIC_CMD
12255   ;;
12256 esac
12257 fi
12258
12259 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12260 if test -n "$MAGIC_CMD"; then
12261   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12262 printf "%s\n" "$MAGIC_CMD" >&6; }
12263 else
12264   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12265 printf "%s\n" "no" >&6; }
12266 fi
12267
12268
12269
12270
12271
12272 if test -z "$lt_cv_path_MAGIC_CMD"; then
12273   if test -n "$ac_tool_prefix"; then
12274     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12275 printf %s "checking for file... " >&6; }
12276 if test ${lt_cv_path_MAGIC_CMD+y}
12277 then :
12278   printf %s "(cached) " >&6
12279 else $as_nop
12280   case $MAGIC_CMD in
12281 [\\/*] |  ?:[\\/]*)
12282   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12283   ;;
12284 *)
12285   lt_save_MAGIC_CMD=$MAGIC_CMD
12286   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12287   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12288   for ac_dir in $ac_dummy; do
12289     IFS=$lt_save_ifs
12290     test -z "$ac_dir" && ac_dir=.
12291     if test -f "$ac_dir/file"; then
12292       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
12293       if test -n "$file_magic_test_file"; then
12294         case $deplibs_check_method in
12295         "file_magic "*)
12296           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12297           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12298           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12299             $EGREP "$file_magic_regex" > /dev/null; then
12300             :
12301           else
12302             cat <<_LT_EOF 1>&2
12303
12304 *** Warning: the command libtool uses to detect shared libraries,
12305 *** $file_magic_cmd, produces output that libtool cannot recognize.
12306 *** The result is that libtool may fail to recognize shared libraries
12307 *** as such.  This will affect the creation of libtool libraries that
12308 *** depend on shared libraries, but programs linked with such libtool
12309 *** libraries will work regardless of this problem.  Nevertheless, you
12310 *** may want to report the problem to your system manager and/or to
12311 *** bug-libtool@gnu.org
12312
12313 _LT_EOF
12314           fi ;;
12315         esac
12316       fi
12317       break
12318     fi
12319   done
12320   IFS=$lt_save_ifs
12321   MAGIC_CMD=$lt_save_MAGIC_CMD
12322   ;;
12323 esac
12324 fi
12325
12326 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12327 if test -n "$MAGIC_CMD"; then
12328   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12329 printf "%s\n" "$MAGIC_CMD" >&6; }
12330 else
12331   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12332 printf "%s\n" "no" >&6; }
12333 fi
12334
12335
12336   else
12337     MAGIC_CMD=:
12338   fi
12339 fi
12340
12341   fi
12342   ;;
12343 esac
12344
12345 # Use C for the default configuration in the libtool script
12346
12347 lt_save_CC=$CC
12348 ac_ext=c
12349 ac_cpp='$CPP $CPPFLAGS'
12350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12353
12354
12355 # Source file extension for C test sources.
12356 ac_ext=c
12357
12358 # Object file extension for compiled C test sources.
12359 objext=o
12360 objext=$objext
12361
12362 # Code to be used in simple compile tests
12363 lt_simple_compile_test_code="int some_variable = 0;"
12364
12365 # Code to be used in simple link tests
12366 lt_simple_link_test_code='int main(){return(0);}'
12367
12368
12369
12370
12371
12372
12373
12374 # If no C compiler was specified, use CC.
12375 LTCC=${LTCC-"$CC"}
12376
12377 # If no C compiler flags were specified, use CFLAGS.
12378 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12379
12380 # Allow CC to be a program name with arguments.
12381 compiler=$CC
12382
12383 # Save the default compiler, since it gets overwritten when the other
12384 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12385 compiler_DEFAULT=$CC
12386
12387 # save warnings/boilerplate of simple test code
12388 ac_outfile=conftest.$ac_objext
12389 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12390 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12391 _lt_compiler_boilerplate=`cat conftest.err`
12392 $RM conftest*
12393
12394 ac_outfile=conftest.$ac_objext
12395 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12396 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12397 _lt_linker_boilerplate=`cat conftest.err`
12398 $RM -r conftest*
12399
12400
12401 ## CAVEAT EMPTOR:
12402 ## There is no encapsulation within the following macros, do not change
12403 ## the running order or otherwise move them around unless you know exactly
12404 ## what you are doing...
12405 if test -n "$compiler"; then
12406
12407 lt_prog_compiler_no_builtin_flag=
12408
12409 if test yes = "$GCC"; then
12410   case $cc_basename in
12411   nvcc*)
12412     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12413   *)
12414     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12415   esac
12416
12417   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12418 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12419 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
12420 then :
12421   printf %s "(cached) " >&6
12422 else $as_nop
12423   lt_cv_prog_compiler_rtti_exceptions=no
12424    ac_outfile=conftest.$ac_objext
12425    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12426    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
12427    # Insert the option either (1) after the last *FLAGS variable, or
12428    # (2) before a word containing "conftest.", or (3) at the end.
12429    # Note that $ac_compile itself does not contain backslashes and begins
12430    # with a dollar sign (not a hyphen), so the echo should work correctly.
12431    # The option is referenced via a variable to avoid confusing sed.
12432    lt_compile=`echo "$ac_compile" | $SED \
12433    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12434    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12435    -e 's:$: $lt_compiler_flag:'`
12436    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12437    (eval "$lt_compile" 2>conftest.err)
12438    ac_status=$?
12439    cat conftest.err >&5
12440    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441    if (exit $ac_status) && test -s "$ac_outfile"; then
12442      # The compiler can only warn and ignore the option if not recognized
12443      # So say no if there are warnings other than the usual output.
12444      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12445      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12446      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12447        lt_cv_prog_compiler_rtti_exceptions=yes
12448      fi
12449    fi
12450    $RM conftest*
12451
12452 fi
12453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12454 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12455
12456 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
12457     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12458 else
12459     :
12460 fi
12461
12462 fi
12463
12464
12465
12466
12467
12468
12469   lt_prog_compiler_wl=
12470 lt_prog_compiler_pic=
12471 lt_prog_compiler_static=
12472
12473
12474   if test yes = "$GCC"; then
12475     lt_prog_compiler_wl='-Wl,'
12476     lt_prog_compiler_static='-static'
12477
12478     case $host_os in
12479       aix*)
12480       # All AIX code is PIC.
12481       if test ia64 = "$host_cpu"; then
12482         # AIX 5 now supports IA64 processor
12483         lt_prog_compiler_static='-Bstatic'
12484       fi
12485       lt_prog_compiler_pic='-fPIC'
12486       ;;
12487
12488     amigaos*)
12489       case $host_cpu in
12490       powerpc)
12491             # see comment about AmigaOS4 .so support
12492             lt_prog_compiler_pic='-fPIC'
12493         ;;
12494       m68k)
12495             # FIXME: we need at least 68020 code to build shared libraries, but
12496             # adding the '-m68020' flag to GCC prevents building anything better,
12497             # like '-m68040'.
12498             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12499         ;;
12500       esac
12501       ;;
12502
12503     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12504       # PIC is the default for these OSes.
12505       ;;
12506
12507     mingw* | cygwin* | pw32* | os2* | cegcc*)
12508       # This hack is so that the source file can tell whether it is being
12509       # built for inclusion in a dll (and should export symbols for example).
12510       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12511       # (--disable-auto-import) libraries
12512       lt_prog_compiler_pic='-DDLL_EXPORT'
12513       case $host_os in
12514       os2*)
12515         lt_prog_compiler_static='$wl-static'
12516         ;;
12517       esac
12518       ;;
12519
12520     darwin* | rhapsody*)
12521       # PIC is the default on this platform
12522       # Common symbols not allowed in MH_DYLIB files
12523       lt_prog_compiler_pic='-fno-common'
12524       ;;
12525
12526     haiku*)
12527       # PIC is the default for Haiku.
12528       # The "-static" flag exists, but is broken.
12529       lt_prog_compiler_static=
12530       ;;
12531
12532     hpux*)
12533       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12534       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12535       # sets the default TLS model and affects inlining.
12536       case $host_cpu in
12537       hppa*64*)
12538         # +Z the default
12539         ;;
12540       *)
12541         lt_prog_compiler_pic='-fPIC'
12542         ;;
12543       esac
12544       ;;
12545
12546     interix[3-9]*)
12547       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12548       # Instead, we relocate shared libraries at runtime.
12549       ;;
12550
12551     msdosdjgpp*)
12552       # Just because we use GCC doesn't mean we suddenly get shared libraries
12553       # on systems that don't support them.
12554       lt_prog_compiler_can_build_shared=no
12555       enable_shared=no
12556       ;;
12557
12558     *nto* | *qnx*)
12559       # QNX uses GNU C++, but need to define -shared option too, otherwise
12560       # it will coredump.
12561       lt_prog_compiler_pic='-fPIC -shared'
12562       ;;
12563
12564     sysv4*MP*)
12565       if test -d /usr/nec; then
12566         lt_prog_compiler_pic=-Kconform_pic
12567       fi
12568       ;;
12569
12570     *)
12571       lt_prog_compiler_pic='-fPIC'
12572       ;;
12573     esac
12574
12575     case $cc_basename in
12576     nvcc*) # Cuda Compiler Driver 2.2
12577       lt_prog_compiler_wl='-Xlinker '
12578       if test -n "$lt_prog_compiler_pic"; then
12579         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12580       fi
12581       ;;
12582     esac
12583   else
12584     # PORTME Check for flag to pass linker flags through the system compiler.
12585     case $host_os in
12586     aix*)
12587       lt_prog_compiler_wl='-Wl,'
12588       if test ia64 = "$host_cpu"; then
12589         # AIX 5 now supports IA64 processor
12590         lt_prog_compiler_static='-Bstatic'
12591       else
12592         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12593       fi
12594       ;;
12595
12596     darwin* | rhapsody*)
12597       # PIC is the default on this platform
12598       # Common symbols not allowed in MH_DYLIB files
12599       lt_prog_compiler_pic='-fno-common'
12600       case $cc_basename in
12601       nagfor*)
12602         # NAG Fortran compiler
12603         lt_prog_compiler_wl='-Wl,-Wl,,'
12604         lt_prog_compiler_pic='-PIC'
12605         lt_prog_compiler_static='-Bstatic'
12606         ;;
12607       esac
12608       ;;
12609
12610     mingw* | cygwin* | pw32* | os2* | cegcc*)
12611       # This hack is so that the source file can tell whether it is being
12612       # built for inclusion in a dll (and should export symbols for example).
12613       lt_prog_compiler_pic='-DDLL_EXPORT'
12614       case $host_os in
12615       os2*)
12616         lt_prog_compiler_static='$wl-static'
12617         ;;
12618       esac
12619       ;;
12620
12621     hpux9* | hpux10* | hpux11*)
12622       lt_prog_compiler_wl='-Wl,'
12623       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12624       # not for PA HP-UX.
12625       case $host_cpu in
12626       hppa*64*|ia64*)
12627         # +Z the default
12628         ;;
12629       *)
12630         lt_prog_compiler_pic='+Z'
12631         ;;
12632       esac
12633       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12634       lt_prog_compiler_static='$wl-a ${wl}archive'
12635       ;;
12636
12637     irix5* | irix6* | nonstopux*)
12638       lt_prog_compiler_wl='-Wl,'
12639       # PIC (with -KPIC) is the default.
12640       lt_prog_compiler_static='-non_shared'
12641       ;;
12642
12643     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12644       case $cc_basename in
12645       # old Intel for x86_64, which still supported -KPIC.
12646       ecc*)
12647         lt_prog_compiler_wl='-Wl,'
12648         lt_prog_compiler_pic='-KPIC'
12649         lt_prog_compiler_static='-static'
12650         ;;
12651       # flang / f18. f95 an alias for gfortran or flang on Debian
12652       flang* | f18* | f95*)
12653         lt_prog_compiler_wl='-Wl,'
12654         lt_prog_compiler_pic='-fPIC'
12655         lt_prog_compiler_static='-static'
12656         ;;
12657       # icc used to be incompatible with GCC.
12658       # ICC 10 doesn't accept -KPIC any more.
12659       icc* | ifort*)
12660         lt_prog_compiler_wl='-Wl,'
12661         lt_prog_compiler_pic='-fPIC'
12662         lt_prog_compiler_static='-static'
12663         ;;
12664       # Lahey Fortran 8.1.
12665       lf95*)
12666         lt_prog_compiler_wl='-Wl,'
12667         lt_prog_compiler_pic='--shared'
12668         lt_prog_compiler_static='--static'
12669         ;;
12670       nagfor*)
12671         # NAG Fortran compiler
12672         lt_prog_compiler_wl='-Wl,-Wl,,'
12673         lt_prog_compiler_pic='-PIC'
12674         lt_prog_compiler_static='-Bstatic'
12675         ;;
12676       tcc*)
12677         # Fabrice Bellard et al's Tiny C Compiler
12678         lt_prog_compiler_wl='-Wl,'
12679         lt_prog_compiler_pic='-fPIC'
12680         lt_prog_compiler_static='-static'
12681         ;;
12682       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12683         # Portland Group compilers (*not* the Pentium gcc compiler,
12684         # which looks to be a dead project)
12685         lt_prog_compiler_wl='-Wl,'
12686         lt_prog_compiler_pic='-fpic'
12687         lt_prog_compiler_static='-Bstatic'
12688         ;;
12689       ccc*)
12690         lt_prog_compiler_wl='-Wl,'
12691         # All Alpha code is PIC.
12692         lt_prog_compiler_static='-non_shared'
12693         ;;
12694       xl* | bgxl* | bgf* | mpixl*)
12695         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12696         lt_prog_compiler_wl='-Wl,'
12697         lt_prog_compiler_pic='-qpic'
12698         lt_prog_compiler_static='-qstaticlink'
12699         ;;
12700       *)
12701         case `$CC -V 2>&1 | sed 5q` in
12702         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12703           # Sun Fortran 8.3 passes all unrecognized flags to the linker
12704           lt_prog_compiler_pic='-KPIC'
12705           lt_prog_compiler_static='-Bstatic'
12706           lt_prog_compiler_wl=''
12707           ;;
12708         *Sun\ F* | *Sun*Fortran*)
12709           lt_prog_compiler_pic='-KPIC'
12710           lt_prog_compiler_static='-Bstatic'
12711           lt_prog_compiler_wl='-Qoption ld '
12712           ;;
12713         *Sun\ C*)
12714           # Sun C 5.9
12715           lt_prog_compiler_pic='-KPIC'
12716           lt_prog_compiler_static='-Bstatic'
12717           lt_prog_compiler_wl='-Wl,'
12718           ;;
12719         *Intel*\ [CF]*Compiler*)
12720           lt_prog_compiler_wl='-Wl,'
12721           lt_prog_compiler_pic='-fPIC'
12722           lt_prog_compiler_static='-static'
12723           ;;
12724         *Portland\ Group*)
12725           lt_prog_compiler_wl='-Wl,'
12726           lt_prog_compiler_pic='-fpic'
12727           lt_prog_compiler_static='-Bstatic'
12728           ;;
12729         esac
12730         ;;
12731       esac
12732       ;;
12733
12734     newsos6)
12735       lt_prog_compiler_pic='-KPIC'
12736       lt_prog_compiler_static='-Bstatic'
12737       ;;
12738
12739     *nto* | *qnx*)
12740       # QNX uses GNU C++, but need to define -shared option too, otherwise
12741       # it will coredump.
12742       lt_prog_compiler_pic='-fPIC -shared'
12743       ;;
12744
12745     osf3* | osf4* | osf5*)
12746       lt_prog_compiler_wl='-Wl,'
12747       # All OSF/1 code is PIC.
12748       lt_prog_compiler_static='-non_shared'
12749       ;;
12750
12751     rdos*)
12752       lt_prog_compiler_static='-non_shared'
12753       ;;
12754
12755     solaris*)
12756       lt_prog_compiler_pic='-KPIC'
12757       lt_prog_compiler_static='-Bstatic'
12758       case $cc_basename in
12759       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12760         lt_prog_compiler_wl='-Qoption ld ';;
12761       *)
12762         lt_prog_compiler_wl='-Wl,';;
12763       esac
12764       ;;
12765
12766     sunos4*)
12767       lt_prog_compiler_wl='-Qoption ld '
12768       lt_prog_compiler_pic='-PIC'
12769       lt_prog_compiler_static='-Bstatic'
12770       ;;
12771
12772     sysv4 | sysv4.2uw2* | sysv4.3*)
12773       lt_prog_compiler_wl='-Wl,'
12774       lt_prog_compiler_pic='-KPIC'
12775       lt_prog_compiler_static='-Bstatic'
12776       ;;
12777
12778     sysv4*MP*)
12779       if test -d /usr/nec; then
12780         lt_prog_compiler_pic='-Kconform_pic'
12781         lt_prog_compiler_static='-Bstatic'
12782       fi
12783       ;;
12784
12785     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12786       lt_prog_compiler_wl='-Wl,'
12787       lt_prog_compiler_pic='-KPIC'
12788       lt_prog_compiler_static='-Bstatic'
12789       ;;
12790
12791     unicos*)
12792       lt_prog_compiler_wl='-Wl,'
12793       lt_prog_compiler_can_build_shared=no
12794       ;;
12795
12796     uts4*)
12797       lt_prog_compiler_pic='-pic'
12798       lt_prog_compiler_static='-Bstatic'
12799       ;;
12800
12801     *)
12802       lt_prog_compiler_can_build_shared=no
12803       ;;
12804     esac
12805   fi
12806
12807 case $host_os in
12808   # For platforms that do not support PIC, -DPIC is meaningless:
12809   *djgpp*)
12810     lt_prog_compiler_pic=
12811     ;;
12812   *)
12813     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12814     ;;
12815 esac
12816
12817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12818 printf %s "checking for $compiler option to produce PIC... " >&6; }
12819 if test ${lt_cv_prog_compiler_pic+y}
12820 then :
12821   printf %s "(cached) " >&6
12822 else $as_nop
12823   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12824 fi
12825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12826 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12827 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12828
12829 #
12830 # Check to make sure the PIC flag actually works.
12831 #
12832 if test -n "$lt_prog_compiler_pic"; then
12833   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12834 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12835 if test ${lt_cv_prog_compiler_pic_works+y}
12836 then :
12837   printf %s "(cached) " >&6
12838 else $as_nop
12839   lt_cv_prog_compiler_pic_works=no
12840    ac_outfile=conftest.$ac_objext
12841    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12842    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
12843    # Insert the option either (1) after the last *FLAGS variable, or
12844    # (2) before a word containing "conftest.", or (3) at the end.
12845    # Note that $ac_compile itself does not contain backslashes and begins
12846    # with a dollar sign (not a hyphen), so the echo should work correctly.
12847    # The option is referenced via a variable to avoid confusing sed.
12848    lt_compile=`echo "$ac_compile" | $SED \
12849    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12850    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12851    -e 's:$: $lt_compiler_flag:'`
12852    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12853    (eval "$lt_compile" 2>conftest.err)
12854    ac_status=$?
12855    cat conftest.err >&5
12856    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857    if (exit $ac_status) && test -s "$ac_outfile"; then
12858      # The compiler can only warn and ignore the option if not recognized
12859      # So say no if there are warnings other than the usual output.
12860      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12861      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12862      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12863        lt_cv_prog_compiler_pic_works=yes
12864      fi
12865    fi
12866    $RM conftest*
12867
12868 fi
12869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12870 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12871
12872 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12873     case $lt_prog_compiler_pic in
12874      "" | " "*) ;;
12875      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12876      esac
12877 else
12878     lt_prog_compiler_pic=
12879      lt_prog_compiler_can_build_shared=no
12880 fi
12881
12882 fi
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894 #
12895 # Check to make sure the static flag actually works.
12896 #
12897 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12899 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12900 if test ${lt_cv_prog_compiler_static_works+y}
12901 then :
12902   printf %s "(cached) " >&6
12903 else $as_nop
12904   lt_cv_prog_compiler_static_works=no
12905    save_LDFLAGS=$LDFLAGS
12906    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12907    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12908    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12909      # The linker can only warn and ignore the option if not recognized
12910      # So say no if there are warnings
12911      if test -s conftest.err; then
12912        # Append any errors to the config.log.
12913        cat conftest.err 1>&5
12914        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12915        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12916        if diff conftest.exp conftest.er2 >/dev/null; then
12917          lt_cv_prog_compiler_static_works=yes
12918        fi
12919      else
12920        lt_cv_prog_compiler_static_works=yes
12921      fi
12922    fi
12923    $RM -r conftest*
12924    LDFLAGS=$save_LDFLAGS
12925
12926 fi
12927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12928 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12929
12930 if test yes = "$lt_cv_prog_compiler_static_works"; then
12931     :
12932 else
12933     lt_prog_compiler_static=
12934 fi
12935
12936
12937
12938
12939
12940
12941
12942   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12943 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12944 if test ${lt_cv_prog_compiler_c_o+y}
12945 then :
12946   printf %s "(cached) " >&6
12947 else $as_nop
12948   lt_cv_prog_compiler_c_o=no
12949    $RM -r conftest 2>/dev/null
12950    mkdir conftest
12951    cd conftest
12952    mkdir out
12953    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12954
12955    lt_compiler_flag="-o out/conftest2.$ac_objext"
12956    # Insert the option either (1) after the last *FLAGS variable, or
12957    # (2) before a word containing "conftest.", or (3) at the end.
12958    # Note that $ac_compile itself does not contain backslashes and begins
12959    # with a dollar sign (not a hyphen), so the echo should work correctly.
12960    lt_compile=`echo "$ac_compile" | $SED \
12961    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12962    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12963    -e 's:$: $lt_compiler_flag:'`
12964    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12965    (eval "$lt_compile" 2>out/conftest.err)
12966    ac_status=$?
12967    cat out/conftest.err >&5
12968    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12970    then
12971      # The compiler can only warn and ignore the option if not recognized
12972      # So say no if there are warnings
12973      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12974      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12975      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12976        lt_cv_prog_compiler_c_o=yes
12977      fi
12978    fi
12979    chmod u+w . 2>&5
12980    $RM conftest*
12981    # SGI C++ compiler will create directory out/ii_files/ for
12982    # template instantiation
12983    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12984    $RM out/* && rmdir out
12985    cd ..
12986    $RM -r conftest
12987    $RM conftest*
12988
12989 fi
12990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12991 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12992
12993
12994
12995
12996
12997
12998   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12999 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13000 if test ${lt_cv_prog_compiler_c_o+y}
13001 then :
13002   printf %s "(cached) " >&6
13003 else $as_nop
13004   lt_cv_prog_compiler_c_o=no
13005    $RM -r conftest 2>/dev/null
13006    mkdir conftest
13007    cd conftest
13008    mkdir out
13009    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13010
13011    lt_compiler_flag="-o out/conftest2.$ac_objext"
13012    # Insert the option either (1) after the last *FLAGS variable, or
13013    # (2) before a word containing "conftest.", or (3) at the end.
13014    # Note that $ac_compile itself does not contain backslashes and begins
13015    # with a dollar sign (not a hyphen), so the echo should work correctly.
13016    lt_compile=`echo "$ac_compile" | $SED \
13017    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13018    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13019    -e 's:$: $lt_compiler_flag:'`
13020    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13021    (eval "$lt_compile" 2>out/conftest.err)
13022    ac_status=$?
13023    cat out/conftest.err >&5
13024    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13026    then
13027      # The compiler can only warn and ignore the option if not recognized
13028      # So say no if there are warnings
13029      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13030      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13031      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13032        lt_cv_prog_compiler_c_o=yes
13033      fi
13034    fi
13035    chmod u+w . 2>&5
13036    $RM conftest*
13037    # SGI C++ compiler will create directory out/ii_files/ for
13038    # template instantiation
13039    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13040    $RM out/* && rmdir out
13041    cd ..
13042    $RM -r conftest
13043    $RM conftest*
13044
13045 fi
13046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13047 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13048
13049
13050
13051
13052 hard_links=nottested
13053 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
13054   # do not overwrite the value of need_locks provided by the user
13055   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13056 printf %s "checking if we can lock with hard links... " >&6; }
13057   hard_links=yes
13058   $RM conftest*
13059   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13060   touch conftest.a
13061   ln conftest.a conftest.b 2>&5 || hard_links=no
13062   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13063   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13064 printf "%s\n" "$hard_links" >&6; }
13065   if test no = "$hard_links"; then
13066     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
13067 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
13068     need_locks=warn
13069   fi
13070 else
13071   need_locks=no
13072 fi
13073
13074
13075
13076
13077
13078
13079   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13080 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13081
13082   runpath_var=
13083   allow_undefined_flag=
13084   always_export_symbols=no
13085   archive_cmds=
13086   archive_expsym_cmds=
13087   compiler_needs_object=no
13088   enable_shared_with_static_runtimes=no
13089   export_dynamic_flag_spec=
13090   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13091   hardcode_automatic=no
13092   hardcode_direct=no
13093   hardcode_direct_absolute=no
13094   hardcode_libdir_flag_spec=
13095   hardcode_libdir_separator=
13096   hardcode_minus_L=no
13097   hardcode_shlibpath_var=unsupported
13098   inherit_rpath=no
13099   link_all_deplibs=unknown
13100   module_cmds=
13101   module_expsym_cmds=
13102   old_archive_from_new_cmds=
13103   old_archive_from_expsyms_cmds=
13104   thread_safe_flag_spec=
13105   whole_archive_flag_spec=
13106   # include_expsyms should be a list of space-separated symbols to be *always*
13107   # included in the symbol list
13108   include_expsyms=
13109   # exclude_expsyms can be an extended regexp of symbols to exclude
13110   # it will be wrapped by ' (' and ')$', so one must not match beginning or
13111   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
13112   # as well as any symbol that contains 'd'.
13113   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13114   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13115   # platforms (ab)use it in PIC code, but their linkers get confused if
13116   # the symbol is explicitly referenced.  Since portable code cannot
13117   # rely on this symbol name, it's probably fine to never include it in
13118   # preloaded symbol tables.
13119   # Exclude shared library initialization/finalization symbols.
13120   extract_expsyms_cmds=
13121
13122   case $host_os in
13123   cygwin* | mingw* | pw32* | cegcc*)
13124     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13125     # When not using gcc, we currently assume that we are using
13126     # Microsoft Visual C++.
13127     if test yes != "$GCC"; then
13128       with_gnu_ld=no
13129     fi
13130     ;;
13131   interix*)
13132     # we just hope/assume this is gcc and not c89 (= MSVC++)
13133     with_gnu_ld=yes
13134     ;;
13135   openbsd* | bitrig*)
13136     with_gnu_ld=no
13137     ;;
13138   linux* | k*bsd*-gnu | gnu*)
13139     link_all_deplibs=no
13140     ;;
13141   esac
13142
13143   ld_shlibs=yes
13144
13145   # On some targets, GNU ld is compatible enough with the native linker
13146   # that we're better off using the native interface for both.
13147   lt_use_gnu_ld_interface=no
13148   if test yes = "$with_gnu_ld"; then
13149     case $host_os in
13150       aix*)
13151         # The AIX port of GNU ld has always aspired to compatibility
13152         # with the native linker.  However, as the warning in the GNU ld
13153         # block says, versions before 2.19.5* couldn't really create working
13154         # shared libraries, regardless of the interface used.
13155         case `$LD -v 2>&1` in
13156           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13157           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13158           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13159           *)
13160             lt_use_gnu_ld_interface=yes
13161             ;;
13162         esac
13163         ;;
13164       *)
13165         lt_use_gnu_ld_interface=yes
13166         ;;
13167     esac
13168   fi
13169
13170   if test yes = "$lt_use_gnu_ld_interface"; then
13171     # If archive_cmds runs LD, not CC, wlarc should be empty
13172     wlarc='$wl'
13173
13174     # Set some defaults for GNU ld with shared library support. These
13175     # are reset later if shared libraries are not supported. Putting them
13176     # here allows them to be overridden if necessary.
13177     runpath_var=LD_RUN_PATH
13178     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13179     export_dynamic_flag_spec='$wl--export-dynamic'
13180     # ancient GNU ld didn't support --whole-archive et. al.
13181     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13182       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13183     else
13184       whole_archive_flag_spec=
13185     fi
13186     supports_anon_versioning=no
13187     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
13188       *GNU\ gold*) supports_anon_versioning=yes ;;
13189       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13190       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13191       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13192       *\ 2.11.*) ;; # other 2.11 versions
13193       *) supports_anon_versioning=yes ;;
13194     esac
13195
13196     # See if GNU ld supports shared libraries.
13197     case $host_os in
13198     aix[3-9]*)
13199       # On AIX/PPC, the GNU linker is very broken
13200       if test ia64 != "$host_cpu"; then
13201         ld_shlibs=no
13202         cat <<_LT_EOF 1>&2
13203
13204 *** Warning: the GNU linker, at least up to release 2.19, is reported
13205 *** to be unable to reliably create shared libraries on AIX.
13206 *** Therefore, libtool is disabling shared libraries support.  If you
13207 *** really care for shared libraries, you may want to install binutils
13208 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13209 *** You will then need to restart the configuration process.
13210
13211 _LT_EOF
13212       fi
13213       ;;
13214
13215     amigaos*)
13216       case $host_cpu in
13217       powerpc)
13218             # see comment about AmigaOS4 .so support
13219             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13220             archive_expsym_cmds=''
13221         ;;
13222       m68k)
13223             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)'
13224             hardcode_libdir_flag_spec='-L$libdir'
13225             hardcode_minus_L=yes
13226         ;;
13227       esac
13228       ;;
13229
13230     beos*)
13231       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13232         allow_undefined_flag=unsupported
13233         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13234         # support --undefined.  This deserves some investigation.  FIXME
13235         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13236       else
13237         ld_shlibs=no
13238       fi
13239       ;;
13240
13241     cygwin* | mingw* | pw32* | cegcc*)
13242       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13243       # as there is no search path for DLLs.
13244       hardcode_libdir_flag_spec='-L$libdir'
13245       export_dynamic_flag_spec='$wl--export-all-symbols'
13246       allow_undefined_flag=unsupported
13247       always_export_symbols=no
13248       enable_shared_with_static_runtimes=yes
13249       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'
13250       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13251
13252       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13253         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13254         # If the export-symbols file already is a .def file, use it as
13255         # is; otherwise, prepend EXPORTS...
13256         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13257           cp $export_symbols $output_objdir/$soname.def;
13258         else
13259           echo EXPORTS > $output_objdir/$soname.def;
13260           cat $export_symbols >> $output_objdir/$soname.def;
13261         fi~
13262         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13263       else
13264         ld_shlibs=no
13265       fi
13266       ;;
13267
13268     haiku*)
13269       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13270       link_all_deplibs=yes
13271       ;;
13272
13273     os2*)
13274       hardcode_libdir_flag_spec='-L$libdir'
13275       hardcode_minus_L=yes
13276       allow_undefined_flag=unsupported
13277       shrext_cmds=.dll
13278       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13279         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13280         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13281         $ECHO EXPORTS >> $output_objdir/$libname.def~
13282         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13283         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13284         emximp -o $lib $output_objdir/$libname.def'
13285       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13286         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13287         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13288         $ECHO EXPORTS >> $output_objdir/$libname.def~
13289         prefix_cmds="$SED"~
13290         if test EXPORTS = "`$SED 1q $export_symbols`"; then
13291           prefix_cmds="$prefix_cmds -e 1d";
13292         fi~
13293         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13294         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13295         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13296         emximp -o $lib $output_objdir/$libname.def'
13297       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13298       enable_shared_with_static_runtimes=yes
13299       ;;
13300
13301     interix[3-9]*)
13302       hardcode_direct=no
13303       hardcode_shlibpath_var=no
13304       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13305       export_dynamic_flag_spec='$wl-E'
13306       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13307       # Instead, shared libraries are loaded at an image base (0x10000000 by
13308       # default) and relocated if they conflict, which is a slow very memory
13309       # consuming and fragmenting process.  To avoid this, we pick a random,
13310       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13311       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13312       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13313       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'
13314       ;;
13315
13316     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13317       tmp_diet=no
13318       if test linux-dietlibc = "$host_os"; then
13319         case $cc_basename in
13320           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
13321         esac
13322       fi
13323       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13324          && test no = "$tmp_diet"
13325       then
13326         tmp_addflag=' $pic_flag'
13327         tmp_sharedflag='-shared'
13328         case $cc_basename,$host_cpu in
13329         pgcc*)                          # Portland Group C compiler
13330           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'
13331           tmp_addflag=' $pic_flag'
13332           ;;
13333         pgf77* | pgf90* | pgf95* | pgfortran*)
13334                                         # Portland Group f77 and f90 compilers
13335           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'
13336           tmp_addflag=' $pic_flag -Mnomain' ;;
13337         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
13338           tmp_addflag=' -i_dynamic' ;;
13339         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13340           tmp_addflag=' -i_dynamic -nofor_main' ;;
13341         ifc* | ifort*)                  # Intel Fortran compiler
13342           tmp_addflag=' -nofor_main' ;;
13343         lf95*)                          # Lahey Fortran 8.1
13344           whole_archive_flag_spec=
13345           tmp_sharedflag='--shared' ;;
13346         nagfor*)                        # NAGFOR 5.3
13347           tmp_sharedflag='-Wl,-shared' ;;
13348         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13349           tmp_sharedflag='-qmkshrobj'
13350           tmp_addflag= ;;
13351         nvcc*)  # Cuda Compiler Driver 2.2
13352           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'
13353           compiler_needs_object=yes
13354           ;;
13355         esac
13356         case `$CC -V 2>&1 | sed 5q` in
13357         *Sun\ C*)                       # Sun C 5.9
13358           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'
13359           compiler_needs_object=yes
13360           tmp_sharedflag='-G' ;;
13361         *Sun\ F*)                       # Sun Fortran 8.3
13362           tmp_sharedflag='-G' ;;
13363         esac
13364         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13365
13366         if test yes = "$supports_anon_versioning"; then
13367           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13368             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13369             echo "local: *; };" >> $output_objdir/$libname.ver~
13370             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13371         fi
13372
13373         case $cc_basename in
13374         tcc*)
13375           export_dynamic_flag_spec='-rdynamic'
13376           ;;
13377         xlf* | bgf* | bgxlf* | mpixlf*)
13378           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13379           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13380           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13381           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13382           if test yes = "$supports_anon_versioning"; then
13383             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13384               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13385               echo "local: *; };" >> $output_objdir/$libname.ver~
13386               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13387           fi
13388           ;;
13389         esac
13390       else
13391         ld_shlibs=no
13392       fi
13393       ;;
13394
13395     netbsd* | netbsdelf*-gnu)
13396       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13397         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13398         wlarc=
13399       else
13400         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13401         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13402       fi
13403       ;;
13404
13405     solaris*)
13406       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13407         ld_shlibs=no
13408         cat <<_LT_EOF 1>&2
13409
13410 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13411 *** create shared libraries on Solaris systems.  Therefore, libtool
13412 *** is disabling shared libraries support.  We urge you to upgrade GNU
13413 *** binutils to release 2.9.1 or newer.  Another option is to modify
13414 *** your PATH or compiler configuration so that the native linker is
13415 *** used, and then restart.
13416
13417 _LT_EOF
13418       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13419         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13420         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13421       else
13422         ld_shlibs=no
13423       fi
13424       ;;
13425
13426     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13427       case `$LD -v 2>&1` in
13428         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13429         ld_shlibs=no
13430         cat <<_LT_EOF 1>&2
13431
13432 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
13433 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13434 *** is disabling shared libraries support.  We urge you to upgrade GNU
13435 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13436 *** your PATH or compiler configuration so that the native linker is
13437 *** used, and then restart.
13438
13439 _LT_EOF
13440         ;;
13441         *)
13442           # For security reasons, it is highly recommended that you always
13443           # use absolute paths for naming shared libraries, and exclude the
13444           # DT_RUNPATH tag from executables and libraries.  But doing so
13445           # requires that you compile everything twice, which is a pain.
13446           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13447             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13448             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13449             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13450           else
13451             ld_shlibs=no
13452           fi
13453         ;;
13454       esac
13455       ;;
13456
13457     sunos4*)
13458       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13459       wlarc=
13460       hardcode_direct=yes
13461       hardcode_shlibpath_var=no
13462       ;;
13463
13464     *)
13465       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13466         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13467         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13468       else
13469         ld_shlibs=no
13470       fi
13471       ;;
13472     esac
13473
13474     if test no = "$ld_shlibs"; then
13475       runpath_var=
13476       hardcode_libdir_flag_spec=
13477       export_dynamic_flag_spec=
13478       whole_archive_flag_spec=
13479     fi
13480   else
13481     # PORTME fill in a description of your system's linker (not GNU ld)
13482     case $host_os in
13483     aix3*)
13484       allow_undefined_flag=unsupported
13485       always_export_symbols=yes
13486       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'
13487       # Note: this linker hardcodes the directories in LIBPATH if there
13488       # are no directories specified by -L.
13489       hardcode_minus_L=yes
13490       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13491         # Neither direct hardcoding nor static linking is supported with a
13492         # broken collect2.
13493         hardcode_direct=unsupported
13494       fi
13495       ;;
13496
13497     aix[4-9]*)
13498       if test ia64 = "$host_cpu"; then
13499         # On IA64, the linker does run time linking by default, so we don't
13500         # have to do anything special.
13501         aix_use_runtimelinking=no
13502         exp_sym_flag='-Bexport'
13503         no_entry_flag=
13504       else
13505         # If we're using GNU nm, then we don't want the "-C" option.
13506         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
13507         # Without the "-l" option, or with the "-B" option, AIX nm treats
13508         # weak defined symbols like other global defined symbols, whereas
13509         # GNU nm marks them as "W".
13510         # While the 'weak' keyword is ignored in the Export File, we need
13511         # it in the Import File for the 'aix-soname' feature, so we have
13512         # to replace the "-B" option with "-P" for AIX nm.
13513         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13514           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'
13515         else
13516           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'
13517         fi
13518         aix_use_runtimelinking=no
13519
13520         # Test if we are trying to use run time linking or normal
13521         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13522         # have runtime linking enabled, and use it for executables.
13523         # For shared libraries, we enable/disable runtime linking
13524         # depending on the kind of the shared library created -
13525         # when "with_aix_soname,aix_use_runtimelinking" is:
13526         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13527         # "aix,yes"  lib.so          shared, rtl:yes, for executables
13528         #            lib.a           static archive
13529         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
13530         #            lib.a(lib.so.V) shared, rtl:no,  for executables
13531         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13532         #            lib.a(lib.so.V) shared, rtl:no
13533         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13534         #            lib.a           static archive
13535         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13536           for ld_flag in $LDFLAGS; do
13537           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13538             aix_use_runtimelinking=yes
13539             break
13540           fi
13541           done
13542           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13543             # With aix-soname=svr4, we create the lib.so.V shared archives only,
13544             # so we don't have lib.a shared libs to link our executables.
13545             # We have to force runtime linking in this case.
13546             aix_use_runtimelinking=yes
13547             LDFLAGS="$LDFLAGS -Wl,-brtl"
13548           fi
13549           ;;
13550         esac
13551
13552         exp_sym_flag='-bexport'
13553         no_entry_flag='-bnoentry'
13554       fi
13555
13556       # When large executables or shared objects are built, AIX ld can
13557       # have problems creating the table of contents.  If linking a library
13558       # or program results in "error TOC overflow" add -mminimal-toc to
13559       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13560       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13561
13562       archive_cmds=''
13563       hardcode_direct=yes
13564       hardcode_direct_absolute=yes
13565       hardcode_libdir_separator=':'
13566       link_all_deplibs=yes
13567       file_list_spec='$wl-f,'
13568       case $with_aix_soname,$aix_use_runtimelinking in
13569       aix,*) ;; # traditional, no import file
13570       svr4,* | *,yes) # use import file
13571         # The Import File defines what to hardcode.
13572         hardcode_direct=no
13573         hardcode_direct_absolute=no
13574         ;;
13575       esac
13576
13577       if test yes = "$GCC"; then
13578         case $host_os in aix4.[012]|aix4.[012].*)
13579         # We only want to do this on AIX 4.2 and lower, the check
13580         # below for broken collect2 doesn't work under 4.3+
13581           collect2name=`$CC -print-prog-name=collect2`
13582           if test -f "$collect2name" &&
13583            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13584           then
13585           # We have reworked collect2
13586           :
13587           else
13588           # We have old collect2
13589           hardcode_direct=unsupported
13590           # It fails to find uninstalled libraries when the uninstalled
13591           # path is not listed in the libpath.  Setting hardcode_minus_L
13592           # to unsupported forces relinking
13593           hardcode_minus_L=yes
13594           hardcode_libdir_flag_spec='-L$libdir'
13595           hardcode_libdir_separator=
13596           fi
13597           ;;
13598         esac
13599         shared_flag='-shared'
13600         if test yes = "$aix_use_runtimelinking"; then
13601           shared_flag="$shared_flag "'$wl-G'
13602         fi
13603         # Need to ensure runtime linking is disabled for the traditional
13604         # shared library, or the linker may eventually find shared libraries
13605         # /with/ Import File - we do not want to mix them.
13606         shared_flag_aix='-shared'
13607         shared_flag_svr4='-shared $wl-G'
13608       else
13609         # not using gcc
13610         if test ia64 = "$host_cpu"; then
13611         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13612         # chokes on -Wl,-G. The following line is correct:
13613           shared_flag='-G'
13614         else
13615           if test yes = "$aix_use_runtimelinking"; then
13616             shared_flag='$wl-G'
13617           else
13618             shared_flag='$wl-bM:SRE'
13619           fi
13620           shared_flag_aix='$wl-bM:SRE'
13621           shared_flag_svr4='$wl-G'
13622         fi
13623       fi
13624
13625       export_dynamic_flag_spec='$wl-bexpall'
13626       # It seems that -bexpall does not export symbols beginning with
13627       # underscore (_), so it is better to generate a list of symbols to export.
13628       always_export_symbols=yes
13629       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13630         # Warning - without using the other runtime loading flags (-brtl),
13631         # -berok will link without error, but may produce a broken library.
13632         allow_undefined_flag='-berok'
13633         # Determine the default libpath from the value encoded in an
13634         # empty executable.
13635         if test set = "${lt_cv_aix_libpath+set}"; then
13636   aix_libpath=$lt_cv_aix_libpath
13637 else
13638   if test ${lt_cv_aix_libpath_+y}
13639 then :
13640   printf %s "(cached) " >&6
13641 else $as_nop
13642   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13643 /* end confdefs.h.  */
13644
13645 int main (void)
13646 {
13647
13648  ;
13649  return 0;
13650 }
13651 _ACEOF
13652 if ac_fn_c_try_link "$LINENO"
13653 then :
13654
13655   lt_aix_libpath_sed='
13656       /Import File Strings/,/^$/ {
13657           /^0/ {
13658               s/^0  *\([^ ]*\) *$/\1/
13659               p
13660           }
13661       }'
13662   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13663   # Check for a 64-bit object if we didn't find anything.
13664   if test -z "$lt_cv_aix_libpath_"; then
13665     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13666   fi
13667 fi
13668 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13669     conftest$ac_exeext conftest.$ac_ext
13670   if test -z "$lt_cv_aix_libpath_"; then
13671     lt_cv_aix_libpath_=/usr/lib:/lib
13672   fi
13673
13674 fi
13675
13676   aix_libpath=$lt_cv_aix_libpath_
13677 fi
13678
13679         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13680         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
13681       else
13682         if test ia64 = "$host_cpu"; then
13683           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13684           allow_undefined_flag="-z nodefs"
13685           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"
13686         else
13687          # Determine the default libpath from the value encoded in an
13688          # empty executable.
13689          if test set = "${lt_cv_aix_libpath+set}"; then
13690   aix_libpath=$lt_cv_aix_libpath
13691 else
13692   if test ${lt_cv_aix_libpath_+y}
13693 then :
13694   printf %s "(cached) " >&6
13695 else $as_nop
13696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13697 /* end confdefs.h.  */
13698
13699 int main (void)
13700 {
13701
13702  ;
13703  return 0;
13704 }
13705 _ACEOF
13706 if ac_fn_c_try_link "$LINENO"
13707 then :
13708
13709   lt_aix_libpath_sed='
13710       /Import File Strings/,/^$/ {
13711           /^0/ {
13712               s/^0  *\([^ ]*\) *$/\1/
13713               p
13714           }
13715       }'
13716   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13717   # Check for a 64-bit object if we didn't find anything.
13718   if test -z "$lt_cv_aix_libpath_"; then
13719     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13720   fi
13721 fi
13722 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13723     conftest$ac_exeext conftest.$ac_ext
13724   if test -z "$lt_cv_aix_libpath_"; then
13725     lt_cv_aix_libpath_=/usr/lib:/lib
13726   fi
13727
13728 fi
13729
13730   aix_libpath=$lt_cv_aix_libpath_
13731 fi
13732
13733          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13734           # Warning - without using the other run time loading flags,
13735           # -berok will link without error, but may produce a broken library.
13736           no_undefined_flag=' $wl-bernotok'
13737           allow_undefined_flag=' $wl-berok'
13738           if test yes = "$with_gnu_ld"; then
13739             # We only use this code for GNU lds that support --whole-archive.
13740             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13741           else
13742             # Exported symbols can be pulled into shared objects from archives
13743             whole_archive_flag_spec='$convenience'
13744           fi
13745           archive_cmds_need_lc=yes
13746           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13747           # -brtl affects multiple linker settings, -berok does not and is overridden later
13748           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13749           if test svr4 != "$with_aix_soname"; then
13750             # This is similar to how AIX traditionally builds its shared libraries.
13751             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'
13752           fi
13753           if test aix != "$with_aix_soname"; then
13754             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'
13755           else
13756             # used by -dlpreopen to get the symbols
13757             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13758           fi
13759           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13760         fi
13761       fi
13762       ;;
13763
13764     amigaos*)
13765       case $host_cpu in
13766       powerpc)
13767             # see comment about AmigaOS4 .so support
13768             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13769             archive_expsym_cmds=''
13770         ;;
13771       m68k)
13772             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)'
13773             hardcode_libdir_flag_spec='-L$libdir'
13774             hardcode_minus_L=yes
13775         ;;
13776       esac
13777       ;;
13778
13779     bsdi[45]*)
13780       export_dynamic_flag_spec=-rdynamic
13781       ;;
13782
13783     cygwin* | mingw* | pw32* | cegcc*)
13784       # When not using gcc, we currently assume that we are using
13785       # Microsoft Visual C++.
13786       # hardcode_libdir_flag_spec is actually meaningless, as there is
13787       # no search path for DLLs.
13788       case $cc_basename in
13789       cl*)
13790         # Native MSVC
13791         hardcode_libdir_flag_spec=' '
13792         allow_undefined_flag=unsupported
13793         always_export_symbols=yes
13794         file_list_spec='@'
13795         # Tell ltmain to make .lib files, not .a files.
13796         libext=lib
13797         # Tell ltmain to make .dll files, not .so files.
13798         shrext_cmds=.dll
13799         # FIXME: Setting linknames here is a bad hack.
13800         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13801         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13802             cp "$export_symbols" "$output_objdir/$soname.def";
13803             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13804           else
13805             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13806           fi~
13807           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13808           linknames='
13809         # The linker will not automatically build a static lib if we build a DLL.
13810         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13811         enable_shared_with_static_runtimes=yes
13812         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13813         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13814         # Don't use ranlib
13815         old_postinstall_cmds='chmod 644 $oldlib'
13816         postlink_cmds='lt_outputfile="@OUTPUT@"~
13817           lt_tool_outputfile="@TOOL_OUTPUT@"~
13818           case $lt_outputfile in
13819             *.exe|*.EXE) ;;
13820             *)
13821               lt_outputfile=$lt_outputfile.exe
13822               lt_tool_outputfile=$lt_tool_outputfile.exe
13823               ;;
13824           esac~
13825           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13826             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13827             $RM "$lt_outputfile.manifest";
13828           fi'
13829         ;;
13830       *)
13831         # Assume MSVC wrapper
13832         hardcode_libdir_flag_spec=' '
13833         allow_undefined_flag=unsupported
13834         # Tell ltmain to make .lib files, not .a files.
13835         libext=lib
13836         # Tell ltmain to make .dll files, not .so files.
13837         shrext_cmds=.dll
13838         # FIXME: Setting linknames here is a bad hack.
13839         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13840         # The linker will automatically build a .lib file if we build a DLL.
13841         old_archive_from_new_cmds='true'
13842         # FIXME: Should let the user specify the lib program.
13843         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13844         enable_shared_with_static_runtimes=yes
13845         ;;
13846       esac
13847       ;;
13848
13849     darwin* | rhapsody*)
13850
13851
13852   archive_cmds_need_lc=no
13853   hardcode_direct=no
13854   hardcode_automatic=yes
13855   hardcode_shlibpath_var=unsupported
13856   if test yes = "$lt_cv_ld_force_load"; then
13857     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\"`'
13858
13859   else
13860     whole_archive_flag_spec=''
13861   fi
13862   link_all_deplibs=yes
13863   allow_undefined_flag=$_lt_dar_allow_undefined
13864   case $cc_basename in
13865      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13866      *) _lt_dar_can_shared=$GCC ;;
13867   esac
13868   if test yes = "$_lt_dar_can_shared"; then
13869     output_verbose_link_cmd=func_echo_all
13870     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13871     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13872     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"
13873     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"
13874
13875   else
13876   ld_shlibs=no
13877   fi
13878
13879       ;;
13880
13881     dgux*)
13882       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13883       hardcode_libdir_flag_spec='-L$libdir'
13884       hardcode_shlibpath_var=no
13885       ;;
13886
13887     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13888     # support.  Future versions do this automatically, but an explicit c++rt0.o
13889     # does not break anything, and helps significantly (at the cost of a little
13890     # extra space).
13891     freebsd2.2*)
13892       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13893       hardcode_libdir_flag_spec='-R$libdir'
13894       hardcode_direct=yes
13895       hardcode_shlibpath_var=no
13896       ;;
13897
13898     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13899     freebsd2.*)
13900       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13901       hardcode_direct=yes
13902       hardcode_minus_L=yes
13903       hardcode_shlibpath_var=no
13904       ;;
13905
13906     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13907     freebsd* | dragonfly*)
13908       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13909       hardcode_libdir_flag_spec='-R$libdir'
13910       hardcode_direct=yes
13911       hardcode_shlibpath_var=no
13912       ;;
13913
13914     hpux9*)
13915       if test yes = "$GCC"; then
13916         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13917       else
13918         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13919       fi
13920       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13921       hardcode_libdir_separator=:
13922       hardcode_direct=yes
13923
13924       # hardcode_minus_L: Not really in the search PATH,
13925       # but as the default location of the library.
13926       hardcode_minus_L=yes
13927       export_dynamic_flag_spec='$wl-E'
13928       ;;
13929
13930     hpux10*)
13931       if test yes,no = "$GCC,$with_gnu_ld"; then
13932         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13933       else
13934         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13935       fi
13936       if test no = "$with_gnu_ld"; then
13937         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13938         hardcode_libdir_separator=:
13939         hardcode_direct=yes
13940         hardcode_direct_absolute=yes
13941         export_dynamic_flag_spec='$wl-E'
13942         # hardcode_minus_L: Not really in the search PATH,
13943         # but as the default location of the library.
13944         hardcode_minus_L=yes
13945       fi
13946       ;;
13947
13948     hpux11*)
13949       if test yes,no = "$GCC,$with_gnu_ld"; then
13950         case $host_cpu in
13951         hppa*64*)
13952           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13953           ;;
13954         ia64*)
13955           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13956           ;;
13957         *)
13958           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13959           ;;
13960         esac
13961       else
13962         case $host_cpu in
13963         hppa*64*)
13964           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13965           ;;
13966         ia64*)
13967           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13968           ;;
13969         *)
13970
13971           # Older versions of the 11.00 compiler do not understand -b yet
13972           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13973           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13974 printf %s "checking if $CC understands -b... " >&6; }
13975 if test ${lt_cv_prog_compiler__b+y}
13976 then :
13977   printf %s "(cached) " >&6
13978 else $as_nop
13979   lt_cv_prog_compiler__b=no
13980    save_LDFLAGS=$LDFLAGS
13981    LDFLAGS="$LDFLAGS -b"
13982    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13983    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13984      # The linker can only warn and ignore the option if not recognized
13985      # So say no if there are warnings
13986      if test -s conftest.err; then
13987        # Append any errors to the config.log.
13988        cat conftest.err 1>&5
13989        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13990        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13991        if diff conftest.exp conftest.er2 >/dev/null; then
13992          lt_cv_prog_compiler__b=yes
13993        fi
13994      else
13995        lt_cv_prog_compiler__b=yes
13996      fi
13997    fi
13998    $RM -r conftest*
13999    LDFLAGS=$save_LDFLAGS
14000
14001 fi
14002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14003 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
14004
14005 if test yes = "$lt_cv_prog_compiler__b"; then
14006     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14007 else
14008     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14009 fi
14010
14011           ;;
14012         esac
14013       fi
14014       if test no = "$with_gnu_ld"; then
14015         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14016         hardcode_libdir_separator=:
14017
14018         case $host_cpu in
14019         hppa*64*|ia64*)
14020           hardcode_direct=no
14021           hardcode_shlibpath_var=no
14022           ;;
14023         *)
14024           hardcode_direct=yes
14025           hardcode_direct_absolute=yes
14026           export_dynamic_flag_spec='$wl-E'
14027
14028           # hardcode_minus_L: Not really in the search PATH,
14029           # but as the default location of the library.
14030           hardcode_minus_L=yes
14031           ;;
14032         esac
14033       fi
14034       ;;
14035
14036     irix5* | irix6* | nonstopux*)
14037       if test yes = "$GCC"; then
14038         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'
14039         # Try to use the -exported_symbol ld option, if it does not
14040         # work, assume that -exports_file does not work either and
14041         # implicitly export all symbols.
14042         # This should be the same for all languages, so no per-tag cache variable.
14043         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14044 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14045 if test ${lt_cv_irix_exported_symbol+y}
14046 then :
14047   printf %s "(cached) " >&6
14048 else $as_nop
14049   save_LDFLAGS=$LDFLAGS
14050            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
14051            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14052 /* end confdefs.h.  */
14053 int foo (void) { return 0; }
14054 _ACEOF
14055 if ac_fn_c_try_link "$LINENO"
14056 then :
14057   lt_cv_irix_exported_symbol=yes
14058 else $as_nop
14059   lt_cv_irix_exported_symbol=no
14060 fi
14061 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14062     conftest$ac_exeext conftest.$ac_ext
14063            LDFLAGS=$save_LDFLAGS
14064 fi
14065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14066 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
14067         if test yes = "$lt_cv_irix_exported_symbol"; then
14068           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'
14069         fi
14070         link_all_deplibs=no
14071       else
14072         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'
14073         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'
14074       fi
14075       archive_cmds_need_lc='no'
14076       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14077       hardcode_libdir_separator=:
14078       inherit_rpath=yes
14079       link_all_deplibs=yes
14080       ;;
14081
14082     linux*)
14083       case $cc_basename in
14084       tcc*)
14085         # Fabrice Bellard et al's Tiny C Compiler
14086         ld_shlibs=yes
14087         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14088         ;;
14089       esac
14090       ;;
14091
14092     netbsd* | netbsdelf*-gnu)
14093       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14094         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14095       else
14096         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14097       fi
14098       hardcode_libdir_flag_spec='-R$libdir'
14099       hardcode_direct=yes
14100       hardcode_shlibpath_var=no
14101       ;;
14102
14103     newsos6)
14104       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14105       hardcode_direct=yes
14106       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14107       hardcode_libdir_separator=:
14108       hardcode_shlibpath_var=no
14109       ;;
14110
14111     *nto* | *qnx*)
14112       ;;
14113
14114     openbsd* | bitrig*)
14115       if test -f /usr/libexec/ld.so; then
14116         hardcode_direct=yes
14117         hardcode_shlibpath_var=no
14118         hardcode_direct_absolute=yes
14119         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14120           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14121           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
14122           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14123           export_dynamic_flag_spec='$wl-E'
14124         else
14125           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14126           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14127         fi
14128       else
14129         ld_shlibs=no
14130       fi
14131       ;;
14132
14133     os2*)
14134       hardcode_libdir_flag_spec='-L$libdir'
14135       hardcode_minus_L=yes
14136       allow_undefined_flag=unsupported
14137       shrext_cmds=.dll
14138       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14139         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14140         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14141         $ECHO EXPORTS >> $output_objdir/$libname.def~
14142         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14143         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14144         emximp -o $lib $output_objdir/$libname.def'
14145       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14146         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14147         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14148         $ECHO EXPORTS >> $output_objdir/$libname.def~
14149         prefix_cmds="$SED"~
14150         if test EXPORTS = "`$SED 1q $export_symbols`"; then
14151           prefix_cmds="$prefix_cmds -e 1d";
14152         fi~
14153         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14154         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14155         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14156         emximp -o $lib $output_objdir/$libname.def'
14157       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14158       enable_shared_with_static_runtimes=yes
14159       ;;
14160
14161     osf3*)
14162       if test yes = "$GCC"; then
14163         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14164         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'
14165       else
14166         allow_undefined_flag=' -expect_unresolved \*'
14167         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'
14168       fi
14169       archive_cmds_need_lc='no'
14170       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14171       hardcode_libdir_separator=:
14172       ;;
14173
14174     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14175       if test yes = "$GCC"; then
14176         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14177         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'
14178         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14179       else
14180         allow_undefined_flag=' -expect_unresolved \*'
14181         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'
14182         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~
14183           $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'
14184
14185         # Both c and cxx compiler support -rpath directly
14186         hardcode_libdir_flag_spec='-rpath $libdir'
14187       fi
14188       archive_cmds_need_lc='no'
14189       hardcode_libdir_separator=:
14190       ;;
14191
14192     solaris*)
14193       no_undefined_flag=' -z defs'
14194       if test yes = "$GCC"; then
14195         wlarc='$wl'
14196         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14197         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14198           $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'
14199       else
14200         case `$CC -V 2>&1` in
14201         *"Compilers 5.0"*)
14202           wlarc=''
14203           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
14204           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14205             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14206           ;;
14207         *)
14208           wlarc='$wl'
14209           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14210           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14211             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14212           ;;
14213         esac
14214       fi
14215       hardcode_libdir_flag_spec='-R$libdir'
14216       hardcode_shlibpath_var=no
14217       case $host_os in
14218       solaris2.[0-5] | solaris2.[0-5].*) ;;
14219       *)
14220         # The compiler driver will combine and reorder linker options,
14221         # but understands '-z linker_flag'.  GCC discards it without '$wl',
14222         # but is careful enough not to reorder.
14223         # Supported since Solaris 2.6 (maybe 2.5.1?)
14224         if test yes = "$GCC"; then
14225           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14226         else
14227           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14228         fi
14229         ;;
14230       esac
14231       link_all_deplibs=yes
14232       ;;
14233
14234     sunos4*)
14235       if test sequent = "$host_vendor"; then
14236         # Use $CC to link under sequent, because it throws in some extra .o
14237         # files that make .init and .fini sections work.
14238         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14239       else
14240         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14241       fi
14242       hardcode_libdir_flag_spec='-L$libdir'
14243       hardcode_direct=yes
14244       hardcode_minus_L=yes
14245       hardcode_shlibpath_var=no
14246       ;;
14247
14248     sysv4)
14249       case $host_vendor in
14250         sni)
14251           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14252           hardcode_direct=yes # is this really true???
14253         ;;
14254         siemens)
14255           ## LD is ld it makes a PLAMLIB
14256           ## CC just makes a GrossModule.
14257           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14258           reload_cmds='$CC -r -o $output$reload_objs'
14259           hardcode_direct=no
14260         ;;
14261         motorola)
14262           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14263           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14264         ;;
14265       esac
14266       runpath_var='LD_RUN_PATH'
14267       hardcode_shlibpath_var=no
14268       ;;
14269
14270     sysv4.3*)
14271       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14272       hardcode_shlibpath_var=no
14273       export_dynamic_flag_spec='-Bexport'
14274       ;;
14275
14276     sysv4*MP*)
14277       if test -d /usr/nec; then
14278         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14279         hardcode_shlibpath_var=no
14280         runpath_var=LD_RUN_PATH
14281         hardcode_runpath_var=yes
14282         ld_shlibs=yes
14283       fi
14284       ;;
14285
14286     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14287       no_undefined_flag='$wl-z,text'
14288       archive_cmds_need_lc=no
14289       hardcode_shlibpath_var=no
14290       runpath_var='LD_RUN_PATH'
14291
14292       if test yes = "$GCC"; then
14293         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14294         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14295       else
14296         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14297         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14298       fi
14299       ;;
14300
14301     sysv5* | sco3.2v5* | sco5v6*)
14302       # Note: We CANNOT use -z defs as we might desire, because we do not
14303       # link with -lc, and that would cause any symbols used from libc to
14304       # always be unresolved, which means just about no library would
14305       # ever link correctly.  If we're not using GNU ld we use -z text
14306       # though, which does catch some bad symbols but isn't as heavy-handed
14307       # as -z defs.
14308       no_undefined_flag='$wl-z,text'
14309       allow_undefined_flag='$wl-z,nodefs'
14310       archive_cmds_need_lc=no
14311       hardcode_shlibpath_var=no
14312       hardcode_libdir_flag_spec='$wl-R,$libdir'
14313       hardcode_libdir_separator=':'
14314       link_all_deplibs=yes
14315       export_dynamic_flag_spec='$wl-Bexport'
14316       runpath_var='LD_RUN_PATH'
14317
14318       if test yes = "$GCC"; then
14319         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14320         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14321       else
14322         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14323         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14324       fi
14325       ;;
14326
14327     uts4*)
14328       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14329       hardcode_libdir_flag_spec='-L$libdir'
14330       hardcode_shlibpath_var=no
14331       ;;
14332
14333     *)
14334       ld_shlibs=no
14335       ;;
14336     esac
14337
14338     if test sni = "$host_vendor"; then
14339       case $host in
14340       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14341         export_dynamic_flag_spec='$wl-Blargedynsym'
14342         ;;
14343       esac
14344     fi
14345   fi
14346
14347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14348 printf "%s\n" "$ld_shlibs" >&6; }
14349 test no = "$ld_shlibs" && can_build_shared=no
14350
14351 with_gnu_ld=$with_gnu_ld
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367 #
14368 # Do we need to explicitly link libc?
14369 #
14370 case "x$archive_cmds_need_lc" in
14371 x|xyes)
14372   # Assume -lc should be added
14373   archive_cmds_need_lc=yes
14374
14375   if test yes,yes = "$GCC,$enable_shared"; then
14376     case $archive_cmds in
14377     *'~'*)
14378       # FIXME: we may have to deal with multi-command sequences.
14379       ;;
14380     '$CC '*)
14381       # Test whether the compiler implicitly links with -lc since on some
14382       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14383       # to ld, don't add -lc before -lgcc.
14384       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14385 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
14386 if test ${lt_cv_archive_cmds_need_lc+y}
14387 then :
14388   printf %s "(cached) " >&6
14389 else $as_nop
14390   $RM conftest*
14391         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14392
14393         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14394   (eval $ac_compile) 2>&5
14395   ac_status=$?
14396   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14397   test $ac_status = 0; } 2>conftest.err; then
14398           soname=conftest
14399           lib=conftest
14400           libobjs=conftest.$ac_objext
14401           deplibs=
14402           wl=$lt_prog_compiler_wl
14403           pic_flag=$lt_prog_compiler_pic
14404           compiler_flags=-v
14405           linker_flags=-v
14406           verstring=
14407           output_objdir=.
14408           libname=conftest
14409           lt_save_allow_undefined_flag=$allow_undefined_flag
14410           allow_undefined_flag=
14411           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14412   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14413   ac_status=$?
14414   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14415   test $ac_status = 0; }
14416           then
14417             lt_cv_archive_cmds_need_lc=no
14418           else
14419             lt_cv_archive_cmds_need_lc=yes
14420           fi
14421           allow_undefined_flag=$lt_save_allow_undefined_flag
14422         else
14423           cat conftest.err 1>&5
14424         fi
14425         $RM conftest*
14426
14427 fi
14428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14429 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
14430       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14431       ;;
14432     esac
14433   fi
14434   ;;
14435 esac
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14589 printf %s "checking dynamic linker characteristics... " >&6; }
14590
14591 if test yes = "$GCC"; then
14592   case $host_os in
14593     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14594     *) lt_awk_arg='/^libraries:/' ;;
14595   esac
14596   case $host_os in
14597     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14598     *) lt_sed_strip_eq='s|=/|/|g' ;;
14599   esac
14600   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14601   case $lt_search_path_spec in
14602   *\;*)
14603     # if the path contains ";" then we assume it to be the separator
14604     # otherwise default to the standard path separator (i.e. ":") - it is
14605     # assumed that no part of a normal pathname contains ";" but that should
14606     # okay in the real world where ";" in dirpaths is itself problematic.
14607     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14608     ;;
14609   *)
14610     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14611     ;;
14612   esac
14613   # Ok, now we have the path, separated by spaces, we can step through it
14614   # and add multilib dir if necessary...
14615   lt_tmp_lt_search_path_spec=
14616   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14617   # ...but if some path component already ends with the multilib dir we assume
14618   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14619   case "$lt_multi_os_dir; $lt_search_path_spec " in
14620   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14621     lt_multi_os_dir=
14622     ;;
14623   esac
14624   for lt_sys_path in $lt_search_path_spec; do
14625     if test -d "$lt_sys_path$lt_multi_os_dir"; then
14626       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14627     elif test -n "$lt_multi_os_dir"; then
14628       test -d "$lt_sys_path" && \
14629         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14630     fi
14631   done
14632   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14633 BEGIN {RS = " "; FS = "/|\n";} {
14634   lt_foo = "";
14635   lt_count = 0;
14636   for (lt_i = NF; lt_i > 0; lt_i--) {
14637     if ($lt_i != "" && $lt_i != ".") {
14638       if ($lt_i == "..") {
14639         lt_count++;
14640       } else {
14641         if (lt_count == 0) {
14642           lt_foo = "/" $lt_i lt_foo;
14643         } else {
14644           lt_count--;
14645         }
14646       }
14647     }
14648   }
14649   if (lt_foo != "") { lt_freq[lt_foo]++; }
14650   if (lt_freq[lt_foo] == 1) { print lt_foo; }
14651 }'`
14652   # AWK program above erroneously prepends '/' to C:/dos/paths
14653   # for these hosts.
14654   case $host_os in
14655     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14656       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14657   esac
14658   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14659 else
14660   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14661 fi
14662 library_names_spec=
14663 libname_spec='lib$name'
14664 soname_spec=
14665 shrext_cmds=.so
14666 postinstall_cmds=
14667 postuninstall_cmds=
14668 finish_cmds=
14669 finish_eval=
14670 shlibpath_var=
14671 shlibpath_overrides_runpath=unknown
14672 version_type=none
14673 dynamic_linker="$host_os ld.so"
14674 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14675 need_lib_prefix=unknown
14676 hardcode_into_libs=no
14677
14678 # when you set need_version to no, make sure it does not cause -set_version
14679 # flags to be left without arguments
14680 need_version=unknown
14681
14682
14683
14684 case $host_os in
14685 aix3*)
14686   version_type=linux # correct to gnu/linux during the next big refactor
14687   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14688   shlibpath_var=LIBPATH
14689
14690   # AIX 3 has no versioning support, so we append a major version to the name.
14691   soname_spec='$libname$release$shared_ext$major'
14692   ;;
14693
14694 aix[4-9]*)
14695   version_type=linux # correct to gnu/linux during the next big refactor
14696   need_lib_prefix=no
14697   need_version=no
14698   hardcode_into_libs=yes
14699   if test ia64 = "$host_cpu"; then
14700     # AIX 5 supports IA64
14701     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14702     shlibpath_var=LD_LIBRARY_PATH
14703   else
14704     # With GCC up to 2.95.x, collect2 would create an import file
14705     # for dependence libraries.  The import file would start with
14706     # the line '#! .'.  This would cause the generated library to
14707     # depend on '.', always an invalid library.  This was fixed in
14708     # development snapshots of GCC prior to 3.0.
14709     case $host_os in
14710       aix4 | aix4.[01] | aix4.[01].*)
14711       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14712            echo ' yes '
14713            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14714         :
14715       else
14716         can_build_shared=no
14717       fi
14718       ;;
14719     esac
14720     # Using Import Files as archive members, it is possible to support
14721     # filename-based versioning of shared library archives on AIX. While
14722     # this would work for both with and without runtime linking, it will
14723     # prevent static linking of such archives. So we do filename-based
14724     # shared library versioning with .so extension only, which is used
14725     # when both runtime linking and shared linking is enabled.
14726     # Unfortunately, runtime linking may impact performance, so we do
14727     # not want this to be the default eventually. Also, we use the
14728     # versioned .so libs for executables only if there is the -brtl
14729     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14730     # To allow for filename-based versioning support, we need to create
14731     # libNAME.so.V as an archive file, containing:
14732     # *) an Import File, referring to the versioned filename of the
14733     #    archive as well as the shared archive member, telling the
14734     #    bitwidth (32 or 64) of that shared object, and providing the
14735     #    list of exported symbols of that shared object, eventually
14736     #    decorated with the 'weak' keyword
14737     # *) the shared object with the F_LOADONLY flag set, to really avoid
14738     #    it being seen by the linker.
14739     # At run time we better use the real file rather than another symlink,
14740     # but for link time we create the symlink libNAME.so -> libNAME.so.V
14741
14742     case $with_aix_soname,$aix_use_runtimelinking in
14743     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14744     # soname into executable. Probably we can add versioning support to
14745     # collect2, so additional links can be useful in future.
14746     aix,yes) # traditional libtool
14747       dynamic_linker='AIX unversionable lib.so'
14748       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14749       # instead of lib<name>.a to let people know that these are not
14750       # typical AIX shared libraries.
14751       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14752       ;;
14753     aix,no) # traditional AIX only
14754       dynamic_linker='AIX lib.a(lib.so.V)'
14755       # We preserve .a as extension for shared libraries through AIX4.2
14756       # and later when we are not doing run time linking.
14757       library_names_spec='$libname$release.a $libname.a'
14758       soname_spec='$libname$release$shared_ext$major'
14759       ;;
14760     svr4,*) # full svr4 only
14761       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14762       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14763       # We do not specify a path in Import Files, so LIBPATH fires.
14764       shlibpath_overrides_runpath=yes
14765       ;;
14766     *,yes) # both, prefer svr4
14767       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14768       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14769       # unpreferred sharedlib libNAME.a needs extra handling
14770       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"'
14771       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"'
14772       # We do not specify a path in Import Files, so LIBPATH fires.
14773       shlibpath_overrides_runpath=yes
14774       ;;
14775     *,no) # both, prefer aix
14776       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14777       library_names_spec='$libname$release.a $libname.a'
14778       soname_spec='$libname$release$shared_ext$major'
14779       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14780       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)'
14781       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"'
14782       ;;
14783     esac
14784     shlibpath_var=LIBPATH
14785   fi
14786   ;;
14787
14788 amigaos*)
14789   case $host_cpu in
14790   powerpc)
14791     # Since July 2007 AmigaOS4 officially supports .so libraries.
14792     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14793     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14794     ;;
14795   m68k)
14796     library_names_spec='$libname.ixlibrary $libname.a'
14797     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14798     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'
14799     ;;
14800   esac
14801   ;;
14802
14803 beos*)
14804   library_names_spec='$libname$shared_ext'
14805   dynamic_linker="$host_os ld.so"
14806   shlibpath_var=LIBRARY_PATH
14807   ;;
14808
14809 bsdi[45]*)
14810   version_type=linux # correct to gnu/linux during the next big refactor
14811   need_version=no
14812   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14813   soname_spec='$libname$release$shared_ext$major'
14814   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14815   shlibpath_var=LD_LIBRARY_PATH
14816   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14817   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14818   # the default ld.so.conf also contains /usr/contrib/lib and
14819   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14820   # libtool to hard-code these into programs
14821   ;;
14822
14823 cygwin* | mingw* | pw32* | cegcc*)
14824   version_type=windows
14825   shrext_cmds=.dll
14826   need_version=no
14827   need_lib_prefix=no
14828
14829   case $GCC,$cc_basename in
14830   yes,*)
14831     # gcc
14832     library_names_spec='$libname.dll.a'
14833     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14834     postinstall_cmds='base_file=`basename \$file`~
14835       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14836       dldir=$destdir/`dirname \$dlpath`~
14837       test -d \$dldir || mkdir -p \$dldir~
14838       $install_prog $dir/$dlname \$dldir/$dlname~
14839       chmod a+x \$dldir/$dlname~
14840       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14841         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14842       fi'
14843     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14844       dlpath=$dir/\$dldll~
14845        $RM \$dlpath'
14846     shlibpath_overrides_runpath=yes
14847
14848     case $host_os in
14849     cygwin*)
14850       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14851       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14852
14853       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14854       ;;
14855     mingw* | cegcc*)
14856       # MinGW DLLs use traditional 'lib' prefix
14857       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14858       ;;
14859     pw32*)
14860       # pw32 DLLs use 'pw' prefix rather than 'lib'
14861       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14862       ;;
14863     esac
14864     dynamic_linker='Win32 ld.exe'
14865     ;;
14866
14867   *,cl*)
14868     # Native MSVC
14869     libname_spec='$name'
14870     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14871     library_names_spec='$libname.dll.lib'
14872
14873     case $build_os in
14874     mingw*)
14875       sys_lib_search_path_spec=
14876       lt_save_ifs=$IFS
14877       IFS=';'
14878       for lt_path in $LIB
14879       do
14880         IFS=$lt_save_ifs
14881         # Let DOS variable expansion print the short 8.3 style file name.
14882         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14883         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14884       done
14885       IFS=$lt_save_ifs
14886       # Convert to MSYS style.
14887       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14888       ;;
14889     cygwin*)
14890       # Convert to unix form, then to dos form, then back to unix form
14891       # but this time dos style (no spaces!) so that the unix form looks
14892       # like /cygdrive/c/PROGRA~1:/cygdr...
14893       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14894       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14895       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14896       ;;
14897     *)
14898       sys_lib_search_path_spec=$LIB
14899       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14900         # It is most probably a Windows format PATH.
14901         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14902       else
14903         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14904       fi
14905       # FIXME: find the short name or the path components, as spaces are
14906       # common. (e.g. "Program Files" -> "PROGRA~1")
14907       ;;
14908     esac
14909
14910     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14911     postinstall_cmds='base_file=`basename \$file`~
14912       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14913       dldir=$destdir/`dirname \$dlpath`~
14914       test -d \$dldir || mkdir -p \$dldir~
14915       $install_prog $dir/$dlname \$dldir/$dlname'
14916     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14917       dlpath=$dir/\$dldll~
14918        $RM \$dlpath'
14919     shlibpath_overrides_runpath=yes
14920     dynamic_linker='Win32 link.exe'
14921     ;;
14922
14923   *)
14924     # Assume MSVC wrapper
14925     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14926     dynamic_linker='Win32 ld.exe'
14927     ;;
14928   esac
14929   # FIXME: first we should search . and the directory the executable is in
14930   shlibpath_var=PATH
14931   ;;
14932
14933 darwin* | rhapsody*)
14934   dynamic_linker="$host_os dyld"
14935   version_type=darwin
14936   need_lib_prefix=no
14937   need_version=no
14938   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14939   soname_spec='$libname$release$major$shared_ext'
14940   shlibpath_overrides_runpath=yes
14941   shlibpath_var=DYLD_LIBRARY_PATH
14942   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14943
14944   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14945   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14946   ;;
14947
14948 dgux*)
14949   version_type=linux # correct to gnu/linux during the next big refactor
14950   need_lib_prefix=no
14951   need_version=no
14952   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14953   soname_spec='$libname$release$shared_ext$major'
14954   shlibpath_var=LD_LIBRARY_PATH
14955   ;;
14956
14957 freebsd* | dragonfly*)
14958   # DragonFly does not have aout.  When/if they implement a new
14959   # versioning mechanism, adjust this.
14960   if test -x /usr/bin/objformat; then
14961     objformat=`/usr/bin/objformat`
14962   else
14963     case $host_os in
14964     freebsd[23].*) objformat=aout ;;
14965     *) objformat=elf ;;
14966     esac
14967   fi
14968   version_type=freebsd-$objformat
14969   case $version_type in
14970     freebsd-elf*)
14971       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14972       soname_spec='$libname$release$shared_ext$major'
14973       need_version=no
14974       need_lib_prefix=no
14975       ;;
14976     freebsd-*)
14977       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14978       need_version=yes
14979       ;;
14980   esac
14981   shlibpath_var=LD_LIBRARY_PATH
14982   case $host_os in
14983   freebsd2.*)
14984     shlibpath_overrides_runpath=yes
14985     ;;
14986   freebsd3.[01]* | freebsdelf3.[01]*)
14987     shlibpath_overrides_runpath=yes
14988     hardcode_into_libs=yes
14989     ;;
14990   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14991   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14992     shlibpath_overrides_runpath=no
14993     hardcode_into_libs=yes
14994     ;;
14995   *) # from 4.6 on, and DragonFly
14996     shlibpath_overrides_runpath=yes
14997     hardcode_into_libs=yes
14998     ;;
14999   esac
15000   ;;
15001
15002 haiku*)
15003   version_type=linux # correct to gnu/linux during the next big refactor
15004   need_lib_prefix=no
15005   need_version=no
15006   dynamic_linker="$host_os runtime_loader"
15007   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15008   soname_spec='$libname$release$shared_ext$major'
15009   shlibpath_var=LIBRARY_PATH
15010   shlibpath_overrides_runpath=no
15011   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15012   hardcode_into_libs=yes
15013   ;;
15014
15015 hpux9* | hpux10* | hpux11*)
15016   # Give a soname corresponding to the major version so that dld.sl refuses to
15017   # link against other versions.
15018   version_type=sunos
15019   need_lib_prefix=no
15020   need_version=no
15021   case $host_cpu in
15022   ia64*)
15023     shrext_cmds='.so'
15024     hardcode_into_libs=yes
15025     dynamic_linker="$host_os dld.so"
15026     shlibpath_var=LD_LIBRARY_PATH
15027     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15028     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15029     soname_spec='$libname$release$shared_ext$major'
15030     if test 32 = "$HPUX_IA64_MODE"; then
15031       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15032       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15033     else
15034       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15035       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15036     fi
15037     ;;
15038   hppa*64*)
15039     shrext_cmds='.sl'
15040     hardcode_into_libs=yes
15041     dynamic_linker="$host_os dld.sl"
15042     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15043     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15044     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15045     soname_spec='$libname$release$shared_ext$major'
15046     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15047     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15048     ;;
15049   *)
15050     shrext_cmds='.sl'
15051     dynamic_linker="$host_os dld.sl"
15052     shlibpath_var=SHLIB_PATH
15053     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15054     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15055     soname_spec='$libname$release$shared_ext$major'
15056     ;;
15057   esac
15058   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15059   postinstall_cmds='chmod 555 $lib'
15060   # or fails outright, so override atomically:
15061   install_override_mode=555
15062   ;;
15063
15064 interix[3-9]*)
15065   version_type=linux # correct to gnu/linux during the next big refactor
15066   need_lib_prefix=no
15067   need_version=no
15068   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15069   soname_spec='$libname$release$shared_ext$major'
15070   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15071   shlibpath_var=LD_LIBRARY_PATH
15072   shlibpath_overrides_runpath=no
15073   hardcode_into_libs=yes
15074   ;;
15075
15076 irix5* | irix6* | nonstopux*)
15077   case $host_os in
15078     nonstopux*) version_type=nonstopux ;;
15079     *)
15080         if test yes = "$lt_cv_prog_gnu_ld"; then
15081                 version_type=linux # correct to gnu/linux during the next big refactor
15082         else
15083                 version_type=irix
15084         fi ;;
15085   esac
15086   need_lib_prefix=no
15087   need_version=no
15088   soname_spec='$libname$release$shared_ext$major'
15089   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15090   case $host_os in
15091   irix5* | nonstopux*)
15092     libsuff= shlibsuff=
15093     ;;
15094   *)
15095     case $LD in # libtool.m4 will add one of these switches to LD
15096     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15097       libsuff= shlibsuff= libmagic=32-bit;;
15098     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15099       libsuff=32 shlibsuff=N32 libmagic=N32;;
15100     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15101       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15102     *) libsuff= shlibsuff= libmagic=never-match;;
15103     esac
15104     ;;
15105   esac
15106   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15107   shlibpath_overrides_runpath=no
15108   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15109   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15110   hardcode_into_libs=yes
15111   ;;
15112
15113 # No shared lib support for Linux oldld, aout, or coff.
15114 linux*oldld* | linux*aout* | linux*coff*)
15115   dynamic_linker=no
15116   ;;
15117
15118 linux*android*)
15119   version_type=none # Android doesn't support versioned libraries.
15120   need_lib_prefix=no
15121   need_version=no
15122   library_names_spec='$libname$release$shared_ext'
15123   soname_spec='$libname$release$shared_ext'
15124   finish_cmds=
15125   shlibpath_var=LD_LIBRARY_PATH
15126   shlibpath_overrides_runpath=yes
15127
15128   # This implies no fast_install, which is unacceptable.
15129   # Some rework will be needed to allow for fast_install
15130   # before this can be enabled.
15131   hardcode_into_libs=yes
15132
15133   dynamic_linker='Android linker'
15134   # Don't embed -rpath directories since the linker doesn't support them.
15135   hardcode_libdir_flag_spec='-L$libdir'
15136   ;;
15137
15138 # This must be glibc/ELF.
15139 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15140   version_type=linux # correct to gnu/linux during the next big refactor
15141   need_lib_prefix=no
15142   need_version=no
15143   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15144   soname_spec='$libname$release$shared_ext$major'
15145   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15146   shlibpath_var=LD_LIBRARY_PATH
15147   shlibpath_overrides_runpath=no
15148
15149   # Some binutils ld are patched to set DT_RUNPATH
15150   if test ${lt_cv_shlibpath_overrides_runpath+y}
15151 then :
15152   printf %s "(cached) " >&6
15153 else $as_nop
15154   lt_cv_shlibpath_overrides_runpath=no
15155     save_LDFLAGS=$LDFLAGS
15156     save_libdir=$libdir
15157     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15158          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15159     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15160 /* end confdefs.h.  */
15161
15162 int main (void)
15163 {
15164
15165  ;
15166  return 0;
15167 }
15168 _ACEOF
15169 if ac_fn_c_try_link "$LINENO"
15170 then :
15171   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
15172 then :
15173   lt_cv_shlibpath_overrides_runpath=yes
15174 fi
15175 fi
15176 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15177     conftest$ac_exeext conftest.$ac_ext
15178     LDFLAGS=$save_LDFLAGS
15179     libdir=$save_libdir
15180
15181 fi
15182
15183   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15184
15185   # This implies no fast_install, which is unacceptable.
15186   # Some rework will be needed to allow for fast_install
15187   # before this can be enabled.
15188   hardcode_into_libs=yes
15189
15190   # Ideally, we could use ldconfig to report *all* directores which are
15191   # searched for libraries, however this is still not possible.  Aside from not
15192   # being certain /sbin/ldconfig is available, command
15193   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15194   # even though it is searched at run-time.  Try to do the best guess by
15195   # appending ld.so.conf contents (and includes) to the search path.
15196   if test -f /etc/ld.so.conf; then
15197     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' ' '`
15198     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15199   fi
15200
15201   # We used to test for /lib/ld.so.1 and disable shared libraries on
15202   # powerpc, because MkLinux only supported shared libraries with the
15203   # GNU dynamic linker.  Since this was broken with cross compilers,
15204   # most powerpc-linux boxes support dynamic linking these days and
15205   # people can always --disable-shared, the test was removed, and we
15206   # assume the GNU/Linux dynamic linker is in use.
15207   dynamic_linker='GNU/Linux ld.so'
15208   ;;
15209
15210 netbsdelf*-gnu)
15211   version_type=linux
15212   need_lib_prefix=no
15213   need_version=no
15214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15215   soname_spec='${libname}${release}${shared_ext}$major'
15216   shlibpath_var=LD_LIBRARY_PATH
15217   shlibpath_overrides_runpath=no
15218   hardcode_into_libs=yes
15219   dynamic_linker='NetBSD ld.elf_so'
15220   ;;
15221
15222 netbsd*)
15223   version_type=sunos
15224   need_lib_prefix=no
15225   need_version=no
15226   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15227     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15228     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15229     dynamic_linker='NetBSD (a.out) ld.so'
15230   else
15231     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15232     soname_spec='$libname$release$shared_ext$major'
15233     dynamic_linker='NetBSD ld.elf_so'
15234   fi
15235   shlibpath_var=LD_LIBRARY_PATH
15236   shlibpath_overrides_runpath=yes
15237   hardcode_into_libs=yes
15238   ;;
15239
15240 newsos6)
15241   version_type=linux # correct to gnu/linux during the next big refactor
15242   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15243   shlibpath_var=LD_LIBRARY_PATH
15244   shlibpath_overrides_runpath=yes
15245   ;;
15246
15247 *nto* | *qnx*)
15248   version_type=qnx
15249   need_lib_prefix=no
15250   need_version=no
15251   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15252   soname_spec='$libname$release$shared_ext$major'
15253   shlibpath_var=LD_LIBRARY_PATH
15254   shlibpath_overrides_runpath=no
15255   hardcode_into_libs=yes
15256   dynamic_linker='ldqnx.so'
15257   ;;
15258
15259 openbsd* | bitrig*)
15260   version_type=sunos
15261   sys_lib_dlsearch_path_spec=/usr/lib
15262   need_lib_prefix=no
15263   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15264     need_version=no
15265   else
15266     need_version=yes
15267   fi
15268   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15269   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15270   shlibpath_var=LD_LIBRARY_PATH
15271   shlibpath_overrides_runpath=yes
15272   ;;
15273
15274 os2*)
15275   libname_spec='$name'
15276   version_type=windows
15277   shrext_cmds=.dll
15278   need_version=no
15279   need_lib_prefix=no
15280   # OS/2 can only load a DLL with a base name of 8 characters or less.
15281   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15282     v=$($ECHO $release$versuffix | tr -d .-);
15283     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15284     $ECHO $n$v`$shared_ext'
15285   library_names_spec='${libname}_dll.$libext'
15286   dynamic_linker='OS/2 ld.exe'
15287   shlibpath_var=BEGINLIBPATH
15288   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15289   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15290   postinstall_cmds='base_file=`basename \$file`~
15291     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15292     dldir=$destdir/`dirname \$dlpath`~
15293     test -d \$dldir || mkdir -p \$dldir~
15294     $install_prog $dir/$dlname \$dldir/$dlname~
15295     chmod a+x \$dldir/$dlname~
15296     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15297       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15298     fi'
15299   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15300     dlpath=$dir/\$dldll~
15301     $RM \$dlpath'
15302   ;;
15303
15304 osf3* | osf4* | osf5*)
15305   version_type=osf
15306   need_lib_prefix=no
15307   need_version=no
15308   soname_spec='$libname$release$shared_ext$major'
15309   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15310   shlibpath_var=LD_LIBRARY_PATH
15311   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15312   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15313   ;;
15314
15315 rdos*)
15316   dynamic_linker=no
15317   ;;
15318
15319 solaris*)
15320   version_type=linux # correct to gnu/linux during the next big refactor
15321   need_lib_prefix=no
15322   need_version=no
15323   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15324   soname_spec='$libname$release$shared_ext$major'
15325   shlibpath_var=LD_LIBRARY_PATH
15326   shlibpath_overrides_runpath=yes
15327   hardcode_into_libs=yes
15328   # ldd complains unless libraries are executable
15329   postinstall_cmds='chmod +x $lib'
15330   ;;
15331
15332 sunos4*)
15333   version_type=sunos
15334   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15335   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15336   shlibpath_var=LD_LIBRARY_PATH
15337   shlibpath_overrides_runpath=yes
15338   if test yes = "$with_gnu_ld"; then
15339     need_lib_prefix=no
15340   fi
15341   need_version=yes
15342   ;;
15343
15344 sysv4 | sysv4.3*)
15345   version_type=linux # correct to gnu/linux during the next big refactor
15346   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15347   soname_spec='$libname$release$shared_ext$major'
15348   shlibpath_var=LD_LIBRARY_PATH
15349   case $host_vendor in
15350     sni)
15351       shlibpath_overrides_runpath=no
15352       need_lib_prefix=no
15353       runpath_var=LD_RUN_PATH
15354       ;;
15355     siemens)
15356       need_lib_prefix=no
15357       ;;
15358     motorola)
15359       need_lib_prefix=no
15360       need_version=no
15361       shlibpath_overrides_runpath=no
15362       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15363       ;;
15364   esac
15365   ;;
15366
15367 sysv4*MP*)
15368   if test -d /usr/nec; then
15369     version_type=linux # correct to gnu/linux during the next big refactor
15370     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15371     soname_spec='$libname$shared_ext.$major'
15372     shlibpath_var=LD_LIBRARY_PATH
15373   fi
15374   ;;
15375
15376 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15377   version_type=sco
15378   need_lib_prefix=no
15379   need_version=no
15380   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15381   soname_spec='$libname$release$shared_ext$major'
15382   shlibpath_var=LD_LIBRARY_PATH
15383   shlibpath_overrides_runpath=yes
15384   hardcode_into_libs=yes
15385   if test yes = "$with_gnu_ld"; then
15386     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15387   else
15388     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15389     case $host_os in
15390       sco3.2v5*)
15391         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15392         ;;
15393     esac
15394   fi
15395   sys_lib_dlsearch_path_spec='/usr/lib'
15396   ;;
15397
15398 tpf*)
15399   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15400   version_type=linux # correct to gnu/linux during the next big refactor
15401   need_lib_prefix=no
15402   need_version=no
15403   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15404   shlibpath_var=LD_LIBRARY_PATH
15405   shlibpath_overrides_runpath=no
15406   hardcode_into_libs=yes
15407   ;;
15408
15409 uts4*)
15410   version_type=linux # correct to gnu/linux during the next big refactor
15411   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15412   soname_spec='$libname$release$shared_ext$major'
15413   shlibpath_var=LD_LIBRARY_PATH
15414   ;;
15415
15416 *)
15417   dynamic_linker=no
15418   ;;
15419 esac
15420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15421 printf "%s\n" "$dynamic_linker" >&6; }
15422 test no = "$dynamic_linker" && can_build_shared=no
15423
15424 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15425 if test yes = "$GCC"; then
15426   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15427 fi
15428
15429 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15430   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15431 fi
15432
15433 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15434   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15435 fi
15436
15437 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15438 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15439
15440 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15441 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15442
15443 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15444 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15543 printf %s "checking how to hardcode library paths into programs... " >&6; }
15544 hardcode_action=
15545 if test -n "$hardcode_libdir_flag_spec" ||
15546    test -n "$runpath_var" ||
15547    test yes = "$hardcode_automatic"; then
15548
15549   # We can hardcode non-existent directories.
15550   if test no != "$hardcode_direct" &&
15551      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15552      # have to relink, otherwise we might link with an installed library
15553      # when we should be linking with a yet-to-be-installed one
15554      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15555      test no != "$hardcode_minus_L"; then
15556     # Linking always hardcodes the temporary library directory.
15557     hardcode_action=relink
15558   else
15559     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15560     hardcode_action=immediate
15561   fi
15562 else
15563   # We cannot hardcode anything, or else we can only hardcode existing
15564   # directories.
15565   hardcode_action=unsupported
15566 fi
15567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15568 printf "%s\n" "$hardcode_action" >&6; }
15569
15570 if test relink = "$hardcode_action" ||
15571    test yes = "$inherit_rpath"; then
15572   # Fast installation is not supported
15573   enable_fast_install=no
15574 elif test yes = "$shlibpath_overrides_runpath" ||
15575      test no = "$enable_shared"; then
15576   # Fast installation is not necessary
15577   enable_fast_install=needless
15578 fi
15579
15580
15581
15582
15583
15584
15585   if test yes != "$enable_dlopen"; then
15586   enable_dlopen=unknown
15587   enable_dlopen_self=unknown
15588   enable_dlopen_self_static=unknown
15589 else
15590   lt_cv_dlopen=no
15591   lt_cv_dlopen_libs=
15592
15593   case $host_os in
15594   beos*)
15595     lt_cv_dlopen=load_add_on
15596     lt_cv_dlopen_libs=
15597     lt_cv_dlopen_self=yes
15598     ;;
15599
15600   mingw* | pw32* | cegcc*)
15601     lt_cv_dlopen=LoadLibrary
15602     lt_cv_dlopen_libs=
15603     ;;
15604
15605   cygwin*)
15606     lt_cv_dlopen=dlopen
15607     lt_cv_dlopen_libs=
15608     ;;
15609
15610   darwin*)
15611     # if libdl is installed we need to link against it
15612     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15613 printf %s "checking for dlopen in -ldl... " >&6; }
15614 if test ${ac_cv_lib_dl_dlopen+y}
15615 then :
15616   printf %s "(cached) " >&6
15617 else $as_nop
15618   ac_check_lib_save_LIBS=$LIBS
15619 LIBS="-ldl  $LIBS"
15620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15621 /* end confdefs.h.  */
15622
15623
15624 #ifdef __cplusplus
15625 extern "C"
15626 #endif
15627 char dlopen ();
15628 int main (void)
15629 {
15630 return dlopen ();
15631  ;
15632  return 0;
15633 }
15634 _ACEOF
15635 if ac_fn_c_try_link "$LINENO"
15636 then :
15637   ac_cv_lib_dl_dlopen=yes
15638 else $as_nop
15639   ac_cv_lib_dl_dlopen=no
15640 fi
15641 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15642     conftest$ac_exeext conftest.$ac_ext
15643 LIBS=$ac_check_lib_save_LIBS
15644 fi
15645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15646 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15647 if test "x$ac_cv_lib_dl_dlopen" = xyes
15648 then :
15649   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15650 else $as_nop
15651
15652     lt_cv_dlopen=dyld
15653     lt_cv_dlopen_libs=
15654     lt_cv_dlopen_self=yes
15655
15656 fi
15657
15658     ;;
15659
15660   tpf*)
15661     # Don't try to run any link tests for TPF.  We know it's impossible
15662     # because TPF is a cross-compiler, and we know how we open DSOs.
15663     lt_cv_dlopen=dlopen
15664     lt_cv_dlopen_libs=
15665     lt_cv_dlopen_self=no
15666     ;;
15667
15668   *)
15669     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15670 if test "x$ac_cv_func_shl_load" = xyes
15671 then :
15672   lt_cv_dlopen=shl_load
15673 else $as_nop
15674   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15675 printf %s "checking for shl_load in -ldld... " >&6; }
15676 if test ${ac_cv_lib_dld_shl_load+y}
15677 then :
15678   printf %s "(cached) " >&6
15679 else $as_nop
15680   ac_check_lib_save_LIBS=$LIBS
15681 LIBS="-ldld  $LIBS"
15682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15683 /* end confdefs.h.  */
15684
15685
15686 #ifdef __cplusplus
15687 extern "C"
15688 #endif
15689 char shl_load ();
15690 int main (void)
15691 {
15692 return shl_load ();
15693  ;
15694  return 0;
15695 }
15696 _ACEOF
15697 if ac_fn_c_try_link "$LINENO"
15698 then :
15699   ac_cv_lib_dld_shl_load=yes
15700 else $as_nop
15701   ac_cv_lib_dld_shl_load=no
15702 fi
15703 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15704     conftest$ac_exeext conftest.$ac_ext
15705 LIBS=$ac_check_lib_save_LIBS
15706 fi
15707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15708 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
15709 if test "x$ac_cv_lib_dld_shl_load" = xyes
15710 then :
15711   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15712 else $as_nop
15713   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15714 if test "x$ac_cv_func_dlopen" = xyes
15715 then :
15716   lt_cv_dlopen=dlopen
15717 else $as_nop
15718   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15719 printf %s "checking for dlopen in -ldl... " >&6; }
15720 if test ${ac_cv_lib_dl_dlopen+y}
15721 then :
15722   printf %s "(cached) " >&6
15723 else $as_nop
15724   ac_check_lib_save_LIBS=$LIBS
15725 LIBS="-ldl  $LIBS"
15726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15727 /* end confdefs.h.  */
15728
15729
15730 #ifdef __cplusplus
15731 extern "C"
15732 #endif
15733 char dlopen ();
15734 int main (void)
15735 {
15736 return dlopen ();
15737  ;
15738  return 0;
15739 }
15740 _ACEOF
15741 if ac_fn_c_try_link "$LINENO"
15742 then :
15743   ac_cv_lib_dl_dlopen=yes
15744 else $as_nop
15745   ac_cv_lib_dl_dlopen=no
15746 fi
15747 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15748     conftest$ac_exeext conftest.$ac_ext
15749 LIBS=$ac_check_lib_save_LIBS
15750 fi
15751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15752 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15753 if test "x$ac_cv_lib_dl_dlopen" = xyes
15754 then :
15755   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15756 else $as_nop
15757   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15758 printf %s "checking for dlopen in -lsvld... " >&6; }
15759 if test ${ac_cv_lib_svld_dlopen+y}
15760 then :
15761   printf %s "(cached) " >&6
15762 else $as_nop
15763   ac_check_lib_save_LIBS=$LIBS
15764 LIBS="-lsvld  $LIBS"
15765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15766 /* end confdefs.h.  */
15767
15768
15769 #ifdef __cplusplus
15770 extern "C"
15771 #endif
15772 char dlopen ();
15773 int main (void)
15774 {
15775 return dlopen ();
15776  ;
15777  return 0;
15778 }
15779 _ACEOF
15780 if ac_fn_c_try_link "$LINENO"
15781 then :
15782   ac_cv_lib_svld_dlopen=yes
15783 else $as_nop
15784   ac_cv_lib_svld_dlopen=no
15785 fi
15786 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15787     conftest$ac_exeext conftest.$ac_ext
15788 LIBS=$ac_check_lib_save_LIBS
15789 fi
15790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15791 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
15792 if test "x$ac_cv_lib_svld_dlopen" = xyes
15793 then :
15794   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15795 else $as_nop
15796   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15797 printf %s "checking for dld_link in -ldld... " >&6; }
15798 if test ${ac_cv_lib_dld_dld_link+y}
15799 then :
15800   printf %s "(cached) " >&6
15801 else $as_nop
15802   ac_check_lib_save_LIBS=$LIBS
15803 LIBS="-ldld  $LIBS"
15804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15805 /* end confdefs.h.  */
15806
15807
15808 #ifdef __cplusplus
15809 extern "C"
15810 #endif
15811 char dld_link ();
15812 int main (void)
15813 {
15814 return dld_link ();
15815  ;
15816  return 0;
15817 }
15818 _ACEOF
15819 if ac_fn_c_try_link "$LINENO"
15820 then :
15821   ac_cv_lib_dld_dld_link=yes
15822 else $as_nop
15823   ac_cv_lib_dld_dld_link=no
15824 fi
15825 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15826     conftest$ac_exeext conftest.$ac_ext
15827 LIBS=$ac_check_lib_save_LIBS
15828 fi
15829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15830 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
15831 if test "x$ac_cv_lib_dld_dld_link" = xyes
15832 then :
15833   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15834 fi
15835
15836
15837 fi
15838
15839
15840 fi
15841
15842
15843 fi
15844
15845
15846 fi
15847
15848
15849 fi
15850
15851     ;;
15852   esac
15853
15854   if test no = "$lt_cv_dlopen"; then
15855     enable_dlopen=no
15856   else
15857     enable_dlopen=yes
15858   fi
15859
15860   case $lt_cv_dlopen in
15861   dlopen)
15862     save_CPPFLAGS=$CPPFLAGS
15863     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15864
15865     save_LDFLAGS=$LDFLAGS
15866     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15867
15868     save_LIBS=$LIBS
15869     LIBS="$lt_cv_dlopen_libs $LIBS"
15870
15871     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15872 printf %s "checking whether a program can dlopen itself... " >&6; }
15873 if test ${lt_cv_dlopen_self+y}
15874 then :
15875   printf %s "(cached) " >&6
15876 else $as_nop
15877           if test yes = "$cross_compiling"; then :
15878   lt_cv_dlopen_self=cross
15879 else
15880   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15881   lt_status=$lt_dlunknown
15882   cat > conftest.$ac_ext <<_LT_EOF
15883 #line $LINENO "configure"
15884 #include "confdefs.h"
15885
15886 #if HAVE_DLFCN_H
15887 #include <dlfcn.h>
15888 #endif
15889
15890 #include <stdio.h>
15891
15892 #ifdef RTLD_GLOBAL
15893 #  define LT_DLGLOBAL           RTLD_GLOBAL
15894 #else
15895 #  ifdef DL_GLOBAL
15896 #    define LT_DLGLOBAL         DL_GLOBAL
15897 #  else
15898 #    define LT_DLGLOBAL         0
15899 #  endif
15900 #endif
15901
15902 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15903    find out it does not work in some platform. */
15904 #ifndef LT_DLLAZY_OR_NOW
15905 #  ifdef RTLD_LAZY
15906 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15907 #  else
15908 #    ifdef DL_LAZY
15909 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15910 #    else
15911 #      ifdef RTLD_NOW
15912 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15913 #      else
15914 #        ifdef DL_NOW
15915 #          define LT_DLLAZY_OR_NOW      DL_NOW
15916 #        else
15917 #          define LT_DLLAZY_OR_NOW      0
15918 #        endif
15919 #      endif
15920 #    endif
15921 #  endif
15922 #endif
15923
15924 /* When -fvisibility=hidden is used, assume the code has been annotated
15925    correspondingly for the symbols needed.  */
15926 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15927 int fnord () __attribute__((visibility("default")));
15928 #endif
15929
15930 int fnord () { return 42; }
15931 int main ()
15932 {
15933   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15934   int status = $lt_dlunknown;
15935
15936   if (self)
15937     {
15938       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15939       else
15940         {
15941           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15942           else puts (dlerror ());
15943         }
15944       /* dlclose (self); */
15945     }
15946   else
15947     puts (dlerror ());
15948
15949   return status;
15950 }
15951 _LT_EOF
15952   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15953   (eval $ac_link) 2>&5
15954   ac_status=$?
15955   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15956   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15957     (./conftest; exit; ) >&5 2>/dev/null
15958     lt_status=$?
15959     case x$lt_status in
15960       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15961       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15962       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15963     esac
15964   else :
15965     # compilation failed
15966     lt_cv_dlopen_self=no
15967   fi
15968 fi
15969 rm -fr conftest*
15970
15971
15972 fi
15973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15974 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
15975
15976     if test yes = "$lt_cv_dlopen_self"; then
15977       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15978       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15979 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
15980 if test ${lt_cv_dlopen_self_static+y}
15981 then :
15982   printf %s "(cached) " >&6
15983 else $as_nop
15984           if test yes = "$cross_compiling"; then :
15985   lt_cv_dlopen_self_static=cross
15986 else
15987   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15988   lt_status=$lt_dlunknown
15989   cat > conftest.$ac_ext <<_LT_EOF
15990 #line $LINENO "configure"
15991 #include "confdefs.h"
15992
15993 #if HAVE_DLFCN_H
15994 #include <dlfcn.h>
15995 #endif
15996
15997 #include <stdio.h>
15998
15999 #ifdef RTLD_GLOBAL
16000 #  define LT_DLGLOBAL           RTLD_GLOBAL
16001 #else
16002 #  ifdef DL_GLOBAL
16003 #    define LT_DLGLOBAL         DL_GLOBAL
16004 #  else
16005 #    define LT_DLGLOBAL         0
16006 #  endif
16007 #endif
16008
16009 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16010    find out it does not work in some platform. */
16011 #ifndef LT_DLLAZY_OR_NOW
16012 #  ifdef RTLD_LAZY
16013 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16014 #  else
16015 #    ifdef DL_LAZY
16016 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16017 #    else
16018 #      ifdef RTLD_NOW
16019 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16020 #      else
16021 #        ifdef DL_NOW
16022 #          define LT_DLLAZY_OR_NOW      DL_NOW
16023 #        else
16024 #          define LT_DLLAZY_OR_NOW      0
16025 #        endif
16026 #      endif
16027 #    endif
16028 #  endif
16029 #endif
16030
16031 /* When -fvisibility=hidden is used, assume the code has been annotated
16032    correspondingly for the symbols needed.  */
16033 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16034 int fnord () __attribute__((visibility("default")));
16035 #endif
16036
16037 int fnord () { return 42; }
16038 int main ()
16039 {
16040   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16041   int status = $lt_dlunknown;
16042
16043   if (self)
16044     {
16045       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16046       else
16047         {
16048           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16049           else puts (dlerror ());
16050         }
16051       /* dlclose (self); */
16052     }
16053   else
16054     puts (dlerror ());
16055
16056   return status;
16057 }
16058 _LT_EOF
16059   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16060   (eval $ac_link) 2>&5
16061   ac_status=$?
16062   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16063   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16064     (./conftest; exit; ) >&5 2>/dev/null
16065     lt_status=$?
16066     case x$lt_status in
16067       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16068       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16069       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16070     esac
16071   else :
16072     # compilation failed
16073     lt_cv_dlopen_self_static=no
16074   fi
16075 fi
16076 rm -fr conftest*
16077
16078
16079 fi
16080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16081 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
16082     fi
16083
16084     CPPFLAGS=$save_CPPFLAGS
16085     LDFLAGS=$save_LDFLAGS
16086     LIBS=$save_LIBS
16087     ;;
16088   esac
16089
16090   case $lt_cv_dlopen_self in
16091   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16092   *) enable_dlopen_self=unknown ;;
16093   esac
16094
16095   case $lt_cv_dlopen_self_static in
16096   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16097   *) enable_dlopen_self_static=unknown ;;
16098   esac
16099 fi
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117 striplib=
16118 old_striplib=
16119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16120 printf %s "checking whether stripping libraries is possible... " >&6; }
16121 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16122   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16123   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16124   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16125 printf "%s\n" "yes" >&6; }
16126 else
16127 # FIXME - insert some real tests, host_os isn't really good enough
16128   case $host_os in
16129   darwin*)
16130     if test -n "$STRIP"; then
16131       striplib="$STRIP -x"
16132       old_striplib="$STRIP -S"
16133       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16134 printf "%s\n" "yes" >&6; }
16135     else
16136       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16137 printf "%s\n" "no" >&6; }
16138     fi
16139     ;;
16140   *)
16141     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16142 printf "%s\n" "no" >&6; }
16143     ;;
16144   esac
16145 fi
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158   # Report what library types will actually be built
16159   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16160 printf %s "checking if libtool supports shared libraries... " >&6; }
16161   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16162 printf "%s\n" "$can_build_shared" >&6; }
16163
16164   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16165 printf %s "checking whether to build shared libraries... " >&6; }
16166   test no = "$can_build_shared" && enable_shared=no
16167
16168   # On AIX, shared libraries and static libraries use the same namespace, and
16169   # are all built from PIC.
16170   case $host_os in
16171   aix3*)
16172     test yes = "$enable_shared" && enable_static=no
16173     if test -n "$RANLIB"; then
16174       archive_cmds="$archive_cmds~\$RANLIB \$lib"
16175       postinstall_cmds='$RANLIB $lib'
16176     fi
16177     ;;
16178
16179   aix[4-9]*)
16180     if test ia64 != "$host_cpu"; then
16181       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
16182       yes,aix,yes) ;;                   # shared object as lib.so file only
16183       yes,svr4,*) ;;                    # shared object as lib.so archive member only
16184       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
16185       esac
16186     fi
16187     ;;
16188   esac
16189   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16190 printf "%s\n" "$enable_shared" >&6; }
16191
16192   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16193 printf %s "checking whether to build static libraries... " >&6; }
16194   # Make sure either enable_shared or enable_static is yes.
16195   test yes = "$enable_shared" || enable_static=yes
16196   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16197 printf "%s\n" "$enable_static" >&6; }
16198
16199
16200
16201
16202 fi
16203 ac_ext=c
16204 ac_cpp='$CPP $CPPFLAGS'
16205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16208
16209 CC=$lt_save_CC
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225         ac_config_commands="$ac_config_commands libtool"
16226
16227
16228
16229
16230 # Only expand once:
16231
16232
16233 ## --------------------- ##
16234 ##  End of libtool code  ##
16235 ## --------------------- ##
16236
16237 #
16238 # Verify if finally libtool shared libraries will be built
16239 #
16240
16241 case "x$enable_shared" in # ((
16242   xyes | xno)
16243     xc_lt_build_shared=$enable_shared
16244     ;;
16245   *)
16246     as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
16247     ;;
16248 esac
16249
16250 #
16251 # Verify if finally libtool static libraries will be built
16252 #
16253
16254 case "x$enable_static" in # ((
16255   xyes | xno)
16256     xc_lt_build_static=$enable_static
16257     ;;
16258   *)
16259     as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
16260     ;;
16261 esac
16262
16263 #
16264 # Verify if libtool shared libraries should be linked using flag -version-info
16265 #
16266
16267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
16268 printf %s "checking whether to build shared libraries with -version-info... " >&6; }
16269 xc_lt_shlib_use_version_info='yes'
16270 if test "x$version_type" = 'xnone'; then
16271   xc_lt_shlib_use_version_info='no'
16272 fi
16273 case $host_os in # (
16274   amigaos*)
16275     xc_lt_shlib_use_version_info='yes'
16276     ;;
16277 esac
16278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
16279 printf "%s\n" "$xc_lt_shlib_use_version_info" >&6; }
16280
16281 #
16282 # Verify if libtool shared libraries should be linked using flag -no-undefined
16283 #
16284
16285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
16286 printf %s "checking whether to build shared libraries with -no-undefined... " >&6; }
16287 xc_lt_shlib_use_no_undefined='no'
16288 if test "x$allow_undefined" = 'xno'; then
16289   xc_lt_shlib_use_no_undefined='yes'
16290 elif test "x$allow_undefined_flag" = 'xunsupported'; then
16291   xc_lt_shlib_use_no_undefined='yes'
16292 fi
16293 case $host_os in # (
16294   cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
16295     xc_lt_shlib_use_no_undefined='yes'
16296     ;;
16297 esac
16298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
16299 printf "%s\n" "$xc_lt_shlib_use_no_undefined" >&6; }
16300
16301 #
16302 # Verify if libtool shared libraries should be linked using flag -mimpure-text
16303 #
16304
16305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
16306 printf %s "checking whether to build shared libraries with -mimpure-text... " >&6; }
16307 xc_lt_shlib_use_mimpure_text='no'
16308 case $host_os in # (
16309   solaris2*)
16310     if test "x$GCC" = 'xyes'; then
16311       xc_lt_shlib_use_mimpure_text='yes'
16312     fi
16313     ;;
16314 esac
16315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
16316 printf "%s\n" "$xc_lt_shlib_use_mimpure_text" >&6; }
16317
16318 #
16319 # Find out whether libtool libraries would be built wit PIC
16320 #
16321
16322 case "x$pic_mode" in # ((((
16323   xdefault)
16324     xc_lt_build_shared_with_pic='yes'
16325     xc_lt_build_static_with_pic='no'
16326     ;;
16327   xyes)
16328     xc_lt_build_shared_with_pic='yes'
16329     xc_lt_build_static_with_pic='yes'
16330     ;;
16331   xno)
16332     xc_lt_build_shared_with_pic='no'
16333     xc_lt_build_static_with_pic='no'
16334     ;;
16335   *)
16336     xc_lt_build_shared_with_pic='unknown'
16337     xc_lt_build_static_with_pic='unknown'
16338     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
16339 printf "%s\n" "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
16340     ;;
16341 esac
16342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
16343 printf %s "checking whether to build shared libraries with PIC... " >&6; }
16344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
16345 printf "%s\n" "$xc_lt_build_shared_with_pic" >&6; }
16346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
16347 printf %s "checking whether to build static libraries with PIC... " >&6; }
16348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
16349 printf "%s\n" "$xc_lt_build_static_with_pic" >&6; }
16350
16351 #
16352 # Verify if libtool shared libraries will be built while static not built
16353 #
16354
16355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
16356 printf %s "checking whether to build shared libraries only... " >&6; }
16357 if test "$xc_lt_build_shared" = 'yes' &&
16358   test "$xc_lt_build_static" = 'no'; then
16359   xc_lt_build_shared_only='yes'
16360 else
16361   xc_lt_build_shared_only='no'
16362 fi
16363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
16364 printf "%s\n" "$xc_lt_build_shared_only" >&6; }
16365
16366 #
16367 # Verify if libtool static libraries will be built while shared not built
16368 #
16369
16370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
16371 printf %s "checking whether to build static libraries only... " >&6; }
16372 if test "$xc_lt_build_static" = 'yes' &&
16373   test "$xc_lt_build_shared" = 'no'; then
16374   xc_lt_build_static_only='yes'
16375 else
16376   xc_lt_build_static_only='no'
16377 fi
16378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
16379 printf "%s\n" "$xc_lt_build_static_only" >&6; }
16380
16381
16382
16383
16384 #
16385 # Automake conditionals based on libtool related checks
16386 #
16387
16388  if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
16389   CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
16390   CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
16391 else
16392   CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
16393   CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
16394 fi
16395
16396  if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
16397   CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
16398   CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
16399 else
16400   CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
16401   CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
16402 fi
16403
16404  if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
16405   CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
16406   CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
16407 else
16408   CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
16409   CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
16410 fi
16411
16412
16413 #
16414 # Due to libtool and automake machinery limitations of not allowing
16415 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
16416 # inclusion of these in shared or static libraries, we are forced to
16417 # build using separate configure runs for shared and static libraries
16418 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
16419 # to compile objects for each kind of library. Notice that relying on
16420 # the '-DPIC' CFLAG that libtool provides is not valid given that the
16421 # user might for example choose to build static libraries with PIC.
16422 #
16423
16424 #
16425 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
16426 # targeting a static library and not building its shared counterpart.
16427 #
16428
16429  if test "x$xc_lt_build_static_only" = 'xyes'; then
16430   USE_CPPFLAG_CURL_STATICLIB_TRUE=
16431   USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
16432 else
16433   USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
16434   USE_CPPFLAG_CURL_STATICLIB_FALSE=
16435 fi
16436
16437
16438 #
16439 # Make staticlib CPPFLAG variable and its definition visible in output
16440 # files unconditionally, providing an empty definition unless strictly
16441 # targeting a static library and not building its shared counterpart.
16442 #
16443
16444 CPPFLAG_CURL_STATICLIB=
16445 if test "x$xc_lt_build_static_only" = 'xyes'; then
16446   CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
16447 fi
16448
16449
16450
16451 # Determine whether all dependent libraries must be specified when linking
16452 if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
16453 then
16454     REQUIRE_LIB_DEPS=no
16455 else
16456     REQUIRE_LIB_DEPS=yes
16457 fi
16458
16459  if test x$REQUIRE_LIB_DEPS = xyes; then
16460   USE_EXPLICIT_LIB_DEPS_TRUE=
16461   USE_EXPLICIT_LIB_DEPS_FALSE='#'
16462 else
16463   USE_EXPLICIT_LIB_DEPS_TRUE='#'
16464   USE_EXPLICIT_LIB_DEPS_FALSE=
16465 fi
16466
16467
16468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16469 printf %s "checking for inline... " >&6; }
16470 if test ${ac_cv_c_inline+y}
16471 then :
16472   printf %s "(cached) " >&6
16473 else $as_nop
16474   ac_cv_c_inline=no
16475 for ac_kw in inline __inline__ __inline; do
16476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16477 /* end confdefs.h.  */
16478 #ifndef __cplusplus
16479 typedef int foo_t;
16480 static $ac_kw foo_t static_foo (void) {return 0; }
16481 $ac_kw foo_t foo (void) {return 0; }
16482 #endif
16483
16484 _ACEOF
16485 if ac_fn_c_try_compile "$LINENO"
16486 then :
16487   ac_cv_c_inline=$ac_kw
16488 fi
16489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16490   test "$ac_cv_c_inline" != no && break
16491 done
16492
16493 fi
16494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16495 printf "%s\n" "$ac_cv_c_inline" >&6; }
16496
16497 case $ac_cv_c_inline in
16498   inline | yes) ;;
16499   *)
16500     case $ac_cv_c_inline in
16501       no) ac_val=;;
16502       *) ac_val=$ac_cv_c_inline;;
16503     esac
16504     cat >>confdefs.h <<_ACEOF
16505 #ifndef __cplusplus
16506 #define inline $ac_val
16507 #endif
16508 _ACEOF
16509     ;;
16510 esac
16511
16512
16513
16514
16515   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
16516 printf %s "checking if cpp -P is needed... " >&6; }
16517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16518 /* end confdefs.h.  */
16519
16520  #include <errno.h>
16521 TEST EINVAL TEST
16522
16523 _ACEOF
16524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16525   $EGREP "TEST.*TEST" >/dev/null 2>&1
16526 then :
16527   cpp=no
16528 else $as_nop
16529   cpp=yes
16530 fi
16531 rm -rf conftest*
16532
16533   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
16534 printf "%s\n" "$cpp" >&6; }
16535
16536     if test "x$cpp" = "xyes"; then
16537     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
16538 printf %s "checking if cpp -P works... " >&6; }
16539     OLDCPPFLAGS=$CPPFLAGS
16540     CPPFLAGS="$CPPFLAGS -P"
16541     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16542 /* end confdefs.h.  */
16543
16544  #include <errno.h>
16545 TEST EINVAL TEST
16546
16547 _ACEOF
16548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16549   $EGREP "TEST.*TEST" >/dev/null 2>&1
16550 then :
16551   cpp_p=yes
16552 else $as_nop
16553   cpp_p=no
16554 fi
16555 rm -rf conftest*
16556
16557     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
16558 printf "%s\n" "$cpp_p" >&6; }
16559
16560     if test "x$cpp_p" = "xno"; then
16561       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
16562 printf "%s\n" "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
16563       # without -P
16564       CPPPFLAG=""
16565     else
16566       # with -P
16567       CPPPFLAG="-P"
16568     fi
16569         CPPFLAGS=$OLDCPPFLAGS
16570   else
16571     # without -P
16572     CPPPFLAG=""
16573   fi
16574
16575
16576   #
16577   compiler_id="unknown"
16578   compiler_num="0"
16579   #
16580   flags_dbg_yes="unknown"
16581   flags_opt_all="unknown"
16582   flags_opt_yes="unknown"
16583   flags_opt_off="unknown"
16584   #
16585   flags_prefer_cppflags="no"
16586   #
16587
16588   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
16589 printf %s "checking if compiler is DEC/Compaq/HP C... " >&6; }
16590
16591     OLDCPPFLAGS=$CPPFLAGS
16592   # CPPPFLAG comes from CURL_CPP_P
16593   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16594       if test -z "$SED"; then
16595     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16596   fi
16597   if test -z "$GREP"; then
16598     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16599   fi
16600
16601   tmp_exp=""
16602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16603 /* end confdefs.h.  */
16604
16605
16606 #ifdef __DECC
16607 CURL_DEF_TOKEN __DECC
16608 #endif
16609
16610
16611 _ACEOF
16612 if ac_fn_c_try_cpp "$LINENO"
16613 then :
16614
16615     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16616       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16617       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16618       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16619     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
16620       tmp_exp=""
16621     fi
16622
16623 fi
16624 rm -f conftest.err conftest.i conftest.$ac_ext
16625   if test -z "$tmp_exp"; then
16626     curl_cv_have_def___DECC=no
16627
16628   else
16629     curl_cv_have_def___DECC=yes
16630     curl_cv_def___DECC=$tmp_exp
16631
16632   fi
16633       CPPFLAGS=$OLDCPPFLAGS
16634
16635
16636     OLDCPPFLAGS=$CPPFLAGS
16637   # CPPPFLAG comes from CURL_CPP_P
16638   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16639       if test -z "$SED"; then
16640     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16641   fi
16642   if test -z "$GREP"; then
16643     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16644   fi
16645
16646   tmp_exp=""
16647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16648 /* end confdefs.h.  */
16649
16650
16651 #ifdef __DECC_VER
16652 CURL_DEF_TOKEN __DECC_VER
16653 #endif
16654
16655
16656 _ACEOF
16657 if ac_fn_c_try_cpp "$LINENO"
16658 then :
16659
16660     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16661       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16662       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16663       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16664     if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
16665       tmp_exp=""
16666     fi
16667
16668 fi
16669 rm -f conftest.err conftest.i conftest.$ac_ext
16670   if test -z "$tmp_exp"; then
16671     curl_cv_have_def___DECC_VER=no
16672
16673   else
16674     curl_cv_have_def___DECC_VER=yes
16675     curl_cv_def___DECC_VER=$tmp_exp
16676
16677   fi
16678       CPPFLAGS=$OLDCPPFLAGS
16679
16680   if test "$curl_cv_have_def___DECC" = "yes" &&
16681     test "$curl_cv_have_def___DECC_VER" = "yes"; then
16682     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16683 printf "%s\n" "yes" >&6; }
16684     compiler_id="DEC_C"
16685     flags_dbg_yes="-g2"
16686     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
16687     flags_opt_yes="-O1"
16688     flags_opt_off="-O0"
16689   else
16690     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16691 printf "%s\n" "no" >&6; }
16692   fi
16693
16694
16695   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
16696 printf %s "checking if compiler is HP-UX C... " >&6; }
16697
16698     OLDCPPFLAGS=$CPPFLAGS
16699   # CPPPFLAG comes from CURL_CPP_P
16700   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16701       if test -z "$SED"; then
16702     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16703   fi
16704   if test -z "$GREP"; then
16705     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16706   fi
16707
16708   tmp_exp=""
16709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16710 /* end confdefs.h.  */
16711
16712
16713 #ifdef __HP_cc
16714 CURL_DEF_TOKEN __HP_cc
16715 #endif
16716
16717
16718 _ACEOF
16719 if ac_fn_c_try_cpp "$LINENO"
16720 then :
16721
16722     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16723       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16724       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16725       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16726     if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
16727       tmp_exp=""
16728     fi
16729
16730 fi
16731 rm -f conftest.err conftest.i conftest.$ac_ext
16732   if test -z "$tmp_exp"; then
16733     curl_cv_have_def___HP_cc=no
16734
16735   else
16736     curl_cv_have_def___HP_cc=yes
16737     curl_cv_def___HP_cc=$tmp_exp
16738
16739   fi
16740       CPPFLAGS=$OLDCPPFLAGS
16741
16742   if test "$curl_cv_have_def___HP_cc" = "yes"; then
16743     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16744 printf "%s\n" "yes" >&6; }
16745     compiler_id="HP_UX_C"
16746     flags_dbg_yes="-g"
16747     flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
16748     flags_opt_yes="+O2"
16749     flags_opt_off="+O0"
16750   else
16751     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16752 printf "%s\n" "no" >&6; }
16753   fi
16754
16755
16756   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
16757 printf %s "checking if compiler is IBM C... " >&6; }
16758
16759     OLDCPPFLAGS=$CPPFLAGS
16760   # CPPPFLAG comes from CURL_CPP_P
16761   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16762       if test -z "$SED"; then
16763     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16764   fi
16765   if test -z "$GREP"; then
16766     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16767   fi
16768
16769   tmp_exp=""
16770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16771 /* end confdefs.h.  */
16772
16773
16774 #ifdef __IBMC__
16775 CURL_DEF_TOKEN __IBMC__
16776 #endif
16777
16778
16779 _ACEOF
16780 if ac_fn_c_try_cpp "$LINENO"
16781 then :
16782
16783     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16784       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16785       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16786       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16787     if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
16788       tmp_exp=""
16789     fi
16790
16791 fi
16792 rm -f conftest.err conftest.i conftest.$ac_ext
16793   if test -z "$tmp_exp"; then
16794     curl_cv_have_def___IBMC__=no
16795
16796   else
16797     curl_cv_have_def___IBMC__=yes
16798     curl_cv_def___IBMC__=$tmp_exp
16799
16800   fi
16801       CPPFLAGS=$OLDCPPFLAGS
16802
16803   if test "$curl_cv_have_def___IBMC__" = "yes"; then
16804     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16805 printf "%s\n" "yes" >&6; }
16806     compiler_id="IBM_C"
16807     flags_dbg_yes="-g"
16808     flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
16809     flags_opt_all="$flags_opt_all -qnooptimize"
16810     flags_opt_all="$flags_opt_all -qoptimize=0"
16811     flags_opt_all="$flags_opt_all -qoptimize=1"
16812     flags_opt_all="$flags_opt_all -qoptimize=2"
16813     flags_opt_all="$flags_opt_all -qoptimize=3"
16814     flags_opt_all="$flags_opt_all -qoptimize=4"
16815     flags_opt_all="$flags_opt_all -qoptimize=5"
16816     flags_opt_yes="-O2"
16817     flags_opt_off="-qnooptimize"
16818     flags_prefer_cppflags="yes"
16819   else
16820     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16821 printf "%s\n" "no" >&6; }
16822   fi
16823
16824
16825     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
16826 printf %s "checking if compiler is Intel C... " >&6; }
16827
16828     OLDCPPFLAGS=$CPPFLAGS
16829   # CPPPFLAG comes from CURL_CPP_P
16830   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16831       if test -z "$SED"; then
16832     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16833   fi
16834   if test -z "$GREP"; then
16835     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16836   fi
16837
16838   tmp_exp=""
16839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16840 /* end confdefs.h.  */
16841
16842
16843 #ifdef __INTEL_COMPILER
16844 CURL_DEF_TOKEN __INTEL_COMPILER
16845 #endif
16846
16847
16848 _ACEOF
16849 if ac_fn_c_try_cpp "$LINENO"
16850 then :
16851
16852     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16853       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16854       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16855       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16856     if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
16857       tmp_exp=""
16858     fi
16859
16860 fi
16861 rm -f conftest.err conftest.i conftest.$ac_ext
16862   if test -z "$tmp_exp"; then
16863     curl_cv_have_def___INTEL_COMPILER=no
16864
16865   else
16866     curl_cv_have_def___INTEL_COMPILER=yes
16867     curl_cv_def___INTEL_COMPILER=$tmp_exp
16868
16869   fi
16870       CPPFLAGS=$OLDCPPFLAGS
16871
16872   if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
16873     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16874 printf "%s\n" "yes" >&6; }
16875     compiler_num="$curl_cv_def___INTEL_COMPILER"
16876
16877     OLDCPPFLAGS=$CPPFLAGS
16878   # CPPPFLAG comes from CURL_CPP_P
16879   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16880       if test -z "$SED"; then
16881     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16882   fi
16883   if test -z "$GREP"; then
16884     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16885   fi
16886
16887   tmp_exp=""
16888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16889 /* end confdefs.h.  */
16890
16891
16892 #ifdef __unix__
16893 CURL_DEF_TOKEN __unix__
16894 #endif
16895
16896
16897 _ACEOF
16898 if ac_fn_c_try_cpp "$LINENO"
16899 then :
16900
16901     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16902       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16903       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16904       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16905     if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
16906       tmp_exp=""
16907     fi
16908
16909 fi
16910 rm -f conftest.err conftest.i conftest.$ac_ext
16911   if test -z "$tmp_exp"; then
16912     curl_cv_have_def___unix__=no
16913
16914   else
16915     curl_cv_have_def___unix__=yes
16916     curl_cv_def___unix__=$tmp_exp
16917
16918   fi
16919       CPPFLAGS=$OLDCPPFLAGS
16920
16921     if test "$curl_cv_have_def___unix__" = "yes"; then
16922       compiler_id="INTEL_UNIX_C"
16923       flags_dbg_yes="-g"
16924       flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16925       flags_opt_yes="-O2"
16926       flags_opt_off="-O0"
16927     else
16928       compiler_id="INTEL_WINDOWS_C"
16929       flags_dbg_yes="/Zi /Oy-"
16930       flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
16931       flags_opt_yes="/O2"
16932       flags_opt_off="/Od"
16933     fi
16934   else
16935     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16936 printf "%s\n" "no" >&6; }
16937   fi
16938
16939
16940     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
16941 printf %s "checking if compiler is clang... " >&6; }
16942
16943     OLDCPPFLAGS=$CPPFLAGS
16944   # CPPPFLAG comes from CURL_CPP_P
16945   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16946       if test -z "$SED"; then
16947     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16948   fi
16949   if test -z "$GREP"; then
16950     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16951   fi
16952
16953   tmp_exp=""
16954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16955 /* end confdefs.h.  */
16956
16957
16958 #ifdef __clang__
16959 CURL_DEF_TOKEN __clang__
16960 #endif
16961
16962
16963 _ACEOF
16964 if ac_fn_c_try_cpp "$LINENO"
16965 then :
16966
16967     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16968       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16969       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16970       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16971     if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
16972       tmp_exp=""
16973     fi
16974
16975 fi
16976 rm -f conftest.err conftest.i conftest.$ac_ext
16977   if test -z "$tmp_exp"; then
16978     curl_cv_have_def___clang__=no
16979
16980   else
16981     curl_cv_have_def___clang__=yes
16982     curl_cv_def___clang__=$tmp_exp
16983
16984   fi
16985       CPPFLAGS=$OLDCPPFLAGS
16986
16987   if test "$curl_cv_have_def___clang__" = "yes"; then
16988     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16989 printf "%s\n" "yes" >&6; }
16990     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is xlclang" >&5
16991 printf %s "checking if compiler is xlclang... " >&6; }
16992
16993     OLDCPPFLAGS=$CPPFLAGS
16994   # CPPPFLAG comes from CURL_CPP_P
16995   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16996       if test -z "$SED"; then
16997     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16998   fi
16999   if test -z "$GREP"; then
17000     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17001   fi
17002
17003   tmp_exp=""
17004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17005 /* end confdefs.h.  */
17006
17007
17008 #ifdef __ibmxl__
17009 CURL_DEF_TOKEN __ibmxl__
17010 #endif
17011
17012
17013 _ACEOF
17014 if ac_fn_c_try_cpp "$LINENO"
17015 then :
17016
17017     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17018       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17019       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17020       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17021     if test -z "$tmp_exp" || test "$tmp_exp" = "__ibmxl__"; then
17022       tmp_exp=""
17023     fi
17024
17025 fi
17026 rm -f conftest.err conftest.i conftest.$ac_ext
17027   if test -z "$tmp_exp"; then
17028     curl_cv_have_def___ibmxl__=no
17029
17030   else
17031     curl_cv_have_def___ibmxl__=yes
17032     curl_cv_def___ibmxl__=$tmp_exp
17033
17034   fi
17035       CPPFLAGS=$OLDCPPFLAGS
17036
17037     if test "$curl_cv_have_def___ibmxl__" = "yes" ; then
17038             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17039 printf "%s\n" "yes" >&6; }
17040       compiler_id="XLCLANG"
17041     else
17042       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17043 printf "%s\n" "no" >&6; }
17044       compiler_id="CLANG"
17045     fi
17046     fullclangver=`$CC -v 2>&1 | grep version`
17047     clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
17048     if test -z "$clangver"; then
17049       if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then
17050                 clangver="3.7"
17051       else
17052         clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
17053       fi
17054     fi
17055     clangvhi=`echo $clangver | cut -d . -f1`
17056     clangvlo=`echo $clangver | cut -d . -f2`
17057     compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
17058     flags_dbg_yes="-g"
17059     flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
17060     flags_opt_yes="-Os"
17061     flags_opt_off="-O0"
17062   else
17063     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17064 printf "%s\n" "no" >&6; }
17065   fi
17066
17067
17068       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
17069 printf %s "checking if compiler is GNU C... " >&6; }
17070
17071     OLDCPPFLAGS=$CPPFLAGS
17072   # CPPPFLAG comes from CURL_CPP_P
17073   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17074       if test -z "$SED"; then
17075     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17076   fi
17077   if test -z "$GREP"; then
17078     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17079   fi
17080
17081   tmp_exp=""
17082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17083 /* end confdefs.h.  */
17084
17085
17086 #ifdef __GNUC__
17087 CURL_DEF_TOKEN __GNUC__
17088 #endif
17089
17090
17091 _ACEOF
17092 if ac_fn_c_try_cpp "$LINENO"
17093 then :
17094
17095     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17096       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17097       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17098       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17099     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
17100       tmp_exp=""
17101     fi
17102
17103 fi
17104 rm -f conftest.err conftest.i conftest.$ac_ext
17105   if test -z "$tmp_exp"; then
17106     curl_cv_have_def___GNUC__=no
17107
17108   else
17109     curl_cv_have_def___GNUC__=yes
17110     curl_cv_def___GNUC__=$tmp_exp
17111
17112   fi
17113       CPPFLAGS=$OLDCPPFLAGS
17114
17115   if test "$curl_cv_have_def___GNUC__" = "yes" &&
17116     test "$compiler_id" = "unknown"; then
17117     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17118 printf "%s\n" "yes" >&6; }
17119     compiler_id="GNU_C"
17120     gccver=`$CC -dumpversion`
17121     gccvhi=`echo $gccver | cut -d . -f1`
17122     gccvlo=`echo $gccver | cut -d . -f2`
17123     compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
17124     flags_dbg_yes="-g"
17125     flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
17126     flags_opt_yes="-O2"
17127     flags_opt_off="-O0"
17128
17129     OLDCPPFLAGS=$CPPFLAGS
17130   # CPPPFLAG comes from CURL_CPP_P
17131   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17132       if test -z "$SED"; then
17133     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17134   fi
17135   if test -z "$GREP"; then
17136     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17137   fi
17138
17139   tmp_exp=""
17140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17141 /* end confdefs.h.  */
17142
17143
17144 #ifdef _WIN32
17145 CURL_DEF_TOKEN _WIN32
17146 #endif
17147
17148
17149 _ACEOF
17150 if ac_fn_c_try_cpp "$LINENO"
17151 then :
17152
17153     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17154       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17155       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17156       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17157     if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
17158       tmp_exp=""
17159     fi
17160
17161 fi
17162 rm -f conftest.err conftest.i conftest.$ac_ext
17163   if test -z "$tmp_exp"; then
17164     curl_cv_have_def__WIN32=no
17165
17166   else
17167     curl_cv_have_def__WIN32=yes
17168     curl_cv_def__WIN32=$tmp_exp
17169
17170   fi
17171       CPPFLAGS=$OLDCPPFLAGS
17172
17173   else
17174     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17175 printf "%s\n" "no" >&6; }
17176   fi
17177
17178
17179   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
17180 printf %s "checking if compiler is LCC... " >&6; }
17181
17182     OLDCPPFLAGS=$CPPFLAGS
17183   # CPPPFLAG comes from CURL_CPP_P
17184   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17185       if test -z "$SED"; then
17186     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17187   fi
17188   if test -z "$GREP"; then
17189     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17190   fi
17191
17192   tmp_exp=""
17193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17194 /* end confdefs.h.  */
17195
17196
17197 #ifdef __LCC__
17198 CURL_DEF_TOKEN __LCC__
17199 #endif
17200
17201
17202 _ACEOF
17203 if ac_fn_c_try_cpp "$LINENO"
17204 then :
17205
17206     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17207       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17208       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17209       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17210     if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
17211       tmp_exp=""
17212     fi
17213
17214 fi
17215 rm -f conftest.err conftest.i conftest.$ac_ext
17216   if test -z "$tmp_exp"; then
17217     curl_cv_have_def___LCC__=no
17218
17219   else
17220     curl_cv_have_def___LCC__=yes
17221     curl_cv_def___LCC__=$tmp_exp
17222
17223   fi
17224       CPPFLAGS=$OLDCPPFLAGS
17225
17226   if test "$curl_cv_have_def___LCC__" = "yes"; then
17227     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17228 printf "%s\n" "yes" >&6; }
17229     compiler_id="LCC"
17230     flags_dbg_yes="-g"
17231     flags_opt_all=""
17232     flags_opt_yes=""
17233     flags_opt_off=""
17234   else
17235     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17236 printf "%s\n" "no" >&6; }
17237   fi
17238
17239
17240     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
17241 printf %s "checking if compiler is SGI MIPSpro C... " >&6; }
17242
17243     OLDCPPFLAGS=$CPPFLAGS
17244   # CPPPFLAG comes from CURL_CPP_P
17245   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17246       if test -z "$SED"; then
17247     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17248   fi
17249   if test -z "$GREP"; then
17250     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17251   fi
17252
17253   tmp_exp=""
17254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17255 /* end confdefs.h.  */
17256
17257
17258 #ifdef __GNUC__
17259 CURL_DEF_TOKEN __GNUC__
17260 #endif
17261
17262
17263 _ACEOF
17264 if ac_fn_c_try_cpp "$LINENO"
17265 then :
17266
17267     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17268       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17269       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17270       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17271     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
17272       tmp_exp=""
17273     fi
17274
17275 fi
17276 rm -f conftest.err conftest.i conftest.$ac_ext
17277   if test -z "$tmp_exp"; then
17278     curl_cv_have_def___GNUC__=no
17279
17280   else
17281     curl_cv_have_def___GNUC__=yes
17282     curl_cv_def___GNUC__=$tmp_exp
17283
17284   fi
17285       CPPFLAGS=$OLDCPPFLAGS
17286
17287
17288     OLDCPPFLAGS=$CPPFLAGS
17289   # CPPPFLAG comes from CURL_CPP_P
17290   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17291       if test -z "$SED"; then
17292     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17293   fi
17294   if test -z "$GREP"; then
17295     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17296   fi
17297
17298   tmp_exp=""
17299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17300 /* end confdefs.h.  */
17301
17302
17303 #ifdef _COMPILER_VERSION
17304 CURL_DEF_TOKEN _COMPILER_VERSION
17305 #endif
17306
17307
17308 _ACEOF
17309 if ac_fn_c_try_cpp "$LINENO"
17310 then :
17311
17312     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17313       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17314       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17315       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17316     if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
17317       tmp_exp=""
17318     fi
17319
17320 fi
17321 rm -f conftest.err conftest.i conftest.$ac_ext
17322   if test -z "$tmp_exp"; then
17323     curl_cv_have_def__COMPILER_VERSION=no
17324
17325   else
17326     curl_cv_have_def__COMPILER_VERSION=yes
17327     curl_cv_def__COMPILER_VERSION=$tmp_exp
17328
17329   fi
17330       CPPFLAGS=$OLDCPPFLAGS
17331
17332
17333     OLDCPPFLAGS=$CPPFLAGS
17334   # CPPPFLAG comes from CURL_CPP_P
17335   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17336       if test -z "$SED"; then
17337     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17338   fi
17339   if test -z "$GREP"; then
17340     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17341   fi
17342
17343   tmp_exp=""
17344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17345 /* end confdefs.h.  */
17346
17347
17348 #ifdef _SGI_COMPILER_VERSION
17349 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
17350 #endif
17351
17352
17353 _ACEOF
17354 if ac_fn_c_try_cpp "$LINENO"
17355 then :
17356
17357     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17358       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17359       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17360       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17361     if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
17362       tmp_exp=""
17363     fi
17364
17365 fi
17366 rm -f conftest.err conftest.i conftest.$ac_ext
17367   if test -z "$tmp_exp"; then
17368     curl_cv_have_def__SGI_COMPILER_VERSION=no
17369
17370   else
17371     curl_cv_have_def__SGI_COMPILER_VERSION=yes
17372     curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
17373
17374   fi
17375       CPPFLAGS=$OLDCPPFLAGS
17376
17377   if test "$curl_cv_have_def___GNUC__" = "no" &&
17378     (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
17379      test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
17380     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17381 printf "%s\n" "yes" >&6; }
17382     compiler_id="SGI_MIPSPRO_C"
17383     flags_dbg_yes="-g"
17384     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
17385     flags_opt_yes="-O2"
17386     flags_opt_off="-O0"
17387   else
17388     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17389 printf "%s\n" "no" >&6; }
17390   fi
17391
17392
17393     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
17394 printf %s "checking if compiler is SGI MIPS C... " >&6; }
17395
17396     OLDCPPFLAGS=$CPPFLAGS
17397   # CPPPFLAG comes from CURL_CPP_P
17398   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17399       if test -z "$SED"; then
17400     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17401   fi
17402   if test -z "$GREP"; then
17403     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17404   fi
17405
17406   tmp_exp=""
17407   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17408 /* end confdefs.h.  */
17409
17410
17411 #ifdef __GNUC__
17412 CURL_DEF_TOKEN __GNUC__
17413 #endif
17414
17415
17416 _ACEOF
17417 if ac_fn_c_try_cpp "$LINENO"
17418 then :
17419
17420     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17421       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17422       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17423       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17424     if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
17425       tmp_exp=""
17426     fi
17427
17428 fi
17429 rm -f conftest.err conftest.i conftest.$ac_ext
17430   if test -z "$tmp_exp"; then
17431     curl_cv_have_def___GNUC__=no
17432
17433   else
17434     curl_cv_have_def___GNUC__=yes
17435     curl_cv_def___GNUC__=$tmp_exp
17436
17437   fi
17438       CPPFLAGS=$OLDCPPFLAGS
17439
17440
17441     OLDCPPFLAGS=$CPPFLAGS
17442   # CPPPFLAG comes from CURL_CPP_P
17443   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17444       if test -z "$SED"; then
17445     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17446   fi
17447   if test -z "$GREP"; then
17448     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17449   fi
17450
17451   tmp_exp=""
17452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17453 /* end confdefs.h.  */
17454
17455
17456 #ifdef __sgi
17457 CURL_DEF_TOKEN __sgi
17458 #endif
17459
17460
17461 _ACEOF
17462 if ac_fn_c_try_cpp "$LINENO"
17463 then :
17464
17465     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17466       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17467       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17468       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17469     if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
17470       tmp_exp=""
17471     fi
17472
17473 fi
17474 rm -f conftest.err conftest.i conftest.$ac_ext
17475   if test -z "$tmp_exp"; then
17476     curl_cv_have_def___sgi=no
17477
17478   else
17479     curl_cv_have_def___sgi=yes
17480     curl_cv_def___sgi=$tmp_exp
17481
17482   fi
17483       CPPFLAGS=$OLDCPPFLAGS
17484
17485   if test "$curl_cv_have_def___GNUC__" = "no" &&
17486     test "$curl_cv_have_def___sgi" = "yes" &&
17487     test "$compiler_id" = "unknown"; then
17488     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17489 printf "%s\n" "yes" >&6; }
17490     compiler_id="SGI_MIPS_C"
17491     flags_dbg_yes="-g"
17492     flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
17493     flags_opt_yes="-O2"
17494     flags_opt_off="-O0"
17495   else
17496     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17497 printf "%s\n" "no" >&6; }
17498   fi
17499
17500
17501   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
17502 printf %s "checking if compiler is SunPro C... " >&6; }
17503
17504     OLDCPPFLAGS=$CPPFLAGS
17505   # CPPPFLAG comes from CURL_CPP_P
17506   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17507       if test -z "$SED"; then
17508     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17509   fi
17510   if test -z "$GREP"; then
17511     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17512   fi
17513
17514   tmp_exp=""
17515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17516 /* end confdefs.h.  */
17517
17518
17519 #ifdef __SUNPRO_C
17520 CURL_DEF_TOKEN __SUNPRO_C
17521 #endif
17522
17523
17524 _ACEOF
17525 if ac_fn_c_try_cpp "$LINENO"
17526 then :
17527
17528     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17529       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17530       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17531       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17532     if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
17533       tmp_exp=""
17534     fi
17535
17536 fi
17537 rm -f conftest.err conftest.i conftest.$ac_ext
17538   if test -z "$tmp_exp"; then
17539     curl_cv_have_def___SUNPRO_C=no
17540
17541   else
17542     curl_cv_have_def___SUNPRO_C=yes
17543     curl_cv_def___SUNPRO_C=$tmp_exp
17544
17545   fi
17546       CPPFLAGS=$OLDCPPFLAGS
17547
17548   if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
17549     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17550 printf "%s\n" "yes" >&6; }
17551     compiler_id="SUNPRO_C"
17552     flags_dbg_yes="-g"
17553     flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
17554     flags_opt_yes="-xO2"
17555     flags_opt_off=""
17556   else
17557     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17558 printf "%s\n" "no" >&6; }
17559   fi
17560
17561
17562   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
17563 printf %s "checking if compiler is Tiny C... " >&6; }
17564
17565     OLDCPPFLAGS=$CPPFLAGS
17566   # CPPPFLAG comes from CURL_CPP_P
17567   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17568       if test -z "$SED"; then
17569     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17570   fi
17571   if test -z "$GREP"; then
17572     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17573   fi
17574
17575   tmp_exp=""
17576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17577 /* end confdefs.h.  */
17578
17579
17580 #ifdef __TINYC__
17581 CURL_DEF_TOKEN __TINYC__
17582 #endif
17583
17584
17585 _ACEOF
17586 if ac_fn_c_try_cpp "$LINENO"
17587 then :
17588
17589     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17590       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17591       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17592       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17593     if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
17594       tmp_exp=""
17595     fi
17596
17597 fi
17598 rm -f conftest.err conftest.i conftest.$ac_ext
17599   if test -z "$tmp_exp"; then
17600     curl_cv_have_def___TINYC__=no
17601
17602   else
17603     curl_cv_have_def___TINYC__=yes
17604     curl_cv_def___TINYC__=$tmp_exp
17605
17606   fi
17607       CPPFLAGS=$OLDCPPFLAGS
17608
17609   if test "$curl_cv_have_def___TINYC__" = "yes"; then
17610     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17611 printf "%s\n" "yes" >&6; }
17612     compiler_id="TINY_C"
17613     flags_dbg_yes="-g"
17614     flags_opt_all=""
17615     flags_opt_yes=""
17616     flags_opt_off=""
17617   else
17618     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17619 printf "%s\n" "no" >&6; }
17620   fi
17621
17622
17623   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
17624 printf %s "checking if compiler is Watcom C... " >&6; }
17625
17626     OLDCPPFLAGS=$CPPFLAGS
17627   # CPPPFLAG comes from CURL_CPP_P
17628   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17629       if test -z "$SED"; then
17630     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17631   fi
17632   if test -z "$GREP"; then
17633     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17634   fi
17635
17636   tmp_exp=""
17637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17638 /* end confdefs.h.  */
17639
17640
17641 #ifdef __WATCOMC__
17642 CURL_DEF_TOKEN __WATCOMC__
17643 #endif
17644
17645
17646 _ACEOF
17647 if ac_fn_c_try_cpp "$LINENO"
17648 then :
17649
17650     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17651       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17652       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17653       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17654     if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
17655       tmp_exp=""
17656     fi
17657
17658 fi
17659 rm -f conftest.err conftest.i conftest.$ac_ext
17660   if test -z "$tmp_exp"; then
17661     curl_cv_have_def___WATCOMC__=no
17662
17663   else
17664     curl_cv_have_def___WATCOMC__=yes
17665     curl_cv_def___WATCOMC__=$tmp_exp
17666
17667   fi
17668       CPPFLAGS=$OLDCPPFLAGS
17669
17670   if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
17671     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17672 printf "%s\n" "yes" >&6; }
17673
17674     OLDCPPFLAGS=$CPPFLAGS
17675   # CPPPFLAG comes from CURL_CPP_P
17676   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17677       if test -z "$SED"; then
17678     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17679   fi
17680   if test -z "$GREP"; then
17681     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17682   fi
17683
17684   tmp_exp=""
17685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17686 /* end confdefs.h.  */
17687
17688
17689 #ifdef __UNIX__
17690 CURL_DEF_TOKEN __UNIX__
17691 #endif
17692
17693
17694 _ACEOF
17695 if ac_fn_c_try_cpp "$LINENO"
17696 then :
17697
17698     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17699       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17700       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17701       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17702     if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
17703       tmp_exp=""
17704     fi
17705
17706 fi
17707 rm -f conftest.err conftest.i conftest.$ac_ext
17708   if test -z "$tmp_exp"; then
17709     curl_cv_have_def___UNIX__=no
17710
17711   else
17712     curl_cv_have_def___UNIX__=yes
17713     curl_cv_def___UNIX__=$tmp_exp
17714
17715   fi
17716       CPPFLAGS=$OLDCPPFLAGS
17717
17718     if test "$curl_cv_have_def___UNIX__" = "yes"; then
17719       compiler_id="WATCOM_UNIX_C"
17720       flags_dbg_yes="-g2"
17721       flags_opt_all="-O0 -O1 -O2 -O3"
17722       flags_opt_yes="-O2"
17723       flags_opt_off="-O0"
17724     else
17725       compiler_id="WATCOM_WINDOWS_C"
17726       flags_dbg_yes=""
17727       flags_opt_all=""
17728       flags_opt_yes=""
17729       flags_opt_off=""
17730     fi
17731   else
17732     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17733 printf "%s\n" "no" >&6; }
17734   fi
17735
17736   #
17737   if test "$compiler_id" = "unknown"; then
17738   cat <<_EOF 1>&2
17739 ***
17740 *** Warning: This configure script does not have information about the
17741 *** compiler you are using, relative to the flags required to enable or
17742 *** disable generation of debug info, optimization options or warnings.
17743 ***
17744 *** Whatever settings are present in CFLAGS will be used for this run.
17745 ***
17746 *** If you wish to help the curl project to better support your compiler
17747 *** you can report this and the required info on the libcurl development
17748 *** mailing list: https://lists.haxx.selistinfo/curl-library/
17749 ***
17750 _EOF
17751   fi
17752
17753
17754 squeeze() {
17755   _sqz_result=""
17756   eval _sqz_input=\$$1
17757   for _sqz_token in $_sqz_input; do
17758     if test -z "$_sqz_result"; then
17759       _sqz_result="$_sqz_token"
17760     else
17761       _sqz_result="$_sqz_result $_sqz_token"
17762     fi
17763   done
17764   eval $1=\$_sqz_result
17765   return 0
17766 }
17767
17768
17769       #
17770   if test "$compiler_id" != "unknown"; then
17771     #
17772     tmp_save_CPPFLAGS="$CPPFLAGS"
17773     tmp_save_CFLAGS="$CFLAGS"
17774     tmp_CPPFLAGS=""
17775     tmp_CFLAGS=""
17776     #
17777     case "$compiler_id" in
17778         #
17779       CLANG)
17780         #
17781                                 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
17782                         tmp_CFLAGS="$tmp_CFLAGS -Wno-pointer-bool-conversion"
17783         ;;
17784         #
17785       DEC_C)
17786         #
17787                 tmp_CFLAGS="$tmp_CFLAGS -std1"
17788                 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
17789                 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
17790                 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
17791         ;;
17792         #
17793       GNU_C)
17794         #
17795                         if test "$compiler_num" -ge "295"; then
17796           tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
17797         fi
17798         ;;
17799         #
17800       HP_UX_C)
17801         #
17802                 tmp_CFLAGS="$tmp_CFLAGS -z"
17803                                 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
17804         ;;
17805         #
17806       IBM_C)
17807         #
17808                 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
17809                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
17810                         tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
17811         ;;
17812         #
17813       INTEL_UNIX_C)
17814         #
17815                         tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
17816                                                 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
17817                                         tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
17818         ;;
17819         #
17820       INTEL_WINDOWS_C)
17821         #
17822                 tmp_CFLAGS="$tmp_CFLAGS"
17823         ;;
17824         #
17825       LCC)
17826         #
17827                 tmp_CFLAGS="$tmp_CFLAGS -n"
17828         ;;
17829         #
17830       SGI_MIPS_C)
17831         #
17832                 tmp_CFLAGS="$tmp_CFLAGS"
17833         ;;
17834         #
17835       SGI_MIPSPRO_C)
17836         #
17837                 tmp_CFLAGS="$tmp_CFLAGS"
17838         ;;
17839         #
17840       SUNPRO_C)
17841         #
17842                 tmp_CFLAGS="$tmp_CFLAGS"
17843         ;;
17844         #
17845       TINY_C)
17846         #
17847                 tmp_CFLAGS="$tmp_CFLAGS"
17848         ;;
17849         #
17850       WATCOM_UNIX_C)
17851         #
17852                 tmp_CFLAGS="$tmp_CFLAGS"
17853         ;;
17854         #
17855       WATCOM_WINDOWS_C)
17856         #
17857                 tmp_CFLAGS="$tmp_CFLAGS"
17858         ;;
17859         #
17860     esac
17861     #
17862     squeeze tmp_CPPFLAGS
17863     squeeze tmp_CFLAGS
17864     #
17865     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17866       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
17867 printf %s "checking if compiler accepts some basic options... " >&6; }
17868       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17869       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17870       squeeze CPPFLAGS
17871       squeeze CFLAGS
17872
17873     tmp_compiler_works="unknown"
17874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17875 /* end confdefs.h.  */
17876
17877
17878
17879 int main (void)
17880 {
17881
17882       int i = 1;
17883       return i;
17884
17885  ;
17886  return 0;
17887 }
17888
17889 _ACEOF
17890 if ac_fn_c_try_compile "$LINENO"
17891 then :
17892
17893     tmp_compiler_works="yes"
17894
17895 else $as_nop
17896
17897     tmp_compiler_works="no"
17898     echo " " >&6
17899     sed 's/^/cc-fail: /' conftest.err >&6
17900     echo " " >&6
17901
17902 fi
17903 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17904     if test "$tmp_compiler_works" = "yes"; then
17905     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17906 /* end confdefs.h.  */
17907
17908
17909
17910 int main (void)
17911 {
17912
17913         int i = 1;
17914         return i;
17915
17916  ;
17917  return 0;
17918 }
17919
17920 _ACEOF
17921 if ac_fn_c_try_link "$LINENO"
17922 then :
17923
17924       tmp_compiler_works="yes"
17925
17926 else $as_nop
17927
17928       tmp_compiler_works="no"
17929       echo " " >&6
17930       sed 's/^/link-fail: /' conftest.err >&6
17931       echo " " >&6
17932
17933 fi
17934 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17935     conftest$ac_exeext conftest.$ac_ext
17936   fi
17937     if test "x$cross_compiling" != "xyes" &&
17938     test "$tmp_compiler_works" = "yes"; then
17939
17940    case $host_os in
17941      darwin*) library_path_var=DYLD_LIBRARY_PATH ;;
17942      *)       library_path_var=LD_LIBRARY_PATH ;;
17943    esac
17944
17945    eval "old=$$library_path_var"
17946    eval "$library_path_var=\$CURL_LIBRARY_PATH:\$old"
17947
17948    eval "export $library_path_var"
17949    if test "$cross_compiling" = yes
17950 then :
17951   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17952 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17953 as_fn_error $? "cannot run test program while cross compiling
17954 See \`config.log' for more details" "$LINENO" 5; }
17955 else $as_nop
17956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17957 /* end confdefs.h.  */
17958
17959
17960 #       ifdef __STDC__
17961 #         include <stdlib.h>
17962 #       endif
17963
17964 int main (void)
17965 {
17966
17967         int i = 0;
17968         exit(i);
17969
17970  ;
17971  return 0;
17972 }
17973
17974 _ACEOF
17975 if ac_fn_c_try_run "$LINENO"
17976 then :
17977   tmp_compiler_works="yes"
17978
17979 else $as_nop
17980   tmp_compiler_works="no"
17981       echo " " >&6
17982       echo "run-fail: test program exited with status $ac_status" >&6
17983       echo " " >&6
17984
17985 fi
17986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17987   conftest.$ac_objext conftest.beam conftest.$ac_ext
17988 fi
17989
17990    eval "$library_path_var=\$old" # restore
17991
17992   fi
17993     if test "$tmp_compiler_works" = "yes"; then
17994
17995         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17996 printf "%s\n" "yes" >&6; }
17997         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17998 printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17999
18000   else
18001
18002         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18003 printf "%s\n" "no" >&6; }
18004         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18005 printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18006                 CPPFLAGS="$tmp_save_CPPFLAGS"
18007         CFLAGS="$tmp_save_CFLAGS"
18008
18009   fi
18010
18011     fi
18012     #
18013   fi
18014
18015
18016         #
18017   if test "$compiler_id" != "unknown"; then
18018     #
18019     tmp_save_CFLAGS="$CFLAGS"
18020     tmp_save_CPPFLAGS="$CPPFLAGS"
18021     #
18022     tmp_options=""
18023     tmp_CFLAGS="$CFLAGS"
18024     tmp_CPPFLAGS="$CPPFLAGS"
18025     #
18026     if test "$want_debug" = "yes"; then
18027       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
18028 printf %s "checking if compiler accepts debug enabling options... " >&6; }
18029       tmp_options="$flags_dbg_yes"
18030     fi
18031     #
18032     if test "$flags_prefer_cppflags" = "yes"; then
18033       CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
18034       CFLAGS="$tmp_CFLAGS"
18035     else
18036       CPPFLAGS="$tmp_CPPFLAGS"
18037       CFLAGS="$tmp_CFLAGS $tmp_options"
18038     fi
18039     squeeze CPPFLAGS
18040     squeeze CFLAGS
18041   fi
18042
18043
18044         #
18045   if test "$compiler_id" != "unknown"; then
18046     #
18047     tmp_save_CFLAGS="$CFLAGS"
18048     tmp_save_CPPFLAGS="$CPPFLAGS"
18049     #
18050     tmp_options=""
18051     tmp_CFLAGS="$CFLAGS"
18052     tmp_CPPFLAGS="$CPPFLAGS"
18053     honor_optimize_option="yes"
18054     #
18055                         #
18056     if test "$want_optimize" = "assume_no" ||
18057        test "$want_optimize" = "assume_yes"; then
18058       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
18059 printf %s "checking if compiler optimizer assumed setting might be used... " >&6; }
18060
18061
18062   ac_var_match_word="no"
18063   for word1 in $tmp_CFLAGS; do
18064     for word2 in $flags_opt_all; do
18065       if test "$word1" = "$word2"; then
18066         ac_var_match_word="yes"
18067       fi
18068     done
18069   done
18070
18071   if test "$ac_var_match_word" = "yes"; then
18072
18073         honor_optimize_option="no"
18074
18075
18076   fi
18077
18078
18079
18080   ac_var_match_word="no"
18081   for word1 in $tmp_CPPFLAGS; do
18082     for word2 in $flags_opt_all; do
18083       if test "$word1" = "$word2"; then
18084         ac_var_match_word="yes"
18085       fi
18086     done
18087   done
18088
18089   if test "$ac_var_match_word" = "yes"; then
18090
18091         honor_optimize_option="no"
18092
18093
18094   fi
18095
18096       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
18097 printf "%s\n" "$honor_optimize_option" >&6; }
18098       if test "$honor_optimize_option" = "yes"; then
18099         if test "$want_optimize" = "assume_yes"; then
18100           want_optimize="yes"
18101         fi
18102         if test "$want_optimize" = "assume_no"; then
18103           want_optimize="no"
18104         fi
18105       fi
18106     fi
18107     #
18108     if test "$honor_optimize_option" = "yes"; then
18109
18110     ac_var_stripped=""
18111   for word1 in $tmp_CFLAGS; do
18112     ac_var_strip_word="no"
18113     for word2 in $flags_opt_all; do
18114       if test "$word1" = "$word2"; then
18115         ac_var_strip_word="yes"
18116       fi
18117     done
18118     if test "$ac_var_strip_word" = "no"; then
18119       ac_var_stripped="$ac_var_stripped $word1"
18120     fi
18121   done
18122     tmp_CFLAGS="$ac_var_stripped"
18123   squeeze tmp_CFLAGS
18124
18125
18126     ac_var_stripped=""
18127   for word1 in $tmp_CPPFLAGS; do
18128     ac_var_strip_word="no"
18129     for word2 in $flags_opt_all; do
18130       if test "$word1" = "$word2"; then
18131         ac_var_strip_word="yes"
18132       fi
18133     done
18134     if test "$ac_var_strip_word" = "no"; then
18135       ac_var_stripped="$ac_var_stripped $word1"
18136     fi
18137   done
18138     tmp_CPPFLAGS="$ac_var_stripped"
18139   squeeze tmp_CPPFLAGS
18140
18141       if test "$want_optimize" = "yes"; then
18142         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
18143 printf %s "checking if compiler accepts optimizer enabling options... " >&6; }
18144         tmp_options="$flags_opt_yes"
18145       fi
18146       if test "$want_optimize" = "no"; then
18147         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
18148 printf %s "checking if compiler accepts optimizer disabling options... " >&6; }
18149         tmp_options="$flags_opt_off"
18150       fi
18151       if test "$flags_prefer_cppflags" = "yes"; then
18152         CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
18153         CFLAGS="$tmp_CFLAGS"
18154       else
18155         CPPFLAGS="$tmp_CPPFLAGS"
18156         CFLAGS="$tmp_CFLAGS $tmp_options"
18157       fi
18158       squeeze CPPFLAGS
18159       squeeze CFLAGS
18160
18161     tmp_compiler_works="unknown"
18162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18163 /* end confdefs.h.  */
18164
18165
18166
18167 int main (void)
18168 {
18169
18170       int i = 1;
18171       return i;
18172
18173  ;
18174  return 0;
18175 }
18176
18177 _ACEOF
18178 if ac_fn_c_try_compile "$LINENO"
18179 then :
18180
18181     tmp_compiler_works="yes"
18182
18183 else $as_nop
18184
18185     tmp_compiler_works="no"
18186     echo " " >&6
18187     sed 's/^/cc-fail: /' conftest.err >&6
18188     echo " " >&6
18189
18190 fi
18191 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18192     if test "$tmp_compiler_works" = "yes"; then
18193     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18194 /* end confdefs.h.  */
18195
18196
18197
18198 int main (void)
18199 {
18200
18201         int i = 1;
18202         return i;
18203
18204  ;
18205  return 0;
18206 }
18207
18208 _ACEOF
18209 if ac_fn_c_try_link "$LINENO"
18210 then :
18211
18212       tmp_compiler_works="yes"
18213
18214 else $as_nop
18215
18216       tmp_compiler_works="no"
18217       echo " " >&6
18218       sed 's/^/link-fail: /' conftest.err >&6
18219       echo " " >&6
18220
18221 fi
18222 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18223     conftest$ac_exeext conftest.$ac_ext
18224   fi
18225     if test "x$cross_compiling" != "xyes" &&
18226     test "$tmp_compiler_works" = "yes"; then
18227
18228    case $host_os in
18229      darwin*) library_path_var=DYLD_LIBRARY_PATH ;;
18230      *)       library_path_var=LD_LIBRARY_PATH ;;
18231    esac
18232
18233    eval "old=$$library_path_var"
18234    eval "$library_path_var=\$CURL_LIBRARY_PATH:\$old"
18235
18236    eval "export $library_path_var"
18237    if test "$cross_compiling" = yes
18238 then :
18239   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18240 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18241 as_fn_error $? "cannot run test program while cross compiling
18242 See \`config.log' for more details" "$LINENO" 5; }
18243 else $as_nop
18244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18245 /* end confdefs.h.  */
18246
18247
18248 #       ifdef __STDC__
18249 #         include <stdlib.h>
18250 #       endif
18251
18252 int main (void)
18253 {
18254
18255         int i = 0;
18256         exit(i);
18257
18258  ;
18259  return 0;
18260 }
18261
18262 _ACEOF
18263 if ac_fn_c_try_run "$LINENO"
18264 then :
18265   tmp_compiler_works="yes"
18266
18267 else $as_nop
18268   tmp_compiler_works="no"
18269       echo " " >&6
18270       echo "run-fail: test program exited with status $ac_status" >&6
18271       echo " " >&6
18272
18273 fi
18274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18275   conftest.$ac_objext conftest.beam conftest.$ac_ext
18276 fi
18277
18278    eval "$library_path_var=\$old" # restore
18279
18280   fi
18281     if test "$tmp_compiler_works" = "yes"; then
18282
18283         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18284 printf "%s\n" "yes" >&6; }
18285         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
18286 printf "%s\n" "$as_me: compiler options added: $tmp_options" >&6;}
18287
18288   else
18289
18290         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18291 printf "%s\n" "no" >&6; }
18292         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
18293 printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
18294                 CPPFLAGS="$tmp_save_CPPFLAGS"
18295         CFLAGS="$tmp_save_CFLAGS"
18296
18297   fi
18298
18299     fi
18300     #
18301   fi
18302
18303
18304         #
18305   if test "$compiler_id" != "unknown"; then
18306     #
18307     tmp_save_CPPFLAGS="$CPPFLAGS"
18308     tmp_save_CFLAGS="$CFLAGS"
18309     tmp_CPPFLAGS=""
18310     tmp_CFLAGS=""
18311     #
18312     case "$compiler_id" in
18313         #
18314       CLANG)
18315         #
18316         if test "$want_warnings" = "yes"; then
18317           tmp_CFLAGS="$tmp_CFLAGS -pedantic"
18318
18319     ac_var_added_warnings=""
18320   for warning in all extra; do
18321
18322   ac_var_match_word="no"
18323   for word1 in $CFLAGS; do
18324     for word2 in -Wno-$warning -W$warning; do
18325       if test "$word1" = "$word2"; then
18326         ac_var_match_word="yes"
18327       fi
18328     done
18329   done
18330
18331     if test "$ac_var_match_word" = "no"; then
18332       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18333     fi
18334   done
18335     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18336   squeeze tmp_CFLAGS
18337
18338
18339     ac_var_added_warnings=""
18340   for warning in pointer-arith write-strings; do
18341
18342   ac_var_match_word="no"
18343   for word1 in $CFLAGS; do
18344     for word2 in -Wno-$warning -W$warning; do
18345       if test "$word1" = "$word2"; then
18346         ac_var_match_word="yes"
18347       fi
18348     done
18349   done
18350
18351     if test "$ac_var_match_word" = "no"; then
18352       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18353     fi
18354   done
18355     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18356   squeeze tmp_CFLAGS
18357
18358
18359     ac_var_added_warnings=""
18360   for warning in shadow; do
18361
18362   ac_var_match_word="no"
18363   for word1 in $CFLAGS; do
18364     for word2 in -Wno-$warning -W$warning; do
18365       if test "$word1" = "$word2"; then
18366         ac_var_match_word="yes"
18367       fi
18368     done
18369   done
18370
18371     if test "$ac_var_match_word" = "no"; then
18372       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18373     fi
18374   done
18375     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18376   squeeze tmp_CFLAGS
18377
18378
18379     ac_var_added_warnings=""
18380   for warning in inline nested-externs; do
18381
18382   ac_var_match_word="no"
18383   for word1 in $CFLAGS; do
18384     for word2 in -Wno-$warning -W$warning; do
18385       if test "$word1" = "$word2"; then
18386         ac_var_match_word="yes"
18387       fi
18388     done
18389   done
18390
18391     if test "$ac_var_match_word" = "no"; then
18392       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18393     fi
18394   done
18395     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18396   squeeze tmp_CFLAGS
18397
18398
18399     ac_var_added_warnings=""
18400   for warning in missing-declarations; do
18401
18402   ac_var_match_word="no"
18403   for word1 in $CFLAGS; do
18404     for word2 in -Wno-$warning -W$warning; do
18405       if test "$word1" = "$word2"; then
18406         ac_var_match_word="yes"
18407       fi
18408     done
18409   done
18410
18411     if test "$ac_var_match_word" = "no"; then
18412       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18413     fi
18414   done
18415     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18416   squeeze tmp_CFLAGS
18417
18418
18419     ac_var_added_warnings=""
18420   for warning in missing-prototypes; do
18421
18422   ac_var_match_word="no"
18423   for word1 in $CFLAGS; do
18424     for word2 in -Wno-$warning -W$warning; do
18425       if test "$word1" = "$word2"; then
18426         ac_var_match_word="yes"
18427       fi
18428     done
18429   done
18430
18431     if test "$ac_var_match_word" = "no"; then
18432       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18433     fi
18434   done
18435     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18436   squeeze tmp_CFLAGS
18437
18438           tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
18439
18440     ac_var_added_warnings=""
18441   for warning in float-equal; do
18442
18443   ac_var_match_word="no"
18444   for word1 in $CFLAGS; do
18445     for word2 in -Wno-$warning -W$warning; do
18446       if test "$word1" = "$word2"; then
18447         ac_var_match_word="yes"
18448       fi
18449     done
18450   done
18451
18452     if test "$ac_var_match_word" = "no"; then
18453       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18454     fi
18455   done
18456     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18457   squeeze tmp_CFLAGS
18458
18459
18460     ac_var_added_warnings=""
18461   for warning in no-multichar sign-compare; do
18462
18463   ac_var_match_word="no"
18464   for word1 in $CFLAGS; do
18465     for word2 in -Wno-$warning -W$warning; do
18466       if test "$word1" = "$word2"; then
18467         ac_var_match_word="yes"
18468       fi
18469     done
18470   done
18471
18472     if test "$ac_var_match_word" = "no"; then
18473       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18474     fi
18475   done
18476     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18477   squeeze tmp_CFLAGS
18478
18479
18480     ac_var_added_warnings=""
18481   for warning in undef; do
18482
18483   ac_var_match_word="no"
18484   for word1 in $CFLAGS; do
18485     for word2 in -Wno-$warning -W$warning; do
18486       if test "$word1" = "$word2"; then
18487         ac_var_match_word="yes"
18488       fi
18489     done
18490   done
18491
18492     if test "$ac_var_match_word" = "no"; then
18493       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18494     fi
18495   done
18496     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18497   squeeze tmp_CFLAGS
18498
18499           tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
18500
18501     ac_var_added_warnings=""
18502   for warning in endif-labels strict-prototypes; do
18503
18504   ac_var_match_word="no"
18505   for word1 in $CFLAGS; do
18506     for word2 in -Wno-$warning -W$warning; do
18507       if test "$word1" = "$word2"; then
18508         ac_var_match_word="yes"
18509       fi
18510     done
18511   done
18512
18513     if test "$ac_var_match_word" = "no"; then
18514       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18515     fi
18516   done
18517     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18518   squeeze tmp_CFLAGS
18519
18520
18521     ac_var_added_warnings=""
18522   for warning in declaration-after-statement; do
18523
18524   ac_var_match_word="no"
18525   for word1 in $CFLAGS; do
18526     for word2 in -Wno-$warning -W$warning; do
18527       if test "$word1" = "$word2"; then
18528         ac_var_match_word="yes"
18529       fi
18530     done
18531   done
18532
18533     if test "$ac_var_match_word" = "no"; then
18534       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18535     fi
18536   done
18537     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18538   squeeze tmp_CFLAGS
18539
18540
18541     ac_var_added_warnings=""
18542   for warning in cast-align; do
18543
18544   ac_var_match_word="no"
18545   for word1 in $CFLAGS; do
18546     for word2 in -Wno-$warning -W$warning; do
18547       if test "$word1" = "$word2"; then
18548         ac_var_match_word="yes"
18549       fi
18550     done
18551   done
18552
18553     if test "$ac_var_match_word" = "no"; then
18554       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18555     fi
18556   done
18557     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18558   squeeze tmp_CFLAGS
18559
18560           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
18561
18562     ac_var_added_warnings=""
18563   for warning in shorten-64-to-32; do
18564
18565   ac_var_match_word="no"
18566   for word1 in $CFLAGS; do
18567     for word2 in -Wno-$warning -W$warning; do
18568       if test "$word1" = "$word2"; then
18569         ac_var_match_word="yes"
18570       fi
18571     done
18572   done
18573
18574     if test "$ac_var_match_word" = "no"; then
18575       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18576     fi
18577   done
18578     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18579   squeeze tmp_CFLAGS
18580
18581           #
18582                     if test "$compiler_num" -ge "101"; then
18583
18584     ac_var_added_warnings=""
18585   for warning in unused; do
18586
18587   ac_var_match_word="no"
18588   for word1 in $CFLAGS; do
18589     for word2 in -Wno-$warning -W$warning; do
18590       if test "$word1" = "$word2"; then
18591         ac_var_match_word="yes"
18592       fi
18593     done
18594   done
18595
18596     if test "$ac_var_match_word" = "no"; then
18597       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18598     fi
18599   done
18600     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18601   squeeze tmp_CFLAGS
18602
18603           fi
18604           #
18605                     if test "$compiler_num" -ge "208"; then
18606
18607     ac_var_added_warnings=""
18608   for warning in vla; do
18609
18610   ac_var_match_word="no"
18611   for word1 in $CFLAGS; do
18612     for word2 in -Wno-$warning -W$warning; do
18613       if test "$word1" = "$word2"; then
18614         ac_var_match_word="yes"
18615       fi
18616     done
18617   done
18618
18619     if test "$ac_var_match_word" = "no"; then
18620       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18621     fi
18622   done
18623     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18624   squeeze tmp_CFLAGS
18625
18626           fi
18627           #
18628                     if test "$compiler_num" -ge "209"; then
18629
18630     ac_var_added_warnings=""
18631   for warning in shift-sign-overflow; do
18632
18633   ac_var_match_word="no"
18634   for word1 in $CFLAGS; do
18635     for word2 in -Wno-$warning -W$warning; do
18636       if test "$word1" = "$word2"; then
18637         ac_var_match_word="yes"
18638       fi
18639     done
18640   done
18641
18642     if test "$ac_var_match_word" = "no"; then
18643       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18644     fi
18645   done
18646     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18647   squeeze tmp_CFLAGS
18648
18649           fi
18650           #
18651                     if test "$compiler_num" -ge "302"; then
18652             case $host_os in
18653             cygwin* | mingw*)
18654                                           ;;
18655             *)
18656
18657     ac_var_added_warnings=""
18658   for warning in missing-variable-declarations; do
18659
18660   ac_var_match_word="no"
18661   for word1 in $CFLAGS; do
18662     for word2 in -Wno-$warning -W$warning; do
18663       if test "$word1" = "$word2"; then
18664         ac_var_match_word="yes"
18665       fi
18666     done
18667   done
18668
18669     if test "$ac_var_match_word" = "no"; then
18670       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18671     fi
18672   done
18673     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18674   squeeze tmp_CFLAGS
18675
18676               ;;
18677             esac
18678           fi
18679           #
18680                     if test "$compiler_num" -ge "306"; then
18681
18682     ac_var_added_warnings=""
18683   for warning in double-promotion; do
18684
18685   ac_var_match_word="no"
18686   for word1 in $CFLAGS; do
18687     for word2 in -Wno-$warning -W$warning; do
18688       if test "$word1" = "$word2"; then
18689         ac_var_match_word="yes"
18690       fi
18691     done
18692   done
18693
18694     if test "$ac_var_match_word" = "no"; then
18695       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18696     fi
18697   done
18698     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18699   squeeze tmp_CFLAGS
18700
18701           fi
18702           #
18703                     if test "$compiler_num" -ge "309"; then
18704
18705     ac_var_added_warnings=""
18706   for warning in comma; do
18707
18708   ac_var_match_word="no"
18709   for word1 in $CFLAGS; do
18710     for word2 in -Wno-$warning -W$warning; do
18711       if test "$word1" = "$word2"; then
18712         ac_var_match_word="yes"
18713       fi
18714     done
18715   done
18716
18717     if test "$ac_var_match_word" = "no"; then
18718       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18719     fi
18720   done
18721     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18722   squeeze tmp_CFLAGS
18723
18724             # avoid the varargs warning, fixed in 4.0
18725             # https://bugs.llvm.org/show_bug.cgi?id=29140
18726             if test "$compiler_num" -lt "400"; then
18727               tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
18728             fi
18729           fi
18730                     if test "$compiler_num" -ge "700"; then
18731
18732     ac_var_added_warnings=""
18733   for warning in assign-enum; do
18734
18735   ac_var_match_word="no"
18736   for word1 in $CFLAGS; do
18737     for word2 in -Wno-$warning -W$warning; do
18738       if test "$word1" = "$word2"; then
18739         ac_var_match_word="yes"
18740       fi
18741     done
18742   done
18743
18744     if test "$ac_var_match_word" = "no"; then
18745       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18746     fi
18747   done
18748     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18749   squeeze tmp_CFLAGS
18750
18751
18752     ac_var_added_warnings=""
18753   for warning in extra-semi-stmt; do
18754
18755   ac_var_match_word="no"
18756   for word1 in $CFLAGS; do
18757     for word2 in -Wno-$warning -W$warning; do
18758       if test "$word1" = "$word2"; then
18759         ac_var_match_word="yes"
18760       fi
18761     done
18762   done
18763
18764     if test "$ac_var_match_word" = "no"; then
18765       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18766     fi
18767   done
18768     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18769   squeeze tmp_CFLAGS
18770
18771           fi
18772         fi
18773         ;;
18774         #
18775       DEC_C)
18776         #
18777         if test "$want_warnings" = "yes"; then
18778                     tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
18779         fi
18780         ;;
18781         #
18782       GNU_C)
18783         #
18784         if test "$want_warnings" = "yes"; then
18785           #
18786                               if test "x$cross_compiling" != "xyes" ||
18787             test "$compiler_num" -ge "300"; then
18788             tmp_CFLAGS="$tmp_CFLAGS -pedantic"
18789           fi
18790           #
18791
18792     ac_var_added_warnings=""
18793   for warning in all; do
18794
18795   ac_var_match_word="no"
18796   for word1 in $CFLAGS; do
18797     for word2 in -Wno-$warning -W$warning; do
18798       if test "$word1" = "$word2"; then
18799         ac_var_match_word="yes"
18800       fi
18801     done
18802   done
18803
18804     if test "$ac_var_match_word" = "no"; then
18805       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18806     fi
18807   done
18808     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18809   squeeze tmp_CFLAGS
18810
18811           tmp_CFLAGS="$tmp_CFLAGS -W"
18812           #
18813                     if test "$compiler_num" -ge "104"; then
18814
18815     ac_var_added_warnings=""
18816   for warning in pointer-arith write-strings; do
18817
18818   ac_var_match_word="no"
18819   for word1 in $CFLAGS; do
18820     for word2 in -Wno-$warning -W$warning; do
18821       if test "$word1" = "$word2"; then
18822         ac_var_match_word="yes"
18823       fi
18824     done
18825   done
18826
18827     if test "$ac_var_match_word" = "no"; then
18828       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18829     fi
18830   done
18831     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18832   squeeze tmp_CFLAGS
18833
18834                         if test "x$cross_compiling" != "xyes" ||
18835               test "$compiler_num" -ge "300"; then
18836
18837     ac_var_added_warnings=""
18838   for warning in unused shadow; do
18839
18840   ac_var_match_word="no"
18841   for word1 in $CFLAGS; do
18842     for word2 in -Wno-$warning -W$warning; do
18843       if test "$word1" = "$word2"; then
18844         ac_var_match_word="yes"
18845       fi
18846     done
18847   done
18848
18849     if test "$ac_var_match_word" = "no"; then
18850       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18851     fi
18852   done
18853     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18854   squeeze tmp_CFLAGS
18855
18856             fi
18857           fi
18858           #
18859                     if test "$compiler_num" -ge "207"; then
18860
18861     ac_var_added_warnings=""
18862   for warning in inline nested-externs; do
18863
18864   ac_var_match_word="no"
18865   for word1 in $CFLAGS; do
18866     for word2 in -Wno-$warning -W$warning; do
18867       if test "$word1" = "$word2"; then
18868         ac_var_match_word="yes"
18869       fi
18870     done
18871   done
18872
18873     if test "$ac_var_match_word" = "no"; then
18874       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18875     fi
18876   done
18877     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18878   squeeze tmp_CFLAGS
18879
18880                         if test "x$cross_compiling" != "xyes" ||
18881               test "$compiler_num" -ge "300"; then
18882
18883     ac_var_added_warnings=""
18884   for warning in missing-declarations; do
18885
18886   ac_var_match_word="no"
18887   for word1 in $CFLAGS; do
18888     for word2 in -Wno-$warning -W$warning; do
18889       if test "$word1" = "$word2"; then
18890         ac_var_match_word="yes"
18891       fi
18892     done
18893   done
18894
18895     if test "$ac_var_match_word" = "no"; then
18896       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18897     fi
18898   done
18899     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18900   squeeze tmp_CFLAGS
18901
18902
18903     ac_var_added_warnings=""
18904   for warning in missing-prototypes; do
18905
18906   ac_var_match_word="no"
18907   for word1 in $CFLAGS; do
18908     for word2 in -Wno-$warning -W$warning; do
18909       if test "$word1" = "$word2"; then
18910         ac_var_match_word="yes"
18911       fi
18912     done
18913   done
18914
18915     if test "$ac_var_match_word" = "no"; then
18916       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18917     fi
18918   done
18919     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18920   squeeze tmp_CFLAGS
18921
18922             fi
18923           fi
18924           #
18925                     if test "$compiler_num" -ge "295"; then
18926             tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
18927
18928     ac_var_added_warnings=""
18929   for warning in bad-function-cast; do
18930
18931   ac_var_match_word="no"
18932   for word1 in $CFLAGS; do
18933     for word2 in -Wno-$warning -W$warning; do
18934       if test "$word1" = "$word2"; then
18935         ac_var_match_word="yes"
18936       fi
18937     done
18938   done
18939
18940     if test "$ac_var_match_word" = "no"; then
18941       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18942     fi
18943   done
18944     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18945   squeeze tmp_CFLAGS
18946
18947           fi
18948           #
18949                     if test "$compiler_num" -ge "296"; then
18950
18951     ac_var_added_warnings=""
18952   for warning in float-equal; do
18953
18954   ac_var_match_word="no"
18955   for word1 in $CFLAGS; do
18956     for word2 in -Wno-$warning -W$warning; do
18957       if test "$word1" = "$word2"; then
18958         ac_var_match_word="yes"
18959       fi
18960     done
18961   done
18962
18963     if test "$ac_var_match_word" = "no"; then
18964       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18965     fi
18966   done
18967     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18968   squeeze tmp_CFLAGS
18969
18970             tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar"
18971
18972     ac_var_added_warnings=""
18973   for warning in sign-compare; do
18974
18975   ac_var_match_word="no"
18976   for word1 in $CFLAGS; do
18977     for word2 in -Wno-$warning -W$warning; do
18978       if test "$word1" = "$word2"; then
18979         ac_var_match_word="yes"
18980       fi
18981     done
18982   done
18983
18984     if test "$ac_var_match_word" = "no"; then
18985       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18986     fi
18987   done
18988     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18989   squeeze tmp_CFLAGS
18990
18991
18992     ac_var_added_warnings=""
18993   for warning in undef; do
18994
18995   ac_var_match_word="no"
18996   for word1 in $CFLAGS; do
18997     for word2 in -Wno-$warning -W$warning; do
18998       if test "$word1" = "$word2"; then
18999         ac_var_match_word="yes"
19000       fi
19001     done
19002   done
19003
19004     if test "$ac_var_match_word" = "no"; then
19005       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19006     fi
19007   done
19008     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19009   squeeze tmp_CFLAGS
19010
19011           fi
19012           #
19013                     if test "$compiler_num" -ge "297"; then
19014             tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
19015           fi
19016           #
19017                     if test "$compiler_num" -ge "300"; then
19018                                                             tmp_CFLAGS="$tmp_CFLAGS"
19019           fi
19020           #
19021                     if test "$compiler_num" -ge "303"; then
19022
19023     ac_var_added_warnings=""
19024   for warning in endif-labels strict-prototypes; do
19025
19026   ac_var_match_word="no"
19027   for word1 in $CFLAGS; do
19028     for word2 in -Wno-$warning -W$warning; do
19029       if test "$word1" = "$word2"; then
19030         ac_var_match_word="yes"
19031       fi
19032     done
19033   done
19034
19035     if test "$ac_var_match_word" = "no"; then
19036       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19037     fi
19038   done
19039     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19040   squeeze tmp_CFLAGS
19041
19042           fi
19043           #
19044                     if test "$compiler_num" -ge "304"; then
19045
19046     ac_var_added_warnings=""
19047   for warning in declaration-after-statement; do
19048
19049   ac_var_match_word="no"
19050   for word1 in $CFLAGS; do
19051     for word2 in -Wno-$warning -W$warning; do
19052       if test "$word1" = "$word2"; then
19053         ac_var_match_word="yes"
19054       fi
19055     done
19056   done
19057
19058     if test "$ac_var_match_word" = "no"; then
19059       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19060     fi
19061   done
19062     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19063   squeeze tmp_CFLAGS
19064
19065
19066     ac_var_added_warnings=""
19067   for warning in old-style-definition; do
19068
19069   ac_var_match_word="no"
19070   for word1 in $CFLAGS; do
19071     for word2 in -Wno-$warning -W$warning; do
19072       if test "$word1" = "$word2"; then
19073         ac_var_match_word="yes"
19074       fi
19075     done
19076   done
19077
19078     if test "$ac_var_match_word" = "no"; then
19079       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19080     fi
19081   done
19082     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19083   squeeze tmp_CFLAGS
19084
19085           fi
19086           #
19087                     if test "$compiler_num" -ge "400"; then
19088             tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
19089           fi
19090           #
19091                     if test "$compiler_num" -ge "402"; then
19092
19093     ac_var_added_warnings=""
19094   for warning in cast-align; do
19095
19096   ac_var_match_word="no"
19097   for word1 in $CFLAGS; do
19098     for word2 in -Wno-$warning -W$warning; do
19099       if test "$word1" = "$word2"; then
19100         ac_var_match_word="yes"
19101       fi
19102     done
19103   done
19104
19105     if test "$ac_var_match_word" = "no"; then
19106       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19107     fi
19108   done
19109     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19110   squeeze tmp_CFLAGS
19111
19112           fi
19113           #
19114                     if test "$compiler_num" -ge "403"; then
19115
19116     ac_var_added_warnings=""
19117   for warning in type-limits old-style-declaration; do
19118
19119   ac_var_match_word="no"
19120   for word1 in $CFLAGS; do
19121     for word2 in -Wno-$warning -W$warning; do
19122       if test "$word1" = "$word2"; then
19123         ac_var_match_word="yes"
19124       fi
19125     done
19126   done
19127
19128     if test "$ac_var_match_word" = "no"; then
19129       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19130     fi
19131   done
19132     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19133   squeeze tmp_CFLAGS
19134
19135
19136     ac_var_added_warnings=""
19137   for warning in missing-parameter-type empty-body; do
19138
19139   ac_var_match_word="no"
19140   for word1 in $CFLAGS; do
19141     for word2 in -Wno-$warning -W$warning; do
19142       if test "$word1" = "$word2"; then
19143         ac_var_match_word="yes"
19144       fi
19145     done
19146   done
19147
19148     if test "$ac_var_match_word" = "no"; then
19149       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19150     fi
19151   done
19152     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19153   squeeze tmp_CFLAGS
19154
19155
19156     ac_var_added_warnings=""
19157   for warning in clobbered ignored-qualifiers; do
19158
19159   ac_var_match_word="no"
19160   for word1 in $CFLAGS; do
19161     for word2 in -Wno-$warning -W$warning; do
19162       if test "$word1" = "$word2"; then
19163         ac_var_match_word="yes"
19164       fi
19165     done
19166   done
19167
19168     if test "$ac_var_match_word" = "no"; then
19169       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19170     fi
19171   done
19172     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19173   squeeze tmp_CFLAGS
19174
19175
19176     ac_var_added_warnings=""
19177   for warning in conversion; do
19178
19179   ac_var_match_word="no"
19180   for word1 in $CFLAGS; do
19181     for word2 in -Wno-$warning -W$warning; do
19182       if test "$word1" = "$word2"; then
19183         ac_var_match_word="yes"
19184       fi
19185     done
19186   done
19187
19188     if test "$ac_var_match_word" = "no"; then
19189       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19190     fi
19191   done
19192     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19193   squeeze tmp_CFLAGS
19194
19195             tmp_CFLAGS="$tmp_CFLAGS -Wno-sign-conversion"
19196
19197     ac_var_added_warnings=""
19198   for warning in vla; do
19199
19200   ac_var_match_word="no"
19201   for word1 in $CFLAGS; do
19202     for word2 in -Wno-$warning -W$warning; do
19203       if test "$word1" = "$word2"; then
19204         ac_var_match_word="yes"
19205       fi
19206     done
19207   done
19208
19209     if test "$ac_var_match_word" = "no"; then
19210       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19211     fi
19212   done
19213     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19214   squeeze tmp_CFLAGS
19215
19216                         tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp"
19217           fi
19218           #
19219                     if test "$compiler_num" -ge "405"; then
19220                         if test "$curl_cv_have_def__WIN32" = "yes"; then
19221               tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
19222             fi
19223           fi
19224           #
19225                     if test "$compiler_num" -ge "406"; then
19226
19227     ac_var_added_warnings=""
19228   for warning in double-promotion; do
19229
19230   ac_var_match_word="no"
19231   for word1 in $CFLAGS; do
19232     for word2 in -Wno-$warning -W$warning; do
19233       if test "$word1" = "$word2"; then
19234         ac_var_match_word="yes"
19235       fi
19236     done
19237   done
19238
19239     if test "$ac_var_match_word" = "no"; then
19240       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19241     fi
19242   done
19243     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19244   squeeze tmp_CFLAGS
19245
19246           fi
19247           #
19248                     if test "$compiler_num" -ge "408"; then
19249             tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
19250           fi
19251           #
19252                     if test "$compiler_num" -ge "500"; then
19253             tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2"
19254           fi
19255           #
19256                     if test "$compiler_num" -ge "600"; then
19257
19258     ac_var_added_warnings=""
19259   for warning in shift-negative-value; do
19260
19261   ac_var_match_word="no"
19262   for word1 in $CFLAGS; do
19263     for word2 in -Wno-$warning -W$warning; do
19264       if test "$word1" = "$word2"; then
19265         ac_var_match_word="yes"
19266       fi
19267     done
19268   done
19269
19270     if test "$ac_var_match_word" = "no"; then
19271       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19272     fi
19273   done
19274     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19275   squeeze tmp_CFLAGS
19276
19277             tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2"
19278
19279     ac_var_added_warnings=""
19280   for warning in null-dereference; do
19281
19282   ac_var_match_word="no"
19283   for word1 in $CFLAGS; do
19284     for word2 in -Wno-$warning -W$warning; do
19285       if test "$word1" = "$word2"; then
19286         ac_var_match_word="yes"
19287       fi
19288     done
19289   done
19290
19291     if test "$ac_var_match_word" = "no"; then
19292       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19293     fi
19294   done
19295     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19296   squeeze tmp_CFLAGS
19297
19298             tmp_CFLAGS="$tmp_CFLAGS -fdelete-null-pointer-checks"
19299
19300     ac_var_added_warnings=""
19301   for warning in duplicated-cond; do
19302
19303   ac_var_match_word="no"
19304   for word1 in $CFLAGS; do
19305     for word2 in -Wno-$warning -W$warning; do
19306       if test "$word1" = "$word2"; then
19307         ac_var_match_word="yes"
19308       fi
19309     done
19310   done
19311
19312     if test "$ac_var_match_word" = "no"; then
19313       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19314     fi
19315   done
19316     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19317   squeeze tmp_CFLAGS
19318
19319
19320     ac_var_added_warnings=""
19321   for warning in unused-const-variable; do
19322
19323   ac_var_match_word="no"
19324   for word1 in $CFLAGS; do
19325     for word2 in -Wno-$warning -W$warning; do
19326       if test "$word1" = "$word2"; then
19327         ac_var_match_word="yes"
19328       fi
19329     done
19330   done
19331
19332     if test "$ac_var_match_word" = "no"; then
19333       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19334     fi
19335   done
19336     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19337   squeeze tmp_CFLAGS
19338
19339           fi
19340           #
19341                     if test "$compiler_num" -ge "700"; then
19342
19343     ac_var_added_warnings=""
19344   for warning in duplicated-branches; do
19345
19346   ac_var_match_word="no"
19347   for word1 in $CFLAGS; do
19348     for word2 in -Wno-$warning -W$warning; do
19349       if test "$word1" = "$word2"; then
19350         ac_var_match_word="yes"
19351       fi
19352     done
19353   done
19354
19355     if test "$ac_var_match_word" = "no"; then
19356       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19357     fi
19358   done
19359     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19360   squeeze tmp_CFLAGS
19361
19362
19363     ac_var_added_warnings=""
19364   for warning in restrict; do
19365
19366   ac_var_match_word="no"
19367   for word1 in $CFLAGS; do
19368     for word2 in -Wno-$warning -W$warning; do
19369       if test "$word1" = "$word2"; then
19370         ac_var_match_word="yes"
19371       fi
19372     done
19373   done
19374
19375     if test "$ac_var_match_word" = "no"; then
19376       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19377     fi
19378   done
19379     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19380   squeeze tmp_CFLAGS
19381
19382
19383     ac_var_added_warnings=""
19384   for warning in alloc-zero; do
19385
19386   ac_var_match_word="no"
19387   for word1 in $CFLAGS; do
19388     for word2 in -Wno-$warning -W$warning; do
19389       if test "$word1" = "$word2"; then
19390         ac_var_match_word="yes"
19391       fi
19392     done
19393   done
19394
19395     if test "$ac_var_match_word" = "no"; then
19396       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19397     fi
19398   done
19399     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19400   squeeze tmp_CFLAGS
19401
19402             tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2"
19403             tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2"
19404             if test "$compiler_num" -lt "1200"; then
19405                             tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough=4"
19406             fi
19407           fi
19408           #
19409         fi
19410         #
19411                 if test "$compiler_num" -ge "300"; then
19412           tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
19413         else
19414                               if test "x$cross_compiling" = "xyes"; then
19415             if test "$compiler_num" -ge "104"; then
19416                             tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
19417             fi
19418             if test "$compiler_num" -ge "207"; then
19419                             tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
19420               tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
19421             fi
19422           fi
19423         fi
19424                 if test "$compiler_num" -ge "1000"; then
19425
19426     ac_var_added_warnings=""
19427   for warning in enum-conversion; do
19428
19429   ac_var_match_word="no"
19430   for word1 in $CFLAGS; do
19431     for word2 in -Wno-$warning -W$warning; do
19432       if test "$word1" = "$word2"; then
19433         ac_var_match_word="yes"
19434       fi
19435     done
19436   done
19437
19438     if test "$ac_var_match_word" = "no"; then
19439       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19440     fi
19441   done
19442     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19443   squeeze tmp_CFLAGS
19444
19445         fi
19446         ;;
19447         #
19448       HP_UX_C)
19449         #
19450         if test "$want_warnings" = "yes"; then
19451                     tmp_CFLAGS="$tmp_CFLAGS +w1"
19452         fi
19453         ;;
19454         #
19455       IBM_C)
19456         #
19457                 tmp_CFLAGS="$tmp_CFLAGS"
19458         ;;
19459         #
19460       INTEL_UNIX_C)
19461         #
19462         if test "$want_warnings" = "yes"; then
19463           if test "$compiler_num" -gt "600"; then
19464                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
19465                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
19466                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
19467                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
19468                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
19469                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
19470                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
19471                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
19472                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
19473                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
19474                         tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
19475           fi
19476         fi
19477                 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
19478                 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
19479                 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
19480         ;;
19481         #
19482       INTEL_WINDOWS_C)
19483         #
19484                 tmp_CFLAGS="$tmp_CFLAGS"
19485         ;;
19486         #
19487       LCC)
19488         #
19489         if test "$want_warnings" = "yes"; then
19490                                                   tmp_CFLAGS="$tmp_CFLAGS"
19491         fi
19492         ;;
19493         #
19494       SGI_MIPS_C)
19495         #
19496         if test "$want_warnings" = "yes"; then
19497                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
19498         fi
19499         ;;
19500         #
19501       SGI_MIPSPRO_C)
19502         #
19503         if test "$want_warnings" = "yes"; then
19504                     tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
19505                               tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
19506         fi
19507         ;;
19508         #
19509       SUNPRO_C)
19510         #
19511         if test "$want_warnings" = "yes"; then
19512                     tmp_CFLAGS="$tmp_CFLAGS -v"
19513         fi
19514         ;;
19515         #
19516       TINY_C)
19517         #
19518         if test "$want_warnings" = "yes"; then
19519
19520     ac_var_added_warnings=""
19521   for warning in all; do
19522
19523   ac_var_match_word="no"
19524   for word1 in $CFLAGS; do
19525     for word2 in -Wno-$warning -W$warning; do
19526       if test "$word1" = "$word2"; then
19527         ac_var_match_word="yes"
19528       fi
19529     done
19530   done
19531
19532     if test "$ac_var_match_word" = "no"; then
19533       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19534     fi
19535   done
19536     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19537   squeeze tmp_CFLAGS
19538
19539
19540     ac_var_added_warnings=""
19541   for warning in write-strings; do
19542
19543   ac_var_match_word="no"
19544   for word1 in $CFLAGS; do
19545     for word2 in -Wno-$warning -W$warning; do
19546       if test "$word1" = "$word2"; then
19547         ac_var_match_word="yes"
19548       fi
19549     done
19550   done
19551
19552     if test "$ac_var_match_word" = "no"; then
19553       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19554     fi
19555   done
19556     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19557   squeeze tmp_CFLAGS
19558
19559
19560     ac_var_added_warnings=""
19561   for warning in unsupported; do
19562
19563   ac_var_match_word="no"
19564   for word1 in $CFLAGS; do
19565     for word2 in -Wno-$warning -W$warning; do
19566       if test "$word1" = "$word2"; then
19567         ac_var_match_word="yes"
19568       fi
19569     done
19570   done
19571
19572     if test "$ac_var_match_word" = "no"; then
19573       ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19574     fi
19575   done
19576     tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19577   squeeze tmp_CFLAGS
19578
19579         fi
19580         ;;
19581         #
19582       WATCOM_UNIX_C)
19583         #
19584         if test "$want_warnings" = "yes"; then
19585                     tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
19586         fi
19587         ;;
19588         #
19589       WATCOM_WINDOWS_C)
19590         #
19591                 tmp_CFLAGS="$tmp_CFLAGS"
19592         ;;
19593         #
19594     esac
19595     #
19596     squeeze tmp_CPPFLAGS
19597     squeeze tmp_CFLAGS
19598     #
19599     if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
19600       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
19601 printf %s "checking if compiler accepts strict warning options... " >&6; }
19602       CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
19603       CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
19604       squeeze CPPFLAGS
19605       squeeze CFLAGS
19606
19607     tmp_compiler_works="unknown"
19608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19609 /* end confdefs.h.  */
19610
19611
19612
19613 int main (void)
19614 {
19615
19616       int i = 1;
19617       return i;
19618
19619  ;
19620  return 0;
19621 }
19622
19623 _ACEOF
19624 if ac_fn_c_try_compile "$LINENO"
19625 then :
19626
19627     tmp_compiler_works="yes"
19628
19629 else $as_nop
19630
19631     tmp_compiler_works="no"
19632     echo " " >&6
19633     sed 's/^/cc-fail: /' conftest.err >&6
19634     echo " " >&6
19635
19636 fi
19637 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19638     if test "$tmp_compiler_works" = "yes"; then
19639     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19640 /* end confdefs.h.  */
19641
19642
19643
19644 int main (void)
19645 {
19646
19647         int i = 1;
19648         return i;
19649
19650  ;
19651  return 0;
19652 }
19653
19654 _ACEOF
19655 if ac_fn_c_try_link "$LINENO"
19656 then :
19657
19658       tmp_compiler_works="yes"
19659
19660 else $as_nop
19661
19662       tmp_compiler_works="no"
19663       echo " " >&6
19664       sed 's/^/link-fail: /' conftest.err >&6
19665       echo " " >&6
19666
19667 fi
19668 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19669     conftest$ac_exeext conftest.$ac_ext
19670   fi
19671     if test "x$cross_compiling" != "xyes" &&
19672     test "$tmp_compiler_works" = "yes"; then
19673
19674    case $host_os in
19675      darwin*) library_path_var=DYLD_LIBRARY_PATH ;;
19676      *)       library_path_var=LD_LIBRARY_PATH ;;
19677    esac
19678
19679    eval "old=$$library_path_var"
19680    eval "$library_path_var=\$CURL_LIBRARY_PATH:\$old"
19681
19682    eval "export $library_path_var"
19683    if test "$cross_compiling" = yes
19684 then :
19685   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19686 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19687 as_fn_error $? "cannot run test program while cross compiling
19688 See \`config.log' for more details" "$LINENO" 5; }
19689 else $as_nop
19690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19691 /* end confdefs.h.  */
19692
19693
19694 #       ifdef __STDC__
19695 #         include <stdlib.h>
19696 #       endif
19697
19698 int main (void)
19699 {
19700
19701         int i = 0;
19702         exit(i);
19703
19704  ;
19705  return 0;
19706 }
19707
19708 _ACEOF
19709 if ac_fn_c_try_run "$LINENO"
19710 then :
19711   tmp_compiler_works="yes"
19712
19713 else $as_nop
19714   tmp_compiler_works="no"
19715       echo " " >&6
19716       echo "run-fail: test program exited with status $ac_status" >&6
19717       echo " " >&6
19718
19719 fi
19720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19721   conftest.$ac_objext conftest.beam conftest.$ac_ext
19722 fi
19723
19724    eval "$library_path_var=\$old" # restore
19725
19726   fi
19727     if test "$tmp_compiler_works" = "yes"; then
19728
19729         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19730 printf "%s\n" "yes" >&6; }
19731         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
19732 printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
19733
19734   else
19735
19736         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19737 printf "%s\n" "no" >&6; }
19738         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
19739 printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
19740                 CPPFLAGS="$tmp_save_CPPFLAGS"
19741         CFLAGS="$tmp_save_CFLAGS"
19742
19743   fi
19744
19745     fi
19746     #
19747   fi
19748
19749
19750 if test "$compiler_id" = "INTEL_UNIX_C"; then
19751   #
19752   if test "$compiler_num" -ge "1000"; then
19753         CFLAGS="$CFLAGS -shared-intel"
19754   elif test "$compiler_num" -ge "900"; then
19755         CFLAGS="$CFLAGS -i-dynamic"
19756   fi
19757   #
19758 fi
19759
19760 CURL_CFLAG_EXTRAS=""
19761 if test X"$want_werror" = Xyes; then
19762   CURL_CFLAG_EXTRAS="-Werror"
19763   if test "$compiler_id" = "GNU_C"; then
19764             if test "$compiler_num" -ge "500"; then
19765       CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors"
19766     fi
19767   fi
19768 fi
19769
19770
19771
19772   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
19773 printf %s "checking if compiler halts on compilation errors... " >&6; }
19774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19775 /* end confdefs.h.  */
19776
19777
19778
19779 int main (void)
19780 {
19781
19782       force compilation error
19783
19784  ;
19785  return 0;
19786 }
19787
19788 _ACEOF
19789 if ac_fn_c_try_compile "$LINENO"
19790 then :
19791
19792     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19793 printf "%s\n" "no" >&6; }
19794     as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
19795
19796 else $as_nop
19797
19798     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19799 printf "%s\n" "yes" >&6; }
19800
19801 fi
19802 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19803
19804
19805     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
19806 printf %s "checking if compiler halts on negative sized arrays... " >&6; }
19807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19808 /* end confdefs.h.  */
19809
19810
19811       typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
19812
19813 int main (void)
19814 {
19815
19816       bad_t dummy;
19817
19818  ;
19819  return 0;
19820 }
19821
19822 _ACEOF
19823 if ac_fn_c_try_compile "$LINENO"
19824 then :
19825
19826     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19827 printf "%s\n" "no" >&6; }
19828     as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
19829
19830 else $as_nop
19831
19832     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19833 printf "%s\n" "yes" >&6; }
19834
19835 fi
19836 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19837
19838
19839     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
19840 printf %s "checking if compiler halts on function prototype mismatch... " >&6; }
19841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19842 /* end confdefs.h.  */
19843
19844
19845 #     include <stdlib.h>
19846       int rand(int n);
19847       int rand(int n)
19848       {
19849         if(n)
19850           return ++n;
19851         else
19852           return n;
19853       }
19854
19855 int main (void)
19856 {
19857
19858       int i[2]={0,0};
19859       int j = rand(i[0]);
19860       if(j)
19861         return j;
19862
19863  ;
19864  return 0;
19865 }
19866
19867 _ACEOF
19868 if ac_fn_c_try_compile "$LINENO"
19869 then :
19870
19871     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19872 printf "%s\n" "no" >&6; }
19873     as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
19874
19875 else $as_nop
19876
19877     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19878 printf "%s\n" "yes" >&6; }
19879
19880 fi
19881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19882
19883
19884       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
19885 printf %s "checking if compiler supports hiding library internal symbols... " >&6; }
19886   supports_symbol_hiding="no"
19887   symbol_hiding_CFLAGS=""
19888   symbol_hiding_EXTERN=""
19889   tmp_CFLAGS=""
19890   tmp_EXTERN=""
19891   case "$compiler_id" in
19892     CLANG)
19893             tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
19894       tmp_CFLAGS="-fvisibility=hidden"
19895       supports_symbol_hiding="yes"
19896       ;;
19897     GNU_C)
19898             if test "$compiler_num" -ge "304"; then
19899         if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
19900           tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
19901           tmp_CFLAGS="-fvisibility=hidden"
19902           supports_symbol_hiding="yes"
19903         fi
19904       fi
19905       ;;
19906     INTEL_UNIX_C)
19907             if test "$compiler_num" -ge "900"; then
19908         if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
19909           tmp_save_CFLAGS="$CFLAGS"
19910           CFLAGS="$CFLAGS -fvisibility=hidden"
19911           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19912 /* end confdefs.h.  */
19913
19914
19915 #             include <stdio.h>
19916
19917 int main (void)
19918 {
19919
19920               printf("icc fvisibility bug test");
19921
19922  ;
19923  return 0;
19924 }
19925
19926 _ACEOF
19927 if ac_fn_c_try_link "$LINENO"
19928 then :
19929
19930             tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
19931             tmp_CFLAGS="-fvisibility=hidden"
19932             supports_symbol_hiding="yes"
19933
19934 fi
19935 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19936     conftest$ac_exeext conftest.$ac_ext
19937           CFLAGS="$tmp_save_CFLAGS"
19938         fi
19939       fi
19940       ;;
19941     SUNPRO_C)
19942       if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
19943         tmp_EXTERN="__global"
19944         tmp_CFLAGS="-xldscope=hidden"
19945         supports_symbol_hiding="yes"
19946       fi
19947       ;;
19948   esac
19949   if test "$supports_symbol_hiding" = "yes"; then
19950     tmp_save_CFLAGS="$CFLAGS"
19951     CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
19952     squeeze CFLAGS
19953     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19954 /* end confdefs.h.  */
19955
19956
19957         $tmp_EXTERN char *dummy(char *buff);
19958         char *dummy(char *buff)
19959         {
19960          if(buff)
19961            return ++buff;
19962          else
19963            return buff;
19964         }
19965
19966 int main (void)
19967 {
19968
19969         char b[16];
19970         char *r = dummy(&b[0]);
19971         if(r)
19972           return (int)*r;
19973
19974  ;
19975  return 0;
19976 }
19977
19978 _ACEOF
19979 if ac_fn_c_try_compile "$LINENO"
19980 then :
19981
19982       supports_symbol_hiding="yes"
19983       if test -f conftest.err; then
19984         grep 'visibility' conftest.err >/dev/null
19985         if test "$?" -eq "0"; then
19986           supports_symbol_hiding="no"
19987         fi
19988       fi
19989
19990 else $as_nop
19991
19992       supports_symbol_hiding="no"
19993       echo " " >&6
19994       sed 's/^/cc-src: /' conftest.$ac_ext >&6
19995       sed 's/^/cc-err: /' conftest.err >&6
19996       echo " " >&6
19997
19998 fi
19999 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20000     CFLAGS="$tmp_save_CFLAGS"
20001   fi
20002   if test "$supports_symbol_hiding" = "yes"; then
20003     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20004 printf "%s\n" "yes" >&6; }
20005     symbol_hiding_CFLAGS="$tmp_CFLAGS"
20006     symbol_hiding_EXTERN="$tmp_EXTERN"
20007   else
20008     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20009 printf "%s\n" "no" >&6; }
20010   fi
20011
20012
20013
20014       supports_curldebug="unknown"
20015   if test "$want_curldebug" = "yes"; then
20016     if test "x$enable_shared" != "xno" &&
20017       test "x$enable_shared" != "xyes"; then
20018       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
20019 printf "%s\n" "$as_me: WARNING: unknown enable_shared setting." >&2;}
20020       supports_curldebug="no"
20021     fi
20022     if test "x$enable_static" != "xno" &&
20023       test "x$enable_static" != "xyes"; then
20024       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
20025 printf "%s\n" "$as_me: WARNING: unknown enable_static setting." >&2;}
20026       supports_curldebug="no"
20027     fi
20028     if test "$supports_curldebug" != "no"; then
20029       if test "$enable_shared" = "yes" &&
20030         test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
20031         supports_curldebug="no"
20032         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
20033 printf "%s\n" "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
20034       fi
20035     fi
20036   fi
20037   #
20038   if test "$want_curldebug" = "yes"; then
20039     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
20040 printf %s "checking if curl debug memory tracking can be enabled... " >&6; }
20041     test "$supports_curldebug" = "no" || supports_curldebug="yes"
20042     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
20043 printf "%s\n" "$supports_curldebug" >&6; }
20044     if test "$supports_curldebug" = "no"; then
20045       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
20046 printf "%s\n" "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
20047       want_curldebug="no"
20048     fi
20049   fi
20050
20051  if test x$want_curldebug = xyes; then
20052   CURLDEBUG_TRUE=
20053   CURLDEBUG_FALSE='#'
20054 else
20055   CURLDEBUG_TRUE='#'
20056   CURLDEBUG_FALSE=
20057 fi
20058
20059
20060 supports_unittests=yes
20061 # cross-compilation of unit tests static library/programs fails when
20062 # libcurl shared library is built. This might be due to a libtool or
20063 # automake issue. In this case we disable unit tests.
20064 if test "x$cross_compiling" != "xno" &&
20065    test "x$enable_shared" != "xno"; then
20066   supports_unittests=no
20067 fi
20068
20069 # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
20070 # a problem related with OpenSSL headers and library versions not matching.
20071 # Disable unit tests while time to further investigate this is found.
20072 case $host in
20073   mips-sgi-irix6.5)
20074     if test "$compiler_id" = "GNU_C"; then
20075       supports_unittests=no
20076     fi
20077     ;;
20078 esac
20079
20080 # All AIX autobuilds fails unit tests linking against unittests library
20081 # due to unittests library being built with no symbols or members. Libtool ?
20082 # Disable unit tests while time to further investigate this is found.
20083 case $host_os in
20084   aix*)
20085     supports_unittests=no
20086     ;;
20087 esac
20088
20089 if test "x$want_debug" = "xyes" &&
20090    test "x$supports_unittests" = "xyes"; then
20091   want_unittests=yes
20092 else
20093   want_unittests=no
20094 fi
20095  if test x$want_unittests = xyes; then
20096   BUILD_UNITTESTS_TRUE=
20097   BUILD_UNITTESTS_FALSE='#'
20098 else
20099   BUILD_UNITTESTS_TRUE='#'
20100   BUILD_UNITTESTS_FALSE=
20101 fi
20102
20103
20104 # For original MinGW (ie not MinGW-w64) define the Windows minimum supported OS
20105 # version to Windows XP (0x501) if it hasn't already been defined by the user.
20106 # Without this override original MinGW defaults the version to Windows NT 4.0.
20107 # Note original MinGW sets _WIN32_WINNT if not defined to whatever WINVER is.
20108 case $host in
20109   *-*-mingw32*)
20110     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if MinGW minimum supported OS should be set to XP" >&5
20111 printf %s "checking if MinGW minimum supported OS should be set to XP... " >&6; }
20112     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20113 /* end confdefs.h.  */
20114
20115
20116 #include <_mingw.h>
20117
20118 int main (void)
20119 {
20120
20121 #if defined(__MINGW64_VERSION_MAJOR) || \
20122     defined(WINVER) || \
20123     defined(_WIN32_WINNT)
20124 #error
20125 #endif
20126
20127  ;
20128  return 0;
20129 }
20130
20131 _ACEOF
20132 if ac_fn_c_try_compile "$LINENO"
20133 then :
20134
20135       CPPFLAGS="$CPPFLAGS -DWINVER=0x501"
20136       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20137 printf "%s\n" "yes" >&6; }
20138
20139 else $as_nop
20140
20141       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20142 printf "%s\n" "no" >&6; }
20143
20144 fi
20145 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20146     ;;
20147 esac
20148
20149
20150
20151
20152   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
20153 printf %s "checking for windows.h... " >&6; }
20154 if test ${curl_cv_header_windows_h+y}
20155 then :
20156   printf %s "(cached) " >&6
20157 else $as_nop
20158
20159     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20160 /* end confdefs.h.  */
20161
20162
20163 #undef inline
20164 #ifndef WIN32_LEAN_AND_MEAN
20165 #define WIN32_LEAN_AND_MEAN
20166 #endif
20167 #include <windows.h>
20168
20169 int main (void)
20170 {
20171
20172 #if defined(__CYGWIN__) || defined(__CEGCC__)
20173         HAVE_WINDOWS_H shall not be defined.
20174 #else
20175         int dummy=2*WINVER;
20176 #endif
20177
20178  ;
20179  return 0;
20180 }
20181
20182 _ACEOF
20183 if ac_fn_c_try_compile "$LINENO"
20184 then :
20185
20186       curl_cv_header_windows_h="yes"
20187
20188 else $as_nop
20189
20190       curl_cv_header_windows_h="no"
20191
20192 fi
20193 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20194
20195 fi
20196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
20197 printf "%s\n" "$curl_cv_header_windows_h" >&6; }
20198   case "$curl_cv_header_windows_h" in
20199     yes)
20200
20201 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
20202
20203       ;;
20204   esac
20205
20206
20207     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
20208 printf %s "checking whether build target is a native Windows one... " >&6; }
20209 if test ${curl_cv_native_windows+y}
20210 then :
20211   printf %s "(cached) " >&6
20212 else $as_nop
20213
20214     if test "$curl_cv_header_windows_h" = "no"; then
20215       curl_cv_native_windows="no"
20216     else
20217       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20218 /* end confdefs.h.  */
20219
20220
20221
20222 int main (void)
20223 {
20224
20225 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
20226    (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
20227           int dummy=1;
20228 #else
20229           Not a native Windows build target.
20230 #endif
20231
20232  ;
20233  return 0;
20234 }
20235
20236 _ACEOF
20237 if ac_fn_c_try_compile "$LINENO"
20238 then :
20239
20240         curl_cv_native_windows="yes"
20241
20242 else $as_nop
20243
20244         curl_cv_native_windows="no"
20245
20246 fi
20247 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20248     fi
20249
20250 fi
20251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
20252 printf "%s\n" "$curl_cv_native_windows" >&6; }
20253    if test "x$curl_cv_native_windows" = xyes; then
20254   DOING_NATIVE_WINDOWS_TRUE=
20255   DOING_NATIVE_WINDOWS_FALSE='#'
20256 else
20257   DOING_NATIVE_WINDOWS_TRUE='#'
20258   DOING_NATIVE_WINDOWS_FALSE=
20259 fi
20260
20261
20262 case X-"$curl_cv_native_windows" in
20263   X-yes)
20264
20265     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
20266 printf %s "checking for winsock2.h... " >&6; }
20267 if test ${curl_cv_header_winsock2_h+y}
20268 then :
20269   printf %s "(cached) " >&6
20270 else $as_nop
20271
20272     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20273 /* end confdefs.h.  */
20274
20275
20276 #undef inline
20277 #ifndef WIN32_LEAN_AND_MEAN
20278 #define WIN32_LEAN_AND_MEAN
20279 #endif
20280 #include <windows.h>
20281 #include <winsock2.h>
20282
20283 int main (void)
20284 {
20285
20286 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20287         HAVE_WINSOCK2_H shall not be defined.
20288 #else
20289         int dummy=2*IPPROTO_ESP;
20290 #endif
20291
20292  ;
20293  return 0;
20294 }
20295
20296 _ACEOF
20297 if ac_fn_c_try_compile "$LINENO"
20298 then :
20299
20300       curl_cv_header_winsock2_h="yes"
20301
20302 else $as_nop
20303
20304       curl_cv_header_winsock2_h="no"
20305
20306 fi
20307 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20308
20309 fi
20310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
20311 printf "%s\n" "$curl_cv_header_winsock2_h" >&6; }
20312   case "$curl_cv_header_winsock2_h" in
20313     yes)
20314
20315 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
20316
20317       ;;
20318   esac
20319
20320
20321     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
20322 printf %s "checking for ws2tcpip.h... " >&6; }
20323 if test ${curl_cv_header_ws2tcpip_h+y}
20324 then :
20325   printf %s "(cached) " >&6
20326 else $as_nop
20327
20328     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20329 /* end confdefs.h.  */
20330
20331
20332 #undef inline
20333 #ifndef WIN32_LEAN_AND_MEAN
20334 #define WIN32_LEAN_AND_MEAN
20335 #endif
20336 #include <windows.h>
20337 #include <winsock2.h>
20338 #include <ws2tcpip.h>
20339
20340 int main (void)
20341 {
20342
20343 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20344         HAVE_WS2TCPIP_H shall not be defined.
20345 #else
20346         int dummy=2*IP_PKTINFO;
20347 #endif
20348
20349  ;
20350  return 0;
20351 }
20352
20353 _ACEOF
20354 if ac_fn_c_try_compile "$LINENO"
20355 then :
20356
20357       curl_cv_header_ws2tcpip_h="yes"
20358
20359 else $as_nop
20360
20361       curl_cv_header_ws2tcpip_h="no"
20362
20363 fi
20364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20365
20366 fi
20367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
20368 printf "%s\n" "$curl_cv_header_ws2tcpip_h" >&6; }
20369   case "$curl_cv_header_ws2tcpip_h" in
20370     yes)
20371
20372 printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
20373
20374       ;;
20375   esac
20376
20377
20378     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wincrypt.h" >&5
20379 printf %s "checking for wincrypt.h... " >&6; }
20380 if test ${curl_cv_header_wincrypt_h+y}
20381 then :
20382   printf %s "(cached) " >&6
20383 else $as_nop
20384
20385     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20386 /* end confdefs.h.  */
20387
20388
20389 #undef inline
20390 #ifndef WIN32_LEAN_AND_MEAN
20391 #define WIN32_LEAN_AND_MEAN
20392 #endif
20393 #include <windows.h>
20394 #include <wincrypt.h>
20395
20396 int main (void)
20397 {
20398
20399         int dummy=2*PROV_RSA_FULL;
20400
20401  ;
20402  return 0;
20403 }
20404
20405 _ACEOF
20406 if ac_fn_c_try_compile "$LINENO"
20407 then :
20408
20409       curl_cv_header_wincrypt_h="yes"
20410
20411 else $as_nop
20412
20413       curl_cv_header_wincrypt_h="no"
20414
20415 fi
20416 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20417
20418 fi
20419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_wincrypt_h" >&5
20420 printf "%s\n" "$curl_cv_header_wincrypt_h" >&6; }
20421   case "$curl_cv_header_wincrypt_h" in
20422     yes)
20423
20424 printf "%s\n" "#define HAVE_WINCRYPT_H 1" >>confdefs.h
20425
20426       ;;
20427   esac
20428
20429
20430     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
20431 printf %s "checking for winldap.h... " >&6; }
20432 if test ${curl_cv_header_winldap_h+y}
20433 then :
20434   printf %s "(cached) " >&6
20435 else $as_nop
20436
20437     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20438 /* end confdefs.h.  */
20439
20440
20441 #undef inline
20442 #ifdef HAVE_WINDOWS_H
20443 #ifndef WIN32_LEAN_AND_MEAN
20444 #define WIN32_LEAN_AND_MEAN
20445 #endif
20446 #include <windows.h>
20447 #endif
20448 #include <winldap.h>
20449
20450 int main (void)
20451 {
20452
20453 #if defined(__CYGWIN__) || defined(__CEGCC__)
20454         HAVE_WINLDAP_H shall not be defined.
20455 #else
20456         LDAP *ldp = ldap_init("dummy", LDAP_PORT);
20457         ULONG res = ldap_unbind(ldp);
20458 #endif
20459
20460  ;
20461  return 0;
20462 }
20463
20464 _ACEOF
20465 if ac_fn_c_try_compile "$LINENO"
20466 then :
20467
20468       curl_cv_header_winldap_h="yes"
20469
20470 else $as_nop
20471
20472       curl_cv_header_winldap_h="no"
20473
20474 fi
20475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20476
20477 fi
20478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
20479 printf "%s\n" "$curl_cv_header_winldap_h" >&6; }
20480   case "$curl_cv_header_winldap_h" in
20481     yes)
20482
20483 printf "%s\n" "#define HAVE_WINLDAP_H 1" >>confdefs.h
20484
20485       ;;
20486   esac
20487
20488
20489     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
20490 printf %s "checking for winber.h... " >&6; }
20491 if test ${curl_cv_header_winber_h+y}
20492 then :
20493   printf %s "(cached) " >&6
20494 else $as_nop
20495
20496     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20497 /* end confdefs.h.  */
20498
20499
20500 #undef inline
20501 #ifdef HAVE_WINDOWS_H
20502 #ifndef WIN32_LEAN_AND_MEAN
20503 #define WIN32_LEAN_AND_MEAN
20504 #endif
20505 #include <windows.h>
20506 #endif
20507 #include <winldap.h>
20508 #include <winber.h>
20509
20510 int main (void)
20511 {
20512
20513 #if defined(__CYGWIN__) || defined(__CEGCC__)
20514         HAVE_WINBER_H shall not be defined.
20515 #else
20516         BERVAL *bvp = NULL;
20517         BerElement *bep = ber_init(bvp);
20518         ber_free(bep, 1);
20519 #endif
20520
20521  ;
20522  return 0;
20523 }
20524
20525 _ACEOF
20526 if ac_fn_c_try_compile "$LINENO"
20527 then :
20528
20529       curl_cv_header_winber_h="yes"
20530
20531 else $as_nop
20532
20533       curl_cv_header_winber_h="no"
20534
20535 fi
20536 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20537
20538 fi
20539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winber_h" >&5
20540 printf "%s\n" "$curl_cv_header_winber_h" >&6; }
20541   case "$curl_cv_header_winber_h" in
20542     yes)
20543
20544 printf "%s\n" "#define HAVE_WINBER_H 1" >>confdefs.h
20545
20546       ;;
20547   esac
20548
20549     ;;
20550   *)
20551     curl_cv_header_winsock2_h="no"
20552     curl_cv_header_ws2tcpip_h="no"
20553     curl_cv_header_wincrypt_h="no"
20554     curl_cv_header_winldap_h="no"
20555     curl_cv_header_winber_h="no"
20556     ;;
20557 esac
20558
20559     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
20560 printf %s "checking whether build target supports WIN32 file API... " >&6; }
20561   curl_win32_file_api="no"
20562   if test "$curl_cv_header_windows_h" = "yes"; then
20563     if test x"$enable_largefile" != "xno"; then
20564       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20565 /* end confdefs.h.  */
20566
20567
20568
20569 int main (void)
20570 {
20571
20572 #if !defined(_WIN32_WCE) && \
20573     (defined(__MINGW32__) || \
20574     (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
20575           int dummy=1;
20576 #else
20577           WIN32 large file API not supported.
20578 #endif
20579
20580  ;
20581  return 0;
20582 }
20583
20584 _ACEOF
20585 if ac_fn_c_try_compile "$LINENO"
20586 then :
20587
20588         curl_win32_file_api="win32_large_files"
20589
20590 fi
20591 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20592     fi
20593     if test "$curl_win32_file_api" = "no"; then
20594       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20595 /* end confdefs.h.  */
20596
20597
20598
20599 int main (void)
20600 {
20601
20602 #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
20603           int dummy=1;
20604 #else
20605           WIN32 small file API not supported.
20606 #endif
20607
20608  ;
20609  return 0;
20610 }
20611
20612 _ACEOF
20613 if ac_fn_c_try_compile "$LINENO"
20614 then :
20615
20616         curl_win32_file_api="win32_small_files"
20617
20618 fi
20619 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20620     fi
20621   fi
20622   case "$curl_win32_file_api" in
20623     win32_large_files)
20624       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
20625 printf "%s\n" "yes (large file enabled)" >&6; }
20626
20627 printf "%s\n" "#define USE_WIN32_LARGE_FILES 1" >>confdefs.h
20628
20629       USE_WIN32_LARGE_FILES=1
20630
20631       ;;
20632     win32_small_files)
20633       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
20634 printf "%s\n" "yes (large file disabled)" >&6; }
20635
20636 printf "%s\n" "#define USE_WIN32_SMALL_FILES 1" >>confdefs.h
20637
20638       USE_WIN32_SMALL_FILES=1
20639
20640       ;;
20641     *)
20642       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20643 printf "%s\n" "no" >&6; }
20644       ;;
20645   esac
20646
20647
20648     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 crypto API" >&5
20649 printf %s "checking whether build target supports WIN32 crypto API... " >&6; }
20650   curl_win32_crypto_api="no"
20651   if test "$curl_cv_header_wincrypt_h" = "yes"; then
20652     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20653 /* end confdefs.h.  */
20654
20655
20656 #undef inline
20657 #ifndef WIN32_LEAN_AND_MEAN
20658 #define WIN32_LEAN_AND_MEAN
20659 #endif
20660 #include <windows.h>
20661 #include <wincrypt.h>
20662
20663 int main (void)
20664 {
20665
20666         HCRYPTPROV hCryptProv;
20667         if(CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_RSA_FULL,
20668                                CRYPT_VERIFYCONTEXT | CRYPT_SILENT)) {
20669           CryptReleaseContext(hCryptProv, 0);
20670         }
20671
20672  ;
20673  return 0;
20674 }
20675
20676 _ACEOF
20677 if ac_fn_c_try_compile "$LINENO"
20678 then :
20679
20680       curl_win32_crypto_api="yes"
20681
20682 fi
20683 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20684   fi
20685   case "$curl_win32_crypto_api" in
20686     yes)
20687       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20688 printf "%s\n" "yes" >&6; }
20689
20690 printf "%s\n" "#define USE_WIN32_CRYPTO 1" >>confdefs.h
20691
20692       USE_WIN32_CRYPTO=1
20693
20694       ;;
20695     *)
20696       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20697 printf "%s\n" "no" >&6; }
20698       ;;
20699   esac
20700
20701
20702
20703
20704   tst_cflags="no"
20705   case $host_os in
20706     darwin*)
20707       tst_cflags="yes"
20708       ;;
20709   esac
20710
20711   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for good-to-use Darwin CFLAGS" >&5
20712 printf %s "checking for good-to-use Darwin CFLAGS... " >&6; }
20713   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
20714 printf "%s\n" "$tst_cflags" >&6; };
20715
20716   if test "$tst_cflags" = "yes"; then
20717     old_CFLAGS=$CFLAGS
20718     CFLAGS="$CFLAGS -Werror=partial-availability"
20719     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
20720 printf %s "checking whether $CC accepts -Werror=partial-availability... " >&6; }
20721     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20722 /* end confdefs.h.  */
20723
20724 int main (void)
20725 {
20726
20727  ;
20728  return 0;
20729 }
20730 _ACEOF
20731 if ac_fn_c_try_compile "$LINENO"
20732 then :
20733   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20734 printf "%s\n" "yes" >&6; }
20735 else $as_nop
20736   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20737 printf "%s\n" "no" >&6; }
20738       CFLAGS=$old_CFLAGS
20739 fi
20740 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20741   fi
20742
20743
20744
20745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to link macOS CoreFoundation and SystemConfiguration framework" >&5
20746 printf %s "checking whether to link macOS CoreFoundation and SystemConfiguration framework... " >&6; }
20747 case $host_os in
20748   darwin*)
20749     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20750 /* end confdefs.h.  */
20751
20752
20753 #include <TargetConditionals.h>
20754
20755 int main (void)
20756 {
20757
20758 #if (TARGET_OS_OSX)
20759       return 0;
20760 #else
20761 #error Not a macOS
20762 #endif
20763
20764  ;
20765  return 0;
20766 }
20767
20768 _ACEOF
20769 if ac_fn_c_try_compile "$LINENO"
20770 then :
20771
20772       build_for_macos="yes"
20773
20774 else $as_nop
20775
20776       build_for_macos="no"
20777
20778 fi
20779 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20780     if test "x$build_for_macos" != xno; then
20781       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20782 printf "%s\n" "yes" >&6; }
20783       LDFLAGS="$LDFLAGS -framework CoreFoundation -framework SystemConfiguration"
20784     else
20785       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20786 printf "%s\n" "no" >&6; }
20787     fi
20788     ;;
20789   *)
20790     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20791 printf "%s\n" "no" >&6; }
20792 esac
20793
20794
20795   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
20796 printf %s "checking to see if the compiler supports __builtin_available()... " >&6; }
20797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20798 /* end confdefs.h.  */
20799
20800
20801 #include <stdlib.h>
20802
20803 int main (void)
20804 {
20805
20806       if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
20807
20808  ;
20809  return 0;
20810 }
20811
20812 _ACEOF
20813 if ac_fn_c_try_compile "$LINENO"
20814 then :
20815
20816     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20817 printf "%s\n" "yes" >&6; }
20818
20819 printf "%s\n" "#define HAVE_BUILTIN_AVAILABLE 1" >>confdefs.h
20820
20821
20822 else $as_nop
20823
20824     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20825 printf "%s\n" "no" >&6; }
20826
20827 fi
20828 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20829
20830
20831
20832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
20833 printf %s "checking whether to support http... " >&6; }
20834 # Check whether --enable-http was given.
20835 if test ${enable_http+y}
20836 then :
20837   enableval=$enable_http;  case "$enableval" in
20838   no)
20839        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20840 printf "%s\n" "no" >&6; }
20841
20842 printf "%s\n" "#define CURL_DISABLE_HTTP 1" >>confdefs.h
20843
20844        disable_http="yes"
20845        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
20846 printf "%s\n" "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
20847        CURL_DISABLE_HTTP=1
20848
20849
20850 printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
20851
20852        CURL_DISABLE_RTSP=1
20853
20854
20855 printf "%s\n" "#define CURL_DISABLE_ALTSVC 1" >>confdefs.h
20856
20857
20858 printf "%s\n" "#define CURL_DISABLE_HSTS 1" >>confdefs.h
20859
20860        curl_h1_msg="no      (--enable-http, --with-hyper)"
20861        curl_altsvc_msg="no";
20862        curl_hsts_msg="no      (--enable-hsts)";
20863        enable_altsvc="no"
20864        hsts="no"
20865        ;;
20866   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20867 printf "%s\n" "yes" >&6; }
20868        ;;
20869   esac
20870 else $as_nop
20871   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20872 printf "%s\n" "yes" >&6; }
20873
20874 fi
20875
20876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
20877 printf %s "checking whether to support ftp... " >&6; }
20878 # Check whether --enable-ftp was given.
20879 if test ${enable_ftp+y}
20880 then :
20881   enableval=$enable_ftp;  case "$enableval" in
20882   no)
20883        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20884 printf "%s\n" "no" >&6; }
20885
20886 printf "%s\n" "#define CURL_DISABLE_FTP 1" >>confdefs.h
20887
20888        CURL_DISABLE_FTP=1
20889
20890        ;;
20891   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20892 printf "%s\n" "yes" >&6; }
20893        ;;
20894   esac
20895 else $as_nop
20896   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20897 printf "%s\n" "yes" >&6; }
20898
20899 fi
20900
20901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
20902 printf %s "checking whether to support file... " >&6; }
20903 # Check whether --enable-file was given.
20904 if test ${enable_file+y}
20905 then :
20906   enableval=$enable_file;  case "$enableval" in
20907   no)
20908        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20909 printf "%s\n" "no" >&6; }
20910
20911 printf "%s\n" "#define CURL_DISABLE_FILE 1" >>confdefs.h
20912
20913        CURL_DISABLE_FILE=1
20914
20915        ;;
20916   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20917 printf "%s\n" "yes" >&6; }
20918        ;;
20919   esac
20920 else $as_nop
20921   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20922 printf "%s\n" "yes" >&6; }
20923
20924 fi
20925
20926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
20927 printf %s "checking whether to support ldap... " >&6; }
20928 # Check whether --enable-ldap was given.
20929 if test ${enable_ldap+y}
20930 then :
20931   enableval=$enable_ldap;  case "$enableval" in
20932   no)
20933        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20934 printf "%s\n" "no" >&6; }
20935
20936 printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
20937
20938        CURL_DISABLE_LDAP=1
20939
20940        ;;
20941   yes)
20942        ldap_askedfor="yes"
20943        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20944 printf "%s\n" "yes" >&6; }
20945        ;;
20946   *)
20947        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20948 printf "%s\n" "yes" >&6; }
20949        ;;
20950   esac
20951 else $as_nop
20952
20953        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20954 printf "%s\n" "yes" >&6; }
20955
20956 fi
20957
20958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
20959 printf %s "checking whether to support ldaps... " >&6; }
20960 # Check whether --enable-ldaps was given.
20961 if test ${enable_ldaps+y}
20962 then :
20963   enableval=$enable_ldaps;  case "$enableval" in
20964   no)
20965        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20966 printf "%s\n" "no" >&6; }
20967
20968 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
20969
20970        CURL_DISABLE_LDAPS=1
20971
20972        ;;
20973   *)   if test "x$CURL_DISABLE_LDAP" = "x1" ; then
20974          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
20975 printf "%s\n" "LDAP needs to be enabled to support LDAPS" >&6; }
20976
20977 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
20978
20979          CURL_DISABLE_LDAPS=1
20980
20981        else
20982          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20983 printf "%s\n" "yes" >&6; }
20984
20985 printf "%s\n" "#define HAVE_LDAP_SSL 1" >>confdefs.h
20986
20987          HAVE_LDAP_SSL=1
20988
20989        fi
20990        ;;
20991   esac
20992 else $as_nop
20993
20994        if test "x$CURL_DISABLE_LDAP" = "x1" ; then
20995          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20996 printf "%s\n" "no" >&6; }
20997
20998 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
20999
21000          CURL_DISABLE_LDAPS=1
21001
21002        else
21003          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21004 printf "%s\n" "yes" >&6; }
21005
21006 printf "%s\n" "#define HAVE_LDAP_SSL 1" >>confdefs.h
21007
21008          HAVE_LDAP_SSL=1
21009
21010        fi
21011
21012 fi
21013
21014
21015
21016 OPT_HYPER="no"
21017
21018
21019 # Check whether --with-hyper was given.
21020 if test ${with_hyper+y}
21021 then :
21022   withval=$with_hyper; OPT_HYPER=$withval
21023 fi
21024
21025 case "$OPT_HYPER" in
21026   no)
21027         want_hyper="no"
21028     ;;
21029   yes)
21030         want_hyper="default"
21031     want_hyper_path=""
21032     ;;
21033   *)
21034         want_hyper="yes"
21035     want_hyper_path="$withval"
21036     ;;
21037 esac
21038
21039 if test X"$want_hyper" != Xno; then
21040   if test "x$disable_http" = "xyes"; then
21041     as_fn_error $? "--with-hyper is not compatible with --disable-http" "$LINENO" 5
21042   fi
21043
21044     CLEANLDFLAGS="$LDFLAGS"
21045   CLEANCPPFLAGS="$CPPFLAGS"
21046   CLEANLIBS="$LIBS"
21047
21048
21049     if test -n "$PKG_CONFIG"; then
21050       PKGCONFIG="$PKG_CONFIG"
21051     else
21052       if test -n "$ac_tool_prefix"; then
21053   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21054 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21056 printf %s "checking for $ac_word... " >&6; }
21057 if test ${ac_cv_path_PKGCONFIG+y}
21058 then :
21059   printf %s "(cached) " >&6
21060 else $as_nop
21061   case $PKGCONFIG in
21062   [\\/]* | ?:[\\/]*)
21063   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
21064   ;;
21065   *)
21066   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21067 as_dummy="$PATH:/usr/bin:/usr/local/bin"
21068 for as_dir in $as_dummy
21069 do
21070   IFS=$as_save_IFS
21071   case $as_dir in #(((
21072     '') as_dir=./ ;;
21073     */) ;;
21074     *) as_dir=$as_dir/ ;;
21075   esac
21076     for ac_exec_ext in '' $ac_executable_extensions; do
21077   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21078     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
21079     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21080     break 2
21081   fi
21082 done
21083   done
21084 IFS=$as_save_IFS
21085
21086   ;;
21087 esac
21088 fi
21089 PKGCONFIG=$ac_cv_path_PKGCONFIG
21090 if test -n "$PKGCONFIG"; then
21091   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
21092 printf "%s\n" "$PKGCONFIG" >&6; }
21093 else
21094   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21095 printf "%s\n" "no" >&6; }
21096 fi
21097
21098
21099 fi
21100 if test -z "$ac_cv_path_PKGCONFIG"; then
21101   ac_pt_PKGCONFIG=$PKGCONFIG
21102   # Extract the first word of "pkg-config", so it can be a program name with args.
21103 set dummy pkg-config; ac_word=$2
21104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21105 printf %s "checking for $ac_word... " >&6; }
21106 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
21107 then :
21108   printf %s "(cached) " >&6
21109 else $as_nop
21110   case $ac_pt_PKGCONFIG in
21111   [\\/]* | ?:[\\/]*)
21112   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
21113   ;;
21114   *)
21115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21116 as_dummy="$PATH:/usr/bin:/usr/local/bin"
21117 for as_dir in $as_dummy
21118 do
21119   IFS=$as_save_IFS
21120   case $as_dir in #(((
21121     '') as_dir=./ ;;
21122     */) ;;
21123     *) as_dir=$as_dir/ ;;
21124   esac
21125     for ac_exec_ext in '' $ac_executable_extensions; do
21126   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21127     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
21128     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21129     break 2
21130   fi
21131 done
21132   done
21133 IFS=$as_save_IFS
21134
21135   ;;
21136 esac
21137 fi
21138 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
21139 if test -n "$ac_pt_PKGCONFIG"; then
21140   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
21141 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
21142 else
21143   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21144 printf "%s\n" "no" >&6; }
21145 fi
21146
21147   if test "x$ac_pt_PKGCONFIG" = x; then
21148     PKGCONFIG="no"
21149   else
21150     case $cross_compiling:$ac_tool_warned in
21151 yes:)
21152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21153 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21154 ac_tool_warned=yes ;;
21155 esac
21156     PKGCONFIG=$ac_pt_PKGCONFIG
21157   fi
21158 else
21159   PKGCONFIG="$ac_cv_path_PKGCONFIG"
21160 fi
21161
21162     fi
21163
21164     if test "x$PKGCONFIG" != "xno"; then
21165       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hyper options with pkg-config" >&5
21166 printf %s "checking for hyper options with pkg-config... " >&6; }
21167             itexists=`
21168     if test -n "$want_hyper_path"; then
21169       PKG_CONFIG_LIBDIR="$want_hyper_path"
21170       export PKG_CONFIG_LIBDIR
21171     fi
21172          $PKGCONFIG --exists hyper >/dev/null 2>&1 && echo 1`
21173
21174       if test -z "$itexists"; then
21175                         PKGCONFIG="no"
21176         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21177 printf "%s\n" "no" >&6; }
21178       else
21179         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
21180 printf "%s\n" "found" >&6; }
21181       fi
21182     fi
21183
21184
21185   if test "$PKGCONFIG" != "no" ; then
21186     LIB_HYPER=`
21187     if test -n "$want_hyper_path"; then
21188       PKG_CONFIG_LIBDIR="$want_hyper_path"
21189       export PKG_CONFIG_LIBDIR
21190     fi
21191
21192       $PKGCONFIG --libs-only-l hyper`
21193     CPP_HYPER=`
21194     if test -n "$want_hyper_path"; then
21195       PKG_CONFIG_LIBDIR="$want_hyper_path"
21196       export PKG_CONFIG_LIBDIR
21197     fi
21198        $PKGCONFIG --cflags-only-I hyper`
21199     LD_HYPER=`
21200     if test -n "$want_hyper_path"; then
21201       PKG_CONFIG_LIBDIR="$want_hyper_path"
21202       export PKG_CONFIG_LIBDIR
21203     fi
21204
21205       $PKGCONFIG --libs-only-L hyper`
21206   else
21207         LIB_HYPER="-lhyper -ldl -lpthread -lm"
21208     if test X"$want_hyper" != Xdefault; then
21209       CPP_HYPER=-I"$want_hyper_path/capi/include"
21210       LD_HYPER="-L$want_hyper_path/target/release -L$want_hyper_path/target/debug"
21211     fi
21212   fi
21213   if test -n "$LIB_HYPER"; then
21214     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_HYPER" >&5
21215 printf "%s\n" "$as_me: -l is $LIB_HYPER" >&6;}
21216     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_HYPER" >&5
21217 printf "%s\n" "$as_me: -I is $CPP_HYPER" >&6;}
21218     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_HYPER" >&5
21219 printf "%s\n" "$as_me: -L is $LD_HYPER" >&6;}
21220
21221     LDFLAGS="$LDFLAGS $LD_HYPER"
21222     CPPFLAGS="$CPPFLAGS $CPP_HYPER"
21223     LIBS="$LIB_HYPER $LIBS"
21224
21225     if test "x$cross_compiling" != "xyes"; then
21226             DIR_HYPER=`echo $LD_HYPER | $SED -e 's/^-L//' -e 's/ -L/:/g'`
21227     fi
21228
21229     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hyper_io_new in -lhyper" >&5
21230 printf %s "checking for hyper_io_new in -lhyper... " >&6; }
21231 if test ${ac_cv_lib_hyper_hyper_io_new+y}
21232 then :
21233   printf %s "(cached) " >&6
21234 else $as_nop
21235   ac_check_lib_save_LIBS=$LIBS
21236 LIBS="-lhyper  $LIBS"
21237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21238 /* end confdefs.h.  */
21239
21240
21241 #ifdef __cplusplus
21242 extern "C"
21243 #endif
21244 char hyper_io_new ();
21245 int main (void)
21246 {
21247 return hyper_io_new ();
21248  ;
21249  return 0;
21250 }
21251 _ACEOF
21252 if ac_fn_c_try_link "$LINENO"
21253 then :
21254   ac_cv_lib_hyper_hyper_io_new=yes
21255 else $as_nop
21256   ac_cv_lib_hyper_hyper_io_new=no
21257 fi
21258 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21259     conftest$ac_exeext conftest.$ac_ext
21260 LIBS=$ac_check_lib_save_LIBS
21261 fi
21262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hyper_hyper_io_new" >&5
21263 printf "%s\n" "$ac_cv_lib_hyper_hyper_io_new" >&6; }
21264 if test "x$ac_cv_lib_hyper_hyper_io_new" = xyes
21265 then :
21266
21267               for ac_header in hyper.h
21268 do :
21269   ac_fn_c_check_header_compile "$LINENO" "hyper.h" "ac_cv_header_hyper_h" "$ac_includes_default"
21270 if test "x$ac_cv_header_hyper_h" = xyes
21271 then :
21272   printf "%s\n" "#define HAVE_HYPER_H 1" >>confdefs.h
21273  experimental="$experimental Hyper"
21274           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Hyper support is experimental" >&5
21275 printf "%s\n" "$as_me: Hyper support is experimental" >&6;}
21276           curl_h1_msg="enabled (Hyper)"
21277           curl_h2_msg=$curl_h1_msg
21278           HYPER_ENABLED=1
21279
21280 printf "%s\n" "#define USE_HYPER 1" >>confdefs.h
21281
21282           USE_HYPER=1
21283
21284           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_HYPER"
21285           export CURL_LIBRARY_PATH
21286           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_HYPER to CURL_LIBRARY_PATH" >&5
21287 printf "%s\n" "$as_me: Added $DIR_HYPER to CURL_LIBRARY_PATH" >&6;}
21288 fi
21289
21290 done
21291
21292 else $as_nop
21293   for d in `echo $DIR_HYPER | sed -e 's/:/ /'`; do
21294         if test -f "$d/libhyper.a"; then
21295           as_fn_error $? "hyper was found in $d but was probably built with wrong flags. See docs/HYPER.md." "$LINENO" 5
21296         fi
21297       done
21298       as_fn_error $? "--with-hyper but hyper was not found. See docs/HYPER.md." "$LINENO" 5
21299
21300 fi
21301
21302   fi
21303 fi
21304
21305 if test X"$want_hyper" != Xno; then
21306   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Disable RTSP support with hyper" >&5
21307 printf "%s\n" "$as_me: Disable RTSP support with hyper" >&6;}
21308
21309 printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
21310
21311   CURL_DISABLE_RTSP=1
21312
21313
21314 else
21315
21316   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
21317 printf %s "checking whether to support rtsp... " >&6; }
21318   # Check whether --enable-rtsp was given.
21319 if test ${enable_rtsp+y}
21320 then :
21321   enableval=$enable_rtsp;  case "$enableval" in
21322     no)
21323        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21324 printf "%s\n" "no" >&6; }
21325
21326 printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
21327
21328        CURL_DISABLE_RTSP=1
21329
21330        ;;
21331     *)
21332        if test x$CURL_DISABLE_HTTP = x1 ; then
21333          as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
21334        else
21335          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21336 printf "%s\n" "yes" >&6; }
21337          curl_rtsp_msg="enabled"
21338        fi
21339        ;;
21340     esac
21341 else $as_nop
21342   if test "x$CURL_DISABLE_HTTP" != "x1"; then
21343           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21344 printf "%s\n" "yes" >&6; }
21345           curl_rtsp_msg="enabled"
21346        else
21347           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21348 printf "%s\n" "no" >&6; }
21349        fi
21350
21351 fi
21352
21353 fi
21354
21355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
21356 printf %s "checking whether to support proxies... " >&6; }
21357 # Check whether --enable-proxy was given.
21358 if test ${enable_proxy+y}
21359 then :
21360   enableval=$enable_proxy;  case "$enableval" in
21361   no)
21362        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21363 printf "%s\n" "no" >&6; }
21364
21365 printf "%s\n" "#define CURL_DISABLE_PROXY 1" >>confdefs.h
21366
21367        CURL_DISABLE_PROXY=1
21368
21369        https_proxy="no"
21370        ;;
21371   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21372 printf "%s\n" "yes" >&6; }
21373        ;;
21374   esac
21375 else $as_nop
21376   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21377 printf "%s\n" "yes" >&6; }
21378
21379 fi
21380
21381
21382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
21383 printf %s "checking whether to support dict... " >&6; }
21384 # Check whether --enable-dict was given.
21385 if test ${enable_dict+y}
21386 then :
21387   enableval=$enable_dict;  case "$enableval" in
21388   no)
21389        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21390 printf "%s\n" "no" >&6; }
21391
21392 printf "%s\n" "#define CURL_DISABLE_DICT 1" >>confdefs.h
21393
21394        CURL_DISABLE_DICT=1
21395
21396        ;;
21397   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21398 printf "%s\n" "yes" >&6; }
21399        ;;
21400   esac
21401 else $as_nop
21402   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21403 printf "%s\n" "yes" >&6; }
21404
21405 fi
21406
21407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
21408 printf %s "checking whether to support telnet... " >&6; }
21409 # Check whether --enable-telnet was given.
21410 if test ${enable_telnet+y}
21411 then :
21412   enableval=$enable_telnet;  case "$enableval" in
21413   no)
21414        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21415 printf "%s\n" "no" >&6; }
21416
21417 printf "%s\n" "#define CURL_DISABLE_TELNET 1" >>confdefs.h
21418
21419        CURL_DISABLE_TELNET=1
21420
21421        ;;
21422   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21423 printf "%s\n" "yes" >&6; }
21424        ;;
21425   esac
21426 else $as_nop
21427   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21428 printf "%s\n" "yes" >&6; }
21429
21430 fi
21431
21432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
21433 printf %s "checking whether to support tftp... " >&6; }
21434 # Check whether --enable-tftp was given.
21435 if test ${enable_tftp+y}
21436 then :
21437   enableval=$enable_tftp;  case "$enableval" in
21438   no)
21439        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21440 printf "%s\n" "no" >&6; }
21441
21442 printf "%s\n" "#define CURL_DISABLE_TFTP 1" >>confdefs.h
21443
21444        CURL_DISABLE_TFTP=1
21445
21446        ;;
21447   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21448 printf "%s\n" "yes" >&6; }
21449        ;;
21450   esac
21451 else $as_nop
21452   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21453 printf "%s\n" "yes" >&6; }
21454
21455 fi
21456
21457
21458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
21459 printf %s "checking whether to support pop3... " >&6; }
21460 # Check whether --enable-pop3 was given.
21461 if test ${enable_pop3+y}
21462 then :
21463   enableval=$enable_pop3;  case "$enableval" in
21464   no)
21465        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21466 printf "%s\n" "no" >&6; }
21467
21468 printf "%s\n" "#define CURL_DISABLE_POP3 1" >>confdefs.h
21469
21470        CURL_DISABLE_POP3=1
21471
21472        ;;
21473   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21474 printf "%s\n" "yes" >&6; }
21475        ;;
21476   esac
21477 else $as_nop
21478   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21479 printf "%s\n" "yes" >&6; }
21480
21481 fi
21482
21483
21484
21485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
21486 printf %s "checking whether to support imap... " >&6; }
21487 # Check whether --enable-imap was given.
21488 if test ${enable_imap+y}
21489 then :
21490   enableval=$enable_imap;  case "$enableval" in
21491   no)
21492        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21493 printf "%s\n" "no" >&6; }
21494
21495 printf "%s\n" "#define CURL_DISABLE_IMAP 1" >>confdefs.h
21496
21497        CURL_DISABLE_IMAP=1
21498
21499        ;;
21500   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21501 printf "%s\n" "yes" >&6; }
21502        ;;
21503   esac
21504 else $as_nop
21505   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21506 printf "%s\n" "yes" >&6; }
21507
21508 fi
21509
21510
21511
21512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
21513 printf %s "checking whether to support smb... " >&6; }
21514 # Check whether --enable-smb was given.
21515 if test ${enable_smb+y}
21516 then :
21517   enableval=$enable_smb;  case "$enableval" in
21518   no)
21519        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21520 printf "%s\n" "no" >&6; }
21521
21522 printf "%s\n" "#define CURL_DISABLE_SMB 1" >>confdefs.h
21523
21524        CURL_DISABLE_SMB=1
21525
21526        ;;
21527   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21528 printf "%s\n" "yes" >&6; }
21529        ;;
21530   esac
21531 else $as_nop
21532   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21533 printf "%s\n" "yes" >&6; }
21534
21535 fi
21536
21537
21538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
21539 printf %s "checking whether to support smtp... " >&6; }
21540 # Check whether --enable-smtp was given.
21541 if test ${enable_smtp+y}
21542 then :
21543   enableval=$enable_smtp;  case "$enableval" in
21544   no)
21545        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21546 printf "%s\n" "no" >&6; }
21547
21548 printf "%s\n" "#define CURL_DISABLE_SMTP 1" >>confdefs.h
21549
21550        CURL_DISABLE_SMTP=1
21551
21552        ;;
21553   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21554 printf "%s\n" "yes" >&6; }
21555        ;;
21556   esac
21557 else $as_nop
21558   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21559 printf "%s\n" "yes" >&6; }
21560
21561 fi
21562
21563
21564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
21565 printf %s "checking whether to support gopher... " >&6; }
21566 # Check whether --enable-gopher was given.
21567 if test ${enable_gopher+y}
21568 then :
21569   enableval=$enable_gopher;  case "$enableval" in
21570   no)
21571        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21572 printf "%s\n" "no" >&6; }
21573
21574 printf "%s\n" "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
21575
21576        CURL_DISABLE_GOPHER=1
21577
21578        ;;
21579   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21580 printf "%s\n" "yes" >&6; }
21581        ;;
21582   esac
21583 else $as_nop
21584   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21585 printf "%s\n" "yes" >&6; }
21586
21587 fi
21588
21589
21590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support mqtt" >&5
21591 printf %s "checking whether to support mqtt... " >&6; }
21592 # Check whether --enable-mqtt was given.
21593 if test ${enable_mqtt+y}
21594 then :
21595   enableval=$enable_mqtt;  case "$enableval" in
21596   no)
21597        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21598 printf "%s\n" "no" >&6; }
21599
21600 printf "%s\n" "#define CURL_DISABLE_MQTT 1" >>confdefs.h
21601
21602        CURL_DISABLE_MQTT=1
21603
21604        ;;
21605   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21606 printf "%s\n" "yes" >&6; }
21607        ;;
21608   esac
21609 else $as_nop
21610   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21611 printf "%s\n" "no" >&6; }
21612
21613 fi
21614
21615
21616
21617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
21618 printf %s "checking whether to provide built-in manual... " >&6; }
21619 # Check whether --enable-manual was given.
21620 if test ${enable_manual+y}
21621 then :
21622   enableval=$enable_manual;  case "$enableval" in
21623   no)
21624        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21625 printf "%s\n" "no" >&6; }
21626        ;;
21627   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21628 printf "%s\n" "yes" >&6; }
21629        USE_MANUAL="1"
21630        ;;
21631   esac
21632 else $as_nop
21633   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21634 printf "%s\n" "yes" >&6; }
21635        USE_MANUAL="1"
21636
21637 fi
21638
21639
21640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
21641 printf %s "checking whether to enable generation of C code... " >&6; }
21642 # Check whether --enable-libcurl_option was given.
21643 if test ${enable_libcurl_option+y}
21644 then :
21645   enableval=$enable_libcurl_option;  case "$enableval" in
21646   no)
21647        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21648 printf "%s\n" "no" >&6; }
21649
21650 printf "%s\n" "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
21651
21652        curl_libcurl_msg="no"
21653        ;;
21654   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21655 printf "%s\n" "yes" >&6; }
21656        ;;
21657   esac
21658 else $as_nop
21659   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21660 printf "%s\n" "yes" >&6; }
21661
21662 fi
21663
21664
21665
21666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
21667 printf %s "checking whether to use libgcc... " >&6; }
21668 # Check whether --enable-libgcc was given.
21669 if test ${enable_libgcc+y}
21670 then :
21671   enableval=$enable_libgcc;  case "$enableval" in
21672   yes)
21673        LIBS="-lgcc $LIBS"
21674        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21675 printf "%s\n" "yes" >&6; }
21676        ;;
21677   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21678 printf "%s\n" "no" >&6; }
21679        ;;
21680   esac
21681 else $as_nop
21682   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21683 printf "%s\n" "no" >&6; }
21684
21685 fi
21686
21687
21688
21689   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
21690 printf %s "checking if X/Open network library is required... " >&6; }
21691   tst_lib_xnet_required="no"
21692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21693 /* end confdefs.h.  */
21694
21695
21696 int main (void)
21697 {
21698 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
21699   return 0;
21700 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
21701   return 0;
21702 #else
21703   force compilation error
21704 #endif
21705 }
21706
21707
21708 _ACEOF
21709 if ac_fn_c_try_compile "$LINENO"
21710 then :
21711
21712     tst_lib_xnet_required="yes"
21713     LIBS="-lxnet $LIBS"
21714
21715 fi
21716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21717   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
21718 printf "%s\n" "$tst_lib_xnet_required" >&6; }
21719
21720
21721 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
21722 if test "x$ac_cv_func_gethostbyname" = xyes
21723 then :
21724   HAVE_GETHOSTBYNAME="1"
21725
21726 else $as_nop
21727    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
21728 printf %s "checking for gethostbyname in -lnsl... " >&6; }
21729 if test ${ac_cv_lib_nsl_gethostbyname+y}
21730 then :
21731   printf %s "(cached) " >&6
21732 else $as_nop
21733   ac_check_lib_save_LIBS=$LIBS
21734 LIBS="-lnsl  $LIBS"
21735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21736 /* end confdefs.h.  */
21737
21738
21739 #ifdef __cplusplus
21740 extern "C"
21741 #endif
21742 char gethostbyname ();
21743 int main (void)
21744 {
21745 return gethostbyname ();
21746  ;
21747  return 0;
21748 }
21749 _ACEOF
21750 if ac_fn_c_try_link "$LINENO"
21751 then :
21752   ac_cv_lib_nsl_gethostbyname=yes
21753 else $as_nop
21754   ac_cv_lib_nsl_gethostbyname=no
21755 fi
21756 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21757     conftest$ac_exeext conftest.$ac_ext
21758 LIBS=$ac_check_lib_save_LIBS
21759 fi
21760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
21761 printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
21762 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
21763 then :
21764   HAVE_GETHOSTBYNAME="1"
21765                              LIBS="-lnsl $LIBS"
21766
21767 fi
21768
21769
21770 fi
21771
21772
21773 if test "$HAVE_GETHOSTBYNAME" != "1"
21774 then
21775     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
21776 printf %s "checking for gethostbyname in -lsocket... " >&6; }
21777 if test ${ac_cv_lib_socket_gethostbyname+y}
21778 then :
21779   printf %s "(cached) " >&6
21780 else $as_nop
21781   ac_check_lib_save_LIBS=$LIBS
21782 LIBS="-lsocket  $LIBS"
21783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21784 /* end confdefs.h.  */
21785
21786
21787 #ifdef __cplusplus
21788 extern "C"
21789 #endif
21790 char gethostbyname ();
21791 int main (void)
21792 {
21793 return gethostbyname ();
21794  ;
21795  return 0;
21796 }
21797 _ACEOF
21798 if ac_fn_c_try_link "$LINENO"
21799 then :
21800   ac_cv_lib_socket_gethostbyname=yes
21801 else $as_nop
21802   ac_cv_lib_socket_gethostbyname=no
21803 fi
21804 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21805     conftest$ac_exeext conftest.$ac_ext
21806 LIBS=$ac_check_lib_save_LIBS
21807 fi
21808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
21809 printf "%s\n" "$ac_cv_lib_socket_gethostbyname" >&6; }
21810 if test "x$ac_cv_lib_socket_gethostbyname" = xyes
21811 then :
21812   HAVE_GETHOSTBYNAME="1"
21813                LIBS="-lsocket $LIBS"
21814
21815 fi
21816
21817 fi
21818
21819 if test "$HAVE_GETHOSTBYNAME" != "1"
21820 then
21821     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
21822 printf %s "checking for gethostbyname in -lwatt... " >&6; }
21823 if test ${ac_cv_lib_watt_gethostbyname+y}
21824 then :
21825   printf %s "(cached) " >&6
21826 else $as_nop
21827   ac_check_lib_save_LIBS=$LIBS
21828 LIBS="-lwatt  $LIBS"
21829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21830 /* end confdefs.h.  */
21831
21832
21833 #ifdef __cplusplus
21834 extern "C"
21835 #endif
21836 char gethostbyname ();
21837 int main (void)
21838 {
21839 return gethostbyname ();
21840  ;
21841  return 0;
21842 }
21843 _ACEOF
21844 if ac_fn_c_try_link "$LINENO"
21845 then :
21846   ac_cv_lib_watt_gethostbyname=yes
21847 else $as_nop
21848   ac_cv_lib_watt_gethostbyname=no
21849 fi
21850 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21851     conftest$ac_exeext conftest.$ac_ext
21852 LIBS=$ac_check_lib_save_LIBS
21853 fi
21854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
21855 printf "%s\n" "$ac_cv_lib_watt_gethostbyname" >&6; }
21856 if test "x$ac_cv_lib_watt_gethostbyname" = xyes
21857 then :
21858   HAVE_GETHOSTBYNAME="1"
21859                CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
21860                LDFLAGS="-L/dev/env/WATT_ROOT/lib"
21861                LIBS="-lwatt $LIBS"
21862
21863 fi
21864
21865 fi
21866
21867 if test "$HAVE_GETHOSTBYNAME" != "1"
21868 then
21869   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
21870 printf %s "checking for gethostbyname with both nsl and socket libs... " >&6; }
21871   my_ac_save_LIBS=$LIBS
21872   LIBS="-lnsl -lsocket $LIBS"
21873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21874 /* end confdefs.h.  */
21875
21876
21877
21878 int main (void)
21879 {
21880
21881       gethostbyname();
21882
21883  ;
21884  return 0;
21885 }
21886
21887 _ACEOF
21888 if ac_fn_c_try_link "$LINENO"
21889 then :
21890
21891     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21892 printf "%s\n" "yes" >&6; }
21893     HAVE_GETHOSTBYNAME="1"
21894
21895 else $as_nop
21896
21897     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21898 printf "%s\n" "no" >&6; }
21899     LIBS=$my_ac_save_LIBS
21900
21901 fi
21902 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21903     conftest$ac_exeext conftest.$ac_ext
21904 fi
21905
21906 if test "$HAVE_GETHOSTBYNAME" != "1"
21907 then
21908     if test "$curl_cv_header_windows_h" = "yes"; then
21909     if test "$curl_cv_header_winsock2_h" = "yes"; then
21910       winsock_LIB="-lws2_32"
21911     fi
21912     if test ! -z "$winsock_LIB"; then
21913       my_ac_save_LIBS=$LIBS
21914       LIBS="$winsock_LIB $LIBS"
21915       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
21916 printf %s "checking for gethostbyname in $winsock_LIB... " >&6; }
21917       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21918 /* end confdefs.h.  */
21919
21920
21921 #ifdef HAVE_WINDOWS_H
21922 #ifndef WIN32_LEAN_AND_MEAN
21923 #define WIN32_LEAN_AND_MEAN
21924 #endif
21925 #include <windows.h>
21926 #ifdef HAVE_WINSOCK2_H
21927 #include <winsock2.h>
21928 #endif
21929 #endif
21930
21931 int main (void)
21932 {
21933
21934           gethostbyname("www.dummysite.com");
21935
21936  ;
21937  return 0;
21938 }
21939
21940 _ACEOF
21941 if ac_fn_c_try_link "$LINENO"
21942 then :
21943
21944         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21945 printf "%s\n" "yes" >&6; }
21946         HAVE_GETHOSTBYNAME="1"
21947
21948 else $as_nop
21949
21950         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21951 printf "%s\n" "no" >&6; }
21952         winsock_LIB=""
21953         LIBS=$my_ac_save_LIBS
21954
21955 fi
21956 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21957     conftest$ac_exeext conftest.$ac_ext
21958     fi
21959   fi
21960 fi
21961
21962 if test "$HAVE_GETHOSTBYNAME" != "1"
21963 then
21964     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
21965 printf %s "checking for gethostbyname for Minix 3... " >&6; }
21966   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21967 /* end confdefs.h.  */
21968
21969
21970 /* Older Minix versions may need <net/gen/netdb.h> here instead */
21971 #include <netdb.h>
21972
21973 int main (void)
21974 {
21975
21976       gethostbyname("www.dummysite.com");
21977
21978  ;
21979  return 0;
21980 }
21981
21982 _ACEOF
21983 if ac_fn_c_try_link "$LINENO"
21984 then :
21985
21986     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21987 printf "%s\n" "yes" >&6; }
21988     HAVE_GETHOSTBYNAME="1"
21989
21990 else $as_nop
21991
21992     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21993 printf "%s\n" "no" >&6; }
21994
21995 fi
21996 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21997     conftest$ac_exeext conftest.$ac_ext
21998 fi
21999
22000 if test "$HAVE_GETHOSTBYNAME" != "1"
22001 then
22002     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
22003 printf %s "checking for gethostbyname for eCos... " >&6; }
22004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22005 /* end confdefs.h.  */
22006
22007
22008 #include <stdio.h>
22009 #include <netdb.h>
22010
22011 int main (void)
22012 {
22013
22014       gethostbyname("www.dummysite.com");
22015
22016  ;
22017  return 0;
22018 }
22019
22020 _ACEOF
22021 if ac_fn_c_try_link "$LINENO"
22022 then :
22023
22024     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22025 printf "%s\n" "yes" >&6; }
22026     HAVE_GETHOSTBYNAME="1"
22027
22028 else $as_nop
22029
22030     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22031 printf "%s\n" "no" >&6; }
22032
22033 fi
22034 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22035     conftest$ac_exeext conftest.$ac_ext
22036 fi
22037
22038 if test "$HAVE_GETHOSTBYNAME" != "1" -o "${with_amissl+set}" = set
22039 then
22040     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for AmigaOS bsdsocket.library" >&5
22041 printf %s "checking for gethostbyname for AmigaOS bsdsocket.library... " >&6; }
22042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22043 /* end confdefs.h.  */
22044
22045
22046   #include <proto/bsdsocket.h>
22047   struct Library *SocketBase = NULL;
22048
22049 int main (void)
22050 {
22051
22052       gethostbyname("www.dummysite.com");
22053
22054  ;
22055  return 0;
22056 }
22057
22058 _ACEOF
22059 if ac_fn_c_try_link "$LINENO"
22060 then :
22061
22062     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22063 printf "%s\n" "yes" >&6; }
22064     HAVE_GETHOSTBYNAME="1"
22065     HAVE_PROTO_BSDSOCKET_H="1"
22066
22067 printf "%s\n" "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h
22068
22069     HAVE_PROTO_BSDSOCKET_H=1
22070
22071
22072 else $as_nop
22073
22074     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22075 printf "%s\n" "no" >&6; }
22076
22077 fi
22078 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22079     conftest$ac_exeext conftest.$ac_ext
22080 fi
22081
22082 if test "$HAVE_GETHOSTBYNAME" != "1"
22083 then
22084     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
22085 printf %s "checking for gethostbyname in -lnetwork... " >&6; }
22086 if test ${ac_cv_lib_network_gethostbyname+y}
22087 then :
22088   printf %s "(cached) " >&6
22089 else $as_nop
22090   ac_check_lib_save_LIBS=$LIBS
22091 LIBS="-lnetwork  $LIBS"
22092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22093 /* end confdefs.h.  */
22094
22095
22096 #ifdef __cplusplus
22097 extern "C"
22098 #endif
22099 char gethostbyname ();
22100 int main (void)
22101 {
22102 return gethostbyname ();
22103  ;
22104  return 0;
22105 }
22106 _ACEOF
22107 if ac_fn_c_try_link "$LINENO"
22108 then :
22109   ac_cv_lib_network_gethostbyname=yes
22110 else $as_nop
22111   ac_cv_lib_network_gethostbyname=no
22112 fi
22113 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22114     conftest$ac_exeext conftest.$ac_ext
22115 LIBS=$ac_check_lib_save_LIBS
22116 fi
22117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
22118 printf "%s\n" "$ac_cv_lib_network_gethostbyname" >&6; }
22119 if test "x$ac_cv_lib_network_gethostbyname" = xyes
22120 then :
22121   HAVE_GETHOSTBYNAME="1"
22122                LIBS="-lnetwork $LIBS"
22123
22124 fi
22125
22126 fi
22127
22128 if test "$HAVE_GETHOSTBYNAME" != "1"
22129 then
22130     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
22131 printf %s "checking for gethostbyname in -lnet... " >&6; }
22132 if test ${ac_cv_lib_net_gethostbyname+y}
22133 then :
22134   printf %s "(cached) " >&6
22135 else $as_nop
22136   ac_check_lib_save_LIBS=$LIBS
22137 LIBS="-lnet  $LIBS"
22138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22139 /* end confdefs.h.  */
22140
22141
22142 #ifdef __cplusplus
22143 extern "C"
22144 #endif
22145 char gethostbyname ();
22146 int main (void)
22147 {
22148 return gethostbyname ();
22149  ;
22150  return 0;
22151 }
22152 _ACEOF
22153 if ac_fn_c_try_link "$LINENO"
22154 then :
22155   ac_cv_lib_net_gethostbyname=yes
22156 else $as_nop
22157   ac_cv_lib_net_gethostbyname=no
22158 fi
22159 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22160     conftest$ac_exeext conftest.$ac_ext
22161 LIBS=$ac_check_lib_save_LIBS
22162 fi
22163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
22164 printf "%s\n" "$ac_cv_lib_net_gethostbyname" >&6; }
22165 if test "x$ac_cv_lib_net_gethostbyname" = xyes
22166 then :
22167   HAVE_GETHOSTBYNAME="1"
22168                LIBS="-lnet $LIBS"
22169
22170 fi
22171
22172 fi
22173
22174
22175 if test "$HAVE_GETHOSTBYNAME" != "1"; then
22176   as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
22177 fi
22178
22179
22180 curl_includes_winsock2="\
22181 /* includes start */
22182 #ifdef HAVE_WINDOWS_H
22183 #  ifndef WIN32_LEAN_AND_MEAN
22184 #    define WIN32_LEAN_AND_MEAN
22185 #  endif
22186 #  include <windows.h>
22187 #  ifdef HAVE_WINSOCK2_H
22188 #    include <winsock2.h>
22189 #  endif
22190 #endif
22191 /* includes end */"
22192
22193   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
22194 printf %s "checking for windows.h... " >&6; }
22195 if test ${curl_cv_header_windows_h+y}
22196 then :
22197   printf %s "(cached) " >&6
22198 else $as_nop
22199
22200     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22201 /* end confdefs.h.  */
22202
22203
22204 #undef inline
22205 #ifndef WIN32_LEAN_AND_MEAN
22206 #define WIN32_LEAN_AND_MEAN
22207 #endif
22208 #include <windows.h>
22209
22210 int main (void)
22211 {
22212
22213 #if defined(__CYGWIN__) || defined(__CEGCC__)
22214         HAVE_WINDOWS_H shall not be defined.
22215 #else
22216         int dummy=2*WINVER;
22217 #endif
22218
22219  ;
22220  return 0;
22221 }
22222
22223 _ACEOF
22224 if ac_fn_c_try_compile "$LINENO"
22225 then :
22226
22227       curl_cv_header_windows_h="yes"
22228
22229 else $as_nop
22230
22231       curl_cv_header_windows_h="no"
22232
22233 fi
22234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22235
22236 fi
22237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
22238 printf "%s\n" "$curl_cv_header_windows_h" >&6; }
22239   case "$curl_cv_header_windows_h" in
22240     yes)
22241
22242 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
22243
22244       ;;
22245   esac
22246
22247
22248     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
22249 printf %s "checking for winsock2.h... " >&6; }
22250 if test ${curl_cv_header_winsock2_h+y}
22251 then :
22252   printf %s "(cached) " >&6
22253 else $as_nop
22254
22255     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22256 /* end confdefs.h.  */
22257
22258
22259 #undef inline
22260 #ifndef WIN32_LEAN_AND_MEAN
22261 #define WIN32_LEAN_AND_MEAN
22262 #endif
22263 #include <windows.h>
22264 #include <winsock2.h>
22265
22266 int main (void)
22267 {
22268
22269 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
22270         HAVE_WINSOCK2_H shall not be defined.
22271 #else
22272         int dummy=2*IPPROTO_ESP;
22273 #endif
22274
22275  ;
22276  return 0;
22277 }
22278
22279 _ACEOF
22280 if ac_fn_c_try_compile "$LINENO"
22281 then :
22282
22283       curl_cv_header_winsock2_h="yes"
22284
22285 else $as_nop
22286
22287       curl_cv_header_winsock2_h="no"
22288
22289 fi
22290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22291
22292 fi
22293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
22294 printf "%s\n" "$curl_cv_header_winsock2_h" >&6; }
22295   case "$curl_cv_header_winsock2_h" in
22296     yes)
22297
22298 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
22299
22300       ;;
22301   esac
22302
22303
22304
22305 curl_includes_bsdsocket="\
22306 /* includes start */
22307 #ifdef HAVE_PROTO_BSDSOCKET_H
22308 #  include <proto/bsdsocket.h>
22309   struct Library *SocketBase = NULL;
22310 #endif
22311 /* includes end */"
22312   ac_fn_c_check_header_compile "$LINENO" "proto/bsdsocket.h" "ac_cv_header_proto_bsdsocket_h" "      $curl_includes_bsdsocket
22313 "
22314 if test "x$ac_cv_header_proto_bsdsocket_h" = xyes
22315 then :
22316   printf "%s\n" "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h
22317
22318 fi
22319
22320
22321
22322       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
22323 printf %s "checking for connect in libraries... " >&6; }
22324   tst_connect_save_LIBS="$LIBS"
22325   tst_connect_need_LIBS="unknown"
22326   for tst_lib in '' '-lsocket' ; do
22327     if test "$tst_connect_need_LIBS" = "unknown"; then
22328       LIBS="$tst_lib $tst_connect_save_LIBS"
22329       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22330 /* end confdefs.h.  */
22331
22332
22333           $curl_includes_winsock2
22334           $curl_includes_bsdsocket
22335           #if !defined(HAVE_WINDOWS_H) && !defined(HAVE_PROTO_BSDSOCKET_H)
22336             int connect(int, void*, int);
22337           #endif
22338
22339 int main (void)
22340 {
22341
22342           if(0 != connect(0, 0, 0))
22343             return 1;
22344
22345  ;
22346  return 0;
22347 }
22348
22349 _ACEOF
22350 if ac_fn_c_try_link "$LINENO"
22351 then :
22352
22353         tst_connect_need_LIBS="$tst_lib"
22354
22355 fi
22356 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22357     conftest$ac_exeext conftest.$ac_ext
22358     fi
22359   done
22360   LIBS="$tst_connect_save_LIBS"
22361   #
22362   case X-"$tst_connect_need_LIBS" in
22363     X-unknown)
22364       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
22365 printf "%s\n" "cannot find connect" >&6; }
22366       as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
22367       ;;
22368     X-)
22369       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22370 printf "%s\n" "yes" >&6; }
22371       ;;
22372     *)
22373       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
22374 printf "%s\n" "$tst_connect_need_LIBS" >&6; }
22375       LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
22376       ;;
22377   esac
22378
22379
22380 CURL_NETWORK_LIBS=$LIBS
22381
22382
22383   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
22384 if test "x$ac_cv_header_sys_types_h" = xyes
22385 then :
22386   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
22387
22388 fi
22389 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
22390 if test "x$ac_cv_header_sys_time_h" = xyes
22391 then :
22392   printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
22393
22394 fi
22395
22396   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
22397 printf %s "checking for monotonic clock_gettime... " >&6; }
22398   #
22399   if test "x$dontwant_rt" = "xno" ; then
22400     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22401 /* end confdefs.h.  */
22402
22403
22404 #ifdef HAVE_SYS_TYPES_H
22405 #include <sys/types.h>
22406 #endif
22407 #ifdef HAVE_SYS_TIME_H
22408 #include <sys/time.h>
22409 #endif
22410 #include <time.h>
22411
22412 int main (void)
22413 {
22414
22415         struct timespec ts;
22416         (void)clock_gettime(CLOCK_MONOTONIC, &ts);
22417
22418  ;
22419  return 0;
22420 }
22421
22422 _ACEOF
22423 if ac_fn_c_try_compile "$LINENO"
22424 then :
22425
22426       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22427 printf "%s\n" "yes" >&6; }
22428       curl_func_clock_gettime="yes"
22429
22430 else $as_nop
22431
22432       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22433 printf "%s\n" "no" >&6; }
22434       curl_func_clock_gettime="no"
22435
22436 fi
22437 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22438   fi
22439
22440
22441     #
22442   if test "$curl_func_clock_gettime" = "yes"; then
22443     #
22444     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
22445 printf %s "checking for clock_gettime in libraries... " >&6; }
22446     #
22447     curl_cv_save_LIBS="$LIBS"
22448     curl_cv_gclk_LIBS="unknown"
22449     #
22450     for x_xlibs in '' '-lrt' '-lposix4' ; do
22451       if test "$curl_cv_gclk_LIBS" = "unknown"; then
22452         if test -z "$x_xlibs"; then
22453           LIBS="$curl_cv_save_LIBS"
22454         else
22455           LIBS="$x_xlibs $curl_cv_save_LIBS"
22456         fi
22457         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22458 /* end confdefs.h.  */
22459
22460
22461 #ifdef HAVE_SYS_TYPES_H
22462 #include <sys/types.h>
22463 #endif
22464 #ifdef HAVE_SYS_TIME_H
22465 #include <sys/time.h>
22466 #endif
22467 #include <time.h>
22468
22469 int main (void)
22470 {
22471
22472             struct timespec ts;
22473             (void)clock_gettime(CLOCK_MONOTONIC, &ts);
22474
22475  ;
22476  return 0;
22477 }
22478
22479 _ACEOF
22480 if ac_fn_c_try_link "$LINENO"
22481 then :
22482
22483           curl_cv_gclk_LIBS="$x_xlibs"
22484
22485 fi
22486 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22487     conftest$ac_exeext conftest.$ac_ext
22488       fi
22489     done
22490     #
22491     LIBS="$curl_cv_save_LIBS"
22492     #
22493     case X-"$curl_cv_gclk_LIBS" in
22494       X-unknown)
22495         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
22496 printf "%s\n" "cannot find clock_gettime" >&6; }
22497         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
22498 printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
22499         curl_func_clock_gettime="no"
22500         ;;
22501       X-)
22502         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
22503 printf "%s\n" "no additional lib required" >&6; }
22504         curl_func_clock_gettime="yes"
22505         ;;
22506       *)
22507         if test -z "$curl_cv_save_LIBS"; then
22508           LIBS="$curl_cv_gclk_LIBS"
22509         else
22510           LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
22511         fi
22512         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
22513 printf "%s\n" "$curl_cv_gclk_LIBS" >&6; }
22514         curl_func_clock_gettime="yes"
22515         ;;
22516     esac
22517     #
22518         if test "x$cross_compiling" != "xyes" &&
22519       test "$curl_func_clock_gettime" = "yes"; then
22520       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
22521 printf %s "checking if monotonic clock_gettime works... " >&6; }
22522
22523    case $host_os in
22524      darwin*) library_path_var=DYLD_LIBRARY_PATH ;;
22525      *)       library_path_var=LD_LIBRARY_PATH ;;
22526    esac
22527
22528    eval "old=$$library_path_var"
22529    eval "$library_path_var=\$CURL_LIBRARY_PATH:\$old"
22530
22531    eval "export $library_path_var"
22532    if test "$cross_compiling" = yes
22533 then :
22534   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22535 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22536 as_fn_error $? "cannot run test program while cross compiling
22537 See \`config.log' for more details" "$LINENO" 5; }
22538 else $as_nop
22539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22540 /* end confdefs.h.  */
22541
22542
22543 #ifdef HAVE_STDLIB_H
22544 #include <stdlib.h>
22545 #endif
22546 #ifdef HAVE_SYS_TYPES_H
22547 #include <sys/types.h>
22548 #endif
22549 #ifdef HAVE_SYS_TIME_H
22550 #include <sys/time.h>
22551 #endif
22552 #include <time.h>
22553
22554 int main (void)
22555 {
22556
22557           struct timespec ts;
22558           if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
22559             exit(0);
22560           else
22561             exit(1);
22562
22563  ;
22564  return 0;
22565 }
22566
22567 _ACEOF
22568 if ac_fn_c_try_run "$LINENO"
22569 then :
22570   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22571 printf "%s\n" "yes" >&6; }
22572
22573 else $as_nop
22574   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22575 printf "%s\n" "no" >&6; }
22576         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
22577 printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
22578         curl_func_clock_gettime="no"
22579         LIBS="$curl_cv_save_LIBS"
22580
22581 fi
22582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22583   conftest.$ac_objext conftest.beam conftest.$ac_ext
22584 fi
22585
22586    eval "$library_path_var=\$old" # restore
22587
22588     fi
22589     #
22590     case "$curl_func_clock_gettime" in
22591       yes)
22592
22593 printf "%s\n" "#define HAVE_CLOCK_GETTIME_MONOTONIC 1" >>confdefs.h
22594
22595         ;;
22596     esac
22597     #
22598   fi
22599   #
22600
22601
22602 CURL_NETWORK_AND_TIME_LIBS=$LIBS
22603
22604
22605
22606 clean_CPPFLAGS=$CPPFLAGS
22607 clean_LDFLAGS=$LDFLAGS
22608 clean_LIBS=$LIBS
22609 ZLIB_LIBS=""
22610
22611 # Check whether --with-zlib was given.
22612 if test ${with_zlib+y}
22613 then :
22614   withval=$with_zlib; OPT_ZLIB="$withval"
22615 fi
22616
22617
22618 if test "$OPT_ZLIB" = "no" ; then
22619     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
22620 printf "%s\n" "$as_me: WARNING: zlib disabled" >&2;}
22621 else
22622   if test "$OPT_ZLIB" = "yes" ; then
22623     OPT_ZLIB=""
22624   fi
22625
22626   if test -z "$OPT_ZLIB" ; then
22627
22628     if test -n "$PKG_CONFIG"; then
22629       PKGCONFIG="$PKG_CONFIG"
22630     else
22631       if test -n "$ac_tool_prefix"; then
22632   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22633 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22635 printf %s "checking for $ac_word... " >&6; }
22636 if test ${ac_cv_path_PKGCONFIG+y}
22637 then :
22638   printf %s "(cached) " >&6
22639 else $as_nop
22640   case $PKGCONFIG in
22641   [\\/]* | ?:[\\/]*)
22642   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22643   ;;
22644   *)
22645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22646 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22647 for as_dir in $as_dummy
22648 do
22649   IFS=$as_save_IFS
22650   case $as_dir in #(((
22651     '') as_dir=./ ;;
22652     */) ;;
22653     *) as_dir=$as_dir/ ;;
22654   esac
22655     for ac_exec_ext in '' $ac_executable_extensions; do
22656   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22657     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
22658     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22659     break 2
22660   fi
22661 done
22662   done
22663 IFS=$as_save_IFS
22664
22665   ;;
22666 esac
22667 fi
22668 PKGCONFIG=$ac_cv_path_PKGCONFIG
22669 if test -n "$PKGCONFIG"; then
22670   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22671 printf "%s\n" "$PKGCONFIG" >&6; }
22672 else
22673   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22674 printf "%s\n" "no" >&6; }
22675 fi
22676
22677
22678 fi
22679 if test -z "$ac_cv_path_PKGCONFIG"; then
22680   ac_pt_PKGCONFIG=$PKGCONFIG
22681   # Extract the first word of "pkg-config", so it can be a program name with args.
22682 set dummy pkg-config; ac_word=$2
22683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22684 printf %s "checking for $ac_word... " >&6; }
22685 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
22686 then :
22687   printf %s "(cached) " >&6
22688 else $as_nop
22689   case $ac_pt_PKGCONFIG in
22690   [\\/]* | ?:[\\/]*)
22691   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22692   ;;
22693   *)
22694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22695 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22696 for as_dir in $as_dummy
22697 do
22698   IFS=$as_save_IFS
22699   case $as_dir in #(((
22700     '') as_dir=./ ;;
22701     */) ;;
22702     *) as_dir=$as_dir/ ;;
22703   esac
22704     for ac_exec_ext in '' $ac_executable_extensions; do
22705   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22706     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
22707     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22708     break 2
22709   fi
22710 done
22711   done
22712 IFS=$as_save_IFS
22713
22714   ;;
22715 esac
22716 fi
22717 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22718 if test -n "$ac_pt_PKGCONFIG"; then
22719   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22720 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
22721 else
22722   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22723 printf "%s\n" "no" >&6; }
22724 fi
22725
22726   if test "x$ac_pt_PKGCONFIG" = x; then
22727     PKGCONFIG="no"
22728   else
22729     case $cross_compiling:$ac_tool_warned in
22730 yes:)
22731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22732 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22733 ac_tool_warned=yes ;;
22734 esac
22735     PKGCONFIG=$ac_pt_PKGCONFIG
22736   fi
22737 else
22738   PKGCONFIG="$ac_cv_path_PKGCONFIG"
22739 fi
22740
22741     fi
22742
22743     if test "x$PKGCONFIG" != "xno"; then
22744       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
22745 printf %s "checking for zlib options with pkg-config... " >&6; }
22746             itexists=`
22747     if test -n ""; then
22748       PKG_CONFIG_LIBDIR=""
22749       export PKG_CONFIG_LIBDIR
22750     fi
22751          $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
22752
22753       if test -z "$itexists"; then
22754                         PKGCONFIG="no"
22755         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22756 printf "%s\n" "no" >&6; }
22757       else
22758         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
22759 printf "%s\n" "found" >&6; }
22760       fi
22761     fi
22762
22763
22764     if test "$PKGCONFIG" != "no" ; then
22765       LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
22766       LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
22767       CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`"
22768       OPT_ZLIB=""
22769       HAVE_LIBZ="1"
22770     fi
22771
22772     if test -z "$HAVE_LIBZ"; then
22773
22774
22775       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
22776 printf %s "checking for inflateEnd in -lz... " >&6; }
22777 if test ${ac_cv_lib_z_inflateEnd+y}
22778 then :
22779   printf %s "(cached) " >&6
22780 else $as_nop
22781   ac_check_lib_save_LIBS=$LIBS
22782 LIBS="-lz  $LIBS"
22783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22784 /* end confdefs.h.  */
22785
22786
22787 #ifdef __cplusplus
22788 extern "C"
22789 #endif
22790 char inflateEnd ();
22791 int main (void)
22792 {
22793 return inflateEnd ();
22794  ;
22795  return 0;
22796 }
22797 _ACEOF
22798 if ac_fn_c_try_link "$LINENO"
22799 then :
22800   ac_cv_lib_z_inflateEnd=yes
22801 else $as_nop
22802   ac_cv_lib_z_inflateEnd=no
22803 fi
22804 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22805     conftest$ac_exeext conftest.$ac_ext
22806 LIBS=$ac_check_lib_save_LIBS
22807 fi
22808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
22809 printf "%s\n" "$ac_cv_lib_z_inflateEnd" >&6; }
22810 if test "x$ac_cv_lib_z_inflateEnd" = xyes
22811 then :
22812                      HAVE_LIBZ="1"
22813                     LIBS="-lz $LIBS"
22814 else $as_nop
22815                      OPT_ZLIB="/usr/local"
22816 fi
22817
22818     fi
22819   fi
22820
22821     if test -n "$OPT_ZLIB"; then
22822      CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
22823      LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
22824   fi
22825
22826   ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
22827 if test "x$ac_cv_header_zlib_h" = xyes
22828 then :
22829
22830         HAVE_ZLIB_H="1"
22831         if test "$HAVE_LIBZ" != "1"; then
22832       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
22833 printf %s "checking for gzread in -lz... " >&6; }
22834 if test ${ac_cv_lib_z_gzread+y}
22835 then :
22836   printf %s "(cached) " >&6
22837 else $as_nop
22838   ac_check_lib_save_LIBS=$LIBS
22839 LIBS="-lz  $LIBS"
22840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22841 /* end confdefs.h.  */
22842
22843
22844 #ifdef __cplusplus
22845 extern "C"
22846 #endif
22847 char gzread ();
22848 int main (void)
22849 {
22850 return gzread ();
22851  ;
22852  return 0;
22853 }
22854 _ACEOF
22855 if ac_fn_c_try_link "$LINENO"
22856 then :
22857   ac_cv_lib_z_gzread=yes
22858 else $as_nop
22859   ac_cv_lib_z_gzread=no
22860 fi
22861 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22862     conftest$ac_exeext conftest.$ac_ext
22863 LIBS=$ac_check_lib_save_LIBS
22864 fi
22865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
22866 printf "%s\n" "$ac_cv_lib_z_gzread" >&6; }
22867 if test "x$ac_cv_lib_z_gzread" = xyes
22868 then :
22869
22870                                       HAVE_LIBZ="1"
22871                    LIBS="-lz $LIBS"
22872
22873 else $as_nop
22874    CPPFLAGS=$clean_CPPFLAGS
22875                    LDFLAGS=$clean_LDFLAGS
22876 fi
22877
22878     fi
22879
22880 else $as_nop
22881
22882             CPPFLAGS=$clean_CPPFLAGS
22883       LDFLAGS=$clean_LDFLAGS
22884
22885 fi
22886
22887
22888   if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
22889   then
22890     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
22891 printf "%s\n" "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
22892     HAVE_LIBZ=""
22893     CPPFLAGS=$clean_CPPFLAGS
22894     LDFLAGS=$clean_LDFLAGS
22895     LIBS=$clean_LIBS
22896   elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
22897   then
22898     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
22899 printf "%s\n" "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
22900     CPPFLAGS=$clean_CPPFLAGS
22901     LDFLAGS=$clean_LDFLAGS
22902     LIBS=$clean_LIBS
22903   elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
22904   then
22905
22906
22907 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
22908
22909
22910 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
22911
22912
22913     ZLIB_LIBS="-lz"
22914     LIBS="-lz $clean_LIBS"
22915
22916         AMFIXLIB="1"
22917     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
22918 printf "%s\n" "$as_me: found both libz and libz.h header" >&6;}
22919     curl_zlib_msg="enabled"
22920   fi
22921 fi
22922
22923  if test x"$AMFIXLIB" = x1; then
22924   HAVE_LIBZ_TRUE=
22925   HAVE_LIBZ_FALSE='#'
22926 else
22927   HAVE_LIBZ_TRUE='#'
22928   HAVE_LIBZ_FALSE=
22929 fi
22930
22931
22932
22933
22934
22935 OPT_BROTLI=off
22936
22937 # Check whether --with-brotli was given.
22938 if test ${with_brotli+y}
22939 then :
22940   withval=$with_brotli; OPT_BROTLI=$withval
22941 fi
22942
22943
22944 if test X"$OPT_BROTLI" != Xno; then
22945     CLEANLDFLAGS="$LDFLAGS"
22946   CLEANCPPFLAGS="$CPPFLAGS"
22947   CLEANLIBS="$LIBS"
22948
22949   case "$OPT_BROTLI" in
22950   yes)
22951
22952     if test -n "$PKG_CONFIG"; then
22953       PKGCONFIG="$PKG_CONFIG"
22954     else
22955       if test -n "$ac_tool_prefix"; then
22956   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22957 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22959 printf %s "checking for $ac_word... " >&6; }
22960 if test ${ac_cv_path_PKGCONFIG+y}
22961 then :
22962   printf %s "(cached) " >&6
22963 else $as_nop
22964   case $PKGCONFIG in
22965   [\\/]* | ?:[\\/]*)
22966   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22967   ;;
22968   *)
22969   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22970 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22971 for as_dir in $as_dummy
22972 do
22973   IFS=$as_save_IFS
22974   case $as_dir in #(((
22975     '') as_dir=./ ;;
22976     */) ;;
22977     *) as_dir=$as_dir/ ;;
22978   esac
22979     for ac_exec_ext in '' $ac_executable_extensions; do
22980   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22981     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
22982     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22983     break 2
22984   fi
22985 done
22986   done
22987 IFS=$as_save_IFS
22988
22989   ;;
22990 esac
22991 fi
22992 PKGCONFIG=$ac_cv_path_PKGCONFIG
22993 if test -n "$PKGCONFIG"; then
22994   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22995 printf "%s\n" "$PKGCONFIG" >&6; }
22996 else
22997   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22998 printf "%s\n" "no" >&6; }
22999 fi
23000
23001
23002 fi
23003 if test -z "$ac_cv_path_PKGCONFIG"; then
23004   ac_pt_PKGCONFIG=$PKGCONFIG
23005   # Extract the first word of "pkg-config", so it can be a program name with args.
23006 set dummy pkg-config; ac_word=$2
23007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23008 printf %s "checking for $ac_word... " >&6; }
23009 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
23010 then :
23011   printf %s "(cached) " >&6
23012 else $as_nop
23013   case $ac_pt_PKGCONFIG in
23014   [\\/]* | ?:[\\/]*)
23015   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23016   ;;
23017   *)
23018   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23019 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23020 for as_dir in $as_dummy
23021 do
23022   IFS=$as_save_IFS
23023   case $as_dir in #(((
23024     '') as_dir=./ ;;
23025     */) ;;
23026     *) as_dir=$as_dir/ ;;
23027   esac
23028     for ac_exec_ext in '' $ac_executable_extensions; do
23029   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23030     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23031     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23032     break 2
23033   fi
23034 done
23035   done
23036 IFS=$as_save_IFS
23037
23038   ;;
23039 esac
23040 fi
23041 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23042 if test -n "$ac_pt_PKGCONFIG"; then
23043   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23044 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
23045 else
23046   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23047 printf "%s\n" "no" >&6; }
23048 fi
23049
23050   if test "x$ac_pt_PKGCONFIG" = x; then
23051     PKGCONFIG="no"
23052   else
23053     case $cross_compiling:$ac_tool_warned in
23054 yes:)
23055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23056 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23057 ac_tool_warned=yes ;;
23058 esac
23059     PKGCONFIG=$ac_pt_PKGCONFIG
23060   fi
23061 else
23062   PKGCONFIG="$ac_cv_path_PKGCONFIG"
23063 fi
23064
23065     fi
23066
23067     if test "x$PKGCONFIG" != "xno"; then
23068       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5
23069 printf %s "checking for libbrotlidec options with pkg-config... " >&6; }
23070             itexists=`
23071     if test -n ""; then
23072       PKG_CONFIG_LIBDIR=""
23073       export PKG_CONFIG_LIBDIR
23074     fi
23075          $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1`
23076
23077       if test -z "$itexists"; then
23078                         PKGCONFIG="no"
23079         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23080 printf "%s\n" "no" >&6; }
23081       else
23082         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
23083 printf "%s\n" "found" >&6; }
23084       fi
23085     fi
23086
23087
23088     if test "$PKGCONFIG" != "no" ; then
23089       LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
23090       LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
23091       CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
23092       version=`$PKGCONFIG --modversion libbrotlidec`
23093       DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/^-L//'`
23094     fi
23095
23096     ;;
23097   off)
23098         ;;
23099   *)
23100         PREFIX_BROTLI=$OPT_BROTLI
23101     ;;
23102   esac
23103
23104     if test -n "$PREFIX_BROTLI"; then
23105     LIB_BROTLI="-lbrotlidec"
23106     LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
23107     CPP_BROTLI=-I${PREFIX_BROTLI}/include
23108     DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
23109   fi
23110
23111   LDFLAGS="$LDFLAGS $LD_BROTLI"
23112   CPPFLAGS="$CPPFLAGS $CPP_BROTLI"
23113   LIBS="$LIB_BROTLI $LIBS"
23114
23115   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5
23116 printf %s "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; }
23117 if test ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+y}
23118 then :
23119   printf %s "(cached) " >&6
23120 else $as_nop
23121   ac_check_lib_save_LIBS=$LIBS
23122 LIBS="-lbrotlidec  $LIBS"
23123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23124 /* end confdefs.h.  */
23125
23126
23127 #ifdef __cplusplus
23128 extern "C"
23129 #endif
23130 char BrotliDecoderDecompress ();
23131 int main (void)
23132 {
23133 return BrotliDecoderDecompress ();
23134  ;
23135  return 0;
23136 }
23137 _ACEOF
23138 if ac_fn_c_try_link "$LINENO"
23139 then :
23140   ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes
23141 else $as_nop
23142   ac_cv_lib_brotlidec_BrotliDecoderDecompress=no
23143 fi
23144 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23145     conftest$ac_exeext conftest.$ac_ext
23146 LIBS=$ac_check_lib_save_LIBS
23147 fi
23148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5
23149 printf "%s\n" "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; }
23150 if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes
23151 then :
23152   printf "%s\n" "#define HAVE_LIBBROTLIDEC 1" >>confdefs.h
23153
23154   LIBS="-lbrotlidec $LIBS"
23155
23156 fi
23157
23158
23159          for ac_header in brotli/decode.h
23160 do :
23161   ac_fn_c_check_header_compile "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default"
23162 if test "x$ac_cv_header_brotli_decode_h" = xyes
23163 then :
23164   printf "%s\n" "#define HAVE_BROTLI_DECODE_H 1" >>confdefs.h
23165  curl_brotli_msg="enabled (libbrotlidec)"
23166     HAVE_BROTLI=1
23167
23168 printf "%s\n" "#define HAVE_BROTLI 1" >>confdefs.h
23169
23170     HAVE_BROTLI=1
23171
23172
23173 fi
23174
23175 done
23176
23177   if test X"$OPT_BROTLI" != Xoff &&
23178      test "$HAVE_BROTLI" != "1"; then
23179     as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5
23180   fi
23181
23182   if test "$HAVE_BROTLI" = "1"; then
23183     if test -n "$DIR_BROTLI"; then
23184
23185        if test "x$cross_compiling" != "xyes"; then
23186          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_BROTLI"
23187          export CURL_LIBRARY_PATH
23188          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&5
23189 printf "%s\n" "$as_me: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&6;}
23190        fi
23191     fi
23192   else
23193         LDFLAGS=$CLEANLDFLAGS
23194     CPPFLAGS=$CLEANCPPFLAGS
23195     LIBS=$CLEANLIBS
23196   fi
23197 fi
23198
23199
23200 OPT_ZSTD=off
23201
23202 # Check whether --with-zstd was given.
23203 if test ${with_zstd+y}
23204 then :
23205   withval=$with_zstd; OPT_ZSTD=$withval
23206 fi
23207
23208
23209 if test X"$OPT_ZSTD" != Xno; then
23210     CLEANLDFLAGS="$LDFLAGS"
23211   CLEANCPPFLAGS="$CPPFLAGS"
23212   CLEANLIBS="$LIBS"
23213
23214   case "$OPT_ZSTD" in
23215   yes)
23216
23217     if test -n "$PKG_CONFIG"; then
23218       PKGCONFIG="$PKG_CONFIG"
23219     else
23220       if test -n "$ac_tool_prefix"; then
23221   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23222 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23224 printf %s "checking for $ac_word... " >&6; }
23225 if test ${ac_cv_path_PKGCONFIG+y}
23226 then :
23227   printf %s "(cached) " >&6
23228 else $as_nop
23229   case $PKGCONFIG in
23230   [\\/]* | ?:[\\/]*)
23231   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23232   ;;
23233   *)
23234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23235 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23236 for as_dir in $as_dummy
23237 do
23238   IFS=$as_save_IFS
23239   case $as_dir in #(((
23240     '') as_dir=./ ;;
23241     */) ;;
23242     *) as_dir=$as_dir/ ;;
23243   esac
23244     for ac_exec_ext in '' $ac_executable_extensions; do
23245   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23246     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23247     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23248     break 2
23249   fi
23250 done
23251   done
23252 IFS=$as_save_IFS
23253
23254   ;;
23255 esac
23256 fi
23257 PKGCONFIG=$ac_cv_path_PKGCONFIG
23258 if test -n "$PKGCONFIG"; then
23259   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23260 printf "%s\n" "$PKGCONFIG" >&6; }
23261 else
23262   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23263 printf "%s\n" "no" >&6; }
23264 fi
23265
23266
23267 fi
23268 if test -z "$ac_cv_path_PKGCONFIG"; then
23269   ac_pt_PKGCONFIG=$PKGCONFIG
23270   # Extract the first word of "pkg-config", so it can be a program name with args.
23271 set dummy pkg-config; ac_word=$2
23272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23273 printf %s "checking for $ac_word... " >&6; }
23274 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
23275 then :
23276   printf %s "(cached) " >&6
23277 else $as_nop
23278   case $ac_pt_PKGCONFIG in
23279   [\\/]* | ?:[\\/]*)
23280   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23281   ;;
23282   *)
23283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23284 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23285 for as_dir in $as_dummy
23286 do
23287   IFS=$as_save_IFS
23288   case $as_dir in #(((
23289     '') as_dir=./ ;;
23290     */) ;;
23291     *) as_dir=$as_dir/ ;;
23292   esac
23293     for ac_exec_ext in '' $ac_executable_extensions; do
23294   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23295     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23296     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23297     break 2
23298   fi
23299 done
23300   done
23301 IFS=$as_save_IFS
23302
23303   ;;
23304 esac
23305 fi
23306 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23307 if test -n "$ac_pt_PKGCONFIG"; then
23308   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23309 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
23310 else
23311   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23312 printf "%s\n" "no" >&6; }
23313 fi
23314
23315   if test "x$ac_pt_PKGCONFIG" = x; then
23316     PKGCONFIG="no"
23317   else
23318     case $cross_compiling:$ac_tool_warned in
23319 yes:)
23320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23321 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23322 ac_tool_warned=yes ;;
23323 esac
23324     PKGCONFIG=$ac_pt_PKGCONFIG
23325   fi
23326 else
23327   PKGCONFIG="$ac_cv_path_PKGCONFIG"
23328 fi
23329
23330     fi
23331
23332     if test "x$PKGCONFIG" != "xno"; then
23333       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libzstd options with pkg-config" >&5
23334 printf %s "checking for libzstd options with pkg-config... " >&6; }
23335             itexists=`
23336     if test -n ""; then
23337       PKG_CONFIG_LIBDIR=""
23338       export PKG_CONFIG_LIBDIR
23339     fi
23340          $PKGCONFIG --exists libzstd >/dev/null 2>&1 && echo 1`
23341
23342       if test -z "$itexists"; then
23343                         PKGCONFIG="no"
23344         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23345 printf "%s\n" "no" >&6; }
23346       else
23347         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
23348 printf "%s\n" "found" >&6; }
23349       fi
23350     fi
23351
23352
23353     if test "$PKGCONFIG" != "no" ; then
23354       LIB_ZSTD=`$PKGCONFIG --libs-only-l libzstd`
23355       LD_ZSTD=`$PKGCONFIG --libs-only-L libzstd`
23356       CPP_ZSTD=`$PKGCONFIG --cflags-only-I libzstd`
23357       version=`$PKGCONFIG --modversion libzstd`
23358       DIR_ZSTD=`echo $LD_ZSTD | $SED -e 's/-L//'`
23359     fi
23360
23361     ;;
23362   off)
23363         ;;
23364   *)
23365         PREFIX_ZSTD=$OPT_ZSTD
23366     ;;
23367   esac
23368
23369     if test -n "$PREFIX_ZSTD"; then
23370     LIB_ZSTD="-lzstd"
23371     LD_ZSTD=-L${PREFIX_ZSTD}/lib$libsuff
23372     CPP_ZSTD=-I${PREFIX_ZSTD}/include
23373     DIR_ZSTD=${PREFIX_ZSTD}/lib$libsuff
23374   fi
23375
23376   LDFLAGS="$LDFLAGS $LD_ZSTD"
23377   CPPFLAGS="$CPPFLAGS $CPP_ZSTD"
23378   LIBS="$LIB_ZSTD $LIBS"
23379
23380   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_createDStream in -lzstd" >&5
23381 printf %s "checking for ZSTD_createDStream in -lzstd... " >&6; }
23382 if test ${ac_cv_lib_zstd_ZSTD_createDStream+y}
23383 then :
23384   printf %s "(cached) " >&6
23385 else $as_nop
23386   ac_check_lib_save_LIBS=$LIBS
23387 LIBS="-lzstd  $LIBS"
23388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23389 /* end confdefs.h.  */
23390
23391
23392 #ifdef __cplusplus
23393 extern "C"
23394 #endif
23395 char ZSTD_createDStream ();
23396 int main (void)
23397 {
23398 return ZSTD_createDStream ();
23399  ;
23400  return 0;
23401 }
23402 _ACEOF
23403 if ac_fn_c_try_link "$LINENO"
23404 then :
23405   ac_cv_lib_zstd_ZSTD_createDStream=yes
23406 else $as_nop
23407   ac_cv_lib_zstd_ZSTD_createDStream=no
23408 fi
23409 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23410     conftest$ac_exeext conftest.$ac_ext
23411 LIBS=$ac_check_lib_save_LIBS
23412 fi
23413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_createDStream" >&5
23414 printf "%s\n" "$ac_cv_lib_zstd_ZSTD_createDStream" >&6; }
23415 if test "x$ac_cv_lib_zstd_ZSTD_createDStream" = xyes
23416 then :
23417   printf "%s\n" "#define HAVE_LIBZSTD 1" >>confdefs.h
23418
23419   LIBS="-lzstd $LIBS"
23420
23421 fi
23422
23423
23424          for ac_header in zstd.h
23425 do :
23426   ac_fn_c_check_header_compile "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"
23427 if test "x$ac_cv_header_zstd_h" = xyes
23428 then :
23429   printf "%s\n" "#define HAVE_ZSTD_H 1" >>confdefs.h
23430  curl_zstd_msg="enabled (libzstd)"
23431     HAVE_ZSTD=1
23432
23433 printf "%s\n" "#define HAVE_ZSTD 1" >>confdefs.h
23434
23435     HAVE_ZSTD=1
23436
23437
23438 fi
23439
23440 done
23441
23442   if test X"$OPT_ZSTD" != Xoff &&
23443      test "$HAVE_ZSTD" != "1"; then
23444     as_fn_error $? "libzstd was not found where specified!" "$LINENO" 5
23445   fi
23446
23447   if test "$HAVE_ZSTD" = "1"; then
23448     if test -n "$DIR_ZSTD"; then
23449
23450        if test "x$cross_compiling" != "xyes"; then
23451          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_ZSTD"
23452          export CURL_LIBRARY_PATH
23453          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_ZSTD to CURL_LIBRARY_PATH" >&5
23454 printf "%s\n" "$as_me: Added $DIR_ZSTD to CURL_LIBRARY_PATH" >&6;}
23455        fi
23456     fi
23457   else
23458         LDFLAGS=$CLEANLDFLAGS
23459     CPPFLAGS=$CLEANCPPFLAGS
23460     LIBS=$CLEANLIBS
23461   fi
23462 fi
23463
23464
23465 LDAPLIBNAME=""
23466
23467 # Check whether --with-ldap-lib was given.
23468 if test ${with_ldap_lib+y}
23469 then :
23470   withval=$with_ldap_lib; LDAPLIBNAME="$withval"
23471 fi
23472
23473
23474 LBERLIBNAME=""
23475
23476 # Check whether --with-lber-lib was given.
23477 if test ${with_lber_lib+y}
23478 then :
23479   withval=$with_lber_lib; LBERLIBNAME="$withval"
23480 fi
23481
23482
23483 if test x$CURL_DISABLE_LDAP != x1 ; then
23484
23485
23486     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
23487 printf %s "checking for lber.h... " >&6; }
23488 if test ${curl_cv_header_lber_h+y}
23489 then :
23490   printf %s "(cached) " >&6
23491 else $as_nop
23492
23493     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23494 /* end confdefs.h.  */
23495
23496
23497 #undef inline
23498 #ifdef HAVE_WINDOWS_H
23499 #ifndef WIN32_LEAN_AND_MEAN
23500 #define WIN32_LEAN_AND_MEAN
23501 #endif
23502 #include <windows.h>
23503 #else
23504 #ifdef HAVE_SYS_TYPES_H
23505 #include <sys/types.h>
23506 #endif
23507 #endif
23508 #ifndef NULL
23509 #define NULL (void *)0
23510 #endif
23511 #include <lber.h>
23512
23513 int main (void)
23514 {
23515
23516         BerValue *bvp = NULL;
23517         BerElement *bep = ber_init(bvp);
23518         ber_free(bep, 1);
23519
23520  ;
23521  return 0;
23522 }
23523
23524 _ACEOF
23525 if ac_fn_c_try_compile "$LINENO"
23526 then :
23527
23528       curl_cv_header_lber_h="yes"
23529
23530 else $as_nop
23531
23532       curl_cv_header_lber_h="no"
23533
23534 fi
23535 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23536
23537 fi
23538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
23539 printf "%s\n" "$curl_cv_header_lber_h" >&6; }
23540   if test "$curl_cv_header_lber_h" = "yes"; then
23541
23542 printf "%s\n" "#define HAVE_LBER_H 1" >>confdefs.h
23543
23544     #
23545     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23546 /* end confdefs.h.  */
23547
23548
23549 #undef inline
23550 #ifdef HAVE_WINDOWS_H
23551 #ifndef WIN32_LEAN_AND_MEAN
23552 #define WIN32_LEAN_AND_MEAN
23553 #endif
23554 #include <windows.h>
23555 #else
23556 #ifdef HAVE_SYS_TYPES_H
23557 #include <sys/types.h>
23558 #endif
23559 #endif
23560 #ifndef NULL
23561 #define NULL (void *)0
23562 #endif
23563 #ifndef LDAP_DEPRECATED
23564 #define LDAP_DEPRECATED 1
23565 #endif
23566 #include <ldap.h>
23567
23568 int main (void)
23569 {
23570
23571         BerValue *bvp = NULL;
23572         BerElement *bep = ber_init(bvp);
23573         ber_free(bep, 1);
23574
23575  ;
23576  return 0;
23577 }
23578
23579 _ACEOF
23580 if ac_fn_c_try_compile "$LINENO"
23581 then :
23582
23583       curl_cv_need_header_lber_h="no"
23584
23585 else $as_nop
23586
23587       curl_cv_need_header_lber_h="yes"
23588
23589 fi
23590 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23591     #
23592     case "$curl_cv_need_header_lber_h" in
23593       yes)
23594
23595 printf "%s\n" "#define NEED_LBER_H 1" >>confdefs.h
23596
23597         ;;
23598     esac
23599   fi
23600
23601
23602     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
23603 printf %s "checking for ldap.h... " >&6; }
23604 if test ${curl_cv_header_ldap_h+y}
23605 then :
23606   printf %s "(cached) " >&6
23607 else $as_nop
23608
23609     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23610 /* end confdefs.h.  */
23611
23612
23613 #undef inline
23614 #ifdef HAVE_WINDOWS_H
23615 #ifndef WIN32_LEAN_AND_MEAN
23616 #define WIN32_LEAN_AND_MEAN
23617 #endif
23618 #include <windows.h>
23619 #else
23620 #ifdef HAVE_SYS_TYPES_H
23621 #include <sys/types.h>
23622 #endif
23623 #endif
23624 #ifndef LDAP_DEPRECATED
23625 #define LDAP_DEPRECATED 1
23626 #endif
23627 #ifdef NEED_LBER_H
23628 #include <lber.h>
23629 #endif
23630 #include <ldap.h>
23631
23632 int main (void)
23633 {
23634
23635         LDAP *ldp = ldap_init("dummy", LDAP_PORT);
23636         int res = ldap_unbind(ldp);
23637
23638  ;
23639  return 0;
23640 }
23641
23642 _ACEOF
23643 if ac_fn_c_try_compile "$LINENO"
23644 then :
23645
23646       curl_cv_header_ldap_h="yes"
23647
23648 else $as_nop
23649
23650       curl_cv_header_ldap_h="no"
23651
23652 fi
23653 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23654
23655 fi
23656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
23657 printf "%s\n" "$curl_cv_header_ldap_h" >&6; }
23658   case "$curl_cv_header_ldap_h" in
23659     yes)
23660
23661 printf "%s\n" "#define HAVE_LDAP_H 1" >>confdefs.h
23662
23663       ;;
23664   esac
23665
23666
23667     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
23668 printf %s "checking for ldapssl.h... " >&6; }
23669 if test ${curl_cv_header_ldapssl_h+y}
23670 then :
23671   printf %s "(cached) " >&6
23672 else $as_nop
23673
23674     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23675 /* end confdefs.h.  */
23676
23677
23678 #undef inline
23679 #ifdef HAVE_WINDOWS_H
23680 #ifndef WIN32_LEAN_AND_MEAN
23681 #define WIN32_LEAN_AND_MEAN
23682 #endif
23683 #include <windows.h>
23684 #else
23685 #ifdef HAVE_SYS_TYPES_H
23686 #include <sys/types.h>
23687 #endif
23688 #endif
23689 #ifndef NULL
23690 #define NULL (void *)0
23691 #endif
23692 #ifndef LDAP_DEPRECATED
23693 #define LDAP_DEPRECATED 1
23694 #endif
23695 #ifdef NEED_LBER_H
23696 #include <lber.h>
23697 #endif
23698 #ifdef HAVE_LDAP_H
23699 #include <ldap.h>
23700 #endif
23701 #include <ldapssl.h>
23702
23703 int main (void)
23704 {
23705
23706         char *cert_label = NULL;
23707         LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
23708
23709  ;
23710  return 0;
23711 }
23712
23713 _ACEOF
23714 if ac_fn_c_try_compile "$LINENO"
23715 then :
23716
23717       curl_cv_header_ldapssl_h="yes"
23718
23719 else $as_nop
23720
23721       curl_cv_header_ldapssl_h="no"
23722
23723 fi
23724 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23725
23726 fi
23727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldapssl_h" >&5
23728 printf "%s\n" "$curl_cv_header_ldapssl_h" >&6; }
23729   case "$curl_cv_header_ldapssl_h" in
23730     yes)
23731
23732 printf "%s\n" "#define HAVE_LDAPSSL_H 1" >>confdefs.h
23733
23734       ;;
23735   esac
23736
23737
23738     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
23739 printf %s "checking for ldap_ssl.h... " >&6; }
23740 if test ${curl_cv_header_ldap_ssl_h+y}
23741 then :
23742   printf %s "(cached) " >&6
23743 else $as_nop
23744
23745     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23746 /* end confdefs.h.  */
23747
23748
23749 #undef inline
23750 #ifdef HAVE_WINDOWS_H
23751 #ifndef WIN32_LEAN_AND_MEAN
23752 #define WIN32_LEAN_AND_MEAN
23753 #endif
23754 #include <windows.h>
23755 #else
23756 #ifdef HAVE_SYS_TYPES_H
23757 #include <sys/types.h>
23758 #endif
23759 #endif
23760 #ifndef LDAP_DEPRECATED
23761 #define LDAP_DEPRECATED 1
23762 #endif
23763 #ifdef NEED_LBER_H
23764 #include <lber.h>
23765 #endif
23766 #ifdef HAVE_LDAP_H
23767 #include <ldap.h>
23768 #endif
23769 #include <ldap_ssl.h>
23770
23771 int main (void)
23772 {
23773
23774         LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
23775
23776  ;
23777  return 0;
23778 }
23779
23780 _ACEOF
23781 if ac_fn_c_try_compile "$LINENO"
23782 then :
23783
23784       curl_cv_header_ldap_ssl_h="yes"
23785
23786 else $as_nop
23787
23788       curl_cv_header_ldap_ssl_h="no"
23789
23790 fi
23791 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23792
23793 fi
23794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
23795 printf "%s\n" "$curl_cv_header_ldap_ssl_h" >&6; }
23796   case "$curl_cv_header_ldap_ssl_h" in
23797     yes)
23798
23799 printf "%s\n" "#define HAVE_LDAP_SSL_H 1" >>confdefs.h
23800
23801       ;;
23802   esac
23803
23804
23805   if test -z "$LDAPLIBNAME" ; then
23806     if test "$curl_cv_native_windows" = "yes"; then
23807             LDAPLIBNAME="wldap32"
23808       LBERLIBNAME="no"
23809     fi
23810   fi
23811
23812   if test "$LDAPLIBNAME" ; then
23813     as_ac_Lib=`printf "%s\n" "ac_cv_lib_"$LDAPLIBNAME"""_ldap_init" | $as_tr_sh`
23814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
23815 printf %s "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
23816 if eval test \${$as_ac_Lib+y}
23817 then :
23818   printf %s "(cached) " >&6
23819 else $as_nop
23820   ac_check_lib_save_LIBS=$LIBS
23821 LIBS="-l"$LDAPLIBNAME"  $LIBS"
23822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23823 /* end confdefs.h.  */
23824
23825
23826 #ifdef __cplusplus
23827 extern "C"
23828 #endif
23829 char ldap_init ();
23830 int main (void)
23831 {
23832 return ldap_init ();
23833  ;
23834  return 0;
23835 }
23836 _ACEOF
23837 if ac_fn_c_try_link "$LINENO"
23838 then :
23839   eval "$as_ac_Lib=yes"
23840 else $as_nop
23841   eval "$as_ac_Lib=no"
23842 fi
23843 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23844     conftest$ac_exeext conftest.$ac_ext
23845 LIBS=$ac_check_lib_save_LIBS
23846 fi
23847 eval ac_res=\$$as_ac_Lib
23848                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23849 printf "%s\n" "$ac_res" >&6; }
23850 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
23851 then :
23852   cat >>confdefs.h <<_ACEOF
23853 #define `printf "%s\n" "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
23854 _ACEOF
23855
23856   LIBS="-l"$LDAPLIBNAME" $LIBS"
23857
23858 else $as_nop
23859
23860       if test -n "$ldap_askedfor"; then
23861         as_fn_error $? "couldn't detect the LDAP libraries" "$LINENO" 5
23862       fi
23863       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
23864 printf "%s\n" "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
23865
23866 printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
23867
23868       CURL_DISABLE_LDAP=1
23869
23870
23871 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
23872
23873       CURL_DISABLE_LDAPS=1
23874
23875 fi
23876
23877   else
23878
23879     #
23880   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
23881 printf %s "checking for LDAP libraries... " >&6; }
23882   #
23883   u_libs=""
23884   #
23885
23886   #
23887   curl_cv_save_LIBS="$LIBS"
23888   curl_cv_ldap_LIBS="unknown"
23889   #
23890   for x_nlibs in '' "$u_libs" \
23891     '-lldap' \
23892     '-lldap -llber' \
23893     '-llber -lldap' \
23894     '-lldapssl -lldapx -lldapsdk' \
23895     '-lldapsdk -lldapx -lldapssl' \
23896     '-lldap -llber -lssl -lcrypto' ; do
23897
23898     if test "$curl_cv_ldap_LIBS" = "unknown"; then
23899       if test -z "$x_nlibs"; then
23900         LIBS="$curl_cv_save_LIBS"
23901       else
23902         LIBS="$x_nlibs $curl_cv_save_LIBS"
23903       fi
23904       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23905 /* end confdefs.h.  */
23906
23907
23908 #undef inline
23909 #ifdef HAVE_WINDOWS_H
23910 #ifndef WIN32_LEAN_AND_MEAN
23911 #define WIN32_LEAN_AND_MEAN
23912 #endif
23913 #include <windows.h>
23914 #else
23915 #ifdef HAVE_SYS_TYPES_H
23916 #include <sys/types.h>
23917 #endif
23918 #endif
23919 #ifndef NULL
23920 #define NULL (void *)0
23921 #endif
23922 #ifndef LDAP_DEPRECATED
23923 #define LDAP_DEPRECATED 1
23924 #endif
23925 #ifdef NEED_LBER_H
23926 #include <lber.h>
23927 #endif
23928 #ifdef HAVE_LDAP_H
23929 #include <ldap.h>
23930 #endif
23931
23932 int main (void)
23933 {
23934
23935           BerValue *bvp = NULL;
23936           BerElement *bep = ber_init(bvp);
23937           LDAP *ldp = ldap_init("dummy", LDAP_PORT);
23938           int res = ldap_unbind(ldp);
23939           ber_free(bep, 1);
23940
23941  ;
23942  return 0;
23943 }
23944
23945 _ACEOF
23946 if ac_fn_c_try_link "$LINENO"
23947 then :
23948
23949         curl_cv_ldap_LIBS="$x_nlibs"
23950
23951 fi
23952 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23953     conftest$ac_exeext conftest.$ac_ext
23954     fi
23955   done
23956   #
23957   LIBS="$curl_cv_save_LIBS"
23958   #
23959   case X-"$curl_cv_ldap_LIBS" in
23960     X-unknown)
23961       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
23962 printf "%s\n" "cannot find LDAP libraries" >&6; }
23963       ;;
23964     X-)
23965       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
23966 printf "%s\n" "no additional lib required" >&6; }
23967       ;;
23968     *)
23969       if test -z "$curl_cv_save_LIBS"; then
23970         LIBS="$curl_cv_ldap_LIBS"
23971       else
23972         LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
23973       fi
23974       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
23975 printf "%s\n" "$curl_cv_ldap_LIBS" >&6; }
23976       ;;
23977   esac
23978   #
23979
23980     case X-"$curl_cv_ldap_LIBS" in
23981       X-unknown)
23982         if test -n "$ldap_askedfor"; then
23983           as_fn_error $? "couldn't detect the LDAP libraries" "$LINENO" 5
23984         fi
23985         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
23986 printf "%s\n" "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
23987
23988 printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
23989
23990         CURL_DISABLE_LDAP=1
23991
23992
23993 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
23994
23995         CURL_DISABLE_LDAPS=1
23996
23997         ;;
23998     esac
23999   fi
24000 fi
24001
24002 if test x$CURL_DISABLE_LDAP != x1 ; then
24003
24004   if test "$LBERLIBNAME" ; then
24005             if test "$LBERLIBNAME" != "no" ; then
24006       as_ac_Lib=`printf "%s\n" "ac_cv_lib_"$LBERLIBNAME"""_ber_free" | $as_tr_sh`
24007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
24008 printf %s "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
24009 if eval test \${$as_ac_Lib+y}
24010 then :
24011   printf %s "(cached) " >&6
24012 else $as_nop
24013   ac_check_lib_save_LIBS=$LIBS
24014 LIBS="-l"$LBERLIBNAME"  $LIBS"
24015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24016 /* end confdefs.h.  */
24017
24018
24019 #ifdef __cplusplus
24020 extern "C"
24021 #endif
24022 char ber_free ();
24023 int main (void)
24024 {
24025 return ber_free ();
24026  ;
24027  return 0;
24028 }
24029 _ACEOF
24030 if ac_fn_c_try_link "$LINENO"
24031 then :
24032   eval "$as_ac_Lib=yes"
24033 else $as_nop
24034   eval "$as_ac_Lib=no"
24035 fi
24036 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24037     conftest$ac_exeext conftest.$ac_ext
24038 LIBS=$ac_check_lib_save_LIBS
24039 fi
24040 eval ac_res=\$$as_ac_Lib
24041                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24042 printf "%s\n" "$ac_res" >&6; }
24043 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
24044 then :
24045   cat >>confdefs.h <<_ACEOF
24046 #define `printf "%s\n" "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
24047 _ACEOF
24048
24049   LIBS="-l"$LBERLIBNAME" $LIBS"
24050
24051 else $as_nop
24052
24053         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
24054 printf "%s\n" "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
24055
24056 printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
24057
24058         CURL_DISABLE_LDAP=1
24059
24060
24061 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
24062
24063         CURL_DISABLE_LDAPS=1
24064
24065 fi
24066
24067     fi
24068   fi
24069 fi
24070
24071 if test x$CURL_DISABLE_LDAP != x1 ; then
24072   ac_fn_c_check_func "$LINENO" "ldap_url_parse" "ac_cv_func_ldap_url_parse"
24073 if test "x$ac_cv_func_ldap_url_parse" = xyes
24074 then :
24075   printf "%s\n" "#define HAVE_LDAP_URL_PARSE 1" >>confdefs.h
24076
24077 fi
24078 ac_fn_c_check_func "$LINENO" "ldap_init_fd" "ac_cv_func_ldap_init_fd"
24079 if test "x$ac_cv_func_ldap_init_fd" = xyes
24080 then :
24081   printf "%s\n" "#define HAVE_LDAP_INIT_FD 1" >>confdefs.h
24082
24083 fi
24084
24085
24086   if test "$LDAPLIBNAME" = "wldap32"; then
24087     curl_ldap_msg="enabled (winldap)"
24088
24089 printf "%s\n" "#define USE_WIN32_LDAP 1" >>confdefs.h
24090
24091   else
24092     curl_ldap_msg="enabled (OpenLDAP)"
24093     if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
24094
24095 printf "%s\n" "#define USE_OPENLDAP 1" >>confdefs.h
24096
24097       USE_OPENLDAP=1
24098
24099     fi
24100   fi
24101 fi
24102
24103 if test x$CURL_DISABLE_LDAPS != x1 ; then
24104     curl_ldaps_msg="enabled"
24105 fi
24106
24107
24108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
24109 printf %s "checking whether to enable IPv6... " >&6; }
24110 # Check whether --enable-ipv6 was given.
24111 if test ${enable_ipv6+y}
24112 then :
24113   enableval=$enable_ipv6;  case "$enableval" in
24114   no)
24115        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24116 printf "%s\n" "no" >&6; }
24117        ipv6=no
24118        ;;
24119   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24120 printf "%s\n" "yes" >&6; }
24121        ipv6=yes
24122        ;;
24123   esac
24124 else $as_nop
24125   if test "$cross_compiling" = yes
24126 then :
24127   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24128 printf "%s\n" "yes" >&6; }
24129   ipv6=yes
24130
24131 else $as_nop
24132   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24133 /* end confdefs.h.  */
24134
24135 /* are AF_INET6 and sockaddr_in6 available? */
24136 #include <sys/types.h>
24137 #ifdef HAVE_WINSOCK2_H
24138 #include <winsock2.h>
24139 #include <ws2tcpip.h>
24140 #else
24141 #include <sys/socket.h>
24142 #include <netinet/in.h>
24143 #if defined (__TANDEM)
24144 # include <netinet/in6.h>
24145 #endif
24146 #endif
24147 #include <stdlib.h> /* for exit() */
24148 main()
24149 {
24150  struct sockaddr_in6 s;
24151  (void)s;
24152  if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
24153    exit(1);
24154  else
24155    exit(0);
24156 }
24157
24158
24159 _ACEOF
24160 if ac_fn_c_try_run "$LINENO"
24161 then :
24162   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24163 printf "%s\n" "yes" >&6; }
24164   ipv6=yes
24165 else $as_nop
24166   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24167 printf "%s\n" "no" >&6; }
24168   ipv6=no
24169 fi
24170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24171   conftest.$ac_objext conftest.beam conftest.$ac_ext
24172 fi
24173
24174 fi
24175
24176
24177 if test "$ipv6" = yes; then
24178   curl_ipv6_msg="enabled"
24179
24180 printf "%s\n" "#define ENABLE_IPV6 1" >>confdefs.h
24181
24182   IPV6_ENABLED=1
24183
24184
24185   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
24186 printf %s "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
24187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24188 /* end confdefs.h.  */
24189
24190 #include <sys/types.h>
24191 #ifdef HAVE_WINSOCK2_H
24192 #include <winsock2.h>
24193 #include <ws2tcpip.h>
24194 #else
24195 #include <netinet/in.h>
24196 #if defined (__TANDEM)
24197 # include <netinet/in6.h>
24198 #endif
24199 #endif
24200
24201 int main (void)
24202 {
24203
24204   struct sockaddr_in6 s;
24205   s.sin6_scope_id = 0;
24206
24207  ;
24208  return 0;
24209 }
24210 _ACEOF
24211 if ac_fn_c_try_compile "$LINENO"
24212 then :
24213
24214   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24215 printf "%s\n" "yes" >&6; }
24216
24217 printf "%s\n" "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
24218
24219
24220 else $as_nop
24221
24222     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24223 printf "%s\n" "no" >&6; }
24224
24225 fi
24226 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24227 fi
24228
24229
24230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
24231 printf %s "checking if argv can be written to... " >&6; }
24232
24233    case $host_os in
24234      darwin*) library_path_var=DYLD_LIBRARY_PATH ;;
24235      *)       library_path_var=LD_LIBRARY_PATH ;;
24236    esac
24237
24238    eval "old=$$library_path_var"
24239    eval "$library_path_var=\$CURL_LIBRARY_PATH:\$old"
24240
24241    eval "export $library_path_var"
24242    if test "$cross_compiling" = yes
24243 then :
24244   curl_cv_writable_argv=cross
24245
24246 else $as_nop
24247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24248 /* end confdefs.h.  */
24249
24250 int main(int argc, char **argv)
24251 {
24252   (void)argc;
24253   argv[0][0] = ' ';
24254   return (argv[0][0] == ' ')?0:1;
24255 }
24256
24257 _ACEOF
24258 if ac_fn_c_try_run "$LINENO"
24259 then :
24260   curl_cv_writable_argv=yes
24261
24262 else $as_nop
24263   curl_cv_writable_argv=no
24264
24265 fi
24266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24267   conftest.$ac_objext conftest.beam conftest.$ac_ext
24268 fi
24269
24270    eval "$library_path_var=\$old" # restore
24271
24272 case $curl_cv_writable_argv in
24273 yes)
24274
24275 printf "%s\n" "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
24276
24277         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24278 printf "%s\n" "yes" >&6; }
24279         ;;
24280 no)
24281         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24282 printf "%s\n" "no" >&6; }
24283         ;;
24284 *)
24285         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24286 printf "%s\n" "no" >&6; }
24287         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
24288 printf "%s\n" "$as_me: WARNING: the previous check could not be made default was used" >&2;}
24289         ;;
24290 esac
24291
24292
24293
24294 GSSAPI_ROOT="/usr"
24295
24296 # Check whether --with-gssapi-includes was given.
24297 if test ${with_gssapi_includes+y}
24298 then :
24299   withval=$with_gssapi_includes;  GSSAPI_INCS="-I$withval"
24300     want_gss="yes"
24301
24302 fi
24303
24304
24305
24306 # Check whether --with-gssapi-libs was given.
24307 if test ${with_gssapi_libs+y}
24308 then :
24309   withval=$with_gssapi_libs;  GSSAPI_LIB_DIR="-L$withval"
24310     want_gss="yes"
24311
24312 fi
24313
24314
24315
24316 # Check whether --with-gssapi was given.
24317 if test ${with_gssapi+y}
24318 then :
24319   withval=$with_gssapi;
24320   GSSAPI_ROOT="$withval"
24321   if test x"$GSSAPI_ROOT" != xno; then
24322     want_gss="yes"
24323     if test x"$GSSAPI_ROOT" = xyes; then
24324             GSSAPI_ROOT="/usr"
24325     fi
24326   fi
24327
24328 fi
24329
24330
24331 save_CPPFLAGS="$CPPFLAGS"
24332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
24333 printf %s "checking if GSS-API support is requested... " >&6; }
24334 if test x"$want_gss" = xyes; then
24335   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24336 printf "%s\n" "yes" >&6; }
24337
24338
24339     if test -n "$PKG_CONFIG"; then
24340       PKGCONFIG="$PKG_CONFIG"
24341     else
24342       if test -n "$ac_tool_prefix"; then
24343   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24344 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24346 printf %s "checking for $ac_word... " >&6; }
24347 if test ${ac_cv_path_PKGCONFIG+y}
24348 then :
24349   printf %s "(cached) " >&6
24350 else $as_nop
24351   case $PKGCONFIG in
24352   [\\/]* | ?:[\\/]*)
24353   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24354   ;;
24355   *)
24356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24357 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24358 for as_dir in $as_dummy
24359 do
24360   IFS=$as_save_IFS
24361   case $as_dir in #(((
24362     '') as_dir=./ ;;
24363     */) ;;
24364     *) as_dir=$as_dir/ ;;
24365   esac
24366     for ac_exec_ext in '' $ac_executable_extensions; do
24367   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24368     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24369     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24370     break 2
24371   fi
24372 done
24373   done
24374 IFS=$as_save_IFS
24375
24376   ;;
24377 esac
24378 fi
24379 PKGCONFIG=$ac_cv_path_PKGCONFIG
24380 if test -n "$PKGCONFIG"; then
24381   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24382 printf "%s\n" "$PKGCONFIG" >&6; }
24383 else
24384   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24385 printf "%s\n" "no" >&6; }
24386 fi
24387
24388
24389 fi
24390 if test -z "$ac_cv_path_PKGCONFIG"; then
24391   ac_pt_PKGCONFIG=$PKGCONFIG
24392   # Extract the first word of "pkg-config", so it can be a program name with args.
24393 set dummy pkg-config; ac_word=$2
24394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24395 printf %s "checking for $ac_word... " >&6; }
24396 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
24397 then :
24398   printf %s "(cached) " >&6
24399 else $as_nop
24400   case $ac_pt_PKGCONFIG in
24401   [\\/]* | ?:[\\/]*)
24402   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24403   ;;
24404   *)
24405   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24406 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24407 for as_dir in $as_dummy
24408 do
24409   IFS=$as_save_IFS
24410   case $as_dir in #(((
24411     '') as_dir=./ ;;
24412     */) ;;
24413     *) as_dir=$as_dir/ ;;
24414   esac
24415     for ac_exec_ext in '' $ac_executable_extensions; do
24416   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24417     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24418     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24419     break 2
24420   fi
24421 done
24422   done
24423 IFS=$as_save_IFS
24424
24425   ;;
24426 esac
24427 fi
24428 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24429 if test -n "$ac_pt_PKGCONFIG"; then
24430   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24431 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
24432 else
24433   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24434 printf "%s\n" "no" >&6; }
24435 fi
24436
24437   if test "x$ac_pt_PKGCONFIG" = x; then
24438     PKGCONFIG="no"
24439   else
24440     case $cross_compiling:$ac_tool_warned in
24441 yes:)
24442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24443 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24444 ac_tool_warned=yes ;;
24445 esac
24446     PKGCONFIG=$ac_pt_PKGCONFIG
24447   fi
24448 else
24449   PKGCONFIG="$ac_cv_path_PKGCONFIG"
24450 fi
24451
24452     fi
24453
24454     if test "x$PKGCONFIG" != "xno"; then
24455       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
24456 printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
24457             itexists=`
24458     if test -n ""; then
24459       PKG_CONFIG_LIBDIR=""
24460       export PKG_CONFIG_LIBDIR
24461     fi
24462          $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
24463
24464       if test -z "$itexists"; then
24465                         PKGCONFIG="no"
24466         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24467 printf "%s\n" "no" >&6; }
24468       else
24469         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
24470 printf "%s\n" "found" >&6; }
24471       fi
24472     fi
24473
24474   if test -z "$GSSAPI_INCS"; then
24475      if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
24476         GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
24477      elif test "$PKGCONFIG" != "no" ; then
24478         GSSAPI_INCS=`$PKGCONFIG --cflags mit-krb5-gssapi`
24479      elif test "$GSSAPI_ROOT" != "yes"; then
24480         GSSAPI_INCS="-I$GSSAPI_ROOT/include"
24481      fi
24482   fi
24483
24484   CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
24485
24486   ac_fn_c_check_header_compile "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
24487 if test "x$ac_cv_header_gss_h" = xyes
24488 then :
24489
24490
24491 printf "%s\n" "#define HAVE_GSSGNU 1" >>confdefs.h
24492
24493       gnu_gss=yes
24494
24495 else $as_nop
24496
24497                    for ac_header in gssapi/gssapi.h
24498 do :
24499   ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
24500 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes
24501 then :
24502   printf "%s\n" "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
24503
24504 else $as_nop
24505   not_mit=1
24506 fi
24507
24508 done
24509              for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
24510 do :
24511   as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
24512 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
24513 $ac_includes_default
24514 #ifdef HAVE_GSSAPI_GSSAPI_H
24515 #include <gssapi/gssapi.h>
24516 #endif
24517
24518 "
24519 if eval test \"x\$"$as_ac_Header"\" = x"yes"
24520 then :
24521   cat >>confdefs.h <<_ACEOF
24522 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
24523 _ACEOF
24524
24525 else $as_nop
24526   not_mit=1
24527 fi
24528
24529 done
24530       if test "x$not_mit" = "x1"; then
24531                 ac_fn_c_check_header_compile "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
24532 if test "x$ac_cv_header_gssapi_h" = xyes
24533 then :
24534
24535
24536 printf "%s\n" "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
24537
24538
24539 else $as_nop
24540
24541                             want_gss=no
24542               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
24543 printf "%s\n" "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
24544
24545
24546 fi
24547
24548       else
24549
24550 printf "%s\n" "#define HAVE_GSSMIT 1" >>confdefs.h
24551
24552                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
24553 printf %s "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
24554         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24555 /* end confdefs.h.  */
24556
24557
24558 #include <gssapi/gssapi.h>
24559 #include <gssapi/gssapi_generic.h>
24560 #include <gssapi/gssapi_krb5.h>
24561
24562 int main (void)
24563 {
24564
24565             gss_import_name(
24566                             (OM_uint32 *)0,
24567                             (gss_buffer_t)0,
24568                             GSS_C_NT_HOSTBASED_SERVICE,
24569                             (gss_name_t *)0);
24570
24571  ;
24572  return 0;
24573 }
24574
24575 _ACEOF
24576 if ac_fn_c_try_compile "$LINENO"
24577 then :
24578
24579           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24580 printf "%s\n" "yes" >&6; }
24581
24582 else $as_nop
24583
24584           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24585 printf "%s\n" "no" >&6; }
24586
24587 printf "%s\n" "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
24588
24589
24590 fi
24591 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24592       fi
24593
24594
24595 fi
24596
24597 else
24598   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24599 printf "%s\n" "no" >&6; }
24600 fi
24601 if test x"$want_gss" = xyes; then
24602
24603 printf "%s\n" "#define HAVE_GSSAPI 1" >>confdefs.h
24604
24605   HAVE_GSSAPI=1
24606   curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
24607
24608   if test -n "$gnu_gss"; then
24609     curl_gss_msg="enabled (GNU GSS)"
24610     LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
24611     LIBS="-lgss $LIBS"
24612   elif test -z "$GSSAPI_LIB_DIR"; then
24613      case $host in
24614      *-*-darwin*)
24615         LIBS="-lgssapi_krb5 -lresolv $LIBS"
24616         ;;
24617      *)
24618
24619     if test -n "$PKG_CONFIG"; then
24620       PKGCONFIG="$PKG_CONFIG"
24621     else
24622       if test -n "$ac_tool_prefix"; then
24623   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24624 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24626 printf %s "checking for $ac_word... " >&6; }
24627 if test ${ac_cv_path_PKGCONFIG+y}
24628 then :
24629   printf %s "(cached) " >&6
24630 else $as_nop
24631   case $PKGCONFIG in
24632   [\\/]* | ?:[\\/]*)
24633   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24634   ;;
24635   *)
24636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24637 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24638 for as_dir in $as_dummy
24639 do
24640   IFS=$as_save_IFS
24641   case $as_dir in #(((
24642     '') as_dir=./ ;;
24643     */) ;;
24644     *) as_dir=$as_dir/ ;;
24645   esac
24646     for ac_exec_ext in '' $ac_executable_extensions; do
24647   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24648     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24649     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24650     break 2
24651   fi
24652 done
24653   done
24654 IFS=$as_save_IFS
24655
24656   ;;
24657 esac
24658 fi
24659 PKGCONFIG=$ac_cv_path_PKGCONFIG
24660 if test -n "$PKGCONFIG"; then
24661   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24662 printf "%s\n" "$PKGCONFIG" >&6; }
24663 else
24664   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24665 printf "%s\n" "no" >&6; }
24666 fi
24667
24668
24669 fi
24670 if test -z "$ac_cv_path_PKGCONFIG"; then
24671   ac_pt_PKGCONFIG=$PKGCONFIG
24672   # Extract the first word of "pkg-config", so it can be a program name with args.
24673 set dummy pkg-config; ac_word=$2
24674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24675 printf %s "checking for $ac_word... " >&6; }
24676 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
24677 then :
24678   printf %s "(cached) " >&6
24679 else $as_nop
24680   case $ac_pt_PKGCONFIG in
24681   [\\/]* | ?:[\\/]*)
24682   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24683   ;;
24684   *)
24685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24686 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24687 for as_dir in $as_dummy
24688 do
24689   IFS=$as_save_IFS
24690   case $as_dir in #(((
24691     '') as_dir=./ ;;
24692     */) ;;
24693     *) as_dir=$as_dir/ ;;
24694   esac
24695     for ac_exec_ext in '' $ac_executable_extensions; do
24696   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24697     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24698     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24699     break 2
24700   fi
24701 done
24702   done
24703 IFS=$as_save_IFS
24704
24705   ;;
24706 esac
24707 fi
24708 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24709 if test -n "$ac_pt_PKGCONFIG"; then
24710   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24711 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
24712 else
24713   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24714 printf "%s\n" "no" >&6; }
24715 fi
24716
24717   if test "x$ac_pt_PKGCONFIG" = x; then
24718     PKGCONFIG="no"
24719   else
24720     case $cross_compiling:$ac_tool_warned in
24721 yes:)
24722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24723 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24724 ac_tool_warned=yes ;;
24725 esac
24726     PKGCONFIG=$ac_pt_PKGCONFIG
24727   fi
24728 else
24729   PKGCONFIG="$ac_cv_path_PKGCONFIG"
24730 fi
24731
24732     fi
24733
24734     if test "x$PKGCONFIG" != "xno"; then
24735       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
24736 printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
24737             itexists=`
24738     if test -n ""; then
24739       PKG_CONFIG_LIBDIR=""
24740       export PKG_CONFIG_LIBDIR
24741     fi
24742          $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
24743
24744       if test -z "$itexists"; then
24745                         PKGCONFIG="no"
24746         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24747 printf "%s\n" "no" >&6; }
24748       else
24749         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
24750 printf "%s\n" "found" >&6; }
24751       fi
24752     fi
24753
24754         if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
24755                                  gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
24756            LIBS="$gss_libs $LIBS"
24757         elif test "$PKGCONFIG" != "no" ; then
24758            gss_libs=`$PKGCONFIG --libs mit-krb5-gssapi`
24759            LIBS="$gss_libs $LIBS"
24760         else
24761            case $host in
24762            *-hp-hpux*)
24763               gss_libname="gss"
24764               ;;
24765            *)
24766               gss_libname="gssapi"
24767               ;;
24768            esac
24769
24770            if test "$GSSAPI_ROOT" != "yes"; then
24771               LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
24772               LIBS="-l$gss_libname $LIBS"
24773            else
24774               LIBS="-l$gss_libname $LIBS"
24775            fi
24776         fi
24777         ;;
24778      esac
24779   else
24780      LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
24781      case $host in
24782      *-hp-hpux*)
24783         LIBS="-lgss $LIBS"
24784         ;;
24785      *)
24786         LIBS="-lgssapi $LIBS"
24787         ;;
24788      esac
24789   fi
24790 else
24791   CPPFLAGS="$save_CPPFLAGS"
24792 fi
24793
24794 build_libstubgss=no
24795 if test x"$want_gss" = "xyes"; then
24796   build_libstubgss=yes
24797 fi
24798
24799  if test "x$build_libstubgss" = "xyes"; then
24800   BUILD_STUB_GSS_TRUE=
24801   BUILD_STUB_GSS_FALSE='#'
24802 else
24803   BUILD_STUB_GSS_TRUE='#'
24804   BUILD_STUB_GSS_FALSE=
24805 fi
24806
24807
24808
24809 DEFAULT_SSL_BACKEND=no
24810 VALID_DEFAULT_SSL_BACKEND=
24811
24812 # Check whether --with-default-ssl-backend was given.
24813 if test ${with_default_ssl_backend+y}
24814 then :
24815   withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
24816 fi
24817
24818 case "$DEFAULT_SSL_BACKEND" in
24819   no)
24820         ;;
24821   default|yes)
24822         as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
24823     ;;
24824   *)
24825
24826         VALID_DEFAULT_SSL_BACKEND=no
24827     ;;
24828 esac
24829
24830
24831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS" >&5
24832 printf %s "checking whether to enable Windows native SSL/TLS... " >&6; }
24833 if test "x$OPT_SCHANNEL" != xno; then
24834   ssl_msg=
24835   if test "x$OPT_SCHANNEL" != "xno"  &&
24836      test "x$curl_cv_native_windows" = "xyes"; then
24837     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24838 printf "%s\n" "yes" >&6; }
24839
24840 printf "%s\n" "#define USE_SCHANNEL 1" >>confdefs.h
24841
24842     USE_SCHANNEL=1
24843
24844     ssl_msg="Schannel"
24845     test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24846     SCHANNEL_ENABLED=1
24847     # --with-schannel implies --enable-sspi
24848
24849 printf "%s\n" "#define USE_WINDOWS_SSPI 1" >>confdefs.h
24850
24851     USE_WINDOWS_SSPI=1
24852
24853     curl_sspi_msg="enabled"
24854   else
24855     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24856 printf "%s\n" "no" >&6; }
24857   fi
24858   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24859 else
24860   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24861 printf "%s\n" "no" >&6; }
24862 fi
24863
24864
24865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Secure Transport" >&5
24866 printf %s "checking whether to enable Secure Transport... " >&6; }
24867 if test "x$OPT_SECURETRANSPORT" != xno; then
24868   if test "x$OPT_SECURETRANSPORT" != "xno" &&
24869      (test "x$cross_compiling" != "xno" || test -d "/System/Library/Frameworks/Security.framework"); then
24870     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24871 printf "%s\n" "yes" >&6; }
24872
24873 printf "%s\n" "#define USE_SECTRANSP 1" >>confdefs.h
24874
24875     USE_SECTRANSP=1
24876
24877     ssl_msg="Secure Transport"
24878     test secure-transport != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24879     SECURETRANSPORT_ENABLED=1
24880     LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
24881   else
24882     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24883 printf "%s\n" "no" >&6; }
24884   fi
24885   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24886 else
24887   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24888 printf "%s\n" "no" >&6; }
24889 fi
24890
24891
24892
24893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Amiga native SSL/TLS (AmiSSL)" >&5
24894 printf %s "checking whether to enable Amiga native SSL/TLS (AmiSSL)... " >&6; }
24895 if test "$HAVE_PROTO_BSDSOCKET_H" = "1"; then
24896   if test "x$OPT_AMISSL" != xno; then
24897     ssl_msg=
24898     if test "x$OPT_AMISSL" != "xno"; then
24899       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24900 printf "%s\n" "yes" >&6; }
24901       ssl_msg="AmiSSL"
24902       test amissl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24903       AMISSL_ENABLED=1
24904       LIBS="-lamisslauto $LIBS"
24905
24906 printf "%s\n" "#define USE_AMISSL 1" >>confdefs.h
24907
24908
24909 printf "%s\n" "#define USE_OPENSSL 1" >>confdefs.h
24910
24911     else
24912       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24913 printf "%s\n" "no" >&6; }
24914     fi
24915     test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24916   else
24917     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24918 printf "%s\n" "no" >&6; }
24919   fi
24920 else
24921   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24922 printf "%s\n" "no" >&6; }
24923 fi
24924
24925
24926
24927 if test "x$OPT_OPENSSL" != xno; then
24928   ssl_msg=
24929
24930     CLEANLDFLAGS="$LDFLAGS"
24931   CLEANCPPFLAGS="$CPPFLAGS"
24932   CLEANLIBS="$LIBS"
24933
24934     case $host in
24935     *-*-msys* | *-*-mingw*)
24936       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
24937 printf %s "checking for gdi32... " >&6; }
24938       my_ac_save_LIBS=$LIBS
24939       LIBS="-lgdi32 $LIBS"
24940       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24941 /* end confdefs.h.  */
24942
24943         #include <windef.h>
24944         #include <wingdi.h>
24945
24946 int main (void)
24947 {
24948
24949           GdiFlush();
24950
24951  ;
24952  return 0;
24953 }
24954 _ACEOF
24955 if ac_fn_c_try_link "$LINENO"
24956 then :
24957            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24958 printf "%s\n" "yes" >&6; }
24959 else $as_nop
24960            LIBS=$my_ac_save_LIBS
24961         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24962 printf "%s\n" "no" >&6; }
24963
24964 fi
24965 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24966     conftest$ac_exeext conftest.$ac_ext
24967       ;;
24968   esac
24969
24970   case "$OPT_OPENSSL" in
24971   yes)
24972         PKGTEST="yes"
24973     PREFIX_OPENSSL=
24974     ;;
24975   *)
24976         PKGTEST="no"
24977     PREFIX_OPENSSL=$OPT_OPENSSL
24978
24979                 OPENSSL_PCDIR="$OPT_OPENSSL/lib/pkgconfig"
24980     if test -f "$OPENSSL_PCDIR/openssl.pc"; then
24981       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
24982 printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
24983       PKGTEST="yes"
24984     fi
24985
24986     if test "$PKGTEST" != "yes"; then
24987       # try lib64 instead
24988       OPENSSL_PCDIR="$OPT_OPENSSL/lib64/pkgconfig"
24989       if test -f "$OPENSSL_PCDIR/openssl.pc"; then
24990         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
24991 printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
24992         PKGTEST="yes"
24993       fi
24994     fi
24995
24996     if test "$PKGTEST" != "yes"; then
24997       if test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then
24998         as_fn_error $? "$PREFIX_OPENSSL is a bad --with-openssl prefix!" "$LINENO" 5
24999       fi
25000     fi
25001
25002             LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
25003     if test "$PREFIX_OPENSSL" != "/usr" ; then
25004       SSL_LDFLAGS="-L$LIB_OPENSSL"
25005       SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
25006     fi
25007     SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
25008     ;;
25009   esac
25010
25011   if test "$PKGTEST" = "yes"; then
25012
25013
25014     if test -n "$PKG_CONFIG"; then
25015       PKGCONFIG="$PKG_CONFIG"
25016     else
25017       if test -n "$ac_tool_prefix"; then
25018   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25019 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25021 printf %s "checking for $ac_word... " >&6; }
25022 if test ${ac_cv_path_PKGCONFIG+y}
25023 then :
25024   printf %s "(cached) " >&6
25025 else $as_nop
25026   case $PKGCONFIG in
25027   [\\/]* | ?:[\\/]*)
25028   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25029   ;;
25030   *)
25031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25032 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25033 for as_dir in $as_dummy
25034 do
25035   IFS=$as_save_IFS
25036   case $as_dir in #(((
25037     '') as_dir=./ ;;
25038     */) ;;
25039     *) as_dir=$as_dir/ ;;
25040   esac
25041     for ac_exec_ext in '' $ac_executable_extensions; do
25042   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25043     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25044     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25045     break 2
25046   fi
25047 done
25048   done
25049 IFS=$as_save_IFS
25050
25051   ;;
25052 esac
25053 fi
25054 PKGCONFIG=$ac_cv_path_PKGCONFIG
25055 if test -n "$PKGCONFIG"; then
25056   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25057 printf "%s\n" "$PKGCONFIG" >&6; }
25058 else
25059   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25060 printf "%s\n" "no" >&6; }
25061 fi
25062
25063
25064 fi
25065 if test -z "$ac_cv_path_PKGCONFIG"; then
25066   ac_pt_PKGCONFIG=$PKGCONFIG
25067   # Extract the first word of "pkg-config", so it can be a program name with args.
25068 set dummy pkg-config; ac_word=$2
25069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25070 printf %s "checking for $ac_word... " >&6; }
25071 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
25072 then :
25073   printf %s "(cached) " >&6
25074 else $as_nop
25075   case $ac_pt_PKGCONFIG in
25076   [\\/]* | ?:[\\/]*)
25077   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25078   ;;
25079   *)
25080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25081 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25082 for as_dir in $as_dummy
25083 do
25084   IFS=$as_save_IFS
25085   case $as_dir in #(((
25086     '') as_dir=./ ;;
25087     */) ;;
25088     *) as_dir=$as_dir/ ;;
25089   esac
25090     for ac_exec_ext in '' $ac_executable_extensions; do
25091   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25092     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25093     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25094     break 2
25095   fi
25096 done
25097   done
25098 IFS=$as_save_IFS
25099
25100   ;;
25101 esac
25102 fi
25103 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25104 if test -n "$ac_pt_PKGCONFIG"; then
25105   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25106 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
25107 else
25108   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25109 printf "%s\n" "no" >&6; }
25110 fi
25111
25112   if test "x$ac_pt_PKGCONFIG" = x; then
25113     PKGCONFIG="no"
25114   else
25115     case $cross_compiling:$ac_tool_warned in
25116 yes:)
25117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25118 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25119 ac_tool_warned=yes ;;
25120 esac
25121     PKGCONFIG=$ac_pt_PKGCONFIG
25122   fi
25123 else
25124   PKGCONFIG="$ac_cv_path_PKGCONFIG"
25125 fi
25126
25127     fi
25128
25129     if test "x$PKGCONFIG" != "xno"; then
25130       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
25131 printf %s "checking for openssl options with pkg-config... " >&6; }
25132             itexists=`
25133     if test -n "$OPENSSL_PCDIR"; then
25134       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
25135       export PKG_CONFIG_LIBDIR
25136     fi
25137          $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
25138
25139       if test -z "$itexists"; then
25140                         PKGCONFIG="no"
25141         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25142 printf "%s\n" "no" >&6; }
25143       else
25144         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
25145 printf "%s\n" "found" >&6; }
25146       fi
25147     fi
25148
25149
25150     if test "$PKGCONFIG" != "no" ; then
25151       SSL_LIBS=`
25152     if test -n "$OPENSSL_PCDIR"; then
25153       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
25154       export PKG_CONFIG_LIBDIR
25155     fi
25156          $PKGCONFIG --libs-only-l --libs-only-other openssl 2>/dev/null`
25157
25158       SSL_LDFLAGS=`
25159     if test -n "$OPENSSL_PCDIR"; then
25160       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
25161       export PKG_CONFIG_LIBDIR
25162     fi
25163          $PKGCONFIG --libs-only-L openssl 2>/dev/null`
25164
25165       SSL_CPPFLAGS=`
25166     if test -n "$OPENSSL_PCDIR"; then
25167       PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
25168       export PKG_CONFIG_LIBDIR
25169     fi
25170          $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
25171
25172
25173       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
25174 printf "%s\n" "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
25175       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
25176 printf "%s\n" "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
25177       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
25178 printf "%s\n" "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
25179
25180       LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/^-L//'`
25181
25182                                           LIBS="$SSL_LIBS $LIBS"
25183     fi
25184   fi
25185
25186     CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
25187   LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
25188
25189   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
25190 printf %s "checking for HMAC_Update in -lcrypto... " >&6; }
25191 if test ${ac_cv_lib_crypto_HMAC_Update+y}
25192 then :
25193   printf %s "(cached) " >&6
25194 else $as_nop
25195   ac_check_lib_save_LIBS=$LIBS
25196 LIBS="-lcrypto  $LIBS"
25197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25198 /* end confdefs.h.  */
25199
25200
25201 #ifdef __cplusplus
25202 extern "C"
25203 #endif
25204 char HMAC_Update ();
25205 int main (void)
25206 {
25207 return HMAC_Update ();
25208  ;
25209  return 0;
25210 }
25211 _ACEOF
25212 if ac_fn_c_try_link "$LINENO"
25213 then :
25214   ac_cv_lib_crypto_HMAC_Update=yes
25215 else $as_nop
25216   ac_cv_lib_crypto_HMAC_Update=no
25217 fi
25218 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25219     conftest$ac_exeext conftest.$ac_ext
25220 LIBS=$ac_check_lib_save_LIBS
25221 fi
25222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
25223 printf "%s\n" "$ac_cv_lib_crypto_HMAC_Update" >&6; }
25224 if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes
25225 then :
25226
25227      HAVECRYPTO="yes"
25228      LIBS="-lcrypto $LIBS"
25229
25230 else $as_nop
25231
25232      if test -n "$LIB_OPENSSL" ; then
25233        LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
25234      fi
25235      if test "$PKGCONFIG" = "no" -a -n "$PREFIX_OPENSSL" ; then
25236        # only set this if pkg-config wasn't used
25237        CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
25238      fi
25239      # Linking previously failed, try extra paths from --with-openssl or
25240      # pkg-config.  Use a different function name to avoid reusing the earlier
25241      # cached result.
25242      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
25243 printf %s "checking for HMAC_Init_ex in -lcrypto... " >&6; }
25244 if test ${ac_cv_lib_crypto_HMAC_Init_ex+y}
25245 then :
25246   printf %s "(cached) " >&6
25247 else $as_nop
25248   ac_check_lib_save_LIBS=$LIBS
25249 LIBS="-lcrypto  $LIBS"
25250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25251 /* end confdefs.h.  */
25252
25253
25254 #ifdef __cplusplus
25255 extern "C"
25256 #endif
25257 char HMAC_Init_ex ();
25258 int main (void)
25259 {
25260 return HMAC_Init_ex ();
25261  ;
25262  return 0;
25263 }
25264 _ACEOF
25265 if ac_fn_c_try_link "$LINENO"
25266 then :
25267   ac_cv_lib_crypto_HMAC_Init_ex=yes
25268 else $as_nop
25269   ac_cv_lib_crypto_HMAC_Init_ex=no
25270 fi
25271 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25272     conftest$ac_exeext conftest.$ac_ext
25273 LIBS=$ac_check_lib_save_LIBS
25274 fi
25275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
25276 printf "%s\n" "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
25277 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes
25278 then :
25279
25280        HAVECRYPTO="yes"
25281        LIBS="-lcrypto $LIBS"
25282 else $as_nop
25283
25284
25285               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
25286 printf %s "checking OpenSSL linking with -ldl... " >&6; }
25287        LIBS="-lcrypto $CLEANLIBS -ldl"
25288        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25289 /* end confdefs.h.  */
25290
25291          #include <openssl/err.h>
25292
25293 int main (void)
25294 {
25295
25296          ERR_clear_error();
25297
25298  ;
25299  return 0;
25300 }
25301 _ACEOF
25302 if ac_fn_c_try_link "$LINENO"
25303 then :
25304
25305          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25306 printf "%s\n" "yes" >&6; }
25307          HAVECRYPTO="yes"
25308
25309 else $as_nop
25310
25311          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25312 printf "%s\n" "no" >&6; }
25313
25314          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
25315 printf %s "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
25316          LIBS="-lcrypto $CLEANLIBS -ldl -lpthread"
25317          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25318 /* end confdefs.h.  */
25319
25320
25321            #include <openssl/err.h>
25322
25323 int main (void)
25324 {
25325
25326            ERR_clear_error();
25327
25328  ;
25329  return 0;
25330 }
25331 _ACEOF
25332 if ac_fn_c_try_link "$LINENO"
25333 then :
25334
25335            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25336 printf "%s\n" "yes" >&6; }
25337            HAVECRYPTO="yes"
25338
25339 else $as_nop
25340
25341            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25342 printf "%s\n" "no" >&6; }
25343            LDFLAGS="$CLEANLDFLAGS"
25344            CPPFLAGS="$CLEANCPPFLAGS"
25345            LIBS="$CLEANLIBS"
25346
25347
25348 fi
25349 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25350     conftest$ac_exeext conftest.$ac_ext
25351
25352
25353 fi
25354 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25355     conftest$ac_exeext conftest.$ac_ext
25356
25357
25358 fi
25359
25360
25361 fi
25362
25363
25364   if test X"$HAVECRYPTO" = X"yes"; then
25365
25366     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
25367 printf %s "checking for SSL_connect in -lssl... " >&6; }
25368 if test ${ac_cv_lib_ssl_SSL_connect+y}
25369 then :
25370   printf %s "(cached) " >&6
25371 else $as_nop
25372   ac_check_lib_save_LIBS=$LIBS
25373 LIBS="-lssl  $LIBS"
25374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25375 /* end confdefs.h.  */
25376
25377
25378 #ifdef __cplusplus
25379 extern "C"
25380 #endif
25381 char SSL_connect ();
25382 int main (void)
25383 {
25384 return SSL_connect ();
25385  ;
25386  return 0;
25387 }
25388 _ACEOF
25389 if ac_fn_c_try_link "$LINENO"
25390 then :
25391   ac_cv_lib_ssl_SSL_connect=yes
25392 else $as_nop
25393   ac_cv_lib_ssl_SSL_connect=no
25394 fi
25395 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25396     conftest$ac_exeext conftest.$ac_ext
25397 LIBS=$ac_check_lib_save_LIBS
25398 fi
25399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
25400 printf "%s\n" "$ac_cv_lib_ssl_SSL_connect" >&6; }
25401 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes
25402 then :
25403   printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h
25404
25405   LIBS="-lssl $LIBS"
25406
25407 fi
25408
25409
25410     if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
25411                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
25412 printf %s "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
25413         OLIBS=$LIBS
25414         LIBS="-lRSAglue -lrsaref $LIBS"
25415         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
25416 printf %s "checking for SSL_connect in -lssl... " >&6; }
25417 if test ${ac_cv_lib_ssl_SSL_connect+y}
25418 then :
25419   printf %s "(cached) " >&6
25420 else $as_nop
25421   ac_check_lib_save_LIBS=$LIBS
25422 LIBS="-lssl  $LIBS"
25423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25424 /* end confdefs.h.  */
25425
25426
25427 #ifdef __cplusplus
25428 extern "C"
25429 #endif
25430 char SSL_connect ();
25431 int main (void)
25432 {
25433 return SSL_connect ();
25434  ;
25435  return 0;
25436 }
25437 _ACEOF
25438 if ac_fn_c_try_link "$LINENO"
25439 then :
25440   ac_cv_lib_ssl_SSL_connect=yes
25441 else $as_nop
25442   ac_cv_lib_ssl_SSL_connect=no
25443 fi
25444 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25445     conftest$ac_exeext conftest.$ac_ext
25446 LIBS=$ac_check_lib_save_LIBS
25447 fi
25448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
25449 printf "%s\n" "$ac_cv_lib_ssl_SSL_connect" >&6; }
25450 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes
25451 then :
25452   printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h
25453
25454   LIBS="-lssl $LIBS"
25455
25456 fi
25457
25458         if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
25459                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25460 printf "%s\n" "no" >&6; }
25461             LIBS=$OLIBS
25462         else
25463             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25464 printf "%s\n" "yes" >&6; }
25465         fi
25466
25467     else
25468
25469                    for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h openssl/pem.h openssl/ssl.h openssl/err.h
25470 do :
25471   as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
25472 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25473 if eval test \"x\$"$as_ac_Header"\" = x"yes"
25474 then :
25475   cat >>confdefs.h <<_ACEOF
25476 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
25477 _ACEOF
25478  ssl_msg="OpenSSL"
25479         test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25480         OPENSSL_ENABLED=1
25481
25482 printf "%s\n" "#define USE_OPENSSL 1" >>confdefs.h
25483
25484 fi
25485
25486 done
25487
25488       if test $ac_cv_header_openssl_x509_h = no; then
25489                                 ac_fn_c_check_header_compile "$LINENO" "x509.h" "ac_cv_header_x509_h" "$ac_includes_default"
25490 if test "x$ac_cv_header_x509_h" = xyes
25491 then :
25492   printf "%s\n" "#define HAVE_X509_H 1" >>confdefs.h
25493
25494 fi
25495 ac_fn_c_check_header_compile "$LINENO" "rsa.h" "ac_cv_header_rsa_h" "$ac_includes_default"
25496 if test "x$ac_cv_header_rsa_h" = xyes
25497 then :
25498   printf "%s\n" "#define HAVE_RSA_H 1" >>confdefs.h
25499
25500 fi
25501 ac_fn_c_check_header_compile "$LINENO" "crypto.h" "ac_cv_header_crypto_h" "$ac_includes_default"
25502 if test "x$ac_cv_header_crypto_h" = xyes
25503 then :
25504   printf "%s\n" "#define HAVE_CRYPTO_H 1" >>confdefs.h
25505
25506 fi
25507 ac_fn_c_check_header_compile "$LINENO" "pem.h" "ac_cv_header_pem_h" "$ac_includes_default"
25508 if test "x$ac_cv_header_pem_h" = xyes
25509 then :
25510   printf "%s\n" "#define HAVE_PEM_H 1" >>confdefs.h
25511
25512 fi
25513 ac_fn_c_check_header_compile "$LINENO" "ssl.h" "ac_cv_header_ssl_h" "$ac_includes_default"
25514 if test "x$ac_cv_header_ssl_h" = xyes
25515 then :
25516   printf "%s\n" "#define HAVE_SSL_H 1" >>confdefs.h
25517
25518 fi
25519 ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
25520 if test "x$ac_cv_header_err_h" = xyes
25521 then :
25522   printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h
25523
25524 fi
25525
25526
25527         if test $ac_cv_header_x509_h = yes &&
25528            test $ac_cv_header_crypto_h = yes &&
25529            test $ac_cv_header_ssl_h = yes; then
25530                     ssl_msg="OpenSSL"
25531           OPENSSL_ENABLED=1
25532         fi
25533       fi
25534     fi
25535
25536     if test X"$OPENSSL_ENABLED" != X"1"; then
25537        LIBS="$CLEANLIBS"
25538     fi
25539
25540     if test X"$OPT_OPENSSL" != Xoff &&
25541        test "$OPENSSL_ENABLED" != "1"; then
25542       as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
25543     fi
25544   fi
25545
25546   if test X"$OPENSSL_ENABLED" = X"1"; then
25547
25548     ac_fn_c_check_func "$LINENO" "RAND_egd" "ac_cv_func_RAND_egd"
25549 if test "x$ac_cv_func_RAND_egd" = xyes
25550 then :
25551   printf "%s\n" "#define HAVE_RAND_EGD 1" >>confdefs.h
25552
25553 fi
25554
25555
25556     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
25557 printf %s "checking for BoringSSL... " >&6; }
25558     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25559 /* end confdefs.h.  */
25560
25561
25562                 #include <openssl/base.h>
25563
25564 int main (void)
25565 {
25566
25567                 #ifndef OPENSSL_IS_BORINGSSL
25568                 #error not boringssl
25569                 #endif
25570
25571  ;
25572  return 0;
25573 }
25574
25575 _ACEOF
25576 if ac_fn_c_try_compile "$LINENO"
25577 then :
25578
25579         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25580 printf "%s\n" "yes" >&6; }
25581
25582 printf "%s\n" "#define HAVE_BORINGSSL 1" >>confdefs.h
25583
25584         ssl_msg="BoringSSL"
25585
25586 else $as_nop
25587
25588         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25589 printf "%s\n" "no" >&6; }
25590
25591 fi
25592 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25593
25594     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
25595 printf %s "checking for libressl... " >&6; }
25596     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25597 /* end confdefs.h.  */
25598
25599
25600 #include <openssl/opensslv.h>
25601
25602 int main (void)
25603 {
25604
25605         int dummy = LIBRESSL_VERSION_NUMBER;
25606
25607  ;
25608  return 0;
25609 }
25610
25611 _ACEOF
25612 if ac_fn_c_try_compile "$LINENO"
25613 then :
25614
25615       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25616 printf "%s\n" "yes" >&6; }
25617
25618 printf "%s\n" "#define HAVE_LIBRESSL 1" >>confdefs.h
25619
25620       ssl_msg="libressl"
25621
25622 else $as_nop
25623
25624       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25625 printf "%s\n" "no" >&6; }
25626
25627 fi
25628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25629
25630     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL >= v3" >&5
25631 printf %s "checking for OpenSSL >= v3... " >&6; }
25632     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25633 /* end confdefs.h.  */
25634
25635
25636 #include <openssl/opensslv.h>
25637
25638 int main (void)
25639 {
25640
25641         #if defined(OPENSSL_VERSION_MAJOR) && (OPENSSL_VERSION_MAJOR >= 3)
25642         return 0;
25643         #else
25644         #error older than 3
25645         #endif
25646
25647  ;
25648  return 0;
25649 }
25650
25651 _ACEOF
25652 if ac_fn_c_try_compile "$LINENO"
25653 then :
25654
25655       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25656 printf "%s\n" "yes" >&6; }
25657
25658 printf "%s\n" "#define HAVE_OPENSSL3 1" >>confdefs.h
25659
25660                               CPPFLAGS="$CPPFLAGS -DOPENSSL_SUPPRESS_DEPRECATED"
25661       ssl_msg="OpenSSL v3+"
25662
25663 else $as_nop
25664
25665       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25666 printf "%s\n" "no" >&6; }
25667
25668 fi
25669 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25670   fi
25671
25672   if test "$OPENSSL_ENABLED" = "1"; then
25673     if test -n "$LIB_OPENSSL"; then
25674                             if test "x$cross_compiling" != "xyes"; then
25675          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_OPENSSL"
25676          export CURL_LIBRARY_PATH
25677          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&5
25678 printf "%s\n" "$as_me: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&6;}
25679        fi
25680     fi
25681
25682   #
25683
25684   #
25685   tst_api="unknown"
25686   #
25687   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
25688 printf %s "checking for OpenSSL headers version... " >&6; }
25689
25690     OLDCPPFLAGS=$CPPFLAGS
25691   # CPPPFLAG comes from CURL_CPP_P
25692   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
25693       if test -z "$SED"; then
25694     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
25695   fi
25696   if test -z "$GREP"; then
25697     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
25698   fi
25699
25700   tmp_exp=""
25701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25702 /* end confdefs.h.  */
25703
25704
25705 #   ifdef USE_OPENSSL
25706 #     include <openssl/crypto.h>
25707 #   else
25708 #     include <crypto.h>
25709 #   endif
25710
25711 #ifdef OPENSSL_VERSION_NUMBER
25712 CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
25713 #endif
25714
25715
25716 _ACEOF
25717 if ac_fn_c_try_cpp "$LINENO"
25718 then :
25719
25720     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
25721       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
25722       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
25723       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
25724     if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
25725       tmp_exp=""
25726     fi
25727
25728 fi
25729 rm -f conftest.err conftest.i conftest.$ac_ext
25730   if test -z "$tmp_exp"; then
25731     curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
25732
25733   else
25734     curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
25735     curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
25736
25737   fi
25738       CPPFLAGS=$OLDCPPFLAGS
25739
25740
25741     OLDCPPFLAGS=$CPPFLAGS
25742   # CPPPFLAG comes from CURL_CPP_P
25743   CPPFLAGS="$CPPFLAGS $CPPPFLAG"
25744       if test -z "$SED"; then
25745     as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
25746   fi
25747   if test -z "$GREP"; then
25748     as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
25749   fi
25750
25751   tmp_exp=""
25752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25753 /* end confdefs.h.  */
25754
25755
25756 #     include <openssl/crypto.h>
25757
25758 #ifdef OPENSSL_VERSION_STR
25759 CURL_DEF_TOKEN OPENSSL_VERSION_STR
25760 #endif
25761
25762
25763 _ACEOF
25764 if ac_fn_c_try_cpp "$LINENO"
25765 then :
25766
25767     tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
25768       "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
25769       "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
25770       "$SED" 's/["][ ]*["]//g' 2>/dev/null`
25771     if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_STR"; then
25772       tmp_exp=""
25773     fi
25774
25775 fi
25776 rm -f conftest.err conftest.i conftest.$ac_ext
25777   if test -z "$tmp_exp"; then
25778     curl_cv_have_def_OPENSSL_VERSION_STR=no
25779
25780   else
25781     curl_cv_have_def_OPENSSL_VERSION_STR=yes
25782     curl_cv_def_OPENSSL_VERSION_STR=$tmp_exp
25783
25784   fi
25785       CPPFLAGS=$OLDCPPFLAGS
25786
25787   if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
25788     tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
25789     case "x$tst_verlen" in
25790       x6)
25791         tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
25792         tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
25793         tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
25794         tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
25795         ;;
25796       x11|x10)
25797         tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
25798         tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
25799         tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
25800         tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
25801         ;;
25802       *)
25803         if test "$curl_cv_have_def_OPENSSL_VERSION_STR" = "yes"; then
25804           ver=`echo $curl_cv_def_OPENSSL_VERSION_STR | sed 's/"//g'`;
25805           tst_vermaj=`echo $ver | cut -d. -f1`
25806           tst_vermin=`echo $ver | cut -d. -f2`
25807           tst_verfix=`echo $ver | cut -d. -f3`
25808           tst_show="$ver"
25809           tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
25810         else
25811           tst_api="unknown"
25812         fi
25813         ;;
25814     esac
25815     case $tst_api in
25816       0x111) tst_show="1.1.1" ;;
25817       0x110) tst_show="1.1.0" ;;
25818       0x102) tst_show="1.0.2" ;;
25819       0x101) tst_show="1.0.1" ;;
25820       0x100) tst_show="1.0.0" ;;
25821       0x099) tst_show="0.9.9" ;;
25822       0x098) tst_show="0.9.8" ;;
25823       0x097) tst_show="0.9.7" ;;
25824       0x096) tst_show="0.9.6" ;;
25825       0x095) tst_show="0.9.5" ;;
25826       0x094) tst_show="0.9.4" ;;
25827       0x093) tst_show="0.9.3" ;;
25828       0x092) tst_show="0.9.2" ;;
25829       0x091) tst_show="0.9.1" ;;
25830       *)
25831       if test -z "$tst_show"; then
25832         tst_show="unknown"
25833       fi
25834       ;;
25835     esac
25836     tst_show="$tst_show - $tst_api"
25837   else
25838     tst_show="unknown"
25839   fi
25840   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
25841 printf "%s\n" "$tst_show" >&6; }
25842   #
25843   curl_openssl_api_headers=$tst_api
25844
25845
25846   #
25847   tst_api="unknown"
25848   #
25849   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
25850 printf %s "checking for OpenSSL library version... " >&6; }
25851   if test "$tst_api" = "unknown"; then
25852     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25853 /* end confdefs.h.  */
25854
25855
25856 #define SSL_CTX_load_verify_dir innocuous_SSL_CTX_load_verify_dir
25857 #ifdef __STDC__
25858 # include <limits.h>
25859 #else
25860 # include <assert.h>
25861 #endif
25862 #undef SSL_CTX_load_verify_dir
25863 #ifdef __cplusplus
25864 extern "C"
25865 #endif
25866 char SSL_CTX_load_verify_dir ();
25867 #if defined __stub_SSL_CTX_load_verify_dir || defined __stub___SSL_CTX_load_verify_dir
25868 choke me
25869 #endif
25870
25871 int main (void)
25872 {
25873 return SSL_CTX_load_verify_dir ();
25874  ;
25875  return 0;
25876 }
25877
25878 _ACEOF
25879 if ac_fn_c_try_link "$LINENO"
25880 then :
25881
25882       tst_api="0x300"
25883
25884 fi
25885 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25886     conftest$ac_exeext conftest.$ac_ext
25887   fi
25888   if test "$tst_api" = "unknown"; then
25889     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25890 /* end confdefs.h.  */
25891
25892
25893 #define ERR_clear_last_mark innocuous_ERR_clear_last_mark
25894 #ifdef __STDC__
25895 # include <limits.h>
25896 #else
25897 # include <assert.h>
25898 #endif
25899 #undef ERR_clear_last_mark
25900 #ifdef __cplusplus
25901 extern "C"
25902 #endif
25903 char ERR_clear_last_mark ();
25904 #if defined __stub_ERR_clear_last_mark || defined __stub___ERR_clear_last_mark
25905 choke me
25906 #endif
25907
25908 int main (void)
25909 {
25910 return ERR_clear_last_mark ();
25911  ;
25912  return 0;
25913 }
25914
25915 _ACEOF
25916 if ac_fn_c_try_link "$LINENO"
25917 then :
25918
25919       tst_api="0x111"
25920
25921 fi
25922 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25923     conftest$ac_exeext conftest.$ac_ext
25924   fi
25925   if test "$tst_api" = "unknown"; then
25926     case $host in
25927       *-*-vms*)
25928         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25929 /* end confdefs.h.  */
25930
25931
25932 #define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
25933 #ifdef __STDC__
25934 # include <limits.h>
25935 #else
25936 # include <assert.h>
25937 #endif
25938 #undef SSL_CTX_set_not_resumbl_sess_cb
25939 #ifdef __cplusplus
25940 extern "C"
25941 #endif
25942 char SSL_CTX_set_not_resumbl_sess_cb ();
25943 #if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
25944 choke me
25945 #endif
25946
25947 int main (void)
25948 {
25949 return SSL_CTX_set_not_resumbl_sess_cb ();
25950  ;
25951  return 0;
25952 }
25953
25954 _ACEOF
25955 if ac_fn_c_try_link "$LINENO"
25956 then :
25957
25958           tst_api="0x110"
25959
25960 fi
25961 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25962     conftest$ac_exeext conftest.$ac_ext
25963         ;;
25964       *)
25965         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25966 /* end confdefs.h.  */
25967
25968
25969 #define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
25970 #ifdef __STDC__
25971 # include <limits.h>
25972 #else
25973 # include <assert.h>
25974 #endif
25975 #undef SSL_CTX_set_not_resumable_session_callback
25976 #ifdef __cplusplus
25977 extern "C"
25978 #endif
25979 char SSL_CTX_set_not_resumable_session_callback ();
25980 #if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
25981 choke me
25982 #endif
25983
25984 int main (void)
25985 {
25986 return SSL_CTX_set_not_resumable_session_callback ();
25987  ;
25988  return 0;
25989 }
25990
25991 _ACEOF
25992 if ac_fn_c_try_link "$LINENO"
25993 then :
25994
25995           tst_api="0x110"
25996
25997 fi
25998 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25999     conftest$ac_exeext conftest.$ac_ext
26000         ;;
26001     esac
26002   fi
26003   if test "$tst_api" = "unknown"; then
26004     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26005 /* end confdefs.h.  */
26006
26007
26008 #define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new
26009 #ifdef __STDC__
26010 # include <limits.h>
26011 #else
26012 # include <assert.h>
26013 #endif
26014 #undef SSL_CONF_CTX_new
26015 #ifdef __cplusplus
26016 extern "C"
26017 #endif
26018 char SSL_CONF_CTX_new ();
26019 #if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new
26020 choke me
26021 #endif
26022
26023 int main (void)
26024 {
26025 return SSL_CONF_CTX_new ();
26026  ;
26027  return 0;
26028 }
26029
26030 _ACEOF
26031 if ac_fn_c_try_link "$LINENO"
26032 then :
26033
26034       tst_api="0x102"
26035
26036 fi
26037 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26038     conftest$ac_exeext conftest.$ac_ext
26039   fi
26040   if test "$tst_api" = "unknown"; then
26041     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26042 /* end confdefs.h.  */
26043
26044
26045 #define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
26046 #ifdef __STDC__
26047 # include <limits.h>
26048 #else
26049 # include <assert.h>
26050 #endif
26051 #undef SSL_renegotiate_abbreviated
26052 #ifdef __cplusplus
26053 extern "C"
26054 #endif
26055 char SSL_renegotiate_abbreviated ();
26056 #if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
26057 choke me
26058 #endif
26059
26060 int main (void)
26061 {
26062 return SSL_renegotiate_abbreviated ();
26063  ;
26064  return 0;
26065 }
26066
26067 _ACEOF
26068 if ac_fn_c_try_link "$LINENO"
26069 then :
26070
26071       tst_api="0x101"
26072
26073 fi
26074 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26075     conftest$ac_exeext conftest.$ac_ext
26076   fi
26077   if test "$tst_api" = "unknown"; then
26078     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26079 /* end confdefs.h.  */
26080
26081
26082 #define OBJ_add_sigid innocuous_OBJ_add_sigid
26083 #ifdef __STDC__
26084 # include <limits.h>
26085 #else
26086 # include <assert.h>
26087 #endif
26088 #undef OBJ_add_sigid
26089 #ifdef __cplusplus
26090 extern "C"
26091 #endif
26092 char OBJ_add_sigid ();
26093 #if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
26094 choke me
26095 #endif
26096
26097 int main (void)
26098 {
26099 return OBJ_add_sigid ();
26100  ;
26101  return 0;
26102 }
26103
26104 _ACEOF
26105 if ac_fn_c_try_link "$LINENO"
26106 then :
26107
26108       tst_api="0x100"
26109
26110 fi
26111 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26112     conftest$ac_exeext conftest.$ac_ext
26113   fi
26114   if test "$tst_api" = "unknown"; then
26115     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26116 /* end confdefs.h.  */
26117
26118
26119 #define ERR_set_mark innocuous_ERR_set_mark
26120 #ifdef __STDC__
26121 # include <limits.h>
26122 #else
26123 # include <assert.h>
26124 #endif
26125 #undef ERR_set_mark
26126 #ifdef __cplusplus
26127 extern "C"
26128 #endif
26129 char ERR_set_mark ();
26130 #if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
26131 choke me
26132 #endif
26133
26134 int main (void)
26135 {
26136 return ERR_set_mark ();
26137  ;
26138  return 0;
26139 }
26140
26141 _ACEOF
26142 if ac_fn_c_try_link "$LINENO"
26143 then :
26144
26145       tst_api="0x098"
26146
26147 fi
26148 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26149     conftest$ac_exeext conftest.$ac_ext
26150   fi
26151   if test "$tst_api" = "unknown"; then
26152     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26153 /* end confdefs.h.  */
26154
26155
26156 #define ERR_peek_last_error innocuous_ERR_peek_last_error
26157 #ifdef __STDC__
26158 # include <limits.h>
26159 #else
26160 # include <assert.h>
26161 #endif
26162 #undef ERR_peek_last_error
26163 #ifdef __cplusplus
26164 extern "C"
26165 #endif
26166 char ERR_peek_last_error ();
26167 #if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
26168 choke me
26169 #endif
26170
26171 int main (void)
26172 {
26173 return ERR_peek_last_error ();
26174  ;
26175  return 0;
26176 }
26177
26178 _ACEOF
26179 if ac_fn_c_try_link "$LINENO"
26180 then :
26181
26182       tst_api="0x097"
26183
26184 fi
26185 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26186     conftest$ac_exeext conftest.$ac_ext
26187   fi
26188   if test "$tst_api" = "unknown"; then
26189     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26190 /* end confdefs.h.  */
26191
26192
26193 #define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
26194 #ifdef __STDC__
26195 # include <limits.h>
26196 #else
26197 # include <assert.h>
26198 #endif
26199 #undef c2i_ASN1_OBJECT
26200 #ifdef __cplusplus
26201 extern "C"
26202 #endif
26203 char c2i_ASN1_OBJECT ();
26204 #if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
26205 choke me
26206 #endif
26207
26208 int main (void)
26209 {
26210 return c2i_ASN1_OBJECT ();
26211  ;
26212  return 0;
26213 }
26214
26215 _ACEOF
26216 if ac_fn_c_try_link "$LINENO"
26217 then :
26218
26219       tst_api="0x096"
26220
26221 fi
26222 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26223     conftest$ac_exeext conftest.$ac_ext
26224   fi
26225   if test "$tst_api" = "unknown"; then
26226     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26227 /* end confdefs.h.  */
26228
26229
26230 #define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
26231 #ifdef __STDC__
26232 # include <limits.h>
26233 #else
26234 # include <assert.h>
26235 #endif
26236 #undef SSL_CTX_set_purpose
26237 #ifdef __cplusplus
26238 extern "C"
26239 #endif
26240 char SSL_CTX_set_purpose ();
26241 #if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
26242 choke me
26243 #endif
26244
26245 int main (void)
26246 {
26247 return SSL_CTX_set_purpose ();
26248  ;
26249  return 0;
26250 }
26251
26252 _ACEOF
26253 if ac_fn_c_try_link "$LINENO"
26254 then :
26255
26256       tst_api="0x095"
26257
26258 fi
26259 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26260     conftest$ac_exeext conftest.$ac_ext
26261   fi
26262   if test "$tst_api" = "unknown"; then
26263     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26264 /* end confdefs.h.  */
26265
26266
26267 #define OBJ_obj2txt innocuous_OBJ_obj2txt
26268 #ifdef __STDC__
26269 # include <limits.h>
26270 #else
26271 # include <assert.h>
26272 #endif
26273 #undef OBJ_obj2txt
26274 #ifdef __cplusplus
26275 extern "C"
26276 #endif
26277 char OBJ_obj2txt ();
26278 #if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
26279 choke me
26280 #endif
26281
26282 int main (void)
26283 {
26284 return OBJ_obj2txt ();
26285  ;
26286  return 0;
26287 }
26288
26289 _ACEOF
26290 if ac_fn_c_try_link "$LINENO"
26291 then :
26292
26293       tst_api="0x094"
26294
26295 fi
26296 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26297     conftest$ac_exeext conftest.$ac_ext
26298   fi
26299   if test "$tst_api" = "unknown"; then
26300     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26301 /* end confdefs.h.  */
26302
26303
26304 #define SSL_get_verify_depth innocuous_SSL_get_verify_depth
26305 #ifdef __STDC__
26306 # include <limits.h>
26307 #else
26308 # include <assert.h>
26309 #endif
26310 #undef SSL_get_verify_depth
26311 #ifdef __cplusplus
26312 extern "C"
26313 #endif
26314 char SSL_get_verify_depth ();
26315 #if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
26316 choke me
26317 #endif
26318
26319 int main (void)
26320 {
26321 return SSL_get_verify_depth ();
26322  ;
26323  return 0;
26324 }
26325
26326 _ACEOF
26327 if ac_fn_c_try_link "$LINENO"
26328 then :
26329
26330       tst_api="0x093"
26331
26332 fi
26333 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26334     conftest$ac_exeext conftest.$ac_ext
26335   fi
26336   if test "$tst_api" = "unknown"; then
26337     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26338 /* end confdefs.h.  */
26339
26340
26341 #define SSL_library_init innocuous_SSL_library_init
26342 #ifdef __STDC__
26343 # include <limits.h>
26344 #else
26345 # include <assert.h>
26346 #endif
26347 #undef SSL_library_init
26348 #ifdef __cplusplus
26349 extern "C"
26350 #endif
26351 char SSL_library_init ();
26352 #if defined __stub_SSL_library_init || defined __stub___SSL_library_init
26353 choke me
26354 #endif
26355
26356 int main (void)
26357 {
26358 return SSL_library_init ();
26359  ;
26360  return 0;
26361 }
26362
26363 _ACEOF
26364 if ac_fn_c_try_link "$LINENO"
26365 then :
26366
26367       tst_api="0x092"
26368
26369 fi
26370 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26371     conftest$ac_exeext conftest.$ac_ext
26372   fi
26373   if test "$tst_api" = "unknown"; then
26374     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26375 /* end confdefs.h.  */
26376
26377
26378 #define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
26379 #ifdef __STDC__
26380 # include <limits.h>
26381 #else
26382 # include <assert.h>
26383 #endif
26384 #undef SSL_CTX_set_cipher_list
26385 #ifdef __cplusplus
26386 extern "C"
26387 #endif
26388 char SSL_CTX_set_cipher_list ();
26389 #if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
26390 choke me
26391 #endif
26392
26393 int main (void)
26394 {
26395 return SSL_CTX_set_cipher_list ();
26396  ;
26397  return 0;
26398 }
26399
26400 _ACEOF
26401 if ac_fn_c_try_link "$LINENO"
26402 then :
26403
26404       tst_api="0x091"
26405
26406 fi
26407 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26408     conftest$ac_exeext conftest.$ac_ext
26409   fi
26410   case $tst_api in
26411     0x300) tst_show="3.0.0" ;;
26412     0x111) tst_show="1.1.1" ;;
26413     0x110) tst_show="1.1.0" ;;
26414     0x102) tst_show="1.0.2" ;;
26415     0x101) tst_show="1.0.1" ;;
26416     0x100) tst_show="1.0.0" ;;
26417     0x099) tst_show="0.9.9" ;;
26418     0x098) tst_show="0.9.8" ;;
26419     0x097) tst_show="0.9.7" ;;
26420     0x096) tst_show="0.9.6" ;;
26421     0x095) tst_show="0.9.5" ;;
26422     0x094) tst_show="0.9.4" ;;
26423     0x093) tst_show="0.9.3" ;;
26424     0x092) tst_show="0.9.2" ;;
26425     0x091) tst_show="0.9.1" ;;
26426     *)     tst_show="unknown" ;;
26427   esac
26428   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
26429 printf "%s\n" "$tst_show" >&6; }
26430   #
26431   curl_openssl_api_library=$tst_api
26432
26433   #
26434   tst_match="yes"
26435   #
26436   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
26437 printf %s "checking for OpenSSL headers and library versions matching... " >&6; }
26438   if test "$curl_openssl_api_headers" = "unknown" ||
26439     test "$curl_openssl_api_library" = "unknown"; then
26440     tst_match="fail"
26441     tst_warns="Can not compare OpenSSL headers and library versions."
26442   elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
26443     tst_match="no"
26444     tst_warns="OpenSSL headers and library versions do not match."
26445   fi
26446   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
26447 printf "%s\n" "$tst_match" >&6; }
26448   if test "$tst_match" != "yes"; then
26449     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
26450 printf "%s\n" "$as_me: WARNING: $tst_warns" >&2;}
26451   fi
26452
26453     check_for_ca_bundle=1
26454   fi
26455
26456   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26457 fi
26458
26459 if test X"$OPT_OPENSSL" != Xno &&
26460   test "$OPENSSL_ENABLED" != "1"; then
26461   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OPT_OPENSSL: $OPT_OPENSSL" >&5
26462 printf "%s\n" "$as_me: OPT_OPENSSL: $OPT_OPENSSL" >&6;}
26463   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&5
26464 printf "%s\n" "$as_me: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&6;}
26465   as_fn_error $? "--with-openssl was given but OpenSSL could not be detected" "$LINENO" 5
26466 fi
26467
26468
26469 if test X"$OPENSSL_ENABLED" = X"1"; then
26470
26471 # Check whether --with-egd-socket was given.
26472 if test ${with_egd_socket+y}
26473 then :
26474   withval=$with_egd_socket;  EGD_SOCKET="$withval"
26475
26476 fi
26477
26478   if test -n "$EGD_SOCKET" ; then
26479
26480 printf "%s\n" "#define EGD_SOCKET \"$EGD_SOCKET\"" >>confdefs.h
26481
26482   fi
26483
26484
26485 # Check whether --with-random was given.
26486 if test ${with_random+y}
26487 then :
26488   withval=$with_random;  RANDOM_FILE="$withval"
26489 else $as_nop
26490
26491           if test x$cross_compiling != xyes; then
26492                         as_ac_File=`printf "%s\n" "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
26493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
26494 printf %s "checking for \"/dev/urandom\"... " >&6; }
26495 if eval test \${$as_ac_File+y}
26496 then :
26497   printf %s "(cached) " >&6
26498 else $as_nop
26499   test "$cross_compiling" = yes &&
26500   as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
26501 if test -r ""/dev/urandom""; then
26502   eval "$as_ac_File=yes"
26503 else
26504   eval "$as_ac_File=no"
26505 fi
26506 fi
26507 eval ac_res=\$$as_ac_File
26508                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26509 printf "%s\n" "$ac_res" >&6; }
26510 if eval test \"x\$"$as_ac_File"\" = x"yes"
26511 then :
26512    RANDOM_FILE="/dev/urandom"
26513 fi
26514
26515           else
26516             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
26517 printf "%s\n" "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
26518           fi
26519
26520
26521 fi
26522
26523   if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
26524
26525
26526 printf "%s\n" "#define RANDOM_FILE \"$RANDOM_FILE\"" >>confdefs.h
26527
26528   fi
26529 fi
26530
26531 if test "$OPENSSL_ENABLED" = "1"; then
26532   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
26533 printf %s "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
26534 if test ${ac_cv_lib_crypto_SRP_Calc_client_key+y}
26535 then :
26536   printf %s "(cached) " >&6
26537 else $as_nop
26538   ac_check_lib_save_LIBS=$LIBS
26539 LIBS="-lcrypto  $LIBS"
26540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26541 /* end confdefs.h.  */
26542
26543
26544 #ifdef __cplusplus
26545 extern "C"
26546 #endif
26547 char SRP_Calc_client_key ();
26548 int main (void)
26549 {
26550 return SRP_Calc_client_key ();
26551  ;
26552  return 0;
26553 }
26554 _ACEOF
26555 if ac_fn_c_try_link "$LINENO"
26556 then :
26557   ac_cv_lib_crypto_SRP_Calc_client_key=yes
26558 else $as_nop
26559   ac_cv_lib_crypto_SRP_Calc_client_key=no
26560 fi
26561 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26562     conftest$ac_exeext conftest.$ac_ext
26563 LIBS=$ac_check_lib_save_LIBS
26564 fi
26565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
26566 printf "%s\n" "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
26567 if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes
26568 then :
26569
26570
26571 printf "%s\n" "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
26572
26573      HAVE_OPENSSL_SRP=1
26574
26575
26576 fi
26577
26578 fi
26579
26580 if test X"$OPENSSL_ENABLED" = X"1"; then
26581 # Check whether --enable-openssl-auto-load-config was given.
26582 if test ${enable_openssl_auto_load_config+y}
26583 then :
26584   enableval=$enable_openssl_auto_load_config;  if test X"$enableval" = X"no"; then
26585     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: automatic loading of OpenSSL configuration disabled" >&5
26586 printf "%s\n" "$as_me: automatic loading of OpenSSL configuration disabled" >&6;}
26587
26588 printf "%s\n" "#define CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG 1" >>confdefs.h
26589
26590   fi
26591
26592 fi
26593
26594 fi
26595
26596
26597
26598 if test "x$OPT_GNUTLS" != xno; then
26599   ssl_msg=
26600
26601   if test X"$OPT_GNUTLS" != Xno; then
26602
26603     addld=""
26604     addlib=""
26605     gtlslib=""
26606     version=""
26607     addcflags=""
26608
26609     if test "x$OPT_GNUTLS" = "xyes"; then
26610
26611     if test -n "$PKG_CONFIG"; then
26612       PKGCONFIG="$PKG_CONFIG"
26613     else
26614       if test -n "$ac_tool_prefix"; then
26615   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26616 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26618 printf %s "checking for $ac_word... " >&6; }
26619 if test ${ac_cv_path_PKGCONFIG+y}
26620 then :
26621   printf %s "(cached) " >&6
26622 else $as_nop
26623   case $PKGCONFIG in
26624   [\\/]* | ?:[\\/]*)
26625   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26626   ;;
26627   *)
26628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26629 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26630 for as_dir in $as_dummy
26631 do
26632   IFS=$as_save_IFS
26633   case $as_dir in #(((
26634     '') as_dir=./ ;;
26635     */) ;;
26636     *) as_dir=$as_dir/ ;;
26637   esac
26638     for ac_exec_ext in '' $ac_executable_extensions; do
26639   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26640     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
26641     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26642     break 2
26643   fi
26644 done
26645   done
26646 IFS=$as_save_IFS
26647
26648   ;;
26649 esac
26650 fi
26651 PKGCONFIG=$ac_cv_path_PKGCONFIG
26652 if test -n "$PKGCONFIG"; then
26653   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26654 printf "%s\n" "$PKGCONFIG" >&6; }
26655 else
26656   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26657 printf "%s\n" "no" >&6; }
26658 fi
26659
26660
26661 fi
26662 if test -z "$ac_cv_path_PKGCONFIG"; then
26663   ac_pt_PKGCONFIG=$PKGCONFIG
26664   # Extract the first word of "pkg-config", so it can be a program name with args.
26665 set dummy pkg-config; ac_word=$2
26666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26667 printf %s "checking for $ac_word... " >&6; }
26668 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
26669 then :
26670   printf %s "(cached) " >&6
26671 else $as_nop
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   case $as_dir in #(((
26683     '') as_dir=./ ;;
26684     */) ;;
26685     *) as_dir=$as_dir/ ;;
26686   esac
26687     for ac_exec_ext in '' $ac_executable_extensions; do
26688   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26689     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
26690     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26691     break 2
26692   fi
26693 done
26694   done
26695 IFS=$as_save_IFS
26696
26697   ;;
26698 esac
26699 fi
26700 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26701 if test -n "$ac_pt_PKGCONFIG"; then
26702   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26703 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
26704 else
26705   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26706 printf "%s\n" "no" >&6; }
26707 fi
26708
26709   if test "x$ac_pt_PKGCONFIG" = x; then
26710     PKGCONFIG="no"
26711   else
26712     case $cross_compiling:$ac_tool_warned in
26713 yes:)
26714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26715 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26716 ac_tool_warned=yes ;;
26717 esac
26718     PKGCONFIG=$ac_pt_PKGCONFIG
26719   fi
26720 else
26721   PKGCONFIG="$ac_cv_path_PKGCONFIG"
26722 fi
26723
26724     fi
26725
26726     if test "x$PKGCONFIG" != "xno"; then
26727       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
26728 printf %s "checking for gnutls options with pkg-config... " >&6; }
26729             itexists=`
26730     if test -n ""; then
26731       PKG_CONFIG_LIBDIR=""
26732       export PKG_CONFIG_LIBDIR
26733     fi
26734          $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
26735
26736       if test -z "$itexists"; then
26737                         PKGCONFIG="no"
26738         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26739 printf "%s\n" "no" >&6; }
26740       else
26741         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
26742 printf "%s\n" "found" >&6; }
26743       fi
26744     fi
26745
26746
26747       if test "$PKGCONFIG" != "no" ; then
26748         addlib=`$PKGCONFIG --libs-only-l gnutls`
26749         addld=`$PKGCONFIG --libs-only-L gnutls`
26750         addcflags=`$PKGCONFIG --cflags-only-I gnutls`
26751         version=`$PKGCONFIG --modversion gnutls`
26752         gtlslib=`echo $addld | $SED -e 's/^-L//'`
26753       else
26754                         check=`libgnutls-config --version 2>/dev/null`
26755         if test -n "$check"; then
26756           addlib=`libgnutls-config --libs`
26757           addcflags=`libgnutls-config --cflags`
26758           version=`libgnutls-config --version`
26759           gtlslib=`libgnutls-config --prefix`/lib$libsuff
26760         fi
26761       fi
26762     else
26763                   cfg=$OPT_GNUTLS/bin/libgnutls-config
26764       check=`$cfg --version 2>/dev/null`
26765       if test -n "$check"; then
26766         addlib=`$cfg --libs`
26767         addcflags=`$cfg --cflags`
26768         version=`$cfg --version`
26769         gtlslib=`$cfg --prefix`/lib$libsuff
26770       else
26771                 addlib=-lgnutls
26772         addld=-L$OPT_GNUTLS/lib$libsuff
26773         addcflags=-I$OPT_GNUTLS/include
26774         version="" # we just don't know
26775         gtlslib=$OPT_GNUTLS/lib$libsuff
26776       fi
26777     fi
26778
26779     if test -z "$version"; then
26780             version="unknown"
26781     fi
26782
26783     if test -n "$addlib"; then
26784
26785       CLEANLIBS="$LIBS"
26786       CLEANCPPFLAGS="$CPPFLAGS"
26787       CLEANLDFLAGS="$LDFLAGS"
26788
26789       LIBS="$addlib $LIBS"
26790       LDFLAGS="$LDFLAGS $addld"
26791       if test "$addcflags" != "-I/usr/include"; then
26792          CPPFLAGS="$CPPFLAGS $addcflags"
26793       fi
26794
26795             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_x509_crt_get_dn2 in -lgnutls" >&5
26796 printf %s "checking for gnutls_x509_crt_get_dn2 in -lgnutls... " >&6; }
26797 if test ${ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2+y}
26798 then :
26799   printf %s "(cached) " >&6
26800 else $as_nop
26801   ac_check_lib_save_LIBS=$LIBS
26802 LIBS="-lgnutls  $LIBS"
26803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26804 /* end confdefs.h.  */
26805
26806
26807 #ifdef __cplusplus
26808 extern "C"
26809 #endif
26810 char gnutls_x509_crt_get_dn2 ();
26811 int main (void)
26812 {
26813 return gnutls_x509_crt_get_dn2 ();
26814  ;
26815  return 0;
26816 }
26817 _ACEOF
26818 if ac_fn_c_try_link "$LINENO"
26819 then :
26820   ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2=yes
26821 else $as_nop
26822   ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2=no
26823 fi
26824 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26825     conftest$ac_exeext conftest.$ac_ext
26826 LIBS=$ac_check_lib_save_LIBS
26827 fi
26828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" >&5
26829 printf "%s\n" "$ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" >&6; }
26830 if test "x$ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" = xyes
26831 then :
26832
26833
26834 printf "%s\n" "#define USE_GNUTLS 1" >>confdefs.h
26835
26836        USE_GNUTLS=1
26837
26838        GNUTLS_ENABLED=1
26839        USE_GNUTLS="yes"
26840        ssl_msg="GnuTLS"
26841        test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26842
26843 else $as_nop
26844
26845          LIBS="$CLEANLIBS"
26846          CPPFLAGS="$CLEANCPPFLAGS"
26847
26848 fi
26849
26850
26851       if test "x$USE_GNUTLS" = "xyes"; then
26852         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
26853 printf "%s\n" "$as_me: detected GnuTLS version $version" >&6;}
26854         check_for_ca_bundle=1
26855         if test -n "$gtlslib"; then
26856                                                   if test "x$cross_compiling" != "xyes"; then
26857             CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$gtlslib"
26858             export CURL_LIBRARY_PATH
26859             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $gtlslib to CURL_LIBRARY_PATH" >&5
26860 printf "%s\n" "$as_me: Added $gtlslib to CURL_LIBRARY_PATH" >&6;}
26861           fi
26862         fi
26863       fi
26864
26865     fi
26866
26867   fi
26868   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26869 fi
26870
26871
26872 if test "$GNUTLS_ENABLED" = "1"; then
26873   USE_GNUTLS_NETTLE=
26874   # First check if we can detect either crypto library via transitive linking
26875   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
26876 printf %s "checking for nettle_MD5Init in -lgnutls... " >&6; }
26877 if test ${ac_cv_lib_gnutls_nettle_MD5Init+y}
26878 then :
26879   printf %s "(cached) " >&6
26880 else $as_nop
26881   ac_check_lib_save_LIBS=$LIBS
26882 LIBS="-lgnutls  $LIBS"
26883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26884 /* end confdefs.h.  */
26885
26886
26887 #ifdef __cplusplus
26888 extern "C"
26889 #endif
26890 char nettle_MD5Init ();
26891 int main (void)
26892 {
26893 return nettle_MD5Init ();
26894  ;
26895  return 0;
26896 }
26897 _ACEOF
26898 if ac_fn_c_try_link "$LINENO"
26899 then :
26900   ac_cv_lib_gnutls_nettle_MD5Init=yes
26901 else $as_nop
26902   ac_cv_lib_gnutls_nettle_MD5Init=no
26903 fi
26904 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26905     conftest$ac_exeext conftest.$ac_ext
26906 LIBS=$ac_check_lib_save_LIBS
26907 fi
26908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
26909 printf "%s\n" "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
26910 if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes
26911 then :
26912    USE_GNUTLS_NETTLE=1
26913 fi
26914
26915
26916   # If not, try linking directly to both of them to see if they are available
26917   if test "$USE_GNUTLS_NETTLE" = ""; then
26918     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
26919 printf %s "checking for nettle_MD5Init in -lnettle... " >&6; }
26920 if test ${ac_cv_lib_nettle_nettle_MD5Init+y}
26921 then :
26922   printf %s "(cached) " >&6
26923 else $as_nop
26924   ac_check_lib_save_LIBS=$LIBS
26925 LIBS="-lnettle  $LIBS"
26926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26927 /* end confdefs.h.  */
26928
26929
26930 #ifdef __cplusplus
26931 extern "C"
26932 #endif
26933 char nettle_MD5Init ();
26934 int main (void)
26935 {
26936 return nettle_MD5Init ();
26937  ;
26938  return 0;
26939 }
26940 _ACEOF
26941 if ac_fn_c_try_link "$LINENO"
26942 then :
26943   ac_cv_lib_nettle_nettle_MD5Init=yes
26944 else $as_nop
26945   ac_cv_lib_nettle_nettle_MD5Init=no
26946 fi
26947 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26948     conftest$ac_exeext conftest.$ac_ext
26949 LIBS=$ac_check_lib_save_LIBS
26950 fi
26951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
26952 printf "%s\n" "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
26953 if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes
26954 then :
26955    USE_GNUTLS_NETTLE=1
26956 fi
26957
26958   fi
26959   if test "$USE_GNUTLS_NETTLE" = ""; then
26960     as_fn_error $? "GnuTLS found, but nettle was not found" "$LINENO" 5
26961   fi
26962   LIBS="-lnettle $LIBS"
26963 fi
26964
26965 if test "$GNUTLS_ENABLED" = "1"; then
26966   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
26967 printf %s "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
26968 if test ${ac_cv_lib_gnutls_gnutls_srp_verifier+y}
26969 then :
26970   printf %s "(cached) " >&6
26971 else $as_nop
26972   ac_check_lib_save_LIBS=$LIBS
26973 LIBS="-lgnutls  $LIBS"
26974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26975 /* end confdefs.h.  */
26976
26977
26978 #ifdef __cplusplus
26979 extern "C"
26980 #endif
26981 char gnutls_srp_verifier ();
26982 int main (void)
26983 {
26984 return gnutls_srp_verifier ();
26985  ;
26986  return 0;
26987 }
26988 _ACEOF
26989 if ac_fn_c_try_link "$LINENO"
26990 then :
26991   ac_cv_lib_gnutls_gnutls_srp_verifier=yes
26992 else $as_nop
26993   ac_cv_lib_gnutls_gnutls_srp_verifier=no
26994 fi
26995 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26996     conftest$ac_exeext conftest.$ac_ext
26997 LIBS=$ac_check_lib_save_LIBS
26998 fi
26999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
27000 printf "%s\n" "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
27001 if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes
27002 then :
27003
27004
27005 printf "%s\n" "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
27006
27007      HAVE_GNUTLS_SRP=1
27008
27009
27010 fi
27011
27012 fi
27013
27014
27015
27016
27017 if test "x$OPT_MBEDTLS" != xno; then
27018   _cppflags=$CPPFLAGS
27019   _ldflags=$LDFLAGS
27020   ssl_msg=
27021
27022   if test X"$OPT_MBEDTLS" != Xno; then
27023
27024     if test "$OPT_MBEDTLS" = "yes"; then
27025       OPT_MBEDTLS=""
27026     fi
27027
27028     if test -z "$OPT_MBEDTLS" ; then
27029
27030       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
27031 printf %s "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
27032 if test ${ac_cv_lib_mbedtls_mbedtls_havege_init+y}
27033 then :
27034   printf %s "(cached) " >&6
27035 else $as_nop
27036   ac_check_lib_save_LIBS=$LIBS
27037 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
27038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27039 /* end confdefs.h.  */
27040
27041
27042 #ifdef __cplusplus
27043 extern "C"
27044 #endif
27045 char mbedtls_havege_init ();
27046 int main (void)
27047 {
27048 return mbedtls_havege_init ();
27049  ;
27050  return 0;
27051 }
27052 _ACEOF
27053 if ac_fn_c_try_link "$LINENO"
27054 then :
27055   ac_cv_lib_mbedtls_mbedtls_havege_init=yes
27056 else $as_nop
27057   ac_cv_lib_mbedtls_mbedtls_havege_init=no
27058 fi
27059 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27060     conftest$ac_exeext conftest.$ac_ext
27061 LIBS=$ac_check_lib_save_LIBS
27062 fi
27063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
27064 printf "%s\n" "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
27065 if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes
27066 then :
27067
27068
27069 printf "%s\n" "#define USE_MBEDTLS 1" >>confdefs.h
27070
27071          USE_MBEDTLS=1
27072
27073          MBEDTLS_ENABLED=1
27074          USE_MBEDTLS="yes"
27075          ssl_msg="mbedTLS"
27076          test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27077
27078 fi
27079
27080     fi
27081
27082     addld=""
27083     addlib=""
27084     addcflags=""
27085     mbedtlslib=""
27086
27087     if test "x$USE_MBEDTLS" != "xyes"; then
27088             addld=-L$OPT_MBEDTLS/lib$libsuff
27089       addcflags=-I$OPT_MBEDTLS/include
27090       mbedtlslib=$OPT_MBEDTLS/lib$libsuff
27091
27092       LDFLAGS="$LDFLAGS $addld"
27093       if test "$addcflags" != "-I/usr/include"; then
27094          CPPFLAGS="$CPPFLAGS $addcflags"
27095       fi
27096
27097       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
27098 printf %s "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
27099 if test ${ac_cv_lib_mbedtls_mbedtls_ssl_init+y}
27100 then :
27101   printf %s "(cached) " >&6
27102 else $as_nop
27103   ac_check_lib_save_LIBS=$LIBS
27104 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
27105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27106 /* end confdefs.h.  */
27107
27108
27109 #ifdef __cplusplus
27110 extern "C"
27111 #endif
27112 char mbedtls_ssl_init ();
27113 int main (void)
27114 {
27115 return mbedtls_ssl_init ();
27116  ;
27117  return 0;
27118 }
27119 _ACEOF
27120 if ac_fn_c_try_link "$LINENO"
27121 then :
27122   ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
27123 else $as_nop
27124   ac_cv_lib_mbedtls_mbedtls_ssl_init=no
27125 fi
27126 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27127     conftest$ac_exeext conftest.$ac_ext
27128 LIBS=$ac_check_lib_save_LIBS
27129 fi
27130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
27131 printf "%s\n" "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
27132 if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes
27133 then :
27134
27135
27136 printf "%s\n" "#define USE_MBEDTLS 1" >>confdefs.h
27137
27138        USE_MBEDTLS=1
27139
27140        MBEDTLS_ENABLED=1
27141        USE_MBEDTLS="yes"
27142        ssl_msg="mbedTLS"
27143        test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27144
27145 else $as_nop
27146
27147          CPPFLAGS=$_cppflags
27148          LDFLAGS=$_ldflags
27149
27150 fi
27151
27152     fi
27153
27154     if test "x$USE_MBEDTLS" = "xyes"; then
27155       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
27156 printf "%s\n" "$as_me: detected mbedTLS" >&6;}
27157       check_for_ca_bundle=1
27158
27159       LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
27160
27161       if test -n "$mbedtlslib"; then
27162                                         if test "x$cross_compiling" != "xyes"; then
27163           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$mbedtlslib"
27164           export CURL_LIBRARY_PATH
27165           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to CURL_LIBRARY_PATH" >&5
27166 printf "%s\n" "$as_me: Added $mbedtlslib to CURL_LIBRARY_PATH" >&6;}
27167         fi
27168       fi
27169     fi
27170
27171   fi
27172   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
27173 fi
27174
27175
27176
27177
27178 case "$OPT_WOLFSSL" in
27179   yes|no)
27180     wolfpkg=""
27181     ;;
27182   *)
27183     wolfpkg="$withval/lib/pkgconfig"
27184     ;;
27185 esac
27186
27187 if test "x$OPT_WOLFSSL" != xno; then
27188   _cppflags=$CPPFLAGS
27189   _ldflags=$LDFLAGS
27190
27191   ssl_msg=
27192
27193   if test X"$OPT_WOLFSSL" != Xno; then
27194
27195     if test "$OPT_WOLFSSL" = "yes"; then
27196       OPT_WOLFSSL=""
27197     fi
27198
27199
27200     if test -n "$PKG_CONFIG"; then
27201       PKGCONFIG="$PKG_CONFIG"
27202     else
27203       if test -n "$ac_tool_prefix"; then
27204   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27205 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27207 printf %s "checking for $ac_word... " >&6; }
27208 if test ${ac_cv_path_PKGCONFIG+y}
27209 then :
27210   printf %s "(cached) " >&6
27211 else $as_nop
27212   case $PKGCONFIG in
27213   [\\/]* | ?:[\\/]*)
27214   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27215   ;;
27216   *)
27217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27218 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27219 for as_dir in $as_dummy
27220 do
27221   IFS=$as_save_IFS
27222   case $as_dir in #(((
27223     '') as_dir=./ ;;
27224     */) ;;
27225     *) as_dir=$as_dir/ ;;
27226   esac
27227     for ac_exec_ext in '' $ac_executable_extensions; do
27228   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27229     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27230     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27231     break 2
27232   fi
27233 done
27234   done
27235 IFS=$as_save_IFS
27236
27237   ;;
27238 esac
27239 fi
27240 PKGCONFIG=$ac_cv_path_PKGCONFIG
27241 if test -n "$PKGCONFIG"; then
27242   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27243 printf "%s\n" "$PKGCONFIG" >&6; }
27244 else
27245   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27246 printf "%s\n" "no" >&6; }
27247 fi
27248
27249
27250 fi
27251 if test -z "$ac_cv_path_PKGCONFIG"; then
27252   ac_pt_PKGCONFIG=$PKGCONFIG
27253   # Extract the first word of "pkg-config", so it can be a program name with args.
27254 set dummy pkg-config; ac_word=$2
27255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27256 printf %s "checking for $ac_word... " >&6; }
27257 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
27258 then :
27259   printf %s "(cached) " >&6
27260 else $as_nop
27261   case $ac_pt_PKGCONFIG in
27262   [\\/]* | ?:[\\/]*)
27263   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27264   ;;
27265   *)
27266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27267 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27268 for as_dir in $as_dummy
27269 do
27270   IFS=$as_save_IFS
27271   case $as_dir in #(((
27272     '') as_dir=./ ;;
27273     */) ;;
27274     *) as_dir=$as_dir/ ;;
27275   esac
27276     for ac_exec_ext in '' $ac_executable_extensions; do
27277   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27278     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27279     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27280     break 2
27281   fi
27282 done
27283   done
27284 IFS=$as_save_IFS
27285
27286   ;;
27287 esac
27288 fi
27289 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27290 if test -n "$ac_pt_PKGCONFIG"; then
27291   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27292 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
27293 else
27294   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27295 printf "%s\n" "no" >&6; }
27296 fi
27297
27298   if test "x$ac_pt_PKGCONFIG" = x; then
27299     PKGCONFIG="no"
27300   else
27301     case $cross_compiling:$ac_tool_warned in
27302 yes:)
27303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27304 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27305 ac_tool_warned=yes ;;
27306 esac
27307     PKGCONFIG=$ac_pt_PKGCONFIG
27308   fi
27309 else
27310   PKGCONFIG="$ac_cv_path_PKGCONFIG"
27311 fi
27312
27313     fi
27314
27315     if test "x$PKGCONFIG" != "xno"; then
27316       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfssl options with pkg-config" >&5
27317 printf %s "checking for wolfssl options with pkg-config... " >&6; }
27318             itexists=`
27319     if test -n "$wolfpkg"; then
27320       PKG_CONFIG_LIBDIR="$wolfpkg"
27321       export PKG_CONFIG_LIBDIR
27322     fi
27323          $PKGCONFIG --exists wolfssl >/dev/null 2>&1 && echo 1`
27324
27325       if test -z "$itexists"; then
27326                         PKGCONFIG="no"
27327         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27328 printf "%s\n" "no" >&6; }
27329       else
27330         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
27331 printf "%s\n" "found" >&6; }
27332       fi
27333     fi
27334
27335     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Check dir $wolfpkg" >&5
27336 printf "%s\n" "$as_me: Check dir $wolfpkg" >&6;}
27337
27338     addld=""
27339     addlib=""
27340     addcflags=""
27341     if test "$PKGCONFIG" != "no" ; then
27342       addlib=`
27343     if test -n "$wolfpkg"; then
27344       PKG_CONFIG_LIBDIR="$wolfpkg"
27345       export PKG_CONFIG_LIBDIR
27346     fi
27347
27348         $PKGCONFIG --libs-only-l wolfssl`
27349       addld=`
27350     if test -n "$wolfpkg"; then
27351       PKG_CONFIG_LIBDIR="$wolfpkg"
27352       export PKG_CONFIG_LIBDIR
27353     fi
27354
27355         $PKGCONFIG --libs-only-L wolfssl`
27356       addcflags=`
27357     if test -n "$wolfpkg"; then
27358       PKG_CONFIG_LIBDIR="$wolfpkg"
27359       export PKG_CONFIG_LIBDIR
27360     fi
27361
27362         $PKGCONFIG --cflags-only-I wolfssl`
27363       version=`
27364     if test -n "$wolfpkg"; then
27365       PKG_CONFIG_LIBDIR="$wolfpkg"
27366       export PKG_CONFIG_LIBDIR
27367     fi
27368
27369         $PKGCONFIG --modversion wolfssl`
27370       wolfssllibpath=`echo $addld | $SED -e 's/^-L//'`
27371     else
27372       addlib=-lwolfssl
27373             if test -n "$OPT_WOLFSSL"; then
27374         addld=-L$OPT_WOLFSSL/lib$libsuff
27375         addcflags=-I$OPT_WOLFSSL/include
27376         wolfssllibpath=$OPT_WOLFSSL/lib$libsuff
27377       fi
27378     fi
27379
27380     if test "x$USE_WOLFSSL" != "xyes"; then
27381
27382       LDFLAGS="$LDFLAGS $addld"
27383       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addld to LDFLAGS" >&5
27384 printf "%s\n" "$as_me: Add $addld to LDFLAGS" >&6;}
27385       if test "$addcflags" != "-I/usr/include"; then
27386          CPPFLAGS="$CPPFLAGS $addcflags"
27387          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addcflags to CPPFLAGS" >&5
27388 printf "%s\n" "$as_me: Add $addcflags to CPPFLAGS" >&6;}
27389       fi
27390
27391       my_ac_save_LIBS="$LIBS"
27392       LIBS="$addlib $LIBS"
27393       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addlib to LIBS" >&5
27394 printf "%s\n" "$as_me: Add $addlib to LIBS" >&6;}
27395
27396       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfSSL_Init in -lwolfssl" >&5
27397 printf %s "checking for wolfSSL_Init in -lwolfssl... " >&6; }
27398       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27399 /* end confdefs.h.  */
27400
27401
27402 /* These aren't needed for detection and confuse WolfSSL.
27403    They are set up properly later if it is detected.  */
27404 #undef SIZEOF_LONG
27405 #undef SIZEOF_LONG_LONG
27406 #include <wolfssl/ssl.h>
27407
27408 int main (void)
27409 {
27410
27411           return wolfSSL_Init();
27412
27413  ;
27414  return 0;
27415 }
27416
27417 _ACEOF
27418 if ac_fn_c_try_link "$LINENO"
27419 then :
27420
27421          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27422 printf "%s\n" "yes" >&6; }
27423
27424 printf "%s\n" "#define USE_WOLFSSL 1" >>confdefs.h
27425
27426          USE_WOLFSSL=1
27427
27428          WOLFSSL_ENABLED=1
27429          USE_WOLFSSL="yes"
27430          ssl_msg="WolfSSL"
27431          test wolfssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27432
27433 else $as_nop
27434
27435          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27436 printf "%s\n" "no" >&6; }
27437          CPPFLAGS=$_cppflags
27438          LDFLAGS=$_ldflags
27439          wolfssllibpath=""
27440
27441 fi
27442 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27443     conftest$ac_exeext conftest.$ac_ext
27444       LIBS="$my_ac_save_LIBS"
27445     fi
27446
27447     if test "x$USE_WOLFSSL" = "xyes"; then
27448       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected wolfSSL" >&5
27449 printf "%s\n" "$as_me: detected wolfSSL" >&6;}
27450       check_for_ca_bundle=1
27451
27452             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
27453 printf %s "checking size of long long... " >&6; }
27454 if test ${ac_cv_sizeof_long_long+y}
27455 then :
27456   printf %s "(cached) " >&6
27457 else $as_nop
27458   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
27459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27460 /* end confdefs.h.  */
27461
27462 #include <sys/types.h>
27463
27464
27465 int main (void)
27466 {
27467 switch (0) case 0: case (sizeof (long long) == $ac_size):;
27468  ;
27469  return 0;
27470 }
27471 _ACEOF
27472 if ac_fn_c_try_compile "$LINENO"
27473 then :
27474   ac_cv_sizeof_long_long=$ac_size
27475 fi
27476 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27477   if test x$ac_cv_sizeof_long_long != x ; then break; fi
27478 done
27479
27480 fi
27481
27482 if test x$ac_cv_sizeof_long_long = x ; then
27483   as_fn_error $? "cannot determine a size for long long" "$LINENO" 5
27484 fi
27485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
27486 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
27487
27488 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
27489
27490
27491
27492       LIBS="$addlib -lm $LIBS"
27493
27494                         ac_fn_c_check_func "$LINENO" "wolfSSL_get_peer_certificate" "ac_cv_func_wolfSSL_get_peer_certificate"
27495 if test "x$ac_cv_func_wolfSSL_get_peer_certificate" = xyes
27496 then :
27497   printf "%s\n" "#define HAVE_WOLFSSL_GET_PEER_CERTIFICATE 1" >>confdefs.h
27498
27499 fi
27500 ac_fn_c_check_func "$LINENO" "wolfSSL_UseALPN" "ac_cv_func_wolfSSL_UseALPN"
27501 if test "x$ac_cv_func_wolfSSL_UseALPN" = xyes
27502 then :
27503   printf "%s\n" "#define HAVE_WOLFSSL_USEALPN 1" >>confdefs.h
27504
27505 fi
27506
27507
27508                   ac_fn_c_check_func "$LINENO" "wolfSSL_DES_ecb_encrypt" "ac_cv_func_wolfSSL_DES_ecb_encrypt"
27509 if test "x$ac_cv_func_wolfSSL_DES_ecb_encrypt" = xyes
27510 then :
27511
27512
27513 printf "%s\n" "#define HAVE_WOLFSSL_DES_ECB_ENCRYPT 1" >>confdefs.h
27514
27515             if test -n "$addcflags"; then
27516                             for f in $addcflags; do
27517                 CPPFLAGS="$f/wolfssl $CPPFLAGS"
27518                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $f/wolfssl to CPPFLAGS" >&5
27519 printf "%s\n" "$as_me: Add $f/wolfssl to CPPFLAGS" >&6;}
27520                 break
27521               done
27522             else
27523                                           CPPFLAGS="-I/usr/include/wolfssl $CPPFLAGS"
27524               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add /usr/include/wolfssl to CPPFLAGS" >&5
27525 printf "%s\n" "$as_me: Add /usr/include/wolfssl to CPPFLAGS" >&6;}
27526             fi
27527             WOLFSSL_NTLM=1
27528
27529
27530 fi
27531
27532
27533       if test -n "$wolfssllibpath"; then
27534                                         if test "x$cross_compiling" != "xyes"; then
27535           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$wolfssllibpath"
27536           export CURL_LIBRARY_PATH
27537           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&5
27538 printf "%s\n" "$as_me: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&6;}
27539         fi
27540       fi
27541
27542     fi
27543
27544   fi
27545   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
27546 fi
27547
27548
27549
27550
27551 if test "x$OPT_MESALINK" != xno; then
27552   _cppflags=$CPPFLAGS
27553   _ldflags=$LDFLAGS
27554   ssl_msg=
27555
27556   if test X"$OPT_MESALINK" != Xno; then
27557
27558     if test "$OPT_MESALINK" = "yes"; then
27559       OPT_MESALINK=""
27560     fi
27561
27562     if test -z "$OPT_MESALINK" ; then
27563
27564       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mesalink_library_init in -lmesalink" >&5
27565 printf %s "checking for mesalink_library_init in -lmesalink... " >&6; }
27566 if test ${ac_cv_lib_mesalink_mesalink_library_init+y}
27567 then :
27568   printf %s "(cached) " >&6
27569 else $as_nop
27570   ac_check_lib_save_LIBS=$LIBS
27571 LIBS="-lmesalink  $LIBS"
27572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27573 /* end confdefs.h.  */
27574
27575
27576 #ifdef __cplusplus
27577 extern "C"
27578 #endif
27579 char mesalink_library_init ();
27580 int main (void)
27581 {
27582 return mesalink_library_init ();
27583  ;
27584  return 0;
27585 }
27586 _ACEOF
27587 if ac_fn_c_try_link "$LINENO"
27588 then :
27589   ac_cv_lib_mesalink_mesalink_library_init=yes
27590 else $as_nop
27591   ac_cv_lib_mesalink_mesalink_library_init=no
27592 fi
27593 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27594     conftest$ac_exeext conftest.$ac_ext
27595 LIBS=$ac_check_lib_save_LIBS
27596 fi
27597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mesalink_mesalink_library_init" >&5
27598 printf "%s\n" "$ac_cv_lib_mesalink_mesalink_library_init" >&6; }
27599 if test "x$ac_cv_lib_mesalink_mesalink_library_init" = xyes
27600 then :
27601
27602
27603 printf "%s\n" "#define USE_MESALINK 1" >>confdefs.h
27604
27605          USE_MESALINK=1
27606
27607          MESALINK_ENABLED=1
27608          USE_MESALINK="yes"
27609          ssl_msg="MesaLink"
27610          test mesalink != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27611
27612 fi
27613
27614     fi
27615
27616     addld=""
27617     addlib=""
27618     addcflags=""
27619     mesalinklib=""
27620
27621     if test "x$USE_MESALINK" != "xyes"; then
27622             addld=-L$OPT_MESALINK/lib$libsuff
27623       addcflags=-I$OPT_MESALINK/include
27624       mesalinklib=$OPT_MESALINK/lib$libsuff
27625
27626       LDFLAGS="$LDFLAGS $addld"
27627       if test "$addcflags" != "-I/usr/include"; then
27628          CPPFLAGS="$CPPFLAGS $addcflags"
27629       fi
27630
27631       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mesalink_library_init in -lmesalink" >&5
27632 printf %s "checking for mesalink_library_init in -lmesalink... " >&6; }
27633 if test ${ac_cv_lib_mesalink_mesalink_library_init+y}
27634 then :
27635   printf %s "(cached) " >&6
27636 else $as_nop
27637   ac_check_lib_save_LIBS=$LIBS
27638 LIBS="-lmesalink  $LIBS"
27639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27640 /* end confdefs.h.  */
27641
27642
27643 #ifdef __cplusplus
27644 extern "C"
27645 #endif
27646 char mesalink_library_init ();
27647 int main (void)
27648 {
27649 return mesalink_library_init ();
27650  ;
27651  return 0;
27652 }
27653 _ACEOF
27654 if ac_fn_c_try_link "$LINENO"
27655 then :
27656   ac_cv_lib_mesalink_mesalink_library_init=yes
27657 else $as_nop
27658   ac_cv_lib_mesalink_mesalink_library_init=no
27659 fi
27660 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27661     conftest$ac_exeext conftest.$ac_ext
27662 LIBS=$ac_check_lib_save_LIBS
27663 fi
27664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mesalink_mesalink_library_init" >&5
27665 printf "%s\n" "$ac_cv_lib_mesalink_mesalink_library_init" >&6; }
27666 if test "x$ac_cv_lib_mesalink_mesalink_library_init" = xyes
27667 then :
27668
27669
27670 printf "%s\n" "#define USE_MESALINK 1" >>confdefs.h
27671
27672        USE_MESALINK=1
27673
27674        MESALINK_ENABLED=1
27675        USE_MESALINK="yes"
27676        ssl_msg="MesaLink"
27677        test mesalink != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27678
27679 else $as_nop
27680
27681          CPPFLAGS=$_cppflags
27682          LDFLAGS=$_ldflags
27683
27684 fi
27685
27686     fi
27687
27688     if test "x$USE_MESALINK" = "xyes"; then
27689       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected MesaLink" >&5
27690 printf "%s\n" "$as_me: detected MesaLink" >&6;}
27691
27692       LIBS="-lmesalink $LIBS"
27693
27694       if test -n "$mesalinklib"; then
27695                                         if test "x$cross_compiling" != "xyes"; then
27696           LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$mesalinklib"
27697           export LD_LIBRARY_PATH
27698           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $mesalinklib to LD_LIBRARY_PATH" >&5
27699 printf "%s\n" "$as_me: Added $mesalinklib to LD_LIBRARY_PATH" >&6;}
27700         fi
27701       fi
27702     fi
27703
27704   fi
27705   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
27706 fi
27707
27708
27709
27710 if test "x$OPT_BEARSSL" != xno; then
27711   _cppflags=$CPPFLAGS
27712   _ldflags=$LDFLAGS
27713   ssl_msg=
27714
27715   if test X"$OPT_BEARSSL" != Xno; then
27716
27717     if test "$OPT_BEARSSL" = "yes"; then
27718       OPT_BEARSSL=""
27719     fi
27720
27721     if test -z "$OPT_BEARSSL" ; then
27722
27723       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5
27724 printf %s "checking for br_ssl_client_init_full in -lbearssl... " >&6; }
27725 if test ${ac_cv_lib_bearssl_br_ssl_client_init_full+y}
27726 then :
27727   printf %s "(cached) " >&6
27728 else $as_nop
27729   ac_check_lib_save_LIBS=$LIBS
27730 LIBS="-lbearssl -lbearssl $LIBS"
27731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27732 /* end confdefs.h.  */
27733
27734
27735 #ifdef __cplusplus
27736 extern "C"
27737 #endif
27738 char br_ssl_client_init_full ();
27739 int main (void)
27740 {
27741 return br_ssl_client_init_full ();
27742  ;
27743  return 0;
27744 }
27745 _ACEOF
27746 if ac_fn_c_try_link "$LINENO"
27747 then :
27748   ac_cv_lib_bearssl_br_ssl_client_init_full=yes
27749 else $as_nop
27750   ac_cv_lib_bearssl_br_ssl_client_init_full=no
27751 fi
27752 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27753     conftest$ac_exeext conftest.$ac_ext
27754 LIBS=$ac_check_lib_save_LIBS
27755 fi
27756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5
27757 printf "%s\n" "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; }
27758 if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes
27759 then :
27760
27761
27762 printf "%s\n" "#define USE_BEARSSL 1" >>confdefs.h
27763
27764          USE_BEARSSL=1
27765
27766          BEARSSL_ENABLED=1
27767          USE_BEARSSL="yes"
27768          ssl_msg="BearSSL"
27769          test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27770
27771 fi
27772
27773     fi
27774
27775     addld=""
27776     addlib=""
27777     addcflags=""
27778     bearssllib=""
27779
27780     if test "x$USE_BEARSSL" != "xyes"; then
27781             addld=-L$OPT_BEARSSL/lib$libsuff
27782       addcflags=-I$OPT_BEARSSL/include
27783       bearssllib=$OPT_BEARSSL/lib$libsuff
27784
27785       LDFLAGS="$LDFLAGS $addld"
27786       if test "$addcflags" != "-I/usr/include"; then
27787          CPPFLAGS="$CPPFLAGS $addcflags"
27788       fi
27789
27790       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5
27791 printf %s "checking for br_ssl_client_init_full in -lbearssl... " >&6; }
27792 if test ${ac_cv_lib_bearssl_br_ssl_client_init_full+y}
27793 then :
27794   printf %s "(cached) " >&6
27795 else $as_nop
27796   ac_check_lib_save_LIBS=$LIBS
27797 LIBS="-lbearssl -lbearssl $LIBS"
27798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27799 /* end confdefs.h.  */
27800
27801
27802 #ifdef __cplusplus
27803 extern "C"
27804 #endif
27805 char br_ssl_client_init_full ();
27806 int main (void)
27807 {
27808 return br_ssl_client_init_full ();
27809  ;
27810  return 0;
27811 }
27812 _ACEOF
27813 if ac_fn_c_try_link "$LINENO"
27814 then :
27815   ac_cv_lib_bearssl_br_ssl_client_init_full=yes
27816 else $as_nop
27817   ac_cv_lib_bearssl_br_ssl_client_init_full=no
27818 fi
27819 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27820     conftest$ac_exeext conftest.$ac_ext
27821 LIBS=$ac_check_lib_save_LIBS
27822 fi
27823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5
27824 printf "%s\n" "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; }
27825 if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes
27826 then :
27827
27828
27829 printf "%s\n" "#define USE_BEARSSL 1" >>confdefs.h
27830
27831        USE_BEARSSL=1
27832
27833        BEARSSL_ENABLED=1
27834        USE_BEARSSL="yes"
27835        ssl_msg="BearSSL"
27836        test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27837
27838 else $as_nop
27839
27840          CPPFLAGS=$_cppflags
27841          LDFLAGS=$_ldflags
27842
27843 fi
27844
27845     fi
27846
27847     if test "x$USE_BEARSSL" = "xyes"; then
27848       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected BearSSL" >&5
27849 printf "%s\n" "$as_me: detected BearSSL" >&6;}
27850       check_for_ca_bundle=1
27851
27852       LIBS="-lbearssl $LIBS"
27853
27854       if test -n "$bearssllib"; then
27855                                         if test "x$cross_compiling" != "xyes"; then
27856           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$bearssllib"
27857           export CURL_LIBRARY_PATH
27858           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $bearssllib to CURL_LIBRARY_PATH" >&5
27859 printf "%s\n" "$as_me: Added $bearssllib to CURL_LIBRARY_PATH" >&6;}
27860         fi
27861       fi
27862     fi
27863
27864   fi
27865   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
27866 fi
27867
27868
27869
27870 if test "x$OPT_RUSTLS" != xno; then
27871   _cppflags=$CPPFLAGS
27872   _ldflags=$LDFLAGS
27873   ssl_msg=
27874
27875   if test X"$OPT_RUSTLS" != Xno; then
27876
27877     if test "$OPT_RUSTLS" = "yes"; then
27878       OPT_RUSTLS=""
27879     fi
27880
27881     if test -z "$OPT_RUSTLS" ; then
27882
27883       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rustls_client_session_read in -lrustls" >&5
27884 printf %s "checking for rustls_client_session_read in -lrustls... " >&6; }
27885 if test ${ac_cv_lib_rustls_rustls_client_session_read+y}
27886 then :
27887   printf %s "(cached) " >&6
27888 else $as_nop
27889   ac_check_lib_save_LIBS=$LIBS
27890 LIBS="-lrustls -lpthread -ldl -lm $LIBS"
27891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27892 /* end confdefs.h.  */
27893
27894
27895 #ifdef __cplusplus
27896 extern "C"
27897 #endif
27898 char rustls_client_session_read ();
27899 int main (void)
27900 {
27901 return rustls_client_session_read ();
27902  ;
27903  return 0;
27904 }
27905 _ACEOF
27906 if ac_fn_c_try_link "$LINENO"
27907 then :
27908   ac_cv_lib_rustls_rustls_client_session_read=yes
27909 else $as_nop
27910   ac_cv_lib_rustls_rustls_client_session_read=no
27911 fi
27912 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27913     conftest$ac_exeext conftest.$ac_ext
27914 LIBS=$ac_check_lib_save_LIBS
27915 fi
27916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rustls_rustls_client_session_read" >&5
27917 printf "%s\n" "$ac_cv_lib_rustls_rustls_client_session_read" >&6; }
27918 if test "x$ac_cv_lib_rustls_rustls_client_session_read" = xyes
27919 then :
27920
27921
27922 printf "%s\n" "#define USE_RUSTLS 1" >>confdefs.h
27923
27924          USE_RUSTLS=1
27925
27926          RUSTLS_ENABLED=1
27927          USE_RUSTLS="yes"
27928          ssl_msg="rustls"
27929          test rustls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27930
27931 fi
27932
27933     fi
27934
27935     if test "x$USE_RUSTLS" != "xyes"; then
27936             addld=-L$OPT_RUSTLS/lib$libsuff
27937       addcflags=-I$OPT_RUSTLS/include
27938       rustlslib=$OPT_RUSTLS/lib$libsuff
27939
27940       LDFLAGS="$LDFLAGS $addld"
27941       if test "$addcflags" != "-I/usr/include"; then
27942          CPPFLAGS="$CPPFLAGS $addcflags"
27943       fi
27944
27945       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rustls_connection_read in -lrustls" >&5
27946 printf %s "checking for rustls_connection_read in -lrustls... " >&6; }
27947 if test ${ac_cv_lib_rustls_rustls_connection_read+y}
27948 then :
27949   printf %s "(cached) " >&6
27950 else $as_nop
27951   ac_check_lib_save_LIBS=$LIBS
27952 LIBS="-lrustls -lpthread -ldl -lm $LIBS"
27953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27954 /* end confdefs.h.  */
27955
27956
27957 #ifdef __cplusplus
27958 extern "C"
27959 #endif
27960 char rustls_connection_read ();
27961 int main (void)
27962 {
27963 return rustls_connection_read ();
27964  ;
27965  return 0;
27966 }
27967 _ACEOF
27968 if ac_fn_c_try_link "$LINENO"
27969 then :
27970   ac_cv_lib_rustls_rustls_connection_read=yes
27971 else $as_nop
27972   ac_cv_lib_rustls_rustls_connection_read=no
27973 fi
27974 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27975     conftest$ac_exeext conftest.$ac_ext
27976 LIBS=$ac_check_lib_save_LIBS
27977 fi
27978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rustls_rustls_connection_read" >&5
27979 printf "%s\n" "$ac_cv_lib_rustls_rustls_connection_read" >&6; }
27980 if test "x$ac_cv_lib_rustls_rustls_connection_read" = xyes
27981 then :
27982
27983
27984 printf "%s\n" "#define USE_RUSTLS 1" >>confdefs.h
27985
27986        USE_RUSTLS=1
27987
27988        RUSTLS_ENABLED=1
27989        USE_RUSTLS="yes"
27990        ssl_msg="rustls"
27991        test rustls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27992
27993 else $as_nop
27994   as_fn_error $? "--with-rustls was specified but could not find rustls." "$LINENO" 5
27995 fi
27996
27997     fi
27998
27999     if test "x$USE_RUSTLS" = "xyes"; then
28000       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected rustls" >&5
28001 printf "%s\n" "$as_me: detected rustls" >&6;}
28002       check_for_ca_bundle=1
28003
28004       LIBS="-lrustls -lpthread -ldl -lm $LIBS"
28005
28006       if test -n "$rustlslib"; then
28007                                         if test "x$cross_compiling" != "xyes"; then
28008           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$rustlslib"
28009           export CURL_LIBRARY_PATH
28010           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $rustlslib to CURL_LIBRARY_PATH" >&5
28011 printf "%s\n" "$as_me: Added $rustlslib to CURL_LIBRARY_PATH" >&6;}
28012         fi
28013       fi
28014     fi
28015
28016   fi
28017   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
28018 fi
28019
28020
28021 if test "x$OPT_NSS" != xno; then
28022   ssl_msg=
28023
28024   if test X"$OPT_NSS" != Xno; then
28025
28026     addld=""
28027     addlib=""
28028     addcflags=""
28029     nssprefix=""
28030     version=""
28031
28032     if test "x$OPT_NSS" = "xyes"; then
28033
28034
28035     if test -n "$PKG_CONFIG"; then
28036       PKGCONFIG="$PKG_CONFIG"
28037     else
28038       if test -n "$ac_tool_prefix"; then
28039   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28040 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28042 printf %s "checking for $ac_word... " >&6; }
28043 if test ${ac_cv_path_PKGCONFIG+y}
28044 then :
28045   printf %s "(cached) " >&6
28046 else $as_nop
28047   case $PKGCONFIG in
28048   [\\/]* | ?:[\\/]*)
28049   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
28050   ;;
28051   *)
28052   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28053 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28054 for as_dir in $as_dummy
28055 do
28056   IFS=$as_save_IFS
28057   case $as_dir in #(((
28058     '') as_dir=./ ;;
28059     */) ;;
28060     *) as_dir=$as_dir/ ;;
28061   esac
28062     for ac_exec_ext in '' $ac_executable_extensions; do
28063   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28064     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28065     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28066     break 2
28067   fi
28068 done
28069   done
28070 IFS=$as_save_IFS
28071
28072   ;;
28073 esac
28074 fi
28075 PKGCONFIG=$ac_cv_path_PKGCONFIG
28076 if test -n "$PKGCONFIG"; then
28077   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
28078 printf "%s\n" "$PKGCONFIG" >&6; }
28079 else
28080   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28081 printf "%s\n" "no" >&6; }
28082 fi
28083
28084
28085 fi
28086 if test -z "$ac_cv_path_PKGCONFIG"; then
28087   ac_pt_PKGCONFIG=$PKGCONFIG
28088   # Extract the first word of "pkg-config", so it can be a program name with args.
28089 set dummy pkg-config; ac_word=$2
28090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28091 printf %s "checking for $ac_word... " >&6; }
28092 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
28093 then :
28094   printf %s "(cached) " >&6
28095 else $as_nop
28096   case $ac_pt_PKGCONFIG in
28097   [\\/]* | ?:[\\/]*)
28098   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
28099   ;;
28100   *)
28101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28102 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28103 for as_dir in $as_dummy
28104 do
28105   IFS=$as_save_IFS
28106   case $as_dir in #(((
28107     '') as_dir=./ ;;
28108     */) ;;
28109     *) as_dir=$as_dir/ ;;
28110   esac
28111     for ac_exec_ext in '' $ac_executable_extensions; do
28112   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28113     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28114     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28115     break 2
28116   fi
28117 done
28118   done
28119 IFS=$as_save_IFS
28120
28121   ;;
28122 esac
28123 fi
28124 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
28125 if test -n "$ac_pt_PKGCONFIG"; then
28126   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
28127 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
28128 else
28129   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28130 printf "%s\n" "no" >&6; }
28131 fi
28132
28133   if test "x$ac_pt_PKGCONFIG" = x; then
28134     PKGCONFIG="no"
28135   else
28136     case $cross_compiling:$ac_tool_warned in
28137 yes:)
28138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28139 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28140 ac_tool_warned=yes ;;
28141 esac
28142     PKGCONFIG=$ac_pt_PKGCONFIG
28143   fi
28144 else
28145   PKGCONFIG="$ac_cv_path_PKGCONFIG"
28146 fi
28147
28148     fi
28149
28150     if test "x$PKGCONFIG" != "xno"; then
28151       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
28152 printf %s "checking for nss options with pkg-config... " >&6; }
28153             itexists=`
28154     if test -n ""; then
28155       PKG_CONFIG_LIBDIR=""
28156       export PKG_CONFIG_LIBDIR
28157     fi
28158          $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
28159
28160       if test -z "$itexists"; then
28161                         PKGCONFIG="no"
28162         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28163 printf "%s\n" "no" >&6; }
28164       else
28165         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
28166 printf "%s\n" "found" >&6; }
28167       fi
28168     fi
28169
28170
28171       if test "$PKGCONFIG" != "no" ; then
28172         addlib=`$PKGCONFIG --libs nss`
28173         addcflags=`$PKGCONFIG --cflags nss`
28174         version=`$PKGCONFIG --modversion nss`
28175         nssprefix=`$PKGCONFIG --variable=prefix nss`
28176       else
28177
28178         check=`nss-config --version 2>/dev/null`
28179         if test -n "$check"; then
28180           addlib=`nss-config --libs`
28181           addcflags=`nss-config --cflags`
28182           version=`nss-config --version`
28183           nssprefix=`nss-config --prefix`
28184         else
28185           addlib="-lnss3"
28186           addcflags=""
28187           version="unknown"
28188         fi
28189       fi
28190     else
28191       NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
28192       if test -f "$NSS_PCDIR/nss.pc"; then
28193
28194     if test -n "$PKG_CONFIG"; then
28195       PKGCONFIG="$PKG_CONFIG"
28196     else
28197       if test -n "$ac_tool_prefix"; then
28198   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28199 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28201 printf %s "checking for $ac_word... " >&6; }
28202 if test ${ac_cv_path_PKGCONFIG+y}
28203 then :
28204   printf %s "(cached) " >&6
28205 else $as_nop
28206   case $PKGCONFIG in
28207   [\\/]* | ?:[\\/]*)
28208   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
28209   ;;
28210   *)
28211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28212 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28213 for as_dir in $as_dummy
28214 do
28215   IFS=$as_save_IFS
28216   case $as_dir in #(((
28217     '') as_dir=./ ;;
28218     */) ;;
28219     *) as_dir=$as_dir/ ;;
28220   esac
28221     for ac_exec_ext in '' $ac_executable_extensions; do
28222   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28223     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28224     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28225     break 2
28226   fi
28227 done
28228   done
28229 IFS=$as_save_IFS
28230
28231   ;;
28232 esac
28233 fi
28234 PKGCONFIG=$ac_cv_path_PKGCONFIG
28235 if test -n "$PKGCONFIG"; then
28236   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
28237 printf "%s\n" "$PKGCONFIG" >&6; }
28238 else
28239   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28240 printf "%s\n" "no" >&6; }
28241 fi
28242
28243
28244 fi
28245 if test -z "$ac_cv_path_PKGCONFIG"; then
28246   ac_pt_PKGCONFIG=$PKGCONFIG
28247   # Extract the first word of "pkg-config", so it can be a program name with args.
28248 set dummy pkg-config; ac_word=$2
28249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28250 printf %s "checking for $ac_word... " >&6; }
28251 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
28252 then :
28253   printf %s "(cached) " >&6
28254 else $as_nop
28255   case $ac_pt_PKGCONFIG in
28256   [\\/]* | ?:[\\/]*)
28257   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
28258   ;;
28259   *)
28260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28261 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28262 for as_dir in $as_dummy
28263 do
28264   IFS=$as_save_IFS
28265   case $as_dir in #(((
28266     '') as_dir=./ ;;
28267     */) ;;
28268     *) as_dir=$as_dir/ ;;
28269   esac
28270     for ac_exec_ext in '' $ac_executable_extensions; do
28271   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28272     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28273     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28274     break 2
28275   fi
28276 done
28277   done
28278 IFS=$as_save_IFS
28279
28280   ;;
28281 esac
28282 fi
28283 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
28284 if test -n "$ac_pt_PKGCONFIG"; then
28285   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
28286 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
28287 else
28288   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28289 printf "%s\n" "no" >&6; }
28290 fi
28291
28292   if test "x$ac_pt_PKGCONFIG" = x; then
28293     PKGCONFIG="no"
28294   else
28295     case $cross_compiling:$ac_tool_warned in
28296 yes:)
28297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28298 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28299 ac_tool_warned=yes ;;
28300 esac
28301     PKGCONFIG=$ac_pt_PKGCONFIG
28302   fi
28303 else
28304   PKGCONFIG="$ac_cv_path_PKGCONFIG"
28305 fi
28306
28307     fi
28308
28309     if test "x$PKGCONFIG" != "xno"; then
28310       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
28311 printf %s "checking for nss options with pkg-config... " >&6; }
28312             itexists=`
28313     if test -n "$NSS_PCDIR"; then
28314       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28315       export PKG_CONFIG_LIBDIR
28316     fi
28317          $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
28318
28319       if test -z "$itexists"; then
28320                         PKGCONFIG="no"
28321         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28322 printf "%s\n" "no" >&6; }
28323       else
28324         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
28325 printf "%s\n" "found" >&6; }
28326       fi
28327     fi
28328
28329         if test "$PKGCONFIG" != "no" ; then
28330           addld=`
28331     if test -n "$NSS_PCDIR"; then
28332       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28333       export PKG_CONFIG_LIBDIR
28334     fi
28335  $PKGCONFIG --libs-only-L nss`
28336           addlib=`
28337     if test -n "$NSS_PCDIR"; then
28338       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28339       export PKG_CONFIG_LIBDIR
28340     fi
28341  $PKGCONFIG --libs-only-l nss`
28342           addcflags=`
28343     if test -n "$NSS_PCDIR"; then
28344       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28345       export PKG_CONFIG_LIBDIR
28346     fi
28347  $PKGCONFIG --cflags nss`
28348           version=`
28349     if test -n "$NSS_PCDIR"; then
28350       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28351       export PKG_CONFIG_LIBDIR
28352     fi
28353  $PKGCONFIG --modversion nss`
28354           nssprefix=`
28355     if test -n "$NSS_PCDIR"; then
28356       PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28357       export PKG_CONFIG_LIBDIR
28358     fi
28359  $PKGCONFIG --variable=prefix nss`
28360         fi
28361       fi
28362     fi
28363
28364     if test -z "$addlib"; then
28365       # Without pkg-config, we'll kludge in some defaults
28366       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
28367 printf "%s\n" "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
28368       addld="-L$OPT_NSS/lib"
28369       addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
28370       addcflags="-I$OPT_NSS/include"
28371       version="unknown"
28372       nssprefix=$OPT_NSS
28373     fi
28374
28375     CLEANLDFLAGS="$LDFLAGS"
28376     CLEANLIBS="$LIBS"
28377     CLEANCPPFLAGS="$CPPFLAGS"
28378
28379     LDFLAGS="$addld $LDFLAGS"
28380     LIBS="$addlib $LIBS"
28381     if test "$addcflags" != "-I/usr/include"; then
28382        CPPFLAGS="$CPPFLAGS $addcflags"
28383     fi
28384
28385         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
28386 printf %s "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
28387 if test ${ac_cv_lib_nss3_SSL_VersionRangeSet+y}
28388 then :
28389   printf %s "(cached) " >&6
28390 else $as_nop
28391   ac_check_lib_save_LIBS=$LIBS
28392 LIBS="-lnss3  $LIBS"
28393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28394 /* end confdefs.h.  */
28395
28396
28397 #ifdef __cplusplus
28398 extern "C"
28399 #endif
28400 char SSL_VersionRangeSet ();
28401 int main (void)
28402 {
28403 return SSL_VersionRangeSet ();
28404  ;
28405  return 0;
28406 }
28407 _ACEOF
28408 if ac_fn_c_try_link "$LINENO"
28409 then :
28410   ac_cv_lib_nss3_SSL_VersionRangeSet=yes
28411 else $as_nop
28412   ac_cv_lib_nss3_SSL_VersionRangeSet=no
28413 fi
28414 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28415     conftest$ac_exeext conftest.$ac_ext
28416 LIBS=$ac_check_lib_save_LIBS
28417 fi
28418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
28419 printf "%s\n" "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
28420 if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes
28421 then :
28422
28423
28424 printf "%s\n" "#define USE_NSS 1" >>confdefs.h
28425
28426      USE_NSS=1
28427
28428      USE_NSS="yes"
28429      NSS_ENABLED=1
28430      ssl_msg="NSS"
28431      test nss != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28432
28433 else $as_nop
28434
28435        LDFLAGS="$CLEANLDFLAGS"
28436        LIBS="$CLEANLIBS"
28437        CPPFLAGS="$CLEANCPPFLAGS"
28438
28439 fi
28440
28441
28442     if test "x$USE_NSS" = "xyes"; then
28443       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
28444 printf "%s\n" "$as_me: detected NSS version $version" >&6;}
28445
28446                         ac_fn_c_check_func "$LINENO" "PK11_CreateManagedGenericObject" "ac_cv_func_PK11_CreateManagedGenericObject"
28447 if test "x$ac_cv_func_PK11_CreateManagedGenericObject" = xyes
28448 then :
28449
28450
28451 printf "%s\n" "#define HAVE_PK11_CREATEMANAGEDGENERICOBJECT 1" >>confdefs.h
28452
28453
28454 fi
28455
28456
28457             NSS_LIBS=$addlib
28458
28459
28460                               if test "x$cross_compiling" != "xyes"; then
28461         CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$nssprefix/lib$libsuff"
28462         export CURL_LIBRARY_PATH
28463         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&5
28464 printf "%s\n" "$as_me: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&6;}
28465       fi
28466
28467     fi
28468   fi
28469   test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
28470 fi
28471
28472
28473
28474 if test "x$USE_WIN32_CRYPTO" = "x1" -o "x$USE_SCHANNEL" = "x1"; then
28475   LIBS="-ladvapi32 -lcrypt32 $LIBS"
28476 fi
28477
28478 case "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$MBEDTLS_ENABLED$WOLFSSL_ENABLED$SCHANNEL_ENABLED$SECURETRANSPORT_ENABLED$MESALINK_ENABLED$BEARSSL_ENABLED$AMISSL_ENABLED$RUSTLS_ENABLED"
28479 in
28480 x)
28481   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
28482 printf "%s\n" "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
28483   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Use --with-openssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-nss, --with-schannel, --with-secure-transport, --with-mesalink, --with-amissl, --with-bearssl or --with-rustls to address this." >&5
28484 printf "%s\n" "$as_me: WARNING: Use --with-openssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-nss, --with-schannel, --with-secure-transport, --with-mesalink, --with-amissl, --with-bearssl or --with-rustls to address this." >&2;}
28485   ;;
28486 x1)
28487   # one SSL backend is enabled
28488
28489   SSL_ENABLED="1"
28490   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
28491 printf "%s\n" "$as_me: built with one SSL backend" >&6;}
28492   ;;
28493 *)
28494   # more than one SSL backend is enabled
28495
28496   SSL_ENABLED="1"
28497
28498   CURL_WITH_MULTI_SSL="1"
28499
28500 printf "%s\n" "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
28501
28502   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
28503 printf "%s\n" "$as_me: built with multiple SSL backends" >&6;}
28504   ;;
28505 esac
28506
28507 if test -n "$ssl_backends"; then
28508   curl_ssl_msg="enabled ($ssl_backends)"
28509 fi
28510
28511 if test no = "$VALID_DEFAULT_SSL_BACKEND"
28512 then
28513   if test -n "$SSL_ENABLED"
28514   then
28515     as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
28516   else
28517     as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
28518   fi
28519 elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
28520 then
28521
28522 printf "%s\n" "#define CURL_DEFAULT_SSL_BACKEND \"$DEFAULT_SSL_BACKEND\"" >>confdefs.h
28523
28524 fi
28525
28526
28527 if test -n "$check_for_ca_bundle"; then
28528
28529
28530   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
28531 printf %s "checking default CA cert bundle/path... " >&6; }
28532
28533
28534 # Check whether --with-ca-bundle was given.
28535 if test ${with_ca_bundle+y}
28536 then :
28537   withval=$with_ca_bundle;
28538     want_ca="$withval"
28539     if test "x$want_ca" = "xyes"; then
28540       as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
28541     fi
28542
28543 else $as_nop
28544    want_ca="unset"
28545 fi
28546
28547
28548 # Check whether --with-ca-path was given.
28549 if test ${with_ca_path+y}
28550 then :
28551   withval=$with_ca_path;
28552     want_capath="$withval"
28553     if test "x$want_capath" = "xyes"; then
28554       as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
28555     fi
28556
28557 else $as_nop
28558    want_capath="unset"
28559 fi
28560
28561
28562   ca_warning="   (warning: certs not found)"
28563   capath_warning="   (warning: certs not found)"
28564   check_capath=""
28565
28566   if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
28567           "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
28568         ca="$want_ca"
28569     capath="$want_capath"
28570   elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
28571         ca="$want_ca"
28572     capath="no"
28573   elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
28574         if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$MBEDTLS_ENABLED" != "x1"; then
28575       as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or mbedTLS" "$LINENO" 5
28576     fi
28577     capath="$want_capath"
28578     ca="no"
28579   else
28580             ca="no"
28581     capath="no"
28582     if test "x$cross_compiling" != "xyes"; then
28583                   if test "x$want_ca" = "xunset"; then
28584                                 if test "x$prefix" != xNONE; then
28585           cac="${prefix}/share/curl/curl-ca-bundle.crt"
28586         else
28587           cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
28588         fi
28589
28590         for a in /etc/ssl/certs/ca-certificates.crt \
28591                  /etc/pki/tls/certs/ca-bundle.crt \
28592                  /usr/share/ssl/certs/ca-bundle.crt \
28593                  /usr/local/share/certs/ca-root-nss.crt \
28594                  /etc/ssl/cert.pem \
28595                  "$cac"; do
28596           if test -f "$a"; then
28597             ca="$a"
28598             break
28599           fi
28600         done
28601       fi
28602       if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
28603               "x$OPENSSL_ENABLED" = "x1"; then
28604         check_capath="/etc/ssl/certs/"
28605       fi
28606     else
28607             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
28608 printf "%s\n" "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
28609     fi
28610   fi
28611
28612   if test "x$ca" = "xno" || test -f "$ca"; then
28613     ca_warning=""
28614   fi
28615
28616   if test "x$capath" != "xno"; then
28617     check_capath="$capath"
28618   fi
28619
28620   if test ! -z "$check_capath"; then
28621     for a in "$check_capath"; do
28622       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
28623         if test "x$capath" = "xno"; then
28624           capath="$a"
28625         fi
28626         capath_warning=""
28627         break
28628       fi
28629     done
28630   fi
28631
28632   if test "x$capath" = "xno"; then
28633     capath_warning=""
28634   fi
28635
28636   if test "x$ca" != "xno"; then
28637     CURL_CA_BUNDLE='"'$ca'"'
28638
28639 printf "%s\n" "#define CURL_CA_BUNDLE \"$ca\"" >>confdefs.h
28640
28641
28642     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
28643 printf "%s\n" "$ca" >&6; }
28644   fi
28645   if test "x$capath" != "xno"; then
28646     CURL_CA_PATH="\"$capath\""
28647
28648 printf "%s\n" "#define CURL_CA_PATH \"$capath\"" >>confdefs.h
28649
28650     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
28651 printf "%s\n" "$capath (capath)" >&6; }
28652   fi
28653   if test "x$ca" = "xno" && test "x$capath" = "xno"; then
28654     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28655 printf "%s\n" "no" >&6; }
28656   fi
28657
28658   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
28659 printf %s "checking whether to use builtin CA store of SSL library... " >&6; }
28660
28661 # Check whether --with-ca-fallback was given.
28662 if test ${with_ca_fallback+y}
28663 then :
28664   withval=$with_ca_fallback;
28665     if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
28666       as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
28667     fi
28668
28669 else $as_nop
28670    with_ca_fallback="no"
28671 fi
28672
28673   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
28674 printf "%s\n" "$with_ca_fallback" >&6; }
28675   if test "x$with_ca_fallback" = "xyes"; then
28676     if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
28677       as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
28678     fi
28679
28680 printf "%s\n" "#define CURL_CA_FALLBACK 1" >>confdefs.h
28681
28682   fi
28683
28684 fi
28685
28686
28687
28688 # Check whether --with-libpsl was given.
28689 if test ${with_libpsl+y}
28690 then :
28691   withval=$with_libpsl; with_libpsl=$withval
28692 else $as_nop
28693   with_libpsl=yes
28694 fi
28695
28696 if test $with_libpsl != "no"; then
28697   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
28698 printf %s "checking for library containing psl_builtin... " >&6; }
28699 if test ${ac_cv_search_psl_builtin+y}
28700 then :
28701   printf %s "(cached) " >&6
28702 else $as_nop
28703   ac_func_search_save_LIBS=$LIBS
28704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28705 /* end confdefs.h.  */
28706
28707
28708 #ifdef __cplusplus
28709 extern "C"
28710 #endif
28711 char psl_builtin ();
28712 int main (void)
28713 {
28714 return psl_builtin ();
28715  ;
28716  return 0;
28717 }
28718 _ACEOF
28719 for ac_lib in '' psl
28720 do
28721   if test -z "$ac_lib"; then
28722     ac_res="none required"
28723   else
28724     ac_res=-l$ac_lib
28725     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28726   fi
28727   if ac_fn_c_try_link "$LINENO"
28728 then :
28729   ac_cv_search_psl_builtin=$ac_res
28730 fi
28731 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28732     conftest$ac_exeext
28733   if test ${ac_cv_search_psl_builtin+y}
28734 then :
28735   break
28736 fi
28737 done
28738 if test ${ac_cv_search_psl_builtin+y}
28739 then :
28740
28741 else $as_nop
28742   ac_cv_search_psl_builtin=no
28743 fi
28744 rm conftest.$ac_ext
28745 LIBS=$ac_func_search_save_LIBS
28746 fi
28747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
28748 printf "%s\n" "$ac_cv_search_psl_builtin" >&6; }
28749 ac_res=$ac_cv_search_psl_builtin
28750 if test "$ac_res" != no
28751 then :
28752   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28753   curl_psl_msg="enabled";
28754
28755 printf "%s\n" "#define USE_LIBPSL 1" >>confdefs.h
28756
28757
28758 else $as_nop
28759   curl_psl_msg="no      (libpsl not found)";
28760      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
28761 printf "%s\n" "$as_me: WARNING: libpsl was not found" >&2;}
28762
28763
28764 fi
28765
28766 fi
28767  if test "$curl_psl_msg" = "enabled"; then
28768   USE_LIBPSL_TRUE=
28769   USE_LIBPSL_FALSE='#'
28770 else
28771   USE_LIBPSL_TRUE='#'
28772   USE_LIBPSL_FALSE=
28773 fi
28774
28775
28776
28777
28778
28779 # Check whether --with-libgsasl was given.
28780 if test ${with_libgsasl+y}
28781 then :
28782   withval=$with_libgsasl; with_libgsasl=$withval
28783 else $as_nop
28784   with_libgsasl=yes
28785 fi
28786
28787 if test $with_libgsasl != "no"; then
28788   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gsasl_init" >&5
28789 printf %s "checking for library containing gsasl_init... " >&6; }
28790 if test ${ac_cv_search_gsasl_init+y}
28791 then :
28792   printf %s "(cached) " >&6
28793 else $as_nop
28794   ac_func_search_save_LIBS=$LIBS
28795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28796 /* end confdefs.h.  */
28797
28798
28799 #ifdef __cplusplus
28800 extern "C"
28801 #endif
28802 char gsasl_init ();
28803 int main (void)
28804 {
28805 return gsasl_init ();
28806  ;
28807  return 0;
28808 }
28809 _ACEOF
28810 for ac_lib in '' gsasl
28811 do
28812   if test -z "$ac_lib"; then
28813     ac_res="none required"
28814   else
28815     ac_res=-l$ac_lib
28816     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28817   fi
28818   if ac_fn_c_try_link "$LINENO"
28819 then :
28820   ac_cv_search_gsasl_init=$ac_res
28821 fi
28822 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28823     conftest$ac_exeext
28824   if test ${ac_cv_search_gsasl_init+y}
28825 then :
28826   break
28827 fi
28828 done
28829 if test ${ac_cv_search_gsasl_init+y}
28830 then :
28831
28832 else $as_nop
28833   ac_cv_search_gsasl_init=no
28834 fi
28835 rm conftest.$ac_ext
28836 LIBS=$ac_func_search_save_LIBS
28837 fi
28838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gsasl_init" >&5
28839 printf "%s\n" "$ac_cv_search_gsasl_init" >&6; }
28840 ac_res=$ac_cv_search_gsasl_init
28841 if test "$ac_res" != no
28842 then :
28843   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28844   curl_gsasl_msg="enabled";
28845
28846 printf "%s\n" "#define USE_GSASL 1" >>confdefs.h
28847
28848
28849 else $as_nop
28850   curl_gsasl_msg="no      (libgsasl not found)";
28851      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libgsasl was not found" >&5
28852 printf "%s\n" "$as_me: WARNING: libgsasl was not found" >&2;}
28853
28854
28855 fi
28856
28857 fi
28858  if test "$curl_gsasl_msg" = "enabled"; then
28859   USE_GSASL_TRUE=
28860   USE_GSASL_FALSE='#'
28861 else
28862   USE_GSASL_TRUE='#'
28863   USE_GSASL_FALSE=
28864 fi
28865
28866
28867
28868 # Check whether --with-libmetalink was given.
28869 if test ${with_libmetalink+y}
28870 then :
28871   withval=$with_libmetalink; as_fn_error $? "--with-libmetalink no longer works!" "$LINENO" 5
28872 fi
28873
28874
28875
28876 OPT_LIBSSH2=off
28877
28878 # Check whether --with-libssh2 was given.
28879 if test ${with_libssh2+y}
28880 then :
28881   withval=$with_libssh2; OPT_LIBSSH2=$withval
28882 else $as_nop
28883   OPT_LIBSSH2=no
28884 fi
28885
28886
28887
28888 OPT_LIBSSH=off
28889
28890 # Check whether --with-libssh was given.
28891 if test ${with_libssh+y}
28892 then :
28893   withval=$with_libssh; OPT_LIBSSH=$withval
28894 else $as_nop
28895   OPT_LIBSSH=no
28896 fi
28897
28898
28899 OPT_WOLFSSH=off
28900
28901 # Check whether --with-wolfssh was given.
28902 if test ${with_wolfssh+y}
28903 then :
28904   withval=$with_wolfssh; OPT_WOLFSSH=$withval
28905 else $as_nop
28906   OPT_WOLFSSH=no
28907 fi
28908
28909
28910 if test X"$OPT_LIBSSH2" != Xno; then
28911     CLEANLDFLAGS="$LDFLAGS"
28912   CLEANCPPFLAGS="$CPPFLAGS"
28913   CLEANLIBS="$LIBS"
28914
28915   case "$OPT_LIBSSH2" in
28916   yes)
28917
28918     if test -n "$PKG_CONFIG"; then
28919       PKGCONFIG="$PKG_CONFIG"
28920     else
28921       if test -n "$ac_tool_prefix"; then
28922   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28923 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28925 printf %s "checking for $ac_word... " >&6; }
28926 if test ${ac_cv_path_PKGCONFIG+y}
28927 then :
28928   printf %s "(cached) " >&6
28929 else $as_nop
28930   case $PKGCONFIG in
28931   [\\/]* | ?:[\\/]*)
28932   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
28933   ;;
28934   *)
28935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28936 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28937 for as_dir in $as_dummy
28938 do
28939   IFS=$as_save_IFS
28940   case $as_dir in #(((
28941     '') as_dir=./ ;;
28942     */) ;;
28943     *) as_dir=$as_dir/ ;;
28944   esac
28945     for ac_exec_ext in '' $ac_executable_extensions; do
28946   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28947     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28948     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28949     break 2
28950   fi
28951 done
28952   done
28953 IFS=$as_save_IFS
28954
28955   ;;
28956 esac
28957 fi
28958 PKGCONFIG=$ac_cv_path_PKGCONFIG
28959 if test -n "$PKGCONFIG"; then
28960   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
28961 printf "%s\n" "$PKGCONFIG" >&6; }
28962 else
28963   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28964 printf "%s\n" "no" >&6; }
28965 fi
28966
28967
28968 fi
28969 if test -z "$ac_cv_path_PKGCONFIG"; then
28970   ac_pt_PKGCONFIG=$PKGCONFIG
28971   # Extract the first word of "pkg-config", so it can be a program name with args.
28972 set dummy pkg-config; ac_word=$2
28973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28974 printf %s "checking for $ac_word... " >&6; }
28975 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
28976 then :
28977   printf %s "(cached) " >&6
28978 else $as_nop
28979   case $ac_pt_PKGCONFIG in
28980   [\\/]* | ?:[\\/]*)
28981   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
28982   ;;
28983   *)
28984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28985 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28986 for as_dir in $as_dummy
28987 do
28988   IFS=$as_save_IFS
28989   case $as_dir in #(((
28990     '') as_dir=./ ;;
28991     */) ;;
28992     *) as_dir=$as_dir/ ;;
28993   esac
28994     for ac_exec_ext in '' $ac_executable_extensions; do
28995   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28996     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28997     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28998     break 2
28999   fi
29000 done
29001   done
29002 IFS=$as_save_IFS
29003
29004   ;;
29005 esac
29006 fi
29007 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29008 if test -n "$ac_pt_PKGCONFIG"; then
29009   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29010 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
29011 else
29012   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29013 printf "%s\n" "no" >&6; }
29014 fi
29015
29016   if test "x$ac_pt_PKGCONFIG" = x; then
29017     PKGCONFIG="no"
29018   else
29019     case $cross_compiling:$ac_tool_warned in
29020 yes:)
29021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29022 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29023 ac_tool_warned=yes ;;
29024 esac
29025     PKGCONFIG=$ac_pt_PKGCONFIG
29026   fi
29027 else
29028   PKGCONFIG="$ac_cv_path_PKGCONFIG"
29029 fi
29030
29031     fi
29032
29033     if test "x$PKGCONFIG" != "xno"; then
29034       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
29035 printf %s "checking for libssh2 options with pkg-config... " >&6; }
29036             itexists=`
29037     if test -n ""; then
29038       PKG_CONFIG_LIBDIR=""
29039       export PKG_CONFIG_LIBDIR
29040     fi
29041          $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
29042
29043       if test -z "$itexists"; then
29044                         PKGCONFIG="no"
29045         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29046 printf "%s\n" "no" >&6; }
29047       else
29048         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
29049 printf "%s\n" "found" >&6; }
29050       fi
29051     fi
29052
29053
29054     if test "$PKGCONFIG" != "no" ; then
29055       LIB_SSH2=`$PKGCONFIG --libs libssh2`
29056       LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
29057       CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
29058       version=`$PKGCONFIG --modversion libssh2`
29059       DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/^-L//'`
29060     fi
29061
29062     ;;
29063   off)
29064         ;;
29065   *)
29066         PREFIX_SSH2=$OPT_LIBSSH2
29067     ;;
29068   esac
29069
29070     if test -n "$PREFIX_SSH2"; then
29071     LIB_SSH2="-lssh2"
29072     LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
29073     CPP_SSH2=-I${PREFIX_SSH2}/include
29074     DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
29075   fi
29076
29077   LDFLAGS="$LDFLAGS $LD_SSH2"
29078   CPPFLAGS="$CPPFLAGS $CPP_SSH2"
29079   LIBS="$LIB_SSH2 $LIBS"
29080
29081     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2_session_block_directions in -lssh2" >&5
29082 printf %s "checking for libssh2_session_block_directions in -lssh2... " >&6; }
29083 if test ${ac_cv_lib_ssh2_libssh2_session_block_directions+y}
29084 then :
29085   printf %s "(cached) " >&6
29086 else $as_nop
29087   ac_check_lib_save_LIBS=$LIBS
29088 LIBS="-lssh2  $LIBS"
29089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29090 /* end confdefs.h.  */
29091
29092
29093 #ifdef __cplusplus
29094 extern "C"
29095 #endif
29096 char libssh2_session_block_directions ();
29097 int main (void)
29098 {
29099 return libssh2_session_block_directions ();
29100  ;
29101  return 0;
29102 }
29103 _ACEOF
29104 if ac_fn_c_try_link "$LINENO"
29105 then :
29106   ac_cv_lib_ssh2_libssh2_session_block_directions=yes
29107 else $as_nop
29108   ac_cv_lib_ssh2_libssh2_session_block_directions=no
29109 fi
29110 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29111     conftest$ac_exeext conftest.$ac_ext
29112 LIBS=$ac_check_lib_save_LIBS
29113 fi
29114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_session_block_directions" >&5
29115 printf "%s\n" "$ac_cv_lib_ssh2_libssh2_session_block_directions" >&6; }
29116 if test "x$ac_cv_lib_ssh2_libssh2_session_block_directions" = xyes
29117 then :
29118   printf "%s\n" "#define HAVE_LIBSSH2 1" >>confdefs.h
29119
29120   LIBS="-lssh2 $LIBS"
29121
29122 fi
29123
29124
29125          for ac_header in libssh2.h
29126 do :
29127   ac_fn_c_check_header_compile "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
29128 if test "x$ac_cv_header_libssh2_h" = xyes
29129 then :
29130   printf "%s\n" "#define HAVE_LIBSSH2_H 1" >>confdefs.h
29131  curl_ssh_msg="enabled (libSSH2)"
29132     LIBSSH2_ENABLED=1
29133
29134 printf "%s\n" "#define USE_LIBSSH2 1" >>confdefs.h
29135
29136     USE_LIBSSH2=1
29137
29138
29139 fi
29140
29141 done
29142
29143   if test X"$OPT_LIBSSH2" != Xoff &&
29144      test "$LIBSSH2_ENABLED" != "1"; then
29145     as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
29146   fi
29147
29148   if test "$LIBSSH2_ENABLED" = "1"; then
29149     if test -n "$DIR_SSH2"; then
29150
29151        if test "x$cross_compiling" != "xyes"; then
29152          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH2"
29153          export CURL_LIBRARY_PATH
29154          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&5
29155 printf "%s\n" "$as_me: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&6;}
29156        fi
29157     fi
29158   else
29159         LDFLAGS=$CLEANLDFLAGS
29160     CPPFLAGS=$CLEANCPPFLAGS
29161     LIBS=$CLEANLIBS
29162   fi
29163 elif test X"$OPT_LIBSSH" != Xno; then
29164     CLEANLDFLAGS="$LDFLAGS"
29165   CLEANCPPFLAGS="$CPPFLAGS"
29166   CLEANLIBS="$LIBS"
29167
29168   case "$OPT_LIBSSH" in
29169   yes)
29170
29171     if test -n "$PKG_CONFIG"; then
29172       PKGCONFIG="$PKG_CONFIG"
29173     else
29174       if test -n "$ac_tool_prefix"; then
29175   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29176 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29178 printf %s "checking for $ac_word... " >&6; }
29179 if test ${ac_cv_path_PKGCONFIG+y}
29180 then :
29181   printf %s "(cached) " >&6
29182 else $as_nop
29183   case $PKGCONFIG in
29184   [\\/]* | ?:[\\/]*)
29185   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29186   ;;
29187   *)
29188   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29189 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29190 for as_dir in $as_dummy
29191 do
29192   IFS=$as_save_IFS
29193   case $as_dir in #(((
29194     '') as_dir=./ ;;
29195     */) ;;
29196     *) as_dir=$as_dir/ ;;
29197   esac
29198     for ac_exec_ext in '' $ac_executable_extensions; do
29199   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29200     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29201     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29202     break 2
29203   fi
29204 done
29205   done
29206 IFS=$as_save_IFS
29207
29208   ;;
29209 esac
29210 fi
29211 PKGCONFIG=$ac_cv_path_PKGCONFIG
29212 if test -n "$PKGCONFIG"; then
29213   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29214 printf "%s\n" "$PKGCONFIG" >&6; }
29215 else
29216   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29217 printf "%s\n" "no" >&6; }
29218 fi
29219
29220
29221 fi
29222 if test -z "$ac_cv_path_PKGCONFIG"; then
29223   ac_pt_PKGCONFIG=$PKGCONFIG
29224   # Extract the first word of "pkg-config", so it can be a program name with args.
29225 set dummy pkg-config; ac_word=$2
29226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29227 printf %s "checking for $ac_word... " >&6; }
29228 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
29229 then :
29230   printf %s "(cached) " >&6
29231 else $as_nop
29232   case $ac_pt_PKGCONFIG in
29233   [\\/]* | ?:[\\/]*)
29234   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29235   ;;
29236   *)
29237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29238 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29239 for as_dir in $as_dummy
29240 do
29241   IFS=$as_save_IFS
29242   case $as_dir in #(((
29243     '') as_dir=./ ;;
29244     */) ;;
29245     *) as_dir=$as_dir/ ;;
29246   esac
29247     for ac_exec_ext in '' $ac_executable_extensions; do
29248   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29249     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29250     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29251     break 2
29252   fi
29253 done
29254   done
29255 IFS=$as_save_IFS
29256
29257   ;;
29258 esac
29259 fi
29260 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29261 if test -n "$ac_pt_PKGCONFIG"; then
29262   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29263 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
29264 else
29265   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29266 printf "%s\n" "no" >&6; }
29267 fi
29268
29269   if test "x$ac_pt_PKGCONFIG" = x; then
29270     PKGCONFIG="no"
29271   else
29272     case $cross_compiling:$ac_tool_warned in
29273 yes:)
29274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29275 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29276 ac_tool_warned=yes ;;
29277 esac
29278     PKGCONFIG=$ac_pt_PKGCONFIG
29279   fi
29280 else
29281   PKGCONFIG="$ac_cv_path_PKGCONFIG"
29282 fi
29283
29284     fi
29285
29286     if test "x$PKGCONFIG" != "xno"; then
29287       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5
29288 printf %s "checking for libssh options with pkg-config... " >&6; }
29289             itexists=`
29290     if test -n ""; then
29291       PKG_CONFIG_LIBDIR=""
29292       export PKG_CONFIG_LIBDIR
29293     fi
29294          $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1`
29295
29296       if test -z "$itexists"; then
29297                         PKGCONFIG="no"
29298         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29299 printf "%s\n" "no" >&6; }
29300       else
29301         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
29302 printf "%s\n" "found" >&6; }
29303       fi
29304     fi
29305
29306
29307     if test "$PKGCONFIG" != "no" ; then
29308       LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
29309       LD_SSH=`$PKGCONFIG --libs-only-L libssh`
29310       CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
29311       version=`$PKGCONFIG --modversion libssh`
29312       DIR_SSH=`echo $LD_SSH | $SED -e 's/^-L//'`
29313     fi
29314
29315     ;;
29316   off)
29317         ;;
29318   *)
29319         PREFIX_SSH=$OPT_LIBSSH
29320     ;;
29321   esac
29322
29323     if test -n "$PREFIX_SSH"; then
29324     LIB_SSH="-lssh"
29325     LD_SSH=-L${PREFIX_SSH}/lib$libsuff
29326     CPP_SSH=-I${PREFIX_SSH}/include
29327     DIR_SSH=${PREFIX_SSH}/lib$libsuff
29328   fi
29329
29330   LDFLAGS="$LDFLAGS $LD_SSH"
29331   CPPFLAGS="$CPPFLAGS $CPP_SSH"
29332   LIBS="$LIB_SSH $LIBS"
29333
29334   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5
29335 printf %s "checking for ssh_new in -lssh... " >&6; }
29336 if test ${ac_cv_lib_ssh_ssh_new+y}
29337 then :
29338   printf %s "(cached) " >&6
29339 else $as_nop
29340   ac_check_lib_save_LIBS=$LIBS
29341 LIBS="-lssh  $LIBS"
29342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29343 /* end confdefs.h.  */
29344
29345
29346 #ifdef __cplusplus
29347 extern "C"
29348 #endif
29349 char ssh_new ();
29350 int main (void)
29351 {
29352 return ssh_new ();
29353  ;
29354  return 0;
29355 }
29356 _ACEOF
29357 if ac_fn_c_try_link "$LINENO"
29358 then :
29359   ac_cv_lib_ssh_ssh_new=yes
29360 else $as_nop
29361   ac_cv_lib_ssh_ssh_new=no
29362 fi
29363 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29364     conftest$ac_exeext conftest.$ac_ext
29365 LIBS=$ac_check_lib_save_LIBS
29366 fi
29367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5
29368 printf "%s\n" "$ac_cv_lib_ssh_ssh_new" >&6; }
29369 if test "x$ac_cv_lib_ssh_ssh_new" = xyes
29370 then :
29371   printf "%s\n" "#define HAVE_LIBSSH 1" >>confdefs.h
29372
29373   LIBS="-lssh $LIBS"
29374
29375 fi
29376
29377
29378          for ac_header in libssh/libssh.h
29379 do :
29380   ac_fn_c_check_header_compile "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default"
29381 if test "x$ac_cv_header_libssh_libssh_h" = xyes
29382 then :
29383   printf "%s\n" "#define HAVE_LIBSSH_LIBSSH_H 1" >>confdefs.h
29384  curl_ssh_msg="enabled (libSSH)"
29385     LIBSSH_ENABLED=1
29386
29387 printf "%s\n" "#define USE_LIBSSH 1" >>confdefs.h
29388
29389     USE_LIBSSH=1
29390
29391
29392 fi
29393
29394 done
29395
29396   if test X"$OPT_LIBSSH" != Xoff &&
29397      test "$LIBSSH_ENABLED" != "1"; then
29398     as_fn_error $? "libSSH libs and/or directories were not found where specified!" "$LINENO" 5
29399   fi
29400
29401   if test "$LIBSSH_ENABLED" = "1"; then
29402     if test -n "$DIR_SSH"; then
29403
29404        if test "x$cross_compiling" != "xyes"; then
29405          CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH"
29406          export CURL_LIBRARY_PATH
29407          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to CURL_LIBRARY_PATH" >&5
29408 printf "%s\n" "$as_me: Added $DIR_SSH to CURL_LIBRARY_PATH" >&6;}
29409        fi
29410     fi
29411   else
29412         LDFLAGS=$CLEANLDFLAGS
29413     CPPFLAGS=$CLEANCPPFLAGS
29414     LIBS=$CLEANLIBS
29415   fi
29416 elif test X"$OPT_WOLFSSH" != Xno; then
29417     CLEANLDFLAGS="$LDFLAGS"
29418   CLEANCPPFLAGS="$CPPFLAGS"
29419   CLEANLIBS="$LIBS"
29420
29421
29422   if test "$OPT_WOLFSSH" != yes; then
29423      WOLFCONFIG="$OPT_WOLFSSH/bin/wolfssh-config"
29424      LDFLAGS="$LDFLAGS `$WOLFCONFIG --libs`"
29425      CPPFLAGS="$CPPFLAGS `$WOLFCONFIG --cflags`"
29426   fi
29427
29428   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfSSH_Init in -lwolfssh" >&5
29429 printf %s "checking for wolfSSH_Init in -lwolfssh... " >&6; }
29430 if test ${ac_cv_lib_wolfssh_wolfSSH_Init+y}
29431 then :
29432   printf %s "(cached) " >&6
29433 else $as_nop
29434   ac_check_lib_save_LIBS=$LIBS
29435 LIBS="-lwolfssh  $LIBS"
29436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29437 /* end confdefs.h.  */
29438
29439
29440 #ifdef __cplusplus
29441 extern "C"
29442 #endif
29443 char wolfSSH_Init ();
29444 int main (void)
29445 {
29446 return wolfSSH_Init ();
29447  ;
29448  return 0;
29449 }
29450 _ACEOF
29451 if ac_fn_c_try_link "$LINENO"
29452 then :
29453   ac_cv_lib_wolfssh_wolfSSH_Init=yes
29454 else $as_nop
29455   ac_cv_lib_wolfssh_wolfSSH_Init=no
29456 fi
29457 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29458     conftest$ac_exeext conftest.$ac_ext
29459 LIBS=$ac_check_lib_save_LIBS
29460 fi
29461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wolfssh_wolfSSH_Init" >&5
29462 printf "%s\n" "$ac_cv_lib_wolfssh_wolfSSH_Init" >&6; }
29463 if test "x$ac_cv_lib_wolfssh_wolfSSH_Init" = xyes
29464 then :
29465   printf "%s\n" "#define HAVE_LIBWOLFSSH 1" >>confdefs.h
29466
29467   LIBS="-lwolfssh $LIBS"
29468
29469 fi
29470
29471
29472          for ac_header in wolfssh/ssh.h
29473 do :
29474   ac_fn_c_check_header_compile "$LINENO" "wolfssh/ssh.h" "ac_cv_header_wolfssh_ssh_h" "$ac_includes_default"
29475 if test "x$ac_cv_header_wolfssh_ssh_h" = xyes
29476 then :
29477   printf "%s\n" "#define HAVE_WOLFSSH_SSH_H 1" >>confdefs.h
29478  curl_ssh_msg="enabled (wolfSSH)"
29479     WOLFSSH_ENABLED=1
29480
29481 printf "%s\n" "#define USE_WOLFSSH 1" >>confdefs.h
29482
29483     USE_WOLFSSH=1
29484
29485
29486 fi
29487
29488 done
29489
29490 fi
29491
29492
29493 OPT_LIBRTMP=off
29494
29495 # Check whether --with-librtmp was given.
29496 if test ${with_librtmp+y}
29497 then :
29498   withval=$with_librtmp; OPT_LIBRTMP=$withval
29499 fi
29500
29501
29502 if test X"$OPT_LIBRTMP" != Xno; then
29503     CLEANLDFLAGS="$LDFLAGS"
29504   CLEANCPPFLAGS="$CPPFLAGS"
29505   CLEANLIBS="$LIBS"
29506
29507   case "$OPT_LIBRTMP" in
29508   yes)
29509
29510     if test -n "$PKG_CONFIG"; then
29511       PKGCONFIG="$PKG_CONFIG"
29512     else
29513       if test -n "$ac_tool_prefix"; then
29514   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29515 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29517 printf %s "checking for $ac_word... " >&6; }
29518 if test ${ac_cv_path_PKGCONFIG+y}
29519 then :
29520   printf %s "(cached) " >&6
29521 else $as_nop
29522   case $PKGCONFIG in
29523   [\\/]* | ?:[\\/]*)
29524   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29525   ;;
29526   *)
29527   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29528 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29529 for as_dir in $as_dummy
29530 do
29531   IFS=$as_save_IFS
29532   case $as_dir in #(((
29533     '') as_dir=./ ;;
29534     */) ;;
29535     *) as_dir=$as_dir/ ;;
29536   esac
29537     for ac_exec_ext in '' $ac_executable_extensions; do
29538   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29539     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29540     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29541     break 2
29542   fi
29543 done
29544   done
29545 IFS=$as_save_IFS
29546
29547   ;;
29548 esac
29549 fi
29550 PKGCONFIG=$ac_cv_path_PKGCONFIG
29551 if test -n "$PKGCONFIG"; then
29552   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29553 printf "%s\n" "$PKGCONFIG" >&6; }
29554 else
29555   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29556 printf "%s\n" "no" >&6; }
29557 fi
29558
29559
29560 fi
29561 if test -z "$ac_cv_path_PKGCONFIG"; then
29562   ac_pt_PKGCONFIG=$PKGCONFIG
29563   # Extract the first word of "pkg-config", so it can be a program name with args.
29564 set dummy pkg-config; ac_word=$2
29565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29566 printf %s "checking for $ac_word... " >&6; }
29567 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
29568 then :
29569   printf %s "(cached) " >&6
29570 else $as_nop
29571   case $ac_pt_PKGCONFIG in
29572   [\\/]* | ?:[\\/]*)
29573   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29574   ;;
29575   *)
29576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29577 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29578 for as_dir in $as_dummy
29579 do
29580   IFS=$as_save_IFS
29581   case $as_dir in #(((
29582     '') as_dir=./ ;;
29583     */) ;;
29584     *) as_dir=$as_dir/ ;;
29585   esac
29586     for ac_exec_ext in '' $ac_executable_extensions; do
29587   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29588     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29589     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29590     break 2
29591   fi
29592 done
29593   done
29594 IFS=$as_save_IFS
29595
29596   ;;
29597 esac
29598 fi
29599 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29600 if test -n "$ac_pt_PKGCONFIG"; then
29601   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29602 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
29603 else
29604   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29605 printf "%s\n" "no" >&6; }
29606 fi
29607
29608   if test "x$ac_pt_PKGCONFIG" = x; then
29609     PKGCONFIG="no"
29610   else
29611     case $cross_compiling:$ac_tool_warned in
29612 yes:)
29613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29614 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29615 ac_tool_warned=yes ;;
29616 esac
29617     PKGCONFIG=$ac_pt_PKGCONFIG
29618   fi
29619 else
29620   PKGCONFIG="$ac_cv_path_PKGCONFIG"
29621 fi
29622
29623     fi
29624
29625     if test "x$PKGCONFIG" != "xno"; then
29626       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
29627 printf %s "checking for librtmp options with pkg-config... " >&6; }
29628             itexists=`
29629     if test -n ""; then
29630       PKG_CONFIG_LIBDIR=""
29631       export PKG_CONFIG_LIBDIR
29632     fi
29633          $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
29634
29635       if test -z "$itexists"; then
29636                         PKGCONFIG="no"
29637         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29638 printf "%s\n" "no" >&6; }
29639       else
29640         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
29641 printf "%s\n" "found" >&6; }
29642       fi
29643     fi
29644
29645
29646     if test "$PKGCONFIG" != "no" ; then
29647       LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
29648       LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
29649       CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
29650       version=`$PKGCONFIG --modversion librtmp`
29651       DIR_RTMP=`echo $LD_RTMP | $SED -e 's/^-L//'`
29652     else
29653                   as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
29654     fi
29655
29656     ;;
29657   off)
29658         LIB_RTMP="-lrtmp"
29659     ;;
29660   *)
29661         LIB_RTMP="-lrtmp"
29662     PREFIX_RTMP=$OPT_LIBRTMP
29663     ;;
29664   esac
29665
29666     if test -n "$PREFIX_RTMP"; then
29667     LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
29668     CPP_RTMP=-I${PREFIX_RTMP}/include
29669     DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
29670   fi
29671
29672   LDFLAGS="$LDFLAGS $LD_RTMP"
29673   CPPFLAGS="$CPPFLAGS $CPP_RTMP"
29674   LIBS="$LIB_RTMP $LIBS"
29675
29676   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
29677 printf %s "checking for RTMP_Init in -lrtmp... " >&6; }
29678 if test ${ac_cv_lib_rtmp_RTMP_Init+y}
29679 then :
29680   printf %s "(cached) " >&6
29681 else $as_nop
29682   ac_check_lib_save_LIBS=$LIBS
29683 LIBS="-lrtmp  $LIBS"
29684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29685 /* end confdefs.h.  */
29686
29687
29688 #ifdef __cplusplus
29689 extern "C"
29690 #endif
29691 char RTMP_Init ();
29692 int main (void)
29693 {
29694 return RTMP_Init ();
29695  ;
29696  return 0;
29697 }
29698 _ACEOF
29699 if ac_fn_c_try_link "$LINENO"
29700 then :
29701   ac_cv_lib_rtmp_RTMP_Init=yes
29702 else $as_nop
29703   ac_cv_lib_rtmp_RTMP_Init=no
29704 fi
29705 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29706     conftest$ac_exeext conftest.$ac_ext
29707 LIBS=$ac_check_lib_save_LIBS
29708 fi
29709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
29710 printf "%s\n" "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
29711 if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes
29712 then :
29713
29714             for ac_header in librtmp/rtmp.h
29715 do :
29716   ac_fn_c_check_header_compile "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
29717 if test "x$ac_cv_header_librtmp_rtmp_h" = xyes
29718 then :
29719   printf "%s\n" "#define HAVE_LIBRTMP_RTMP_H 1" >>confdefs.h
29720  curl_rtmp_msg="enabled (librtmp)"
29721         LIBRTMP_ENABLED=1
29722
29723 printf "%s\n" "#define USE_LIBRTMP 1" >>confdefs.h
29724
29725         USE_LIBRTMP=1
29726
29727
29728 fi
29729
29730 done
29731
29732 else $as_nop
29733         LDFLAGS=$CLEANLDFLAGS
29734       CPPFLAGS=$CLEANCPPFLAGS
29735       LIBS=$CLEANLIBS
29736
29737 fi
29738
29739
29740   if test X"$OPT_LIBRTMP" != Xoff &&
29741      test "$LIBRTMP_ENABLED" != "1"; then
29742     as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
29743   fi
29744
29745 fi
29746
29747
29748 versioned_symbols_flavour=
29749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
29750 printf %s "checking whether versioned symbols are wanted... " >&6; }
29751 # Check whether --enable-versioned-symbols was given.
29752 if test ${enable_versioned_symbols+y}
29753 then :
29754   enableval=$enable_versioned_symbols;  case "$enableval" in
29755   yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29756 printf "%s\n" "yes" >&6; }
29757     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
29758 printf %s "checking if libraries can be versioned... " >&6; }
29759     GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
29760     if test -z "$GLD"; then
29761         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29762 printf "%s\n" "no" >&6; }
29763         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
29764 printf "%s\n" "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
29765     else
29766         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29767 printf "%s\n" "yes" >&6; }
29768         if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
29769           versioned_symbols_flavour="MULTISSL_"
29770         elif test "x$OPENSSL_ENABLED" = "x1"; then
29771           versioned_symbols_flavour="OPENSSL_"
29772         elif test "x$GNUTLS_ENABLED" = "x1"; then
29773           versioned_symbols_flavour="GNUTLS_"
29774         elif test "x$NSS_ENABLED" = "x1"; then
29775           versioned_symbols_flavour="NSS_"
29776         elif test "x$WOLFSSL_ENABLED" = "x1"; then
29777           versioned_symbols_flavour="WOLFSSL_"
29778         elif test "x$SCHANNEL_ENABLED" = "x1"; then
29779           versioned_symbols_flavour="SCHANNEL_"
29780         elif test "x$SECURETRANSPORT_ENABLED" = "x1"; then
29781           versioned_symbols_flavour="SECURE_TRANSPORT_"
29782         else
29783           versioned_symbols_flavour=""
29784         fi
29785         versioned_symbols="yes"
29786     fi
29787     ;;
29788
29789   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29790 printf "%s\n" "no" >&6; }
29791     ;;
29792   esac
29793
29794 else $as_nop
29795
29796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29797 printf "%s\n" "no" >&6; }
29798
29799
29800 fi
29801
29802
29803 CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
29804
29805  if test "x$versioned_symbols" = 'xyes'; then
29806   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
29807   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
29808 else
29809   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
29810   CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
29811 fi
29812
29813
29814
29815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
29816 printf %s "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
29817 OPT_WINIDN="default"
29818
29819 # Check whether --with-winidn was given.
29820 if test ${with_winidn+y}
29821 then :
29822   withval=$with_winidn; OPT_WINIDN=$withval
29823 fi
29824
29825 case "$OPT_WINIDN" in
29826   no|default)
29827         want_winidn="no"
29828     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29829 printf "%s\n" "no" >&6; }
29830     ;;
29831   yes)
29832         want_winidn="yes"
29833     want_winidn_path="default"
29834     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29835 printf "%s\n" "yes" >&6; }
29836     ;;
29837   *)
29838         want_winidn="yes"
29839     want_winidn_path="$withval"
29840     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
29841 printf "%s\n" "yes ($withval)" >&6; }
29842     ;;
29843 esac
29844
29845 if test "$want_winidn" = "yes"; then
29846     clean_CFLAGS="$CFLAGS"
29847   clean_CPPFLAGS="$CPPFLAGS"
29848   clean_LDFLAGS="$LDFLAGS"
29849   clean_LIBS="$LIBS"
29850   WINIDN_LIBS="-lnormaliz"
29851   WINIDN_CPPFLAGS=""
29852   #
29853   if test "$want_winidn_path" != "default"; then
29854             WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
29855     WINIDN_CPPFLAGS="-I$want_winidn_path/include"
29856     WINIDN_DIR="$want_winidn_path/lib$libsuff"
29857   fi
29858   #
29859     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29860 /* end confdefs.h.  */
29861
29862
29863       #include <windows.h>
29864
29865 int main (void)
29866 {
29867
29868       #if (WINVER < 0x600) && (_WIN32_WINNT < 0x600)
29869       #error
29870       #endif
29871
29872  ;
29873  return 0;
29874 }
29875
29876 _ACEOF
29877 if ac_fn_c_try_compile "$LINENO"
29878 then :
29879
29880
29881 else $as_nop
29882
29883      CFLAGS=`echo $CFLAGS | $SED -e 's/-DWINVER=[^ ]*//g'`
29884      CFLAGS=`echo $CFLAGS | $SED -e 's/-D_WIN32_WINNT=[^ ]*//g'`
29885      CPPFLAGS=`echo $CPPFLAGS | $SED -e 's/-DWINVER=[^ ]*//g'`
29886      CPPFLAGS=`echo $CPPFLAGS | $SED -e 's/-D_WIN32_WINNT=[^ ]*//g'`
29887      WINIDN_CPPFLAGS="$WINIDN_CPPFLAGS -DWINVER=0x0600"
29888
29889 fi
29890 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29891   #
29892   CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
29893   LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
29894   LIBS="$WINIDN_LIBS $LIBS"
29895   #
29896   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
29897 printf %s "checking if IdnToUnicode can be linked... " >&6; }
29898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29899 /* end confdefs.h.  */
29900
29901
29902       #include <windows.h>
29903
29904 int main (void)
29905 {
29906
29907       IdnToUnicode(0, NULL, 0, NULL, 0);
29908
29909  ;
29910  return 0;
29911 }
29912
29913 _ACEOF
29914 if ac_fn_c_try_link "$LINENO"
29915 then :
29916
29917     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29918 printf "%s\n" "yes" >&6; }
29919     tst_links_winidn="yes"
29920
29921 else $as_nop
29922
29923     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29924 printf "%s\n" "no" >&6; }
29925     tst_links_winidn="no"
29926
29927 fi
29928 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29929     conftest$ac_exeext conftest.$ac_ext
29930   #
29931   if test "$tst_links_winidn" = "yes"; then
29932
29933 printf "%s\n" "#define USE_WIN32_IDN 1" >>confdefs.h
29934
29935
29936 printf "%s\n" "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
29937
29938     IDN_ENABLED=1
29939
29940     curl_idn_msg="enabled (Windows-native)"
29941   else
29942     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
29943 printf "%s\n" "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
29944     CFLAGS="$clean_CFLAGS"
29945     CPPFLAGS="$clean_CPPFLAGS"
29946     LDFLAGS="$clean_LDFLAGS"
29947     LIBS="$clean_LIBS"
29948   fi
29949 fi
29950
29951
29952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
29953 printf %s "checking whether to build with libidn2... " >&6; }
29954 OPT_IDN="default"
29955
29956 # Check whether --with-libidn2 was given.
29957 if test ${with_libidn2+y}
29958 then :
29959   withval=$with_libidn2; OPT_IDN=$withval
29960 fi
29961
29962 case "$OPT_IDN" in
29963   no)
29964         want_idn="no"
29965     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29966 printf "%s\n" "no" >&6; }
29967     ;;
29968   default)
29969         want_idn="yes"
29970     want_idn_path="default"
29971     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
29972 printf "%s\n" "(assumed) yes" >&6; }
29973     ;;
29974   yes)
29975         want_idn="yes"
29976     want_idn_path="default"
29977     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29978 printf "%s\n" "yes" >&6; }
29979     ;;
29980   *)
29981         want_idn="yes"
29982     want_idn_path="$withval"
29983     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
29984 printf "%s\n" "yes ($withval)" >&6; }
29985     ;;
29986 esac
29987
29988 if test "$want_idn" = "yes"; then
29989     clean_CPPFLAGS="$CPPFLAGS"
29990   clean_LDFLAGS="$LDFLAGS"
29991   clean_LIBS="$LIBS"
29992   PKGCONFIG="no"
29993   #
29994   if test "$want_idn_path" != "default"; then
29995         IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
29996
29997     if test -n "$PKG_CONFIG"; then
29998       PKGCONFIG="$PKG_CONFIG"
29999     else
30000       if test -n "$ac_tool_prefix"; then
30001   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30002 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30004 printf %s "checking for $ac_word... " >&6; }
30005 if test ${ac_cv_path_PKGCONFIG+y}
30006 then :
30007   printf %s "(cached) " >&6
30008 else $as_nop
30009   case $PKGCONFIG in
30010   [\\/]* | ?:[\\/]*)
30011   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30012   ;;
30013   *)
30014   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30015 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30016 for as_dir in $as_dummy
30017 do
30018   IFS=$as_save_IFS
30019   case $as_dir in #(((
30020     '') as_dir=./ ;;
30021     */) ;;
30022     *) as_dir=$as_dir/ ;;
30023   esac
30024     for ac_exec_ext in '' $ac_executable_extensions; do
30025   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30026     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30027     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30028     break 2
30029   fi
30030 done
30031   done
30032 IFS=$as_save_IFS
30033
30034   ;;
30035 esac
30036 fi
30037 PKGCONFIG=$ac_cv_path_PKGCONFIG
30038 if test -n "$PKGCONFIG"; then
30039   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30040 printf "%s\n" "$PKGCONFIG" >&6; }
30041 else
30042   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30043 printf "%s\n" "no" >&6; }
30044 fi
30045
30046
30047 fi
30048 if test -z "$ac_cv_path_PKGCONFIG"; then
30049   ac_pt_PKGCONFIG=$PKGCONFIG
30050   # Extract the first word of "pkg-config", so it can be a program name with args.
30051 set dummy pkg-config; ac_word=$2
30052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30053 printf %s "checking for $ac_word... " >&6; }
30054 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30055 then :
30056   printf %s "(cached) " >&6
30057 else $as_nop
30058   case $ac_pt_PKGCONFIG in
30059   [\\/]* | ?:[\\/]*)
30060   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30061   ;;
30062   *)
30063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30064 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30065 for as_dir in $as_dummy
30066 do
30067   IFS=$as_save_IFS
30068   case $as_dir in #(((
30069     '') as_dir=./ ;;
30070     */) ;;
30071     *) as_dir=$as_dir/ ;;
30072   esac
30073     for ac_exec_ext in '' $ac_executable_extensions; do
30074   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30075     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30076     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30077     break 2
30078   fi
30079 done
30080   done
30081 IFS=$as_save_IFS
30082
30083   ;;
30084 esac
30085 fi
30086 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30087 if test -n "$ac_pt_PKGCONFIG"; then
30088   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30089 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30090 else
30091   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30092 printf "%s\n" "no" >&6; }
30093 fi
30094
30095   if test "x$ac_pt_PKGCONFIG" = x; then
30096     PKGCONFIG="no"
30097   else
30098     case $cross_compiling:$ac_tool_warned in
30099 yes:)
30100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30101 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30102 ac_tool_warned=yes ;;
30103 esac
30104     PKGCONFIG=$ac_pt_PKGCONFIG
30105   fi
30106 else
30107   PKGCONFIG="$ac_cv_path_PKGCONFIG"
30108 fi
30109
30110     fi
30111
30112     if test "x$PKGCONFIG" != "xno"; then
30113       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
30114 printf %s "checking for libidn2 options with pkg-config... " >&6; }
30115             itexists=`
30116     if test -n "$IDN_PCDIR"; then
30117       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
30118       export PKG_CONFIG_LIBDIR
30119     fi
30120          $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
30121
30122       if test -z "$itexists"; then
30123                         PKGCONFIG="no"
30124         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30125 printf "%s\n" "no" >&6; }
30126       else
30127         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30128 printf "%s\n" "found" >&6; }
30129       fi
30130     fi
30131
30132     if test "$PKGCONFIG" != "no"; then
30133       IDN_LIBS=`
30134     if test -n "$IDN_PCDIR"; then
30135       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
30136       export PKG_CONFIG_LIBDIR
30137     fi
30138          $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
30139       IDN_LDFLAGS=`
30140     if test -n "$IDN_PCDIR"; then
30141       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
30142       export PKG_CONFIG_LIBDIR
30143     fi
30144          $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
30145       IDN_CPPFLAGS=`
30146     if test -n "$IDN_PCDIR"; then
30147       PKG_CONFIG_LIBDIR="$IDN_PCDIR"
30148       export PKG_CONFIG_LIBDIR
30149     fi
30150          $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
30151       IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
30152     else
30153             IDN_LIBS="-lidn2"
30154       IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
30155       IDN_CPPFLAGS="-I$want_idn_path/include"
30156       IDN_DIR="$want_idn_path/lib$libsuff"
30157     fi
30158   else
30159
30160     if test -n "$PKG_CONFIG"; then
30161       PKGCONFIG="$PKG_CONFIG"
30162     else
30163       if test -n "$ac_tool_prefix"; then
30164   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30165 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30167 printf %s "checking for $ac_word... " >&6; }
30168 if test ${ac_cv_path_PKGCONFIG+y}
30169 then :
30170   printf %s "(cached) " >&6
30171 else $as_nop
30172   case $PKGCONFIG in
30173   [\\/]* | ?:[\\/]*)
30174   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30175   ;;
30176   *)
30177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30178 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30179 for as_dir in $as_dummy
30180 do
30181   IFS=$as_save_IFS
30182   case $as_dir in #(((
30183     '') as_dir=./ ;;
30184     */) ;;
30185     *) as_dir=$as_dir/ ;;
30186   esac
30187     for ac_exec_ext in '' $ac_executable_extensions; do
30188   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30189     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30190     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30191     break 2
30192   fi
30193 done
30194   done
30195 IFS=$as_save_IFS
30196
30197   ;;
30198 esac
30199 fi
30200 PKGCONFIG=$ac_cv_path_PKGCONFIG
30201 if test -n "$PKGCONFIG"; then
30202   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30203 printf "%s\n" "$PKGCONFIG" >&6; }
30204 else
30205   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30206 printf "%s\n" "no" >&6; }
30207 fi
30208
30209
30210 fi
30211 if test -z "$ac_cv_path_PKGCONFIG"; then
30212   ac_pt_PKGCONFIG=$PKGCONFIG
30213   # Extract the first word of "pkg-config", so it can be a program name with args.
30214 set dummy pkg-config; ac_word=$2
30215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30216 printf %s "checking for $ac_word... " >&6; }
30217 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30218 then :
30219   printf %s "(cached) " >&6
30220 else $as_nop
30221   case $ac_pt_PKGCONFIG in
30222   [\\/]* | ?:[\\/]*)
30223   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30224   ;;
30225   *)
30226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30227 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30228 for as_dir in $as_dummy
30229 do
30230   IFS=$as_save_IFS
30231   case $as_dir in #(((
30232     '') as_dir=./ ;;
30233     */) ;;
30234     *) as_dir=$as_dir/ ;;
30235   esac
30236     for ac_exec_ext in '' $ac_executable_extensions; do
30237   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30238     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30239     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30240     break 2
30241   fi
30242 done
30243   done
30244 IFS=$as_save_IFS
30245
30246   ;;
30247 esac
30248 fi
30249 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30250 if test -n "$ac_pt_PKGCONFIG"; then
30251   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30252 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30253 else
30254   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30255 printf "%s\n" "no" >&6; }
30256 fi
30257
30258   if test "x$ac_pt_PKGCONFIG" = x; then
30259     PKGCONFIG="no"
30260   else
30261     case $cross_compiling:$ac_tool_warned in
30262 yes:)
30263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30264 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30265 ac_tool_warned=yes ;;
30266 esac
30267     PKGCONFIG=$ac_pt_PKGCONFIG
30268   fi
30269 else
30270   PKGCONFIG="$ac_cv_path_PKGCONFIG"
30271 fi
30272
30273     fi
30274
30275     if test "x$PKGCONFIG" != "xno"; then
30276       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
30277 printf %s "checking for libidn2 options with pkg-config... " >&6; }
30278             itexists=`
30279     if test -n ""; then
30280       PKG_CONFIG_LIBDIR=""
30281       export PKG_CONFIG_LIBDIR
30282     fi
30283          $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
30284
30285       if test -z "$itexists"; then
30286                         PKGCONFIG="no"
30287         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30288 printf "%s\n" "no" >&6; }
30289       else
30290         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30291 printf "%s\n" "found" >&6; }
30292       fi
30293     fi
30294
30295     if test "$PKGCONFIG" != "no"; then
30296       IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
30297       IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
30298       IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
30299       IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
30300     else
30301             IDN_LIBS="-lidn2"
30302     fi
30303   fi
30304   #
30305   if test "$PKGCONFIG" != "no"; then
30306     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
30307 printf "%s\n" "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
30308     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
30309 printf "%s\n" "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
30310     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
30311 printf "%s\n" "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
30312     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
30313 printf "%s\n" "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
30314   else
30315     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
30316 printf "%s\n" "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
30317     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
30318 printf "%s\n" "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
30319     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
30320 printf "%s\n" "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
30321     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
30322 printf "%s\n" "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
30323   fi
30324   #
30325   CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
30326   LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
30327   LIBS="$IDN_LIBS $LIBS"
30328   #
30329   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
30330 printf %s "checking if idn2_lookup_ul can be linked... " >&6; }
30331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30332 /* end confdefs.h.  */
30333
30334
30335 #define idn2_lookup_ul innocuous_idn2_lookup_ul
30336 #ifdef __STDC__
30337 # include <limits.h>
30338 #else
30339 # include <assert.h>
30340 #endif
30341 #undef idn2_lookup_ul
30342 #ifdef __cplusplus
30343 extern "C"
30344 #endif
30345 char idn2_lookup_ul ();
30346 #if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
30347 choke me
30348 #endif
30349
30350 int main (void)
30351 {
30352 return idn2_lookup_ul ();
30353  ;
30354  return 0;
30355 }
30356
30357 _ACEOF
30358 if ac_fn_c_try_link "$LINENO"
30359 then :
30360
30361     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30362 printf "%s\n" "yes" >&6; }
30363     tst_links_libidn="yes"
30364
30365 else $as_nop
30366
30367     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30368 printf "%s\n" "no" >&6; }
30369     tst_links_libidn="no"
30370
30371 fi
30372 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30373     conftest$ac_exeext conftest.$ac_ext
30374   #
30375   ac_fn_c_check_header_compile "$LINENO" "idn2.h" "ac_cv_header_idn2_h" "$ac_includes_default"
30376 if test "x$ac_cv_header_idn2_h" = xyes
30377 then :
30378   printf "%s\n" "#define HAVE_IDN2_H 1" >>confdefs.h
30379
30380 fi
30381
30382
30383   if test "$tst_links_libidn" = "yes"; then
30384
30385 printf "%s\n" "#define HAVE_LIBIDN2 1" >>confdefs.h
30386
30387
30388     IDN_ENABLED=1
30389
30390     curl_idn_msg="enabled (libidn2)"
30391     if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
30392       CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$IDN_DIR"
30393       export CURL_LIBRARY_PATH
30394       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to CURL_LIBRARY_PATH" >&5
30395 printf "%s\n" "$as_me: Added $IDN_DIR to CURL_LIBRARY_PATH" >&6;}
30396     fi
30397   else
30398     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
30399 printf "%s\n" "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
30400     CPPFLAGS="$clean_CPPFLAGS"
30401     LDFLAGS="$clean_LDFLAGS"
30402     LIBS="$clean_LIBS"
30403   fi
30404 fi
30405
30406
30407 OPT_H2="yes"
30408
30409 if test "x$disable_http" = "xyes" -o X"$want_hyper" != Xno; then
30410   # without HTTP or with Hyper, nghttp2 is no use
30411   OPT_H2="no"
30412 fi
30413
30414
30415 # Check whether --with-nghttp2 was given.
30416 if test ${with_nghttp2+y}
30417 then :
30418   withval=$with_nghttp2; OPT_H2=$withval
30419 fi
30420
30421 case "$OPT_H2" in
30422   no)
30423         want_nghttp2="no"
30424     ;;
30425   yes)
30426         want_nghttp2="default"
30427     want_nghttp2_path=""
30428     ;;
30429   *)
30430         want_nghttp2="yes"
30431     want_nghttp2_path="$withval/lib/pkgconfig"
30432     ;;
30433 esac
30434
30435 if test X"$want_nghttp2" != Xno; then
30436     CLEANLDFLAGS="$LDFLAGS"
30437   CLEANCPPFLAGS="$CPPFLAGS"
30438   CLEANLIBS="$LIBS"
30439
30440
30441     if test -n "$PKG_CONFIG"; then
30442       PKGCONFIG="$PKG_CONFIG"
30443     else
30444       if test -n "$ac_tool_prefix"; then
30445   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30446 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30448 printf %s "checking for $ac_word... " >&6; }
30449 if test ${ac_cv_path_PKGCONFIG+y}
30450 then :
30451   printf %s "(cached) " >&6
30452 else $as_nop
30453   case $PKGCONFIG in
30454   [\\/]* | ?:[\\/]*)
30455   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30456   ;;
30457   *)
30458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30459 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30460 for as_dir in $as_dummy
30461 do
30462   IFS=$as_save_IFS
30463   case $as_dir in #(((
30464     '') as_dir=./ ;;
30465     */) ;;
30466     *) as_dir=$as_dir/ ;;
30467   esac
30468     for ac_exec_ext in '' $ac_executable_extensions; do
30469   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30470     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30471     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30472     break 2
30473   fi
30474 done
30475   done
30476 IFS=$as_save_IFS
30477
30478   ;;
30479 esac
30480 fi
30481 PKGCONFIG=$ac_cv_path_PKGCONFIG
30482 if test -n "$PKGCONFIG"; then
30483   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30484 printf "%s\n" "$PKGCONFIG" >&6; }
30485 else
30486   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30487 printf "%s\n" "no" >&6; }
30488 fi
30489
30490
30491 fi
30492 if test -z "$ac_cv_path_PKGCONFIG"; then
30493   ac_pt_PKGCONFIG=$PKGCONFIG
30494   # Extract the first word of "pkg-config", so it can be a program name with args.
30495 set dummy pkg-config; ac_word=$2
30496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30497 printf %s "checking for $ac_word... " >&6; }
30498 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30499 then :
30500   printf %s "(cached) " >&6
30501 else $as_nop
30502   case $ac_pt_PKGCONFIG in
30503   [\\/]* | ?:[\\/]*)
30504   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30505   ;;
30506   *)
30507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30508 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30509 for as_dir in $as_dummy
30510 do
30511   IFS=$as_save_IFS
30512   case $as_dir in #(((
30513     '') as_dir=./ ;;
30514     */) ;;
30515     *) as_dir=$as_dir/ ;;
30516   esac
30517     for ac_exec_ext in '' $ac_executable_extensions; do
30518   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30519     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30520     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30521     break 2
30522   fi
30523 done
30524   done
30525 IFS=$as_save_IFS
30526
30527   ;;
30528 esac
30529 fi
30530 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30531 if test -n "$ac_pt_PKGCONFIG"; then
30532   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30533 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30534 else
30535   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30536 printf "%s\n" "no" >&6; }
30537 fi
30538
30539   if test "x$ac_pt_PKGCONFIG" = x; then
30540     PKGCONFIG="no"
30541   else
30542     case $cross_compiling:$ac_tool_warned in
30543 yes:)
30544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30545 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30546 ac_tool_warned=yes ;;
30547 esac
30548     PKGCONFIG=$ac_pt_PKGCONFIG
30549   fi
30550 else
30551   PKGCONFIG="$ac_cv_path_PKGCONFIG"
30552 fi
30553
30554     fi
30555
30556     if test "x$PKGCONFIG" != "xno"; then
30557       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
30558 printf %s "checking for libnghttp2 options with pkg-config... " >&6; }
30559             itexists=`
30560     if test -n "$want_nghttp2_path"; then
30561       PKG_CONFIG_LIBDIR="$want_nghttp2_path"
30562       export PKG_CONFIG_LIBDIR
30563     fi
30564          $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
30565
30566       if test -z "$itexists"; then
30567                         PKGCONFIG="no"
30568         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30569 printf "%s\n" "no" >&6; }
30570       else
30571         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30572 printf "%s\n" "found" >&6; }
30573       fi
30574     fi
30575
30576
30577   if test "$PKGCONFIG" != "no" ; then
30578     LIB_H2=`
30579     if test -n "$want_nghttp2_path"; then
30580       PKG_CONFIG_LIBDIR="$want_nghttp2_path"
30581       export PKG_CONFIG_LIBDIR
30582     fi
30583
30584       $PKGCONFIG --libs-only-l libnghttp2`
30585     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
30586 printf "%s\n" "$as_me: -l is $LIB_H2" >&6;}
30587
30588     CPP_H2=`
30589     if test -n "$want_nghttp2_path"; then
30590       PKG_CONFIG_LIBDIR="$want_nghttp2_path"
30591       export PKG_CONFIG_LIBDIR
30592     fi
30593        $PKGCONFIG --cflags-only-I libnghttp2`
30594     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
30595 printf "%s\n" "$as_me: -I is $CPP_H2" >&6;}
30596
30597     LD_H2=`
30598     if test -n "$want_nghttp2_path"; then
30599       PKG_CONFIG_LIBDIR="$want_nghttp2_path"
30600       export PKG_CONFIG_LIBDIR
30601     fi
30602
30603       $PKGCONFIG --libs-only-L libnghttp2`
30604     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
30605 printf "%s\n" "$as_me: -L is $LD_H2" >&6;}
30606
30607     LDFLAGS="$LDFLAGS $LD_H2"
30608     CPPFLAGS="$CPPFLAGS $CPP_H2"
30609     LIBS="$LIB_H2 $LIBS"
30610
30611     # use nghttp2_session_set_local_window_size to require nghttp2
30612     # >= 1.12.0
30613     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nghttp2_session_set_local_window_size in -lnghttp2" >&5
30614 printf %s "checking for nghttp2_session_set_local_window_size in -lnghttp2... " >&6; }
30615 if test ${ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size+y}
30616 then :
30617   printf %s "(cached) " >&6
30618 else $as_nop
30619   ac_check_lib_save_LIBS=$LIBS
30620 LIBS="-lnghttp2  $LIBS"
30621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30622 /* end confdefs.h.  */
30623
30624
30625 #ifdef __cplusplus
30626 extern "C"
30627 #endif
30628 char nghttp2_session_set_local_window_size ();
30629 int main (void)
30630 {
30631 return nghttp2_session_set_local_window_size ();
30632  ;
30633  return 0;
30634 }
30635 _ACEOF
30636 if ac_fn_c_try_link "$LINENO"
30637 then :
30638   ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size=yes
30639 else $as_nop
30640   ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size=no
30641 fi
30642 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30643     conftest$ac_exeext conftest.$ac_ext
30644 LIBS=$ac_check_lib_save_LIBS
30645 fi
30646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size" >&5
30647 printf "%s\n" "$ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size" >&6; }
30648 if test "x$ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size" = xyes
30649 then :
30650
30651               for ac_header in nghttp2/nghttp2.h
30652 do :
30653   ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
30654 if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes
30655 then :
30656   printf "%s\n" "#define HAVE_NGHTTP2_NGHTTP2_H 1" >>confdefs.h
30657  curl_h2_msg="enabled (nghttp2)"
30658           NGHTTP2_ENABLED=1
30659
30660 printf "%s\n" "#define USE_NGHTTP2 1" >>confdefs.h
30661
30662           USE_NGHTTP2=1
30663
30664
30665 fi
30666
30667 done
30668
30669 else $as_nop
30670           LDFLAGS=$CLEANLDFLAGS
30671         CPPFLAGS=$CLEANCPPFLAGS
30672         LIBS=$CLEANLIBS
30673
30674 fi
30675
30676
30677   else
30678         if test X"$want_nghttp2" != Xdefault; then
30679                   as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
30680     fi
30681   fi
30682
30683 fi
30684
30685
30686 OPT_TCP2="yes"
30687
30688 if test "x$disable_http" = "xyes"; then
30689   # without HTTP, ngtcp2 is no use
30690   OPT_TCP2="no"
30691 fi
30692
30693
30694 # Check whether --with-ngtcp2 was given.
30695 if test ${with_ngtcp2+y}
30696 then :
30697   withval=$with_ngtcp2; OPT_TCP2=$withval
30698 fi
30699
30700 case "$OPT_TCP2" in
30701   no)
30702         want_tcp2="no"
30703     ;;
30704   yes)
30705         want_tcp2="default"
30706     want_tcp2_path=""
30707     ;;
30708   *)
30709         want_tcp2="yes"
30710     want_tcp2_path="$withval/lib/pkgconfig"
30711     ;;
30712 esac
30713
30714 curl_tcp2_msg="no      (--with-ngtcp2)"
30715 if test X"$want_tcp2" != Xno; then
30716     CLEANLDFLAGS="$LDFLAGS"
30717   CLEANCPPFLAGS="$CPPFLAGS"
30718   CLEANLIBS="$LIBS"
30719
30720
30721     if test -n "$PKG_CONFIG"; then
30722       PKGCONFIG="$PKG_CONFIG"
30723     else
30724       if test -n "$ac_tool_prefix"; then
30725   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30726 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30728 printf %s "checking for $ac_word... " >&6; }
30729 if test ${ac_cv_path_PKGCONFIG+y}
30730 then :
30731   printf %s "(cached) " >&6
30732 else $as_nop
30733   case $PKGCONFIG in
30734   [\\/]* | ?:[\\/]*)
30735   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30736   ;;
30737   *)
30738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30739 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30740 for as_dir in $as_dummy
30741 do
30742   IFS=$as_save_IFS
30743   case $as_dir in #(((
30744     '') as_dir=./ ;;
30745     */) ;;
30746     *) as_dir=$as_dir/ ;;
30747   esac
30748     for ac_exec_ext in '' $ac_executable_extensions; do
30749   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30750     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30751     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30752     break 2
30753   fi
30754 done
30755   done
30756 IFS=$as_save_IFS
30757
30758   ;;
30759 esac
30760 fi
30761 PKGCONFIG=$ac_cv_path_PKGCONFIG
30762 if test -n "$PKGCONFIG"; then
30763   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30764 printf "%s\n" "$PKGCONFIG" >&6; }
30765 else
30766   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30767 printf "%s\n" "no" >&6; }
30768 fi
30769
30770
30771 fi
30772 if test -z "$ac_cv_path_PKGCONFIG"; then
30773   ac_pt_PKGCONFIG=$PKGCONFIG
30774   # Extract the first word of "pkg-config", so it can be a program name with args.
30775 set dummy pkg-config; ac_word=$2
30776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30777 printf %s "checking for $ac_word... " >&6; }
30778 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30779 then :
30780   printf %s "(cached) " >&6
30781 else $as_nop
30782   case $ac_pt_PKGCONFIG in
30783   [\\/]* | ?:[\\/]*)
30784   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30785   ;;
30786   *)
30787   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30788 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30789 for as_dir in $as_dummy
30790 do
30791   IFS=$as_save_IFS
30792   case $as_dir in #(((
30793     '') as_dir=./ ;;
30794     */) ;;
30795     *) as_dir=$as_dir/ ;;
30796   esac
30797     for ac_exec_ext in '' $ac_executable_extensions; do
30798   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30799     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30800     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30801     break 2
30802   fi
30803 done
30804   done
30805 IFS=$as_save_IFS
30806
30807   ;;
30808 esac
30809 fi
30810 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30811 if test -n "$ac_pt_PKGCONFIG"; then
30812   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30813 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30814 else
30815   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30816 printf "%s\n" "no" >&6; }
30817 fi
30818
30819   if test "x$ac_pt_PKGCONFIG" = x; then
30820     PKGCONFIG="no"
30821   else
30822     case $cross_compiling:$ac_tool_warned in
30823 yes:)
30824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30825 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30826 ac_tool_warned=yes ;;
30827 esac
30828     PKGCONFIG=$ac_pt_PKGCONFIG
30829   fi
30830 else
30831   PKGCONFIG="$ac_cv_path_PKGCONFIG"
30832 fi
30833
30834     fi
30835
30836     if test "x$PKGCONFIG" != "xno"; then
30837       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2 options with pkg-config" >&5
30838 printf %s "checking for libngtcp2 options with pkg-config... " >&6; }
30839             itexists=`
30840     if test -n "$want_tcp2_path"; then
30841       PKG_CONFIG_LIBDIR="$want_tcp2_path"
30842       export PKG_CONFIG_LIBDIR
30843     fi
30844          $PKGCONFIG --exists libngtcp2 >/dev/null 2>&1 && echo 1`
30845
30846       if test -z "$itexists"; then
30847                         PKGCONFIG="no"
30848         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30849 printf "%s\n" "no" >&6; }
30850       else
30851         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30852 printf "%s\n" "found" >&6; }
30853       fi
30854     fi
30855
30856
30857   if test "$PKGCONFIG" != "no" ; then
30858     LIB_TCP2=`
30859     if test -n "$want_tcp2_path"; then
30860       PKG_CONFIG_LIBDIR="$want_tcp2_path"
30861       export PKG_CONFIG_LIBDIR
30862     fi
30863
30864       $PKGCONFIG --libs-only-l libngtcp2`
30865     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_TCP2" >&5
30866 printf "%s\n" "$as_me: -l is $LIB_TCP2" >&6;}
30867
30868     CPP_TCP2=`
30869     if test -n "$want_tcp2_path"; then
30870       PKG_CONFIG_LIBDIR="$want_tcp2_path"
30871       export PKG_CONFIG_LIBDIR
30872     fi
30873        $PKGCONFIG --cflags-only-I libngtcp2`
30874     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_TCP2" >&5
30875 printf "%s\n" "$as_me: -I is $CPP_TCP2" >&6;}
30876
30877     LD_TCP2=`
30878     if test -n "$want_tcp2_path"; then
30879       PKG_CONFIG_LIBDIR="$want_tcp2_path"
30880       export PKG_CONFIG_LIBDIR
30881     fi
30882
30883       $PKGCONFIG --libs-only-L libngtcp2`
30884     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_TCP2" >&5
30885 printf "%s\n" "$as_me: -L is $LD_TCP2" >&6;}
30886
30887     LDFLAGS="$LDFLAGS $LD_TCP2"
30888     CPPFLAGS="$CPPFLAGS $CPP_TCP2"
30889     LIBS="$LIB_TCP2 $LIBS"
30890
30891     if test "x$cross_compiling" != "xyes"; then
30892       DIR_TCP2=`echo $LD_TCP2 | $SED -e 's/^-L//'`
30893     fi
30894     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_conn_client_new_versioned in -lngtcp2" >&5
30895 printf %s "checking for ngtcp2_conn_client_new_versioned in -lngtcp2... " >&6; }
30896 if test ${ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned+y}
30897 then :
30898   printf %s "(cached) " >&6
30899 else $as_nop
30900   ac_check_lib_save_LIBS=$LIBS
30901 LIBS="-lngtcp2  $LIBS"
30902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30903 /* end confdefs.h.  */
30904
30905
30906 #ifdef __cplusplus
30907 extern "C"
30908 #endif
30909 char ngtcp2_conn_client_new_versioned ();
30910 int main (void)
30911 {
30912 return ngtcp2_conn_client_new_versioned ();
30913  ;
30914  return 0;
30915 }
30916 _ACEOF
30917 if ac_fn_c_try_link "$LINENO"
30918 then :
30919   ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned=yes
30920 else $as_nop
30921   ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned=no
30922 fi
30923 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30924     conftest$ac_exeext conftest.$ac_ext
30925 LIBS=$ac_check_lib_save_LIBS
30926 fi
30927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" >&5
30928 printf "%s\n" "$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" >&6; }
30929 if test "x$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" = xyes
30930 then :
30931
30932               for ac_header in ngtcp2/ngtcp2.h
30933 do :
30934   ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2.h" "ac_cv_header_ngtcp2_ngtcp2_h" "$ac_includes_default"
30935 if test "x$ac_cv_header_ngtcp2_ngtcp2_h" = xyes
30936 then :
30937   printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_H 1" >>confdefs.h
30938  NGTCP2_ENABLED=1
30939
30940 printf "%s\n" "#define USE_NGTCP2 1" >>confdefs.h
30941
30942           USE_NGTCP2=1
30943
30944           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_TCP2"
30945           export CURL_LIBRARY_PATH
30946           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&5
30947 printf "%s\n" "$as_me: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&6;}
30948
30949 fi
30950
30951 done
30952
30953 else $as_nop
30954           LDFLAGS=$CLEANLDFLAGS
30955         CPPFLAGS=$CLEANCPPFLAGS
30956         LIBS=$CLEANLIBS
30957
30958 fi
30959
30960
30961   else
30962         if test X"$want_tcp2" != Xdefault; then
30963                   as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2 pkg-config file." "$LINENO" 5
30964     fi
30965   fi
30966
30967 fi
30968
30969 if test "x$NGTCP2_ENABLED" = "x1" -a "x$OPENSSL_ENABLED" = "x1"; then
30970     CLEANLDFLAGS="$LDFLAGS"
30971   CLEANCPPFLAGS="$CPPFLAGS"
30972   CLEANLIBS="$LIBS"
30973
30974
30975     if test -n "$PKG_CONFIG"; then
30976       PKGCONFIG="$PKG_CONFIG"
30977     else
30978       if test -n "$ac_tool_prefix"; then
30979   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30980 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30982 printf %s "checking for $ac_word... " >&6; }
30983 if test ${ac_cv_path_PKGCONFIG+y}
30984 then :
30985   printf %s "(cached) " >&6
30986 else $as_nop
30987   case $PKGCONFIG in
30988   [\\/]* | ?:[\\/]*)
30989   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30990   ;;
30991   *)
30992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30993 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30994 for as_dir in $as_dummy
30995 do
30996   IFS=$as_save_IFS
30997   case $as_dir in #(((
30998     '') as_dir=./ ;;
30999     */) ;;
31000     *) as_dir=$as_dir/ ;;
31001   esac
31002     for ac_exec_ext in '' $ac_executable_extensions; do
31003   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31004     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31005     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31006     break 2
31007   fi
31008 done
31009   done
31010 IFS=$as_save_IFS
31011
31012   ;;
31013 esac
31014 fi
31015 PKGCONFIG=$ac_cv_path_PKGCONFIG
31016 if test -n "$PKGCONFIG"; then
31017   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31018 printf "%s\n" "$PKGCONFIG" >&6; }
31019 else
31020   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31021 printf "%s\n" "no" >&6; }
31022 fi
31023
31024
31025 fi
31026 if test -z "$ac_cv_path_PKGCONFIG"; then
31027   ac_pt_PKGCONFIG=$PKGCONFIG
31028   # Extract the first word of "pkg-config", so it can be a program name with args.
31029 set dummy pkg-config; ac_word=$2
31030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31031 printf %s "checking for $ac_word... " >&6; }
31032 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31033 then :
31034   printf %s "(cached) " >&6
31035 else $as_nop
31036   case $ac_pt_PKGCONFIG in
31037   [\\/]* | ?:[\\/]*)
31038   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31039   ;;
31040   *)
31041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31042 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31043 for as_dir in $as_dummy
31044 do
31045   IFS=$as_save_IFS
31046   case $as_dir in #(((
31047     '') as_dir=./ ;;
31048     */) ;;
31049     *) as_dir=$as_dir/ ;;
31050   esac
31051     for ac_exec_ext in '' $ac_executable_extensions; do
31052   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31053     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31054     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31055     break 2
31056   fi
31057 done
31058   done
31059 IFS=$as_save_IFS
31060
31061   ;;
31062 esac
31063 fi
31064 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31065 if test -n "$ac_pt_PKGCONFIG"; then
31066   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31067 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31068 else
31069   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31070 printf "%s\n" "no" >&6; }
31071 fi
31072
31073   if test "x$ac_pt_PKGCONFIG" = x; then
31074     PKGCONFIG="no"
31075   else
31076     case $cross_compiling:$ac_tool_warned in
31077 yes:)
31078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31079 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31080 ac_tool_warned=yes ;;
31081 esac
31082     PKGCONFIG=$ac_pt_PKGCONFIG
31083   fi
31084 else
31085   PKGCONFIG="$ac_cv_path_PKGCONFIG"
31086 fi
31087
31088     fi
31089
31090     if test "x$PKGCONFIG" != "xno"; then
31091       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_openssl options with pkg-config" >&5
31092 printf %s "checking for libngtcp2_crypto_openssl options with pkg-config... " >&6; }
31093             itexists=`
31094     if test -n "$want_tcp2_path"; then
31095       PKG_CONFIG_LIBDIR="$want_tcp2_path"
31096       export PKG_CONFIG_LIBDIR
31097     fi
31098          $PKGCONFIG --exists libngtcp2_crypto_openssl >/dev/null 2>&1 && echo 1`
31099
31100       if test -z "$itexists"; then
31101                         PKGCONFIG="no"
31102         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31103 printf "%s\n" "no" >&6; }
31104       else
31105         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31106 printf "%s\n" "found" >&6; }
31107       fi
31108     fi
31109
31110
31111   if test "$PKGCONFIG" != "no" ; then
31112     LIB_NGTCP2_CRYPTO_OPENSSL=`
31113     if test -n "$want_tcp2_path"; then
31114       PKG_CONFIG_LIBDIR="$want_tcp2_path"
31115       export PKG_CONFIG_LIBDIR
31116     fi
31117
31118       $PKGCONFIG --libs-only-l libngtcp2_crypto_openssl`
31119     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_OPENSSL" >&5
31120 printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_OPENSSL" >&6;}
31121
31122     CPP_NGTCP2_CRYPTO_OPENSSL=`
31123     if test -n "$want_tcp2_path"; then
31124       PKG_CONFIG_LIBDIR="$want_tcp2_path"
31125       export PKG_CONFIG_LIBDIR
31126     fi
31127        $PKGCONFIG --cflags-only-I libngtcp2_crypto_openssl`
31128     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_OPENSSL" >&5
31129 printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_OPENSSL" >&6;}
31130
31131     LD_NGTCP2_CRYPTO_OPENSSL=`
31132     if test -n "$want_tcp2_path"; then
31133       PKG_CONFIG_LIBDIR="$want_tcp2_path"
31134       export PKG_CONFIG_LIBDIR
31135     fi
31136
31137       $PKGCONFIG --libs-only-L libngtcp2_crypto_openssl`
31138     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_OPENSSL" >&5
31139 printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_OPENSSL" >&6;}
31140
31141     LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_OPENSSL"
31142     CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_OPENSSL"
31143     LIBS="$LIB_NGTCP2_CRYPTO_OPENSSL $LIBS"
31144
31145     if test "x$cross_compiling" != "xyes"; then
31146       DIR_NGTCP2_CRYPTO_OPENSSL=`echo $LD_NGTCP2_CRYPTO_OPENSSL | $SED -e 's/^-L//'`
31147     fi
31148     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_ctx_initial in -lngtcp2_crypto_openssl" >&5
31149 printf %s "checking for ngtcp2_crypto_ctx_initial in -lngtcp2_crypto_openssl... " >&6; }
31150 if test ${ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial+y}
31151 then :
31152   printf %s "(cached) " >&6
31153 else $as_nop
31154   ac_check_lib_save_LIBS=$LIBS
31155 LIBS="-lngtcp2_crypto_openssl  $LIBS"
31156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31157 /* end confdefs.h.  */
31158
31159
31160 #ifdef __cplusplus
31161 extern "C"
31162 #endif
31163 char ngtcp2_crypto_ctx_initial ();
31164 int main (void)
31165 {
31166 return ngtcp2_crypto_ctx_initial ();
31167  ;
31168  return 0;
31169 }
31170 _ACEOF
31171 if ac_fn_c_try_link "$LINENO"
31172 then :
31173   ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial=yes
31174 else $as_nop
31175   ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial=no
31176 fi
31177 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31178     conftest$ac_exeext conftest.$ac_ext
31179 LIBS=$ac_check_lib_save_LIBS
31180 fi
31181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial" >&5
31182 printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial" >&6; }
31183 if test "x$ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial" = xyes
31184 then :
31185
31186               for ac_header in ngtcp2/ngtcp2_crypto.h
31187 do :
31188   ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
31189 if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
31190 then :
31191   printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
31192  NGTCP2_ENABLED=1
31193
31194 printf "%s\n" "#define USE_NGTCP2_CRYPTO_OPENSSL 1" >>confdefs.h
31195
31196           USE_NGTCP2_CRYPTO_OPENSSL=1
31197
31198           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_OPENSSL"
31199           export CURL_LIBRARY_PATH
31200           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_OPENSSL to CURL_LIBRARY_PATH" >&5
31201 printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_OPENSSL to CURL_LIBRARY_PATH" >&6;}
31202
31203 fi
31204
31205 done
31206
31207 else $as_nop
31208           LDFLAGS=$CLEANLDFLAGS
31209         CPPFLAGS=$CLEANCPPFLAGS
31210         LIBS=$CLEANLIBS
31211
31212 fi
31213
31214
31215   else
31216         if test X"$want_tcp2" != Xdefault; then
31217                   as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_openssl pkg-config file." "$LINENO" 5
31218     fi
31219   fi
31220 fi
31221
31222 if test "x$NGTCP2_ENABLED" = "x1" -a "x$GNUTLS_ENABLED" = "x1"; then
31223     CLEANLDFLAGS="$LDFLAGS"
31224   CLEANCPPFLAGS="$CPPFLAGS"
31225   CLEANLIBS="$LIBS"
31226
31227
31228     if test -n "$PKG_CONFIG"; then
31229       PKGCONFIG="$PKG_CONFIG"
31230     else
31231       if test -n "$ac_tool_prefix"; then
31232   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31233 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31235 printf %s "checking for $ac_word... " >&6; }
31236 if test ${ac_cv_path_PKGCONFIG+y}
31237 then :
31238   printf %s "(cached) " >&6
31239 else $as_nop
31240   case $PKGCONFIG in
31241   [\\/]* | ?:[\\/]*)
31242   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31243   ;;
31244   *)
31245   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31246 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31247 for as_dir in $as_dummy
31248 do
31249   IFS=$as_save_IFS
31250   case $as_dir in #(((
31251     '') as_dir=./ ;;
31252     */) ;;
31253     *) as_dir=$as_dir/ ;;
31254   esac
31255     for ac_exec_ext in '' $ac_executable_extensions; do
31256   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31257     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31258     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31259     break 2
31260   fi
31261 done
31262   done
31263 IFS=$as_save_IFS
31264
31265   ;;
31266 esac
31267 fi
31268 PKGCONFIG=$ac_cv_path_PKGCONFIG
31269 if test -n "$PKGCONFIG"; then
31270   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31271 printf "%s\n" "$PKGCONFIG" >&6; }
31272 else
31273   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31274 printf "%s\n" "no" >&6; }
31275 fi
31276
31277
31278 fi
31279 if test -z "$ac_cv_path_PKGCONFIG"; then
31280   ac_pt_PKGCONFIG=$PKGCONFIG
31281   # Extract the first word of "pkg-config", so it can be a program name with args.
31282 set dummy pkg-config; ac_word=$2
31283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31284 printf %s "checking for $ac_word... " >&6; }
31285 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31286 then :
31287   printf %s "(cached) " >&6
31288 else $as_nop
31289   case $ac_pt_PKGCONFIG in
31290   [\\/]* | ?:[\\/]*)
31291   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31292   ;;
31293   *)
31294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31295 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31296 for as_dir in $as_dummy
31297 do
31298   IFS=$as_save_IFS
31299   case $as_dir in #(((
31300     '') as_dir=./ ;;
31301     */) ;;
31302     *) as_dir=$as_dir/ ;;
31303   esac
31304     for ac_exec_ext in '' $ac_executable_extensions; do
31305   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31306     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31307     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31308     break 2
31309   fi
31310 done
31311   done
31312 IFS=$as_save_IFS
31313
31314   ;;
31315 esac
31316 fi
31317 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31318 if test -n "$ac_pt_PKGCONFIG"; then
31319   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31320 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31321 else
31322   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31323 printf "%s\n" "no" >&6; }
31324 fi
31325
31326   if test "x$ac_pt_PKGCONFIG" = x; then
31327     PKGCONFIG="no"
31328   else
31329     case $cross_compiling:$ac_tool_warned in
31330 yes:)
31331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31332 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31333 ac_tool_warned=yes ;;
31334 esac
31335     PKGCONFIG=$ac_pt_PKGCONFIG
31336   fi
31337 else
31338   PKGCONFIG="$ac_cv_path_PKGCONFIG"
31339 fi
31340
31341     fi
31342
31343     if test "x$PKGCONFIG" != "xno"; then
31344       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_gnutls options with pkg-config" >&5
31345 printf %s "checking for libngtcp2_crypto_gnutls options with pkg-config... " >&6; }
31346             itexists=`
31347     if test -n "$want_tcp2_path"; then
31348       PKG_CONFIG_LIBDIR="$want_tcp2_path"
31349       export PKG_CONFIG_LIBDIR
31350     fi
31351          $PKGCONFIG --exists libngtcp2_crypto_gnutls >/dev/null 2>&1 && echo 1`
31352
31353       if test -z "$itexists"; then
31354                         PKGCONFIG="no"
31355         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31356 printf "%s\n" "no" >&6; }
31357       else
31358         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31359 printf "%s\n" "found" >&6; }
31360       fi
31361     fi
31362
31363
31364   if test "$PKGCONFIG" != "no" ; then
31365     LIB_NGTCP2_CRYPTO_GNUTLS=`
31366     if test -n "$want_tcp2_path"; then
31367       PKG_CONFIG_LIBDIR="$want_tcp2_path"
31368       export PKG_CONFIG_LIBDIR
31369     fi
31370
31371       $PKGCONFIG --libs-only-l libngtcp2_crypto_gnutls`
31372     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_GNUTLS" >&5
31373 printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_GNUTLS" >&6;}
31374
31375     CPP_NGTCP2_CRYPTO_GNUTLS=`
31376     if test -n "$want_tcp2_path"; then
31377       PKG_CONFIG_LIBDIR="$want_tcp2_path"
31378       export PKG_CONFIG_LIBDIR
31379     fi
31380        $PKGCONFIG --cflags-only-I libngtcp2_crypto_gnutls`
31381     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_GNUTLS" >&5
31382 printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_GNUTLS" >&6;}
31383
31384     LD_NGTCP2_CRYPTO_GNUTLS=`
31385     if test -n "$want_tcp2_path"; then
31386       PKG_CONFIG_LIBDIR="$want_tcp2_path"
31387       export PKG_CONFIG_LIBDIR
31388     fi
31389
31390       $PKGCONFIG --libs-only-L libngtcp2_crypto_gnutls`
31391     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_GNUTLS" >&5
31392 printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_GNUTLS" >&6;}
31393
31394     LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_GNUTLS"
31395     CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_GNUTLS"
31396     LIBS="$LIB_NGTCP2_CRYPTO_GNUTLS $LIBS"
31397
31398     if test "x$cross_compiling" != "xyes"; then
31399       DIR_NGTCP2_CRYPTO_GNUTLS=`echo $LD_NGTCP2_CRYPTO_GNUTLS | $SED -e 's/^-L//'`
31400     fi
31401     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_ctx_initial in -lngtcp2_crypto_gnutls" >&5
31402 printf %s "checking for ngtcp2_crypto_ctx_initial in -lngtcp2_crypto_gnutls... " >&6; }
31403 if test ${ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_ctx_initial+y}
31404 then :
31405   printf %s "(cached) " >&6
31406 else $as_nop
31407   ac_check_lib_save_LIBS=$LIBS
31408 LIBS="-lngtcp2_crypto_gnutls  $LIBS"
31409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31410 /* end confdefs.h.  */
31411
31412
31413 #ifdef __cplusplus
31414 extern "C"
31415 #endif
31416 char ngtcp2_crypto_ctx_initial ();
31417 int main (void)
31418 {
31419 return ngtcp2_crypto_ctx_initial ();
31420  ;
31421  return 0;
31422 }
31423 _ACEOF
31424 if ac_fn_c_try_link "$LINENO"
31425 then :
31426   ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_ctx_initial=yes
31427 else $as_nop
31428   ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_ctx_initial=no
31429 fi
31430 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31431     conftest$ac_exeext conftest.$ac_ext
31432 LIBS=$ac_check_lib_save_LIBS
31433 fi
31434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_ctx_initial" >&5
31435 printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_ctx_initial" >&6; }
31436 if test "x$ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_ctx_initial" = xyes
31437 then :
31438
31439               for ac_header in ngtcp2/ngtcp2_crypto.h
31440 do :
31441   ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
31442 if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
31443 then :
31444   printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
31445  NGTCP2_ENABLED=1
31446
31447 printf "%s\n" "#define USE_NGTCP2_CRYPTO_GNUTLS 1" >>confdefs.h
31448
31449           USE_NGTCP2_CRYPTO_GNUTLS=1
31450
31451           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_GNUTLS"
31452           export CURL_LIBRARY_PATH
31453           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_GNUTLS to CURL_LIBRARY_PATH" >&5
31454 printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_GNUTLS to CURL_LIBRARY_PATH" >&6;}
31455
31456 fi
31457
31458 done
31459
31460 else $as_nop
31461           LDFLAGS=$CLEANLDFLAGS
31462         CPPFLAGS=$CLEANCPPFLAGS
31463         LIBS=$CLEANLIBS
31464
31465 fi
31466
31467
31468   else
31469         if test X"$want_tcp2" != Xdefault; then
31470                   as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_gnutls pkg-config file." "$LINENO" 5
31471     fi
31472   fi
31473 fi
31474
31475
31476 OPT_NGHTTP3="yes"
31477
31478 if test "x$NGTCP2_ENABLED" = "x"; then
31479   # without ngtcp2, nghttp3 is of no use for us
31480   OPT_NGHTTP3="no"
31481 fi
31482
31483
31484 # Check whether --with-nghttp3 was given.
31485 if test ${with_nghttp3+y}
31486 then :
31487   withval=$with_nghttp3; OPT_NGHTTP3=$withval
31488 fi
31489
31490 case "$OPT_NGHTTP3" in
31491   no)
31492         want_nghttp3="no"
31493     ;;
31494   yes)
31495         want_nghttp3="default"
31496     want_nghttp3_path=""
31497     ;;
31498   *)
31499         want_nghttp3="yes"
31500     want_nghttp3_path="$withval/lib/pkgconfig"
31501     ;;
31502 esac
31503
31504 curl_http3_msg="no      (--with-nghttp3)"
31505 if test X"$want_nghttp3" != Xno; then
31506     CLEANLDFLAGS="$LDFLAGS"
31507   CLEANCPPFLAGS="$CPPFLAGS"
31508   CLEANLIBS="$LIBS"
31509
31510
31511     if test -n "$PKG_CONFIG"; then
31512       PKGCONFIG="$PKG_CONFIG"
31513     else
31514       if test -n "$ac_tool_prefix"; then
31515   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31516 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31518 printf %s "checking for $ac_word... " >&6; }
31519 if test ${ac_cv_path_PKGCONFIG+y}
31520 then :
31521   printf %s "(cached) " >&6
31522 else $as_nop
31523   case $PKGCONFIG in
31524   [\\/]* | ?:[\\/]*)
31525   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31526   ;;
31527   *)
31528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31529 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31530 for as_dir in $as_dummy
31531 do
31532   IFS=$as_save_IFS
31533   case $as_dir in #(((
31534     '') as_dir=./ ;;
31535     */) ;;
31536     *) as_dir=$as_dir/ ;;
31537   esac
31538     for ac_exec_ext in '' $ac_executable_extensions; do
31539   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31540     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31541     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31542     break 2
31543   fi
31544 done
31545   done
31546 IFS=$as_save_IFS
31547
31548   ;;
31549 esac
31550 fi
31551 PKGCONFIG=$ac_cv_path_PKGCONFIG
31552 if test -n "$PKGCONFIG"; then
31553   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31554 printf "%s\n" "$PKGCONFIG" >&6; }
31555 else
31556   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31557 printf "%s\n" "no" >&6; }
31558 fi
31559
31560
31561 fi
31562 if test -z "$ac_cv_path_PKGCONFIG"; then
31563   ac_pt_PKGCONFIG=$PKGCONFIG
31564   # Extract the first word of "pkg-config", so it can be a program name with args.
31565 set dummy pkg-config; ac_word=$2
31566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31567 printf %s "checking for $ac_word... " >&6; }
31568 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31569 then :
31570   printf %s "(cached) " >&6
31571 else $as_nop
31572   case $ac_pt_PKGCONFIG in
31573   [\\/]* | ?:[\\/]*)
31574   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31575   ;;
31576   *)
31577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31578 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31579 for as_dir in $as_dummy
31580 do
31581   IFS=$as_save_IFS
31582   case $as_dir in #(((
31583     '') as_dir=./ ;;
31584     */) ;;
31585     *) as_dir=$as_dir/ ;;
31586   esac
31587     for ac_exec_ext in '' $ac_executable_extensions; do
31588   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31589     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31590     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31591     break 2
31592   fi
31593 done
31594   done
31595 IFS=$as_save_IFS
31596
31597   ;;
31598 esac
31599 fi
31600 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31601 if test -n "$ac_pt_PKGCONFIG"; then
31602   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31603 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31604 else
31605   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31606 printf "%s\n" "no" >&6; }
31607 fi
31608
31609   if test "x$ac_pt_PKGCONFIG" = x; then
31610     PKGCONFIG="no"
31611   else
31612     case $cross_compiling:$ac_tool_warned in
31613 yes:)
31614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31615 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31616 ac_tool_warned=yes ;;
31617 esac
31618     PKGCONFIG=$ac_pt_PKGCONFIG
31619   fi
31620 else
31621   PKGCONFIG="$ac_cv_path_PKGCONFIG"
31622 fi
31623
31624     fi
31625
31626     if test "x$PKGCONFIG" != "xno"; then
31627       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp3 options with pkg-config" >&5
31628 printf %s "checking for libnghttp3 options with pkg-config... " >&6; }
31629             itexists=`
31630     if test -n "$want_nghttp3_path"; then
31631       PKG_CONFIG_LIBDIR="$want_nghttp3_path"
31632       export PKG_CONFIG_LIBDIR
31633     fi
31634          $PKGCONFIG --exists libnghttp3 >/dev/null 2>&1 && echo 1`
31635
31636       if test -z "$itexists"; then
31637                         PKGCONFIG="no"
31638         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31639 printf "%s\n" "no" >&6; }
31640       else
31641         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31642 printf "%s\n" "found" >&6; }
31643       fi
31644     fi
31645
31646
31647   if test "$PKGCONFIG" != "no" ; then
31648     LIB_NGHTTP3=`
31649     if test -n "$want_nghttp3_path"; then
31650       PKG_CONFIG_LIBDIR="$want_nghttp3_path"
31651       export PKG_CONFIG_LIBDIR
31652     fi
31653
31654       $PKGCONFIG --libs-only-l libnghttp3`
31655     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGHTTP3" >&5
31656 printf "%s\n" "$as_me: -l is $LIB_NGHTTP3" >&6;}
31657
31658     CPP_NGHTTP3=`
31659     if test -n "$want_nghttp3_path"; then
31660       PKG_CONFIG_LIBDIR="$want_nghttp3_path"
31661       export PKG_CONFIG_LIBDIR
31662     fi
31663        $PKGCONFIG --cflags-only-I libnghttp3`
31664     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGHTTP3" >&5
31665 printf "%s\n" "$as_me: -I is $CPP_NGHTTP3" >&6;}
31666
31667     LD_NGHTTP3=`
31668     if test -n "$want_nghttp3_path"; then
31669       PKG_CONFIG_LIBDIR="$want_nghttp3_path"
31670       export PKG_CONFIG_LIBDIR
31671     fi
31672
31673       $PKGCONFIG --libs-only-L libnghttp3`
31674     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGHTTP3" >&5
31675 printf "%s\n" "$as_me: -L is $LD_NGHTTP3" >&6;}
31676
31677     LDFLAGS="$LDFLAGS $LD_NGHTTP3"
31678     CPPFLAGS="$CPPFLAGS $CPP_NGHTTP3"
31679     LIBS="$LIB_NGHTTP3 $LIBS"
31680
31681     if test "x$cross_compiling" != "xyes"; then
31682       DIR_NGHTTP3=`echo $LD_NGHTTP3 | $SED -e 's/^-L//'`
31683     fi
31684     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nghttp3_conn_client_new_versioned in -lnghttp3" >&5
31685 printf %s "checking for nghttp3_conn_client_new_versioned in -lnghttp3... " >&6; }
31686 if test ${ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned+y}
31687 then :
31688   printf %s "(cached) " >&6
31689 else $as_nop
31690   ac_check_lib_save_LIBS=$LIBS
31691 LIBS="-lnghttp3  $LIBS"
31692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31693 /* end confdefs.h.  */
31694
31695
31696 #ifdef __cplusplus
31697 extern "C"
31698 #endif
31699 char nghttp3_conn_client_new_versioned ();
31700 int main (void)
31701 {
31702 return nghttp3_conn_client_new_versioned ();
31703  ;
31704  return 0;
31705 }
31706 _ACEOF
31707 if ac_fn_c_try_link "$LINENO"
31708 then :
31709   ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned=yes
31710 else $as_nop
31711   ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned=no
31712 fi
31713 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31714     conftest$ac_exeext conftest.$ac_ext
31715 LIBS=$ac_check_lib_save_LIBS
31716 fi
31717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" >&5
31718 printf "%s\n" "$ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" >&6; }
31719 if test "x$ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" = xyes
31720 then :
31721
31722               for ac_header in nghttp3/nghttp3.h
31723 do :
31724   ac_fn_c_check_header_compile "$LINENO" "nghttp3/nghttp3.h" "ac_cv_header_nghttp3_nghttp3_h" "$ac_includes_default"
31725 if test "x$ac_cv_header_nghttp3_nghttp3_h" = xyes
31726 then :
31727   printf "%s\n" "#define HAVE_NGHTTP3_NGHTTP3_H 1" >>confdefs.h
31728  curl_h3_msg="enabled (ngtcp2 + nghttp3)"
31729           NGHTTP3_ENABLED=1
31730
31731 printf "%s\n" "#define USE_NGHTTP3 1" >>confdefs.h
31732
31733           USE_NGHTTP3=1
31734
31735           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGHTTP3"
31736           export CURL_LIBRARY_PATH
31737           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&5
31738 printf "%s\n" "$as_me: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&6;}
31739           experimental="$experimental HTTP3"
31740
31741 fi
31742
31743 done
31744
31745 else $as_nop
31746           LDFLAGS=$CLEANLDFLAGS
31747         CPPFLAGS=$CLEANCPPFLAGS
31748         LIBS=$CLEANLIBS
31749
31750 fi
31751
31752
31753   else
31754         if test X"$want_nghttp3" != Xdefault; then
31755                   as_fn_error $? "--with-nghttp3 was specified but could not find nghttp3 pkg-config file." "$LINENO" 5
31756     fi
31757   fi
31758
31759 fi
31760
31761
31762 OPT_QUICHE="no"
31763
31764 if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then
31765   # without HTTP or with ngtcp2, quiche is no use
31766   OPT_QUICHE="no"
31767 fi
31768
31769
31770 # Check whether --with-quiche was given.
31771 if test ${with_quiche+y}
31772 then :
31773   withval=$with_quiche; OPT_QUICHE=$withval
31774 fi
31775
31776 case "$OPT_QUICHE" in
31777   no)
31778         want_quiche="no"
31779     ;;
31780   yes)
31781         want_quiche="default"
31782     want_quiche_path=""
31783     ;;
31784   *)
31785         want_quiche="yes"
31786     want_quiche_path="$withval"
31787     ;;
31788 esac
31789
31790 if test X"$want_quiche" != Xno; then
31791
31792   if test "$NGHTTP3_ENABLED" = 1; then
31793     as_fn_error $? "--with-quiche and --with-ngtcp2 are mutually exclusive" "$LINENO" 5
31794   fi
31795
31796     CLEANLDFLAGS="$LDFLAGS"
31797   CLEANCPPFLAGS="$CPPFLAGS"
31798   CLEANLIBS="$LIBS"
31799
31800
31801     if test -n "$PKG_CONFIG"; then
31802       PKGCONFIG="$PKG_CONFIG"
31803     else
31804       if test -n "$ac_tool_prefix"; then
31805   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31806 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31808 printf %s "checking for $ac_word... " >&6; }
31809 if test ${ac_cv_path_PKGCONFIG+y}
31810 then :
31811   printf %s "(cached) " >&6
31812 else $as_nop
31813   case $PKGCONFIG in
31814   [\\/]* | ?:[\\/]*)
31815   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31816   ;;
31817   *)
31818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31819 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31820 for as_dir in $as_dummy
31821 do
31822   IFS=$as_save_IFS
31823   case $as_dir in #(((
31824     '') as_dir=./ ;;
31825     */) ;;
31826     *) as_dir=$as_dir/ ;;
31827   esac
31828     for ac_exec_ext in '' $ac_executable_extensions; do
31829   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31830     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31831     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31832     break 2
31833   fi
31834 done
31835   done
31836 IFS=$as_save_IFS
31837
31838   ;;
31839 esac
31840 fi
31841 PKGCONFIG=$ac_cv_path_PKGCONFIG
31842 if test -n "$PKGCONFIG"; then
31843   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31844 printf "%s\n" "$PKGCONFIG" >&6; }
31845 else
31846   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31847 printf "%s\n" "no" >&6; }
31848 fi
31849
31850
31851 fi
31852 if test -z "$ac_cv_path_PKGCONFIG"; then
31853   ac_pt_PKGCONFIG=$PKGCONFIG
31854   # Extract the first word of "pkg-config", so it can be a program name with args.
31855 set dummy pkg-config; ac_word=$2
31856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31857 printf %s "checking for $ac_word... " >&6; }
31858 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31859 then :
31860   printf %s "(cached) " >&6
31861 else $as_nop
31862   case $ac_pt_PKGCONFIG in
31863   [\\/]* | ?:[\\/]*)
31864   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31865   ;;
31866   *)
31867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31868 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31869 for as_dir in $as_dummy
31870 do
31871   IFS=$as_save_IFS
31872   case $as_dir in #(((
31873     '') as_dir=./ ;;
31874     */) ;;
31875     *) as_dir=$as_dir/ ;;
31876   esac
31877     for ac_exec_ext in '' $ac_executable_extensions; do
31878   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31879     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31880     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31881     break 2
31882   fi
31883 done
31884   done
31885 IFS=$as_save_IFS
31886
31887   ;;
31888 esac
31889 fi
31890 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31891 if test -n "$ac_pt_PKGCONFIG"; then
31892   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31893 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31894 else
31895   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31896 printf "%s\n" "no" >&6; }
31897 fi
31898
31899   if test "x$ac_pt_PKGCONFIG" = x; then
31900     PKGCONFIG="no"
31901   else
31902     case $cross_compiling:$ac_tool_warned in
31903 yes:)
31904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31905 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31906 ac_tool_warned=yes ;;
31907 esac
31908     PKGCONFIG=$ac_pt_PKGCONFIG
31909   fi
31910 else
31911   PKGCONFIG="$ac_cv_path_PKGCONFIG"
31912 fi
31913
31914     fi
31915
31916     if test "x$PKGCONFIG" != "xno"; then
31917       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche options with pkg-config" >&5
31918 printf %s "checking for quiche options with pkg-config... " >&6; }
31919             itexists=`
31920     if test -n "$want_quiche_path"; then
31921       PKG_CONFIG_LIBDIR="$want_quiche_path"
31922       export PKG_CONFIG_LIBDIR
31923     fi
31924          $PKGCONFIG --exists quiche >/dev/null 2>&1 && echo 1`
31925
31926       if test -z "$itexists"; then
31927                         PKGCONFIG="no"
31928         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31929 printf "%s\n" "no" >&6; }
31930       else
31931         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31932 printf "%s\n" "found" >&6; }
31933       fi
31934     fi
31935
31936
31937   if test "$PKGCONFIG" != "no" ; then
31938     LIB_QUICHE=`
31939     if test -n "$want_quiche_path"; then
31940       PKG_CONFIG_LIBDIR="$want_quiche_path"
31941       export PKG_CONFIG_LIBDIR
31942     fi
31943
31944       $PKGCONFIG --libs-only-l quiche`
31945     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_QUICHE" >&5
31946 printf "%s\n" "$as_me: -l is $LIB_QUICHE" >&6;}
31947
31948     CPP_QUICHE=`
31949     if test -n "$want_quiche_path"; then
31950       PKG_CONFIG_LIBDIR="$want_quiche_path"
31951       export PKG_CONFIG_LIBDIR
31952     fi
31953        $PKGCONFIG --cflags-only-I quiche`
31954     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_QUICHE" >&5
31955 printf "%s\n" "$as_me: -I is $CPP_QUICHE" >&6;}
31956
31957     LD_QUICHE=`
31958     if test -n "$want_quiche_path"; then
31959       PKG_CONFIG_LIBDIR="$want_quiche_path"
31960       export PKG_CONFIG_LIBDIR
31961     fi
31962
31963       $PKGCONFIG --libs-only-L quiche`
31964     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_QUICHE" >&5
31965 printf "%s\n" "$as_me: -L is $LD_QUICHE" >&6;}
31966
31967     LDFLAGS="$LDFLAGS $LD_QUICHE"
31968     CPPFLAGS="$CPPFLAGS $CPP_QUICHE"
31969     LIBS="$LIB_QUICHE $LIBS"
31970
31971     if test "x$cross_compiling" != "xyes"; then
31972       DIR_QUICHE=`echo $LD_QUICHE | $SED -e 's/^-L//'`
31973     fi
31974     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche_connect in -lquiche" >&5
31975 printf %s "checking for quiche_connect in -lquiche... " >&6; }
31976 if test ${ac_cv_lib_quiche_quiche_connect+y}
31977 then :
31978   printf %s "(cached) " >&6
31979 else $as_nop
31980   ac_check_lib_save_LIBS=$LIBS
31981 LIBS="-lquiche  $LIBS"
31982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31983 /* end confdefs.h.  */
31984
31985
31986 #ifdef __cplusplus
31987 extern "C"
31988 #endif
31989 char quiche_connect ();
31990 int main (void)
31991 {
31992 return quiche_connect ();
31993  ;
31994  return 0;
31995 }
31996 _ACEOF
31997 if ac_fn_c_try_link "$LINENO"
31998 then :
31999   ac_cv_lib_quiche_quiche_connect=yes
32000 else $as_nop
32001   ac_cv_lib_quiche_quiche_connect=no
32002 fi
32003 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32004     conftest$ac_exeext conftest.$ac_ext
32005 LIBS=$ac_check_lib_save_LIBS
32006 fi
32007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quiche_quiche_connect" >&5
32008 printf "%s\n" "$ac_cv_lib_quiche_quiche_connect" >&6; }
32009 if test "x$ac_cv_lib_quiche_quiche_connect" = xyes
32010 then :
32011
32012               for ac_header in quiche.h
32013 do :
32014   ac_fn_c_check_header_compile "$LINENO" "quiche.h" "ac_cv_header_quiche_h" "
32015 $ac_includes_default
32016 #include <sys/socket.h>
32017
32018
32019 "
32020 if test "x$ac_cv_header_quiche_h" = xyes
32021 then :
32022   printf "%s\n" "#define HAVE_QUICHE_H 1" >>confdefs.h
32023  experimental="$experimental HTTP3"
32024           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: HTTP3 support is experimental" >&5
32025 printf "%s\n" "$as_me: HTTP3 support is experimental" >&6;}
32026           curl_h3_msg="enabled (quiche)"
32027           QUICHE_ENABLED=1
32028
32029 printf "%s\n" "#define USE_QUICHE 1" >>confdefs.h
32030
32031           USE_QUICHE=1
32032
32033           ac_fn_c_check_func "$LINENO" "quiche_conn_set_qlog_fd" "ac_cv_func_quiche_conn_set_qlog_fd"
32034 if test "x$ac_cv_func_quiche_conn_set_qlog_fd" = xyes
32035 then :
32036   printf "%s\n" "#define HAVE_QUICHE_CONN_SET_QLOG_FD 1" >>confdefs.h
32037
32038 fi
32039
32040           CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_QUICHE"
32041           export CURL_LIBRARY_PATH
32042           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&5
32043 printf "%s\n" "$as_me: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&6;}
32044 fi
32045
32046 done
32047
32048 else $as_nop
32049           as_fn_error $? "couldn't use quiche" "$LINENO" 5
32050
32051 fi
32052
32053   else
32054         if test X"$want_quiche" != Xdefault; then
32055                   as_fn_error $? "--with-quiche was specified but could not find quiche pkg-config file." "$LINENO" 5
32056     fi
32057   fi
32058 fi
32059
32060
32061 OPT_ZSH_FPATH=default
32062
32063 # Check whether --with-zsh-functions-dir was given.
32064 if test ${with_zsh_functions_dir+y}
32065 then :
32066   withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
32067 fi
32068
32069 case "$OPT_ZSH_FPATH" in
32070   no)
32071         ;;
32072   default|yes)
32073         ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
32074
32075     ;;
32076   *)
32077         ZSH_FUNCTIONS_DIR="$withval"
32078
32079     ;;
32080 esac
32081
32082
32083 OPT_FISH_FPATH=default
32084
32085 # Check whether --with-fish-functions-dir was given.
32086 if test ${with_fish_functions_dir+y}
32087 then :
32088   withval=$with_fish_functions_dir; OPT_FISH_FPATH=$withval
32089 fi
32090
32091 case "$OPT_FISH_FPATH" in
32092   no)
32093         ;;
32094   default|yes)
32095
32096     if test -n "$PKG_CONFIG"; then
32097       PKGCONFIG="$PKG_CONFIG"
32098     else
32099       if test -n "$ac_tool_prefix"; then
32100   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32101 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32103 printf %s "checking for $ac_word... " >&6; }
32104 if test ${ac_cv_path_PKGCONFIG+y}
32105 then :
32106   printf %s "(cached) " >&6
32107 else $as_nop
32108   case $PKGCONFIG in
32109   [\\/]* | ?:[\\/]*)
32110   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
32111   ;;
32112   *)
32113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32114 as_dummy="$PATH:/usr/bin:/usr/local/bin"
32115 for as_dir in $as_dummy
32116 do
32117   IFS=$as_save_IFS
32118   case $as_dir in #(((
32119     '') as_dir=./ ;;
32120     */) ;;
32121     *) as_dir=$as_dir/ ;;
32122   esac
32123     for ac_exec_ext in '' $ac_executable_extensions; do
32124   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32125     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32126     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32127     break 2
32128   fi
32129 done
32130   done
32131 IFS=$as_save_IFS
32132
32133   ;;
32134 esac
32135 fi
32136 PKGCONFIG=$ac_cv_path_PKGCONFIG
32137 if test -n "$PKGCONFIG"; then
32138   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
32139 printf "%s\n" "$PKGCONFIG" >&6; }
32140 else
32141   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32142 printf "%s\n" "no" >&6; }
32143 fi
32144
32145
32146 fi
32147 if test -z "$ac_cv_path_PKGCONFIG"; then
32148   ac_pt_PKGCONFIG=$PKGCONFIG
32149   # Extract the first word of "pkg-config", so it can be a program name with args.
32150 set dummy pkg-config; ac_word=$2
32151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32152 printf %s "checking for $ac_word... " >&6; }
32153 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
32154 then :
32155   printf %s "(cached) " >&6
32156 else $as_nop
32157   case $ac_pt_PKGCONFIG in
32158   [\\/]* | ?:[\\/]*)
32159   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
32160   ;;
32161   *)
32162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32163 as_dummy="$PATH:/usr/bin:/usr/local/bin"
32164 for as_dir in $as_dummy
32165 do
32166   IFS=$as_save_IFS
32167   case $as_dir in #(((
32168     '') as_dir=./ ;;
32169     */) ;;
32170     *) as_dir=$as_dir/ ;;
32171   esac
32172     for ac_exec_ext in '' $ac_executable_extensions; do
32173   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32174     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32175     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32176     break 2
32177   fi
32178 done
32179   done
32180 IFS=$as_save_IFS
32181
32182   ;;
32183 esac
32184 fi
32185 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
32186 if test -n "$ac_pt_PKGCONFIG"; then
32187   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
32188 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
32189 else
32190   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32191 printf "%s\n" "no" >&6; }
32192 fi
32193
32194   if test "x$ac_pt_PKGCONFIG" = x; then
32195     PKGCONFIG="no"
32196   else
32197     case $cross_compiling:$ac_tool_warned in
32198 yes:)
32199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32200 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32201 ac_tool_warned=yes ;;
32202 esac
32203     PKGCONFIG=$ac_pt_PKGCONFIG
32204   fi
32205 else
32206   PKGCONFIG="$ac_cv_path_PKGCONFIG"
32207 fi
32208
32209     fi
32210
32211     if test "x$PKGCONFIG" != "xno"; then
32212       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fish options with pkg-config" >&5
32213 printf %s "checking for fish options with pkg-config... " >&6; }
32214             itexists=`
32215     if test -n ""; then
32216       PKG_CONFIG_LIBDIR=""
32217       export PKG_CONFIG_LIBDIR
32218     fi
32219          $PKGCONFIG --exists fish >/dev/null 2>&1 && echo 1`
32220
32221       if test -z "$itexists"; then
32222                         PKGCONFIG="no"
32223         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32224 printf "%s\n" "no" >&6; }
32225       else
32226         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
32227 printf "%s\n" "found" >&6; }
32228       fi
32229     fi
32230
32231     if test "$PKGCONFIG" != "no" ; then
32232       FISH_FUNCTIONS_DIR="$($PKGCONFIG --variable completionsdir fish)"
32233     else
32234       FISH_FUNCTIONS_DIR="$datarootdir/fish/vendor_completions.d"
32235     fi
32236
32237     ;;
32238   *)
32239         FISH_FUNCTIONS_DIR="$withval"
32240
32241     ;;
32242 esac
32243
32244
32245   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
32246 printf %s "checking for malloc.h... " >&6; }
32247 if test ${curl_cv_header_malloc_h+y}
32248 then :
32249   printf %s "(cached) " >&6
32250 else $as_nop
32251
32252     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32253 /* end confdefs.h.  */
32254
32255
32256 #include <malloc.h>
32257
32258 int main (void)
32259 {
32260
32261         void *p = malloc(10);
32262         void *q = calloc(10,10);
32263         free(p);
32264         free(q);
32265
32266  ;
32267  return 0;
32268 }
32269
32270 _ACEOF
32271 if ac_fn_c_try_compile "$LINENO"
32272 then :
32273
32274       curl_cv_header_malloc_h="yes"
32275
32276 else $as_nop
32277
32278       curl_cv_header_malloc_h="no"
32279
32280 fi
32281 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32282
32283 fi
32284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_malloc_h" >&5
32285 printf "%s\n" "$curl_cv_header_malloc_h" >&6; }
32286   if test "$curl_cv_header_malloc_h" = "yes"; then
32287
32288 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
32289
32290     #
32291     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32292 /* end confdefs.h.  */
32293
32294
32295 #include <stdlib.h>
32296
32297 int main (void)
32298 {
32299
32300         void *p = malloc(10);
32301         void *q = calloc(10,10);
32302         free(p);
32303         free(q);
32304
32305  ;
32306  return 0;
32307 }
32308
32309 _ACEOF
32310 if ac_fn_c_try_compile "$LINENO"
32311 then :
32312
32313       curl_cv_need_header_malloc_h="no"
32314
32315 else $as_nop
32316
32317       curl_cv_need_header_malloc_h="yes"
32318
32319 fi
32320 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32321     #
32322     case "$curl_cv_need_header_malloc_h" in
32323       yes)
32324
32325 printf "%s\n" "#define NEED_MALLOC_H 1" >>confdefs.h
32326
32327         ;;
32328     esac
32329   fi
32330
32331
32332   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
32333 printf %s "checking for memory.h... " >&6; }
32334 if test ${curl_cv_header_memory_h+y}
32335 then :
32336   printf %s "(cached) " >&6
32337 else $as_nop
32338
32339     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32340 /* end confdefs.h.  */
32341
32342
32343 #include <memory.h>
32344
32345 int main (void)
32346 {
32347
32348         void *p = malloc(10);
32349         void *q = calloc(10,10);
32350         free(p);
32351         free(q);
32352
32353  ;
32354  return 0;
32355 }
32356
32357 _ACEOF
32358 if ac_fn_c_try_compile "$LINENO"
32359 then :
32360
32361       curl_cv_header_memory_h="yes"
32362
32363 else $as_nop
32364
32365       curl_cv_header_memory_h="no"
32366
32367 fi
32368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32369
32370 fi
32371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_memory_h" >&5
32372 printf "%s\n" "$curl_cv_header_memory_h" >&6; }
32373   if test "$curl_cv_header_memory_h" = "yes"; then
32374
32375 printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
32376
32377     #
32378     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32379 /* end confdefs.h.  */
32380
32381
32382 #include <stdlib.h>
32383
32384 int main (void)
32385 {
32386
32387         void *p = malloc(10);
32388         void *q = calloc(10,10);
32389         free(p);
32390         free(q);
32391
32392  ;
32393  return 0;
32394 }
32395
32396 _ACEOF
32397 if ac_fn_c_try_compile "$LINENO"
32398 then :
32399
32400       curl_cv_need_header_memory_h="no"
32401
32402 else $as_nop
32403
32404       curl_cv_need_header_memory_h="yes"
32405
32406 fi
32407 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32408     #
32409     case "$curl_cv_need_header_memory_h" in
32410       yes)
32411
32412 printf "%s\n" "#define NEED_MEMORY_H 1" >>confdefs.h
32413
32414         ;;
32415     esac
32416   fi
32417
32418
32419 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "
32420 #ifdef HAVE_SYS_TYPES_H
32421 #include <sys/types.h>
32422 #endif
32423 #ifdef HAVE_SYS_TIME_H
32424 #include <sys/time.h>
32425 #endif
32426 #ifdef HAVE_SYS_SELECT_H
32427 #include <sys/select.h>
32428 #elif defined(HAVE_UNISTD_H)
32429 #include <unistd.h>
32430 #endif
32431 #ifdef HAVE_SYS_SOCKET_H
32432 #include <sys/socket.h>
32433 #endif
32434 #ifdef HAVE_NETINET_IN_H
32435 #include <netinet/in.h>
32436 #endif
32437 #ifdef HAVE_NETINET_IN6_H
32438 #include <netinet/in6.h>
32439 #endif
32440 #ifdef HAVE_SYS_UN_H
32441 #include <sys/un.h>
32442 #endif
32443
32444
32445 "
32446 if test "x$ac_cv_header_sys_types_h" = xyes
32447 then :
32448   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
32449
32450 fi
32451 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "
32452 #ifdef HAVE_SYS_TYPES_H
32453 #include <sys/types.h>
32454 #endif
32455 #ifdef HAVE_SYS_TIME_H
32456 #include <sys/time.h>
32457 #endif
32458 #ifdef HAVE_SYS_SELECT_H
32459 #include <sys/select.h>
32460 #elif defined(HAVE_UNISTD_H)
32461 #include <unistd.h>
32462 #endif
32463 #ifdef HAVE_SYS_SOCKET_H
32464 #include <sys/socket.h>
32465 #endif
32466 #ifdef HAVE_NETINET_IN_H
32467 #include <netinet/in.h>
32468 #endif
32469 #ifdef HAVE_NETINET_IN6_H
32470 #include <netinet/in6.h>
32471 #endif
32472 #ifdef HAVE_SYS_UN_H
32473 #include <sys/un.h>
32474 #endif
32475
32476
32477 "
32478 if test "x$ac_cv_header_sys_time_h" = xyes
32479 then :
32480   printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
32481
32482 fi
32483 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "
32484 #ifdef HAVE_SYS_TYPES_H
32485 #include <sys/types.h>
32486 #endif
32487 #ifdef HAVE_SYS_TIME_H
32488 #include <sys/time.h>
32489 #endif
32490 #ifdef HAVE_SYS_SELECT_H
32491 #include <sys/select.h>
32492 #elif defined(HAVE_UNISTD_H)
32493 #include <unistd.h>
32494 #endif
32495 #ifdef HAVE_SYS_SOCKET_H
32496 #include <sys/socket.h>
32497 #endif
32498 #ifdef HAVE_NETINET_IN_H
32499 #include <netinet/in.h>
32500 #endif
32501 #ifdef HAVE_NETINET_IN6_H
32502 #include <netinet/in6.h>
32503 #endif
32504 #ifdef HAVE_SYS_UN_H
32505 #include <sys/un.h>
32506 #endif
32507
32508
32509 "
32510 if test "x$ac_cv_header_sys_select_h" = xyes
32511 then :
32512   printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
32513
32514 fi
32515 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "
32516 #ifdef HAVE_SYS_TYPES_H
32517 #include <sys/types.h>
32518 #endif
32519 #ifdef HAVE_SYS_TIME_H
32520 #include <sys/time.h>
32521 #endif
32522 #ifdef HAVE_SYS_SELECT_H
32523 #include <sys/select.h>
32524 #elif defined(HAVE_UNISTD_H)
32525 #include <unistd.h>
32526 #endif
32527 #ifdef HAVE_SYS_SOCKET_H
32528 #include <sys/socket.h>
32529 #endif
32530 #ifdef HAVE_NETINET_IN_H
32531 #include <netinet/in.h>
32532 #endif
32533 #ifdef HAVE_NETINET_IN6_H
32534 #include <netinet/in6.h>
32535 #endif
32536 #ifdef HAVE_SYS_UN_H
32537 #include <sys/un.h>
32538 #endif
32539
32540
32541 "
32542 if test "x$ac_cv_header_sys_socket_h" = xyes
32543 then :
32544   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
32545
32546 fi
32547 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "
32548 #ifdef HAVE_SYS_TYPES_H
32549 #include <sys/types.h>
32550 #endif
32551 #ifdef HAVE_SYS_TIME_H
32552 #include <sys/time.h>
32553 #endif
32554 #ifdef HAVE_SYS_SELECT_H
32555 #include <sys/select.h>
32556 #elif defined(HAVE_UNISTD_H)
32557 #include <unistd.h>
32558 #endif
32559 #ifdef HAVE_SYS_SOCKET_H
32560 #include <sys/socket.h>
32561 #endif
32562 #ifdef HAVE_NETINET_IN_H
32563 #include <netinet/in.h>
32564 #endif
32565 #ifdef HAVE_NETINET_IN6_H
32566 #include <netinet/in6.h>
32567 #endif
32568 #ifdef HAVE_SYS_UN_H
32569 #include <sys/un.h>
32570 #endif
32571
32572
32573 "
32574 if test "x$ac_cv_header_sys_ioctl_h" = xyes
32575 then :
32576   printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
32577
32578 fi
32579 ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "
32580 #ifdef HAVE_SYS_TYPES_H
32581 #include <sys/types.h>
32582 #endif
32583 #ifdef HAVE_SYS_TIME_H
32584 #include <sys/time.h>
32585 #endif
32586 #ifdef HAVE_SYS_SELECT_H
32587 #include <sys/select.h>
32588 #elif defined(HAVE_UNISTD_H)
32589 #include <unistd.h>
32590 #endif
32591 #ifdef HAVE_SYS_SOCKET_H
32592 #include <sys/socket.h>
32593 #endif
32594 #ifdef HAVE_NETINET_IN_H
32595 #include <netinet/in.h>
32596 #endif
32597 #ifdef HAVE_NETINET_IN6_H
32598 #include <netinet/in6.h>
32599 #endif
32600 #ifdef HAVE_SYS_UN_H
32601 #include <sys/un.h>
32602 #endif
32603
32604
32605 "
32606 if test "x$ac_cv_header_sys_uio_h" = xyes
32607 then :
32608   printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
32609
32610 fi
32611 ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "
32612 #ifdef HAVE_SYS_TYPES_H
32613 #include <sys/types.h>
32614 #endif
32615 #ifdef HAVE_SYS_TIME_H
32616 #include <sys/time.h>
32617 #endif
32618 #ifdef HAVE_SYS_SELECT_H
32619 #include <sys/select.h>
32620 #elif defined(HAVE_UNISTD_H)
32621 #include <unistd.h>
32622 #endif
32623 #ifdef HAVE_SYS_SOCKET_H
32624 #include <sys/socket.h>
32625 #endif
32626 #ifdef HAVE_NETINET_IN_H
32627 #include <netinet/in.h>
32628 #endif
32629 #ifdef HAVE_NETINET_IN6_H
32630 #include <netinet/in6.h>
32631 #endif
32632 #ifdef HAVE_SYS_UN_H
32633 #include <sys/un.h>
32634 #endif
32635
32636
32637 "
32638 if test "x$ac_cv_header_assert_h" = xyes
32639 then :
32640   printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
32641
32642 fi
32643 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "
32644 #ifdef HAVE_SYS_TYPES_H
32645 #include <sys/types.h>
32646 #endif
32647 #ifdef HAVE_SYS_TIME_H
32648 #include <sys/time.h>
32649 #endif
32650 #ifdef HAVE_SYS_SELECT_H
32651 #include <sys/select.h>
32652 #elif defined(HAVE_UNISTD_H)
32653 #include <unistd.h>
32654 #endif
32655 #ifdef HAVE_SYS_SOCKET_H
32656 #include <sys/socket.h>
32657 #endif
32658 #ifdef HAVE_NETINET_IN_H
32659 #include <netinet/in.h>
32660 #endif
32661 #ifdef HAVE_NETINET_IN6_H
32662 #include <netinet/in6.h>
32663 #endif
32664 #ifdef HAVE_SYS_UN_H
32665 #include <sys/un.h>
32666 #endif
32667
32668
32669 "
32670 if test "x$ac_cv_header_unistd_h" = xyes
32671 then :
32672   printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
32673
32674 fi
32675 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "
32676 #ifdef HAVE_SYS_TYPES_H
32677 #include <sys/types.h>
32678 #endif
32679 #ifdef HAVE_SYS_TIME_H
32680 #include <sys/time.h>
32681 #endif
32682 #ifdef HAVE_SYS_SELECT_H
32683 #include <sys/select.h>
32684 #elif defined(HAVE_UNISTD_H)
32685 #include <unistd.h>
32686 #endif
32687 #ifdef HAVE_SYS_SOCKET_H
32688 #include <sys/socket.h>
32689 #endif
32690 #ifdef HAVE_NETINET_IN_H
32691 #include <netinet/in.h>
32692 #endif
32693 #ifdef HAVE_NETINET_IN6_H
32694 #include <netinet/in6.h>
32695 #endif
32696 #ifdef HAVE_SYS_UN_H
32697 #include <sys/un.h>
32698 #endif
32699
32700
32701 "
32702 if test "x$ac_cv_header_stdlib_h" = xyes
32703 then :
32704   printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
32705
32706 fi
32707 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "
32708 #ifdef HAVE_SYS_TYPES_H
32709 #include <sys/types.h>
32710 #endif
32711 #ifdef HAVE_SYS_TIME_H
32712 #include <sys/time.h>
32713 #endif
32714 #ifdef HAVE_SYS_SELECT_H
32715 #include <sys/select.h>
32716 #elif defined(HAVE_UNISTD_H)
32717 #include <unistd.h>
32718 #endif
32719 #ifdef HAVE_SYS_SOCKET_H
32720 #include <sys/socket.h>
32721 #endif
32722 #ifdef HAVE_NETINET_IN_H
32723 #include <netinet/in.h>
32724 #endif
32725 #ifdef HAVE_NETINET_IN6_H
32726 #include <netinet/in6.h>
32727 #endif
32728 #ifdef HAVE_SYS_UN_H
32729 #include <sys/un.h>
32730 #endif
32731
32732
32733 "
32734 if test "x$ac_cv_header_arpa_inet_h" = xyes
32735 then :
32736   printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
32737
32738 fi
32739 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
32740 #ifdef HAVE_SYS_TYPES_H
32741 #include <sys/types.h>
32742 #endif
32743 #ifdef HAVE_SYS_TIME_H
32744 #include <sys/time.h>
32745 #endif
32746 #ifdef HAVE_SYS_SELECT_H
32747 #include <sys/select.h>
32748 #elif defined(HAVE_UNISTD_H)
32749 #include <unistd.h>
32750 #endif
32751 #ifdef HAVE_SYS_SOCKET_H
32752 #include <sys/socket.h>
32753 #endif
32754 #ifdef HAVE_NETINET_IN_H
32755 #include <netinet/in.h>
32756 #endif
32757 #ifdef HAVE_NETINET_IN6_H
32758 #include <netinet/in6.h>
32759 #endif
32760 #ifdef HAVE_SYS_UN_H
32761 #include <sys/un.h>
32762 #endif
32763
32764
32765 "
32766 if test "x$ac_cv_header_net_if_h" = xyes
32767 then :
32768   printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
32769
32770 fi
32771 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "
32772 #ifdef HAVE_SYS_TYPES_H
32773 #include <sys/types.h>
32774 #endif
32775 #ifdef HAVE_SYS_TIME_H
32776 #include <sys/time.h>
32777 #endif
32778 #ifdef HAVE_SYS_SELECT_H
32779 #include <sys/select.h>
32780 #elif defined(HAVE_UNISTD_H)
32781 #include <unistd.h>
32782 #endif
32783 #ifdef HAVE_SYS_SOCKET_H
32784 #include <sys/socket.h>
32785 #endif
32786 #ifdef HAVE_NETINET_IN_H
32787 #include <netinet/in.h>
32788 #endif
32789 #ifdef HAVE_NETINET_IN6_H
32790 #include <netinet/in6.h>
32791 #endif
32792 #ifdef HAVE_SYS_UN_H
32793 #include <sys/un.h>
32794 #endif
32795
32796
32797 "
32798 if test "x$ac_cv_header_netinet_in_h" = xyes
32799 then :
32800   printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
32801
32802 fi
32803 ac_fn_c_check_header_compile "$LINENO" "netinet/in6.h" "ac_cv_header_netinet_in6_h" "
32804 #ifdef HAVE_SYS_TYPES_H
32805 #include <sys/types.h>
32806 #endif
32807 #ifdef HAVE_SYS_TIME_H
32808 #include <sys/time.h>
32809 #endif
32810 #ifdef HAVE_SYS_SELECT_H
32811 #include <sys/select.h>
32812 #elif defined(HAVE_UNISTD_H)
32813 #include <unistd.h>
32814 #endif
32815 #ifdef HAVE_SYS_SOCKET_H
32816 #include <sys/socket.h>
32817 #endif
32818 #ifdef HAVE_NETINET_IN_H
32819 #include <netinet/in.h>
32820 #endif
32821 #ifdef HAVE_NETINET_IN6_H
32822 #include <netinet/in6.h>
32823 #endif
32824 #ifdef HAVE_SYS_UN_H
32825 #include <sys/un.h>
32826 #endif
32827
32828
32829 "
32830 if test "x$ac_cv_header_netinet_in6_h" = xyes
32831 then :
32832   printf "%s\n" "#define HAVE_NETINET_IN6_H 1" >>confdefs.h
32833
32834 fi
32835 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "
32836 #ifdef HAVE_SYS_TYPES_H
32837 #include <sys/types.h>
32838 #endif
32839 #ifdef HAVE_SYS_TIME_H
32840 #include <sys/time.h>
32841 #endif
32842 #ifdef HAVE_SYS_SELECT_H
32843 #include <sys/select.h>
32844 #elif defined(HAVE_UNISTD_H)
32845 #include <unistd.h>
32846 #endif
32847 #ifdef HAVE_SYS_SOCKET_H
32848 #include <sys/socket.h>
32849 #endif
32850 #ifdef HAVE_NETINET_IN_H
32851 #include <netinet/in.h>
32852 #endif
32853 #ifdef HAVE_NETINET_IN6_H
32854 #include <netinet/in6.h>
32855 #endif
32856 #ifdef HAVE_SYS_UN_H
32857 #include <sys/un.h>
32858 #endif
32859
32860
32861 "
32862 if test "x$ac_cv_header_sys_un_h" = xyes
32863 then :
32864   printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
32865
32866 fi
32867 ac_fn_c_check_header_compile "$LINENO" "linux/tcp.h" "ac_cv_header_linux_tcp_h" "
32868 #ifdef HAVE_SYS_TYPES_H
32869 #include <sys/types.h>
32870 #endif
32871 #ifdef HAVE_SYS_TIME_H
32872 #include <sys/time.h>
32873 #endif
32874 #ifdef HAVE_SYS_SELECT_H
32875 #include <sys/select.h>
32876 #elif defined(HAVE_UNISTD_H)
32877 #include <unistd.h>
32878 #endif
32879 #ifdef HAVE_SYS_SOCKET_H
32880 #include <sys/socket.h>
32881 #endif
32882 #ifdef HAVE_NETINET_IN_H
32883 #include <netinet/in.h>
32884 #endif
32885 #ifdef HAVE_NETINET_IN6_H
32886 #include <netinet/in6.h>
32887 #endif
32888 #ifdef HAVE_SYS_UN_H
32889 #include <sys/un.h>
32890 #endif
32891
32892
32893 "
32894 if test "x$ac_cv_header_linux_tcp_h" = xyes
32895 then :
32896   printf "%s\n" "#define HAVE_LINUX_TCP_H 1" >>confdefs.h
32897
32898 fi
32899 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "
32900 #ifdef HAVE_SYS_TYPES_H
32901 #include <sys/types.h>
32902 #endif
32903 #ifdef HAVE_SYS_TIME_H
32904 #include <sys/time.h>
32905 #endif
32906 #ifdef HAVE_SYS_SELECT_H
32907 #include <sys/select.h>
32908 #elif defined(HAVE_UNISTD_H)
32909 #include <unistd.h>
32910 #endif
32911 #ifdef HAVE_SYS_SOCKET_H
32912 #include <sys/socket.h>
32913 #endif
32914 #ifdef HAVE_NETINET_IN_H
32915 #include <netinet/in.h>
32916 #endif
32917 #ifdef HAVE_NETINET_IN6_H
32918 #include <netinet/in6.h>
32919 #endif
32920 #ifdef HAVE_SYS_UN_H
32921 #include <sys/un.h>
32922 #endif
32923
32924
32925 "
32926 if test "x$ac_cv_header_netinet_tcp_h" = xyes
32927 then :
32928   printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
32929
32930 fi
32931 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "
32932 #ifdef HAVE_SYS_TYPES_H
32933 #include <sys/types.h>
32934 #endif
32935 #ifdef HAVE_SYS_TIME_H
32936 #include <sys/time.h>
32937 #endif
32938 #ifdef HAVE_SYS_SELECT_H
32939 #include <sys/select.h>
32940 #elif defined(HAVE_UNISTD_H)
32941 #include <unistd.h>
32942 #endif
32943 #ifdef HAVE_SYS_SOCKET_H
32944 #include <sys/socket.h>
32945 #endif
32946 #ifdef HAVE_NETINET_IN_H
32947 #include <netinet/in.h>
32948 #endif
32949 #ifdef HAVE_NETINET_IN6_H
32950 #include <netinet/in6.h>
32951 #endif
32952 #ifdef HAVE_SYS_UN_H
32953 #include <sys/un.h>
32954 #endif
32955
32956
32957 "
32958 if test "x$ac_cv_header_netdb_h" = xyes
32959 then :
32960   printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
32961
32962 fi
32963 ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "
32964 #ifdef HAVE_SYS_TYPES_H
32965 #include <sys/types.h>
32966 #endif
32967 #ifdef HAVE_SYS_TIME_H
32968 #include <sys/time.h>
32969 #endif
32970 #ifdef HAVE_SYS_SELECT_H
32971 #include <sys/select.h>
32972 #elif defined(HAVE_UNISTD_H)
32973 #include <unistd.h>
32974 #endif
32975 #ifdef HAVE_SYS_SOCKET_H
32976 #include <sys/socket.h>
32977 #endif
32978 #ifdef HAVE_NETINET_IN_H
32979 #include <netinet/in.h>
32980 #endif
32981 #ifdef HAVE_NETINET_IN6_H
32982 #include <netinet/in6.h>
32983 #endif
32984 #ifdef HAVE_SYS_UN_H
32985 #include <sys/un.h>
32986 #endif
32987
32988
32989 "
32990 if test "x$ac_cv_header_sys_sockio_h" = xyes
32991 then :
32992   printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
32993
32994 fi
32995 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "
32996 #ifdef HAVE_SYS_TYPES_H
32997 #include <sys/types.h>
32998 #endif
32999 #ifdef HAVE_SYS_TIME_H
33000 #include <sys/time.h>
33001 #endif
33002 #ifdef HAVE_SYS_SELECT_H
33003 #include <sys/select.h>
33004 #elif defined(HAVE_UNISTD_H)
33005 #include <unistd.h>
33006 #endif
33007 #ifdef HAVE_SYS_SOCKET_H
33008 #include <sys/socket.h>
33009 #endif
33010 #ifdef HAVE_NETINET_IN_H
33011 #include <netinet/in.h>
33012 #endif
33013 #ifdef HAVE_NETINET_IN6_H
33014 #include <netinet/in6.h>
33015 #endif
33016 #ifdef HAVE_SYS_UN_H
33017 #include <sys/un.h>
33018 #endif
33019
33020
33021 "
33022 if test "x$ac_cv_header_sys_stat_h" = xyes
33023 then :
33024   printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
33025
33026 fi
33027 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "
33028 #ifdef HAVE_SYS_TYPES_H
33029 #include <sys/types.h>
33030 #endif
33031 #ifdef HAVE_SYS_TIME_H
33032 #include <sys/time.h>
33033 #endif
33034 #ifdef HAVE_SYS_SELECT_H
33035 #include <sys/select.h>
33036 #elif defined(HAVE_UNISTD_H)
33037 #include <unistd.h>
33038 #endif
33039 #ifdef HAVE_SYS_SOCKET_H
33040 #include <sys/socket.h>
33041 #endif
33042 #ifdef HAVE_NETINET_IN_H
33043 #include <netinet/in.h>
33044 #endif
33045 #ifdef HAVE_NETINET_IN6_H
33046 #include <netinet/in6.h>
33047 #endif
33048 #ifdef HAVE_SYS_UN_H
33049 #include <sys/un.h>
33050 #endif
33051
33052
33053 "
33054 if test "x$ac_cv_header_sys_param_h" = xyes
33055 then :
33056   printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
33057
33058 fi
33059 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "
33060 #ifdef HAVE_SYS_TYPES_H
33061 #include <sys/types.h>
33062 #endif
33063 #ifdef HAVE_SYS_TIME_H
33064 #include <sys/time.h>
33065 #endif
33066 #ifdef HAVE_SYS_SELECT_H
33067 #include <sys/select.h>
33068 #elif defined(HAVE_UNISTD_H)
33069 #include <unistd.h>
33070 #endif
33071 #ifdef HAVE_SYS_SOCKET_H
33072 #include <sys/socket.h>
33073 #endif
33074 #ifdef HAVE_NETINET_IN_H
33075 #include <netinet/in.h>
33076 #endif
33077 #ifdef HAVE_NETINET_IN6_H
33078 #include <netinet/in6.h>
33079 #endif
33080 #ifdef HAVE_SYS_UN_H
33081 #include <sys/un.h>
33082 #endif
33083
33084
33085 "
33086 if test "x$ac_cv_header_termios_h" = xyes
33087 then :
33088   printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
33089
33090 fi
33091 ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "
33092 #ifdef HAVE_SYS_TYPES_H
33093 #include <sys/types.h>
33094 #endif
33095 #ifdef HAVE_SYS_TIME_H
33096 #include <sys/time.h>
33097 #endif
33098 #ifdef HAVE_SYS_SELECT_H
33099 #include <sys/select.h>
33100 #elif defined(HAVE_UNISTD_H)
33101 #include <unistd.h>
33102 #endif
33103 #ifdef HAVE_SYS_SOCKET_H
33104 #include <sys/socket.h>
33105 #endif
33106 #ifdef HAVE_NETINET_IN_H
33107 #include <netinet/in.h>
33108 #endif
33109 #ifdef HAVE_NETINET_IN6_H
33110 #include <netinet/in6.h>
33111 #endif
33112 #ifdef HAVE_SYS_UN_H
33113 #include <sys/un.h>
33114 #endif
33115
33116
33117 "
33118 if test "x$ac_cv_header_termio_h" = xyes
33119 then :
33120   printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
33121
33122 fi
33123 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "
33124 #ifdef HAVE_SYS_TYPES_H
33125 #include <sys/types.h>
33126 #endif
33127 #ifdef HAVE_SYS_TIME_H
33128 #include <sys/time.h>
33129 #endif
33130 #ifdef HAVE_SYS_SELECT_H
33131 #include <sys/select.h>
33132 #elif defined(HAVE_UNISTD_H)
33133 #include <unistd.h>
33134 #endif
33135 #ifdef HAVE_SYS_SOCKET_H
33136 #include <sys/socket.h>
33137 #endif
33138 #ifdef HAVE_NETINET_IN_H
33139 #include <netinet/in.h>
33140 #endif
33141 #ifdef HAVE_NETINET_IN6_H
33142 #include <netinet/in6.h>
33143 #endif
33144 #ifdef HAVE_SYS_UN_H
33145 #include <sys/un.h>
33146 #endif
33147
33148
33149 "
33150 if test "x$ac_cv_header_fcntl_h" = xyes
33151 then :
33152   printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
33153
33154 fi
33155 ac_fn_c_check_header_compile "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "
33156 #ifdef HAVE_SYS_TYPES_H
33157 #include <sys/types.h>
33158 #endif
33159 #ifdef HAVE_SYS_TIME_H
33160 #include <sys/time.h>
33161 #endif
33162 #ifdef HAVE_SYS_SELECT_H
33163 #include <sys/select.h>
33164 #elif defined(HAVE_UNISTD_H)
33165 #include <unistd.h>
33166 #endif
33167 #ifdef HAVE_SYS_SOCKET_H
33168 #include <sys/socket.h>
33169 #endif
33170 #ifdef HAVE_NETINET_IN_H
33171 #include <netinet/in.h>
33172 #endif
33173 #ifdef HAVE_NETINET_IN6_H
33174 #include <netinet/in6.h>
33175 #endif
33176 #ifdef HAVE_SYS_UN_H
33177 #include <sys/un.h>
33178 #endif
33179
33180
33181 "
33182 if test "x$ac_cv_header_alloca_h" = xyes
33183 then :
33184   printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
33185
33186 fi
33187 ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "
33188 #ifdef HAVE_SYS_TYPES_H
33189 #include <sys/types.h>
33190 #endif
33191 #ifdef HAVE_SYS_TIME_H
33192 #include <sys/time.h>
33193 #endif
33194 #ifdef HAVE_SYS_SELECT_H
33195 #include <sys/select.h>
33196 #elif defined(HAVE_UNISTD_H)
33197 #include <unistd.h>
33198 #endif
33199 #ifdef HAVE_SYS_SOCKET_H
33200 #include <sys/socket.h>
33201 #endif
33202 #ifdef HAVE_NETINET_IN_H
33203 #include <netinet/in.h>
33204 #endif
33205 #ifdef HAVE_NETINET_IN6_H
33206 #include <netinet/in6.h>
33207 #endif
33208 #ifdef HAVE_SYS_UN_H
33209 #include <sys/un.h>
33210 #endif
33211
33212
33213 "
33214 if test "x$ac_cv_header_io_h" = xyes
33215 then :
33216   printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h
33217
33218 fi
33219 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "
33220 #ifdef HAVE_SYS_TYPES_H
33221 #include <sys/types.h>
33222 #endif
33223 #ifdef HAVE_SYS_TIME_H
33224 #include <sys/time.h>
33225 #endif
33226 #ifdef HAVE_SYS_SELECT_H
33227 #include <sys/select.h>
33228 #elif defined(HAVE_UNISTD_H)
33229 #include <unistd.h>
33230 #endif
33231 #ifdef HAVE_SYS_SOCKET_H
33232 #include <sys/socket.h>
33233 #endif
33234 #ifdef HAVE_NETINET_IN_H
33235 #include <netinet/in.h>
33236 #endif
33237 #ifdef HAVE_NETINET_IN6_H
33238 #include <netinet/in6.h>
33239 #endif
33240 #ifdef HAVE_SYS_UN_H
33241 #include <sys/un.h>
33242 #endif
33243
33244
33245 "
33246 if test "x$ac_cv_header_pwd_h" = xyes
33247 then :
33248   printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
33249
33250 fi
33251 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "
33252 #ifdef HAVE_SYS_TYPES_H
33253 #include <sys/types.h>
33254 #endif
33255 #ifdef HAVE_SYS_TIME_H
33256 #include <sys/time.h>
33257 #endif
33258 #ifdef HAVE_SYS_SELECT_H
33259 #include <sys/select.h>
33260 #elif defined(HAVE_UNISTD_H)
33261 #include <unistd.h>
33262 #endif
33263 #ifdef HAVE_SYS_SOCKET_H
33264 #include <sys/socket.h>
33265 #endif
33266 #ifdef HAVE_NETINET_IN_H
33267 #include <netinet/in.h>
33268 #endif
33269 #ifdef HAVE_NETINET_IN6_H
33270 #include <netinet/in6.h>
33271 #endif
33272 #ifdef HAVE_SYS_UN_H
33273 #include <sys/un.h>
33274 #endif
33275
33276
33277 "
33278 if test "x$ac_cv_header_utime_h" = xyes
33279 then :
33280   printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
33281
33282 fi
33283 ac_fn_c_check_header_compile "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" "
33284 #ifdef HAVE_SYS_TYPES_H
33285 #include <sys/types.h>
33286 #endif
33287 #ifdef HAVE_SYS_TIME_H
33288 #include <sys/time.h>
33289 #endif
33290 #ifdef HAVE_SYS_SELECT_H
33291 #include <sys/select.h>
33292 #elif defined(HAVE_UNISTD_H)
33293 #include <unistd.h>
33294 #endif
33295 #ifdef HAVE_SYS_SOCKET_H
33296 #include <sys/socket.h>
33297 #endif
33298 #ifdef HAVE_NETINET_IN_H
33299 #include <netinet/in.h>
33300 #endif
33301 #ifdef HAVE_NETINET_IN6_H
33302 #include <netinet/in6.h>
33303 #endif
33304 #ifdef HAVE_SYS_UN_H
33305 #include <sys/un.h>
33306 #endif
33307
33308
33309 "
33310 if test "x$ac_cv_header_sys_utime_h" = xyes
33311 then :
33312   printf "%s\n" "#define HAVE_SYS_UTIME_H 1" >>confdefs.h
33313
33314 fi
33315 ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "
33316 #ifdef HAVE_SYS_TYPES_H
33317 #include <sys/types.h>
33318 #endif
33319 #ifdef HAVE_SYS_TIME_H
33320 #include <sys/time.h>
33321 #endif
33322 #ifdef HAVE_SYS_SELECT_H
33323 #include <sys/select.h>
33324 #elif defined(HAVE_UNISTD_H)
33325 #include <unistd.h>
33326 #endif
33327 #ifdef HAVE_SYS_SOCKET_H
33328 #include <sys/socket.h>
33329 #endif
33330 #ifdef HAVE_NETINET_IN_H
33331 #include <netinet/in.h>
33332 #endif
33333 #ifdef HAVE_NETINET_IN6_H
33334 #include <netinet/in6.h>
33335 #endif
33336 #ifdef HAVE_SYS_UN_H
33337 #include <sys/un.h>
33338 #endif
33339
33340
33341 "
33342 if test "x$ac_cv_header_sys_poll_h" = xyes
33343 then :
33344   printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
33345
33346 fi
33347 ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "
33348 #ifdef HAVE_SYS_TYPES_H
33349 #include <sys/types.h>
33350 #endif
33351 #ifdef HAVE_SYS_TIME_H
33352 #include <sys/time.h>
33353 #endif
33354 #ifdef HAVE_SYS_SELECT_H
33355 #include <sys/select.h>
33356 #elif defined(HAVE_UNISTD_H)
33357 #include <unistd.h>
33358 #endif
33359 #ifdef HAVE_SYS_SOCKET_H
33360 #include <sys/socket.h>
33361 #endif
33362 #ifdef HAVE_NETINET_IN_H
33363 #include <netinet/in.h>
33364 #endif
33365 #ifdef HAVE_NETINET_IN6_H
33366 #include <netinet/in6.h>
33367 #endif
33368 #ifdef HAVE_SYS_UN_H
33369 #include <sys/un.h>
33370 #endif
33371
33372
33373 "
33374 if test "x$ac_cv_header_poll_h" = xyes
33375 then :
33376   printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
33377
33378 fi
33379 ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "
33380 #ifdef HAVE_SYS_TYPES_H
33381 #include <sys/types.h>
33382 #endif
33383 #ifdef HAVE_SYS_TIME_H
33384 #include <sys/time.h>
33385 #endif
33386 #ifdef HAVE_SYS_SELECT_H
33387 #include <sys/select.h>
33388 #elif defined(HAVE_UNISTD_H)
33389 #include <unistd.h>
33390 #endif
33391 #ifdef HAVE_SYS_SOCKET_H
33392 #include <sys/socket.h>
33393 #endif
33394 #ifdef HAVE_NETINET_IN_H
33395 #include <netinet/in.h>
33396 #endif
33397 #ifdef HAVE_NETINET_IN6_H
33398 #include <netinet/in6.h>
33399 #endif
33400 #ifdef HAVE_SYS_UN_H
33401 #include <sys/un.h>
33402 #endif
33403
33404
33405 "
33406 if test "x$ac_cv_header_socket_h" = xyes
33407 then :
33408   printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h
33409
33410 fi
33411 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
33412 #ifdef HAVE_SYS_TYPES_H
33413 #include <sys/types.h>
33414 #endif
33415 #ifdef HAVE_SYS_TIME_H
33416 #include <sys/time.h>
33417 #endif
33418 #ifdef HAVE_SYS_SELECT_H
33419 #include <sys/select.h>
33420 #elif defined(HAVE_UNISTD_H)
33421 #include <unistd.h>
33422 #endif
33423 #ifdef HAVE_SYS_SOCKET_H
33424 #include <sys/socket.h>
33425 #endif
33426 #ifdef HAVE_NETINET_IN_H
33427 #include <netinet/in.h>
33428 #endif
33429 #ifdef HAVE_NETINET_IN6_H
33430 #include <netinet/in6.h>
33431 #endif
33432 #ifdef HAVE_SYS_UN_H
33433 #include <sys/un.h>
33434 #endif
33435
33436
33437 "
33438 if test "x$ac_cv_header_sys_resource_h" = xyes
33439 then :
33440   printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
33441
33442 fi
33443 ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "
33444 #ifdef HAVE_SYS_TYPES_H
33445 #include <sys/types.h>
33446 #endif
33447 #ifdef HAVE_SYS_TIME_H
33448 #include <sys/time.h>
33449 #endif
33450 #ifdef HAVE_SYS_SELECT_H
33451 #include <sys/select.h>
33452 #elif defined(HAVE_UNISTD_H)
33453 #include <unistd.h>
33454 #endif
33455 #ifdef HAVE_SYS_SOCKET_H
33456 #include <sys/socket.h>
33457 #endif
33458 #ifdef HAVE_NETINET_IN_H
33459 #include <netinet/in.h>
33460 #endif
33461 #ifdef HAVE_NETINET_IN6_H
33462 #include <netinet/in6.h>
33463 #endif
33464 #ifdef HAVE_SYS_UN_H
33465 #include <sys/un.h>
33466 #endif
33467
33468
33469 "
33470 if test "x$ac_cv_header_libgen_h" = xyes
33471 then :
33472   printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
33473
33474 fi
33475 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "
33476 #ifdef HAVE_SYS_TYPES_H
33477 #include <sys/types.h>
33478 #endif
33479 #ifdef HAVE_SYS_TIME_H
33480 #include <sys/time.h>
33481 #endif
33482 #ifdef HAVE_SYS_SELECT_H
33483 #include <sys/select.h>
33484 #elif defined(HAVE_UNISTD_H)
33485 #include <unistd.h>
33486 #endif
33487 #ifdef HAVE_SYS_SOCKET_H
33488 #include <sys/socket.h>
33489 #endif
33490 #ifdef HAVE_NETINET_IN_H
33491 #include <netinet/in.h>
33492 #endif
33493 #ifdef HAVE_NETINET_IN6_H
33494 #include <netinet/in6.h>
33495 #endif
33496 #ifdef HAVE_SYS_UN_H
33497 #include <sys/un.h>
33498 #endif
33499
33500
33501 "
33502 if test "x$ac_cv_header_locale_h" = xyes
33503 then :
33504   printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
33505
33506 fi
33507 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "
33508 #ifdef HAVE_SYS_TYPES_H
33509 #include <sys/types.h>
33510 #endif
33511 #ifdef HAVE_SYS_TIME_H
33512 #include <sys/time.h>
33513 #endif
33514 #ifdef HAVE_SYS_SELECT_H
33515 #include <sys/select.h>
33516 #elif defined(HAVE_UNISTD_H)
33517 #include <unistd.h>
33518 #endif
33519 #ifdef HAVE_SYS_SOCKET_H
33520 #include <sys/socket.h>
33521 #endif
33522 #ifdef HAVE_NETINET_IN_H
33523 #include <netinet/in.h>
33524 #endif
33525 #ifdef HAVE_NETINET_IN6_H
33526 #include <netinet/in6.h>
33527 #endif
33528 #ifdef HAVE_SYS_UN_H
33529 #include <sys/un.h>
33530 #endif
33531
33532
33533 "
33534 if test "x$ac_cv_header_errno_h" = xyes
33535 then :
33536   printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
33537
33538 fi
33539 ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "
33540 #ifdef HAVE_SYS_TYPES_H
33541 #include <sys/types.h>
33542 #endif
33543 #ifdef HAVE_SYS_TIME_H
33544 #include <sys/time.h>
33545 #endif
33546 #ifdef HAVE_SYS_SELECT_H
33547 #include <sys/select.h>
33548 #elif defined(HAVE_UNISTD_H)
33549 #include <unistd.h>
33550 #endif
33551 #ifdef HAVE_SYS_SOCKET_H
33552 #include <sys/socket.h>
33553 #endif
33554 #ifdef HAVE_NETINET_IN_H
33555 #include <netinet/in.h>
33556 #endif
33557 #ifdef HAVE_NETINET_IN6_H
33558 #include <netinet/in6.h>
33559 #endif
33560 #ifdef HAVE_SYS_UN_H
33561 #include <sys/un.h>
33562 #endif
33563
33564
33565 "
33566 if test "x$ac_cv_header_stdbool_h" = xyes
33567 then :
33568   printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
33569
33570 fi
33571 ac_fn_c_check_header_compile "$LINENO" "arpa/tftp.h" "ac_cv_header_arpa_tftp_h" "
33572 #ifdef HAVE_SYS_TYPES_H
33573 #include <sys/types.h>
33574 #endif
33575 #ifdef HAVE_SYS_TIME_H
33576 #include <sys/time.h>
33577 #endif
33578 #ifdef HAVE_SYS_SELECT_H
33579 #include <sys/select.h>
33580 #elif defined(HAVE_UNISTD_H)
33581 #include <unistd.h>
33582 #endif
33583 #ifdef HAVE_SYS_SOCKET_H
33584 #include <sys/socket.h>
33585 #endif
33586 #ifdef HAVE_NETINET_IN_H
33587 #include <netinet/in.h>
33588 #endif
33589 #ifdef HAVE_NETINET_IN6_H
33590 #include <netinet/in6.h>
33591 #endif
33592 #ifdef HAVE_SYS_UN_H
33593 #include <sys/un.h>
33594 #endif
33595
33596
33597 "
33598 if test "x$ac_cv_header_arpa_tftp_h" = xyes
33599 then :
33600   printf "%s\n" "#define HAVE_ARPA_TFTP_H 1" >>confdefs.h
33601
33602 fi
33603 ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "
33604 #ifdef HAVE_SYS_TYPES_H
33605 #include <sys/types.h>
33606 #endif
33607 #ifdef HAVE_SYS_TIME_H
33608 #include <sys/time.h>
33609 #endif
33610 #ifdef HAVE_SYS_SELECT_H
33611 #include <sys/select.h>
33612 #elif defined(HAVE_UNISTD_H)
33613 #include <unistd.h>
33614 #endif
33615 #ifdef HAVE_SYS_SOCKET_H
33616 #include <sys/socket.h>
33617 #endif
33618 #ifdef HAVE_NETINET_IN_H
33619 #include <netinet/in.h>
33620 #endif
33621 #ifdef HAVE_NETINET_IN6_H
33622 #include <netinet/in6.h>
33623 #endif
33624 #ifdef HAVE_SYS_UN_H
33625 #include <sys/un.h>
33626 #endif
33627
33628
33629 "
33630 if test "x$ac_cv_header_sys_filio_h" = xyes
33631 then :
33632   printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
33633
33634 fi
33635 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "
33636 #ifdef HAVE_SYS_TYPES_H
33637 #include <sys/types.h>
33638 #endif
33639 #ifdef HAVE_SYS_TIME_H
33640 #include <sys/time.h>
33641 #endif
33642 #ifdef HAVE_SYS_SELECT_H
33643 #include <sys/select.h>
33644 #elif defined(HAVE_UNISTD_H)
33645 #include <unistd.h>
33646 #endif
33647 #ifdef HAVE_SYS_SOCKET_H
33648 #include <sys/socket.h>
33649 #endif
33650 #ifdef HAVE_NETINET_IN_H
33651 #include <netinet/in.h>
33652 #endif
33653 #ifdef HAVE_NETINET_IN6_H
33654 #include <netinet/in6.h>
33655 #endif
33656 #ifdef HAVE_SYS_UN_H
33657 #include <sys/un.h>
33658 #endif
33659
33660
33661 "
33662 if test "x$ac_cv_header_sys_wait_h" = xyes
33663 then :
33664   printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
33665
33666 fi
33667 ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "
33668 #ifdef HAVE_SYS_TYPES_H
33669 #include <sys/types.h>
33670 #endif
33671 #ifdef HAVE_SYS_TIME_H
33672 #include <sys/time.h>
33673 #endif
33674 #ifdef HAVE_SYS_SELECT_H
33675 #include <sys/select.h>
33676 #elif defined(HAVE_UNISTD_H)
33677 #include <unistd.h>
33678 #endif
33679 #ifdef HAVE_SYS_SOCKET_H
33680 #include <sys/socket.h>
33681 #endif
33682 #ifdef HAVE_NETINET_IN_H
33683 #include <netinet/in.h>
33684 #endif
33685 #ifdef HAVE_NETINET_IN6_H
33686 #include <netinet/in6.h>
33687 #endif
33688 #ifdef HAVE_SYS_UN_H
33689 #include <sys/un.h>
33690 #endif
33691
33692
33693 "
33694 if test "x$ac_cv_header_setjmp_h" = xyes
33695 then :
33696   printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
33697
33698 fi
33699
33700
33701
33702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
33703 printf %s "checking for an ANSI C-conforming const... " >&6; }
33704 if test ${ac_cv_c_const+y}
33705 then :
33706   printf %s "(cached) " >&6
33707 else $as_nop
33708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33709 /* end confdefs.h.  */
33710
33711 int main (void)
33712 {
33713
33714 #ifndef __cplusplus
33715   /* Ultrix mips cc rejects this sort of thing.  */
33716   typedef int charset[2];
33717   const charset cs = { 0, 0 };
33718   /* SunOS 4.1.1 cc rejects this.  */
33719   char const *const *pcpcc;
33720   char **ppc;
33721   /* NEC SVR4.0.2 mips cc rejects this.  */
33722   struct point {int x, y;};
33723   static struct point const zero = {0,0};
33724   /* IBM XL C 1.02.0.0 rejects this.
33725      It does not let you subtract one const X* pointer from another in
33726      an arm of an if-expression whose if-part is not a constant
33727      expression */
33728   const char *g = "string";
33729   pcpcc = &g + (g ? g-g : 0);
33730   /* HPUX 7.0 cc rejects these. */
33731   ++pcpcc;
33732   ppc = (char**) pcpcc;
33733   pcpcc = (char const *const *) ppc;
33734   { /* SCO 3.2v4 cc rejects this sort of thing.  */
33735     char tx;
33736     char *t = &tx;
33737     char const *s = 0 ? (char *) 0 : (char const *) 0;
33738
33739     *t++ = 0;
33740     if (s) return 0;
33741   }
33742   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
33743     int x[] = {25, 17};
33744     const int *foo = &x[0];
33745     ++foo;
33746   }
33747   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33748     typedef const int *iptr;
33749     iptr p = 0;
33750     ++p;
33751   }
33752   { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
33753        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33754     struct s { int j; const int *ap[3]; } bx;
33755     struct s *b = &bx; b->j = 5;
33756   }
33757   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33758     const int foo = 10;
33759     if (!foo) return 0;
33760   }
33761   return !cs[0] && !zero.x;
33762 #endif
33763
33764  ;
33765  return 0;
33766 }
33767 _ACEOF
33768 if ac_fn_c_try_compile "$LINENO"
33769 then :
33770   ac_cv_c_const=yes
33771 else $as_nop
33772   ac_cv_c_const=no
33773 fi
33774 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33775 fi
33776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
33777 printf "%s\n" "$ac_cv_c_const" >&6; }
33778 if test $ac_cv_c_const = no; then
33779
33780 printf "%s\n" "#define const /**/" >>confdefs.h
33781
33782 fi
33783
33784
33785   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
33786 printf %s "checking for compiler support of C99 variadic macro style... " >&6; }
33787 if test ${curl_cv_variadic_macros_c99+y}
33788 then :
33789   printf %s "(cached) " >&6
33790 else $as_nop
33791
33792     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33793 /* end confdefs.h.  */
33794
33795
33796 #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
33797 #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
33798         int fun3(int arg1, int arg2, int arg3);
33799         int fun2(int arg1, int arg2);
33800         int fun3(int arg1, int arg2, int arg3)
33801         { return arg1 + arg2 + arg3; }
33802         int fun2(int arg1, int arg2)
33803         { return arg1 + arg2; }
33804
33805 int main (void)
33806 {
33807
33808         int res3 = c99_vmacro3(1, 2, 3);
33809         int res2 = c99_vmacro2(1, 2);
33810
33811  ;
33812  return 0;
33813 }
33814
33815 _ACEOF
33816 if ac_fn_c_try_compile "$LINENO"
33817 then :
33818
33819       curl_cv_variadic_macros_c99="yes"
33820
33821 else $as_nop
33822
33823       curl_cv_variadic_macros_c99="no"
33824
33825 fi
33826 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33827
33828 fi
33829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
33830 printf "%s\n" "$curl_cv_variadic_macros_c99" >&6; }
33831   case "$curl_cv_variadic_macros_c99" in
33832     yes)
33833
33834 printf "%s\n" "#define HAVE_VARIADIC_MACROS_C99 1" >>confdefs.h
33835
33836       ;;
33837   esac
33838   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
33839 printf %s "checking for compiler support of old gcc variadic macro style... " >&6; }
33840 if test ${curl_cv_variadic_macros_gcc+y}
33841 then :
33842   printf %s "(cached) " >&6
33843 else $as_nop
33844
33845     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33846 /* end confdefs.h.  */
33847
33848
33849 #define gcc_vmacro3(first, args...) fun3(first, args)
33850 #define gcc_vmacro2(first, args...) fun2(first, args)
33851         int fun3(int arg1, int arg2, int arg3);
33852         int fun2(int arg1, int arg2);
33853         int fun3(int arg1, int arg2, int arg3)
33854         { return arg1 + arg2 + arg3; }
33855         int fun2(int arg1, int arg2)
33856         { return arg1 + arg2; }
33857
33858 int main (void)
33859 {
33860
33861         int res3 = gcc_vmacro3(1, 2, 3);
33862         int res2 = gcc_vmacro2(1, 2);
33863
33864  ;
33865  return 0;
33866 }
33867
33868 _ACEOF
33869 if ac_fn_c_try_compile "$LINENO"
33870 then :
33871
33872       curl_cv_variadic_macros_gcc="yes"
33873
33874 else $as_nop
33875
33876       curl_cv_variadic_macros_gcc="no"
33877
33878 fi
33879 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33880
33881 fi
33882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
33883 printf "%s\n" "$curl_cv_variadic_macros_gcc" >&6; }
33884   case "$curl_cv_variadic_macros_gcc" in
33885     yes)
33886
33887 printf "%s\n" "#define HAVE_VARIADIC_MACROS_GCC 1" >>confdefs.h
33888
33889       ;;
33890   esac
33891
33892 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
33893 if test "x$ac_cv_type_size_t" = xyes
33894 then :
33895
33896 else $as_nop
33897
33898 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
33899
33900 fi
33901
33902
33903
33904     ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
33905 if test "x$ac_cv_header_sys_types_h" = xyes
33906 then :
33907   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
33908
33909 fi
33910 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
33911 if test "x$ac_cv_header_sys_time_h" = xyes
33912 then :
33913   printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
33914
33915 fi
33916 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
33917 if test "x$ac_cv_header_sys_socket_h" = xyes
33918 then :
33919   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
33920
33921 fi
33922
33923   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
33924 printf %s "checking for struct timeval... " >&6; }
33925 if test ${curl_cv_struct_timeval+y}
33926 then :
33927   printf %s "(cached) " >&6
33928 else $as_nop
33929
33930     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33931 /* end confdefs.h.  */
33932
33933
33934 #undef inline
33935 #ifdef HAVE_WINDOWS_H
33936 #ifndef WIN32_LEAN_AND_MEAN
33937 #define WIN32_LEAN_AND_MEAN
33938 #endif
33939 #include <windows.h>
33940 #ifdef HAVE_WINSOCK2_H
33941 #include <winsock2.h>
33942 #endif
33943 #endif
33944 #ifdef HAVE_SYS_TYPES_H
33945 #include <sys/types.h>
33946 #endif
33947 #ifdef HAVE_SYS_TIME_H
33948 #include <sys/time.h>
33949 #endif
33950 #include <time.h>
33951 #ifdef HAVE_SYS_SOCKET_H
33952 #include <sys/socket.h>
33953 #endif
33954
33955 int main (void)
33956 {
33957
33958         struct timeval ts;
33959         ts.tv_sec  = 0;
33960         ts.tv_usec = 0;
33961
33962  ;
33963  return 0;
33964 }
33965
33966 _ACEOF
33967 if ac_fn_c_try_compile "$LINENO"
33968 then :
33969
33970       curl_cv_struct_timeval="yes"
33971
33972 else $as_nop
33973
33974       curl_cv_struct_timeval="no"
33975
33976 fi
33977 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33978
33979 fi
33980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
33981 printf "%s\n" "$curl_cv_struct_timeval" >&6; }
33982   case "$curl_cv_struct_timeval" in
33983     yes)
33984
33985 printf "%s\n" "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
33986
33987       ;;
33988   esac
33989
33990
33991
33992     if test "x$cross_compiling" != xyes; then
33993
33994             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
33995 printf %s "checking run-time libs availability... " >&6; }
33996
33997    case $host_os in
33998      darwin*) library_path_var=DYLD_LIBRARY_PATH ;;
33999      *)       library_path_var=LD_LIBRARY_PATH ;;
34000    esac
34001
34002    eval "old=$$library_path_var"
34003    eval "$library_path_var=\$CURL_LIBRARY_PATH:\$old"
34004
34005    eval "export $library_path_var"
34006    if test "$cross_compiling" = yes
34007 then :
34008   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34009 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
34010 as_fn_error $? "cannot run test program while cross compiling
34011 See \`config.log' for more details" "$LINENO" 5; }
34012 else $as_nop
34013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34014 /* end confdefs.h.  */
34015
34016 int main()
34017 {
34018   return 0;
34019 }
34020
34021 _ACEOF
34022 if ac_fn_c_try_run "$LINENO"
34023 then :
34024   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fine" >&5
34025 printf "%s\n" "fine" >&6; }
34026 else $as_nop
34027   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
34028 printf "%s\n" "failed" >&6; }
34029     as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
34030
34031 fi
34032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34033   conftest.$ac_objext conftest.beam conftest.$ac_ext
34034 fi
34035
34036    eval "$library_path_var=\$old" # restore
34037
34038
34039       fi
34040
34041
34042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
34043 printf %s "checking size of size_t... " >&6; }
34044 if test ${ac_cv_sizeof_size_t+y}
34045 then :
34046   printf %s "(cached) " >&6
34047 else $as_nop
34048   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
34049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34050 /* end confdefs.h.  */
34051
34052 #include <sys/types.h>
34053
34054
34055 int main (void)
34056 {
34057 switch (0) case 0: case (sizeof (size_t) == $ac_size):;
34058  ;
34059  return 0;
34060 }
34061 _ACEOF
34062 if ac_fn_c_try_compile "$LINENO"
34063 then :
34064   ac_cv_sizeof_size_t=$ac_size
34065 fi
34066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34067   if test x$ac_cv_sizeof_size_t != x ; then break; fi
34068 done
34069
34070 fi
34071
34072 if test x$ac_cv_sizeof_size_t = x ; then
34073   as_fn_error $? "cannot determine a size for size_t" "$LINENO" 5
34074 fi
34075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
34076 printf "%s\n" "$ac_cv_sizeof_size_t" >&6; }
34077
34078 printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h
34079
34080
34081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
34082 printf %s "checking size of long... " >&6; }
34083 if test ${ac_cv_sizeof_long+y}
34084 then :
34085   printf %s "(cached) " >&6
34086 else $as_nop
34087   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
34088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34089 /* end confdefs.h.  */
34090
34091 #include <sys/types.h>
34092
34093
34094 int main (void)
34095 {
34096 switch (0) case 0: case (sizeof (long) == $ac_size):;
34097  ;
34098  return 0;
34099 }
34100 _ACEOF
34101 if ac_fn_c_try_compile "$LINENO"
34102 then :
34103   ac_cv_sizeof_long=$ac_size
34104 fi
34105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34106   if test x$ac_cv_sizeof_long != x ; then break; fi
34107 done
34108
34109 fi
34110
34111 if test x$ac_cv_sizeof_long = x ; then
34112   as_fn_error $? "cannot determine a size for long" "$LINENO" 5
34113 fi
34114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
34115 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
34116
34117 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
34118
34119
34120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
34121 printf %s "checking size of int... " >&6; }
34122 if test ${ac_cv_sizeof_int+y}
34123 then :
34124   printf %s "(cached) " >&6
34125 else $as_nop
34126   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
34127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34128 /* end confdefs.h.  */
34129
34130 #include <sys/types.h>
34131
34132
34133 int main (void)
34134 {
34135 switch (0) case 0: case (sizeof (int) == $ac_size):;
34136  ;
34137  return 0;
34138 }
34139 _ACEOF
34140 if ac_fn_c_try_compile "$LINENO"
34141 then :
34142   ac_cv_sizeof_int=$ac_size
34143 fi
34144 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34145   if test x$ac_cv_sizeof_int != x ; then break; fi
34146 done
34147
34148 fi
34149
34150 if test x$ac_cv_sizeof_int = x ; then
34151   as_fn_error $? "cannot determine a size for int" "$LINENO" 5
34152 fi
34153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
34154 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
34155
34156 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
34157
34158
34159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
34160 printf %s "checking size of short... " >&6; }
34161 if test ${ac_cv_sizeof_short+y}
34162 then :
34163   printf %s "(cached) " >&6
34164 else $as_nop
34165   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
34166   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34167 /* end confdefs.h.  */
34168
34169 #include <sys/types.h>
34170
34171
34172 int main (void)
34173 {
34174 switch (0) case 0: case (sizeof (short) == $ac_size):;
34175  ;
34176  return 0;
34177 }
34178 _ACEOF
34179 if ac_fn_c_try_compile "$LINENO"
34180 then :
34181   ac_cv_sizeof_short=$ac_size
34182 fi
34183 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34184   if test x$ac_cv_sizeof_short != x ; then break; fi
34185 done
34186
34187 fi
34188
34189 if test x$ac_cv_sizeof_short = x ; then
34190   as_fn_error $? "cannot determine a size for short" "$LINENO" 5
34191 fi
34192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
34193 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
34194
34195 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
34196
34197
34198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
34199 printf %s "checking size of time_t... " >&6; }
34200 if test ${ac_cv_sizeof_time_t+y}
34201 then :
34202   printf %s "(cached) " >&6
34203 else $as_nop
34204   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
34205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34206 /* end confdefs.h.  */
34207
34208 #include <sys/types.h>
34209
34210
34211 int main (void)
34212 {
34213 switch (0) case 0: case (sizeof (time_t) == $ac_size):;
34214  ;
34215  return 0;
34216 }
34217 _ACEOF
34218 if ac_fn_c_try_compile "$LINENO"
34219 then :
34220   ac_cv_sizeof_time_t=$ac_size
34221 fi
34222 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34223   if test x$ac_cv_sizeof_time_t != x ; then break; fi
34224 done
34225
34226 fi
34227
34228 if test x$ac_cv_sizeof_time_t = x ; then
34229   as_fn_error $? "cannot determine a size for time_t" "$LINENO" 5
34230 fi
34231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
34232 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
34233
34234 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
34235
34236
34237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
34238 printf %s "checking size of off_t... " >&6; }
34239 if test ${ac_cv_sizeof_off_t+y}
34240 then :
34241   printf %s "(cached) " >&6
34242 else $as_nop
34243   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
34244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34245 /* end confdefs.h.  */
34246
34247 #include <sys/types.h>
34248
34249
34250 int main (void)
34251 {
34252 switch (0) case 0: case (sizeof (off_t) == $ac_size):;
34253  ;
34254  return 0;
34255 }
34256 _ACEOF
34257 if ac_fn_c_try_compile "$LINENO"
34258 then :
34259   ac_cv_sizeof_off_t=$ac_size
34260 fi
34261 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34262   if test x$ac_cv_sizeof_off_t != x ; then break; fi
34263 done
34264
34265 fi
34266
34267 if test x$ac_cv_sizeof_off_t = x ; then
34268   as_fn_error $? "cannot determine a size for off_t" "$LINENO" 5
34269 fi
34270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
34271 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
34272
34273 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
34274
34275
34276
34277 o=$CPPFLAGS
34278 CPPFLAGS="-I$srcdir/include $CPPFLAGS"
34279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
34280 printf %s "checking size of curl_off_t... " >&6; }
34281 if test ${ac_cv_sizeof_curl_off_t+y}
34282 then :
34283   printf %s "(cached) " >&6
34284 else $as_nop
34285   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
34286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34287 /* end confdefs.h.  */
34288
34289 #include <sys/types.h>
34290
34291 #include <curl/system.h>
34292
34293
34294 int main (void)
34295 {
34296 switch (0) case 0: case (sizeof (curl_off_t) == $ac_size):;
34297  ;
34298  return 0;
34299 }
34300 _ACEOF
34301 if ac_fn_c_try_compile "$LINENO"
34302 then :
34303   ac_cv_sizeof_curl_off_t=$ac_size
34304 fi
34305 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34306   if test x$ac_cv_sizeof_curl_off_t != x ; then break; fi
34307 done
34308
34309 fi
34310
34311 if test x$ac_cv_sizeof_curl_off_t = x ; then
34312   as_fn_error $? "cannot determine a size for curl_off_t" "$LINENO" 5
34313 fi
34314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_curl_off_t" >&5
34315 printf "%s\n" "$ac_cv_sizeof_curl_off_t" >&6; }
34316
34317 printf "%s\n" "#define SIZEOF_CURL_OFF_T $ac_cv_sizeof_curl_off_t" >>confdefs.h
34318
34319
34320 CPPFLAGS=$o
34321
34322 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
34323 if test "x$ac_cv_type_long_long" = xyes
34324 then :
34325
34326 printf "%s\n" "#define HAVE_LONGLONG 1" >>confdefs.h
34327
34328    longlong="yes"
34329
34330 fi
34331
34332
34333 if test "xyes" = "x$longlong"; then
34334   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
34335 printf %s "checking if numberLL works... " >&6; }
34336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34337 /* end confdefs.h.  */
34338
34339
34340
34341 int main (void)
34342 {
34343
34344       long long val = 1000LL;
34345
34346  ;
34347  return 0;
34348 }
34349
34350 _ACEOF
34351 if ac_fn_c_try_compile "$LINENO"
34352 then :
34353
34354     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34355 printf "%s\n" "yes" >&6; }
34356
34357 printf "%s\n" "#define HAVE_LL 1" >>confdefs.h
34358
34359
34360 else $as_nop
34361
34362     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34363 printf "%s\n" "no" >&6; }
34364
34365 fi
34366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34367 fi
34368
34369
34370 # check for ssize_t
34371 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
34372 if test "x$ac_cv_type_ssize_t" = xyes
34373 then :
34374
34375 else $as_nop
34376
34377 printf "%s\n" "#define ssize_t int" >>confdefs.h
34378
34379 fi
34380
34381
34382 # check for bool type
34383 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
34384 #ifdef HAVE_SYS_TYPES_H
34385 #include <sys/types.h>
34386 #endif
34387 #ifdef HAVE_STDBOOL_H
34388 #include <stdbool.h>
34389 #endif
34390
34391 "
34392 if test "x$ac_cv_type_bool" = xyes
34393 then :
34394
34395
34396 printf "%s\n" "#define HAVE_BOOL_T 1" >>confdefs.h
34397
34398
34399 fi
34400
34401
34402 # check for sa_family_t
34403 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
34404 #ifdef HAVE_SYS_SOCKET_H
34405 #include <sys/socket.h>
34406 #endif
34407
34408 "
34409 if test "x$ac_cv_type_sa_family_t" = xyes
34410 then :
34411
34412 printf "%s\n" "#define CURL_SA_FAMILY_T sa_family_t" >>confdefs.h
34413
34414 else $as_nop
34415
34416    # The windows name?
34417    ac_fn_c_check_type "$LINENO" "ADDRESS_FAMILY" "ac_cv_type_ADDRESS_FAMILY" "
34418 #ifdef HAVE_SYS_SOCKET_H
34419 #include <sys/socket.h>
34420 #endif
34421
34422 "
34423 if test "x$ac_cv_type_ADDRESS_FAMILY" = xyes
34424 then :
34425
34426 printf "%s\n" "#define CURL_SA_FAMILY_T ADDRESS_FAMILY" >>confdefs.h
34427
34428 else $as_nop
34429
34430 printf "%s\n" "#define CURL_SA_FAMILY_T unsigned short" >>confdefs.h
34431
34432 fi
34433
34434
34435 fi
34436
34437
34438 # check for suseconds_t
34439 ac_fn_c_check_type "$LINENO" "suseconds_t" "ac_cv_type_suseconds_t" "
34440 #ifdef HAVE_SYS_TYPES_H
34441 #include <sys/types.h>
34442 #endif
34443 #ifdef HAVE_SYS_TIME_H
34444 #include <sys/time.h>
34445 #endif
34446
34447 "
34448 if test "x$ac_cv_type_suseconds_t" = xyes
34449 then :
34450
34451
34452 printf "%s\n" "#define HAVE_SUSECONDS_T 1" >>confdefs.h
34453
34454
34455 fi
34456
34457
34458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if time_t is unsigned" >&5
34459 printf %s "checking if time_t is unsigned... " >&6; }
34460
34461    case $host_os in
34462      darwin*) library_path_var=DYLD_LIBRARY_PATH ;;
34463      *)       library_path_var=LD_LIBRARY_PATH ;;
34464    esac
34465
34466    eval "old=$$library_path_var"
34467    eval "$library_path_var=\$CURL_LIBRARY_PATH:\$old"
34468
34469    eval "export $library_path_var"
34470    if test "$cross_compiling" = yes
34471 then :
34472     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34473 printf "%s\n" "no" >&6; }
34474
34475 else $as_nop
34476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34477 /* end confdefs.h.  */
34478
34479   #include <time.h>
34480   #include <limits.h>
34481   time_t t = -1;
34482   return (t > 0);
34483
34484 _ACEOF
34485 if ac_fn_c_try_run "$LINENO"
34486 then :
34487   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34488 printf "%s\n" "yes" >&6; }
34489
34490 printf "%s\n" "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
34491
34492
34493 else $as_nop
34494   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34495 printf "%s\n" "no" >&6; }
34496
34497 fi
34498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34499   conftest.$ac_objext conftest.beam conftest.$ac_ext
34500 fi
34501
34502    eval "$library_path_var=\$old" # restore
34503
34504
34505
34506 curl_includes_poll="\
34507 /* includes start */
34508 #ifdef HAVE_SYS_TYPES_H
34509 #  include <sys/types.h>
34510 #endif
34511 #ifdef HAVE_POLL_H
34512 #  include <poll.h>
34513 #endif
34514 #ifdef HAVE_SYS_POLL_H
34515 #  include <sys/poll.h>
34516 #endif
34517 /* includes end */"
34518   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_poll
34519 "
34520 if test "x$ac_cv_header_sys_types_h" = xyes
34521 then :
34522   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
34523
34524 fi
34525 ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$curl_includes_poll
34526 "
34527 if test "x$ac_cv_header_poll_h" = xyes
34528 then :
34529   printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
34530
34531 fi
34532 ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$curl_includes_poll
34533 "
34534 if test "x$ac_cv_header_sys_poll_h" = xyes
34535 then :
34536   printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
34537
34538 fi
34539
34540
34541
34542     #
34543   tst_poll_events_macro_defined="unknown"
34544   #
34545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34546 /* end confdefs.h.  */
34547
34548
34549       $curl_includes_poll
34550
34551 int main (void)
34552 {
34553
34554 #if defined(events) || defined(revents)
34555       return 0;
34556 #else
34557       force compilation error
34558 #endif
34559
34560  ;
34561  return 0;
34562 }
34563
34564 _ACEOF
34565 if ac_fn_c_try_compile "$LINENO"
34566 then :
34567
34568     tst_poll_events_macro_defined="yes"
34569
34570 else $as_nop
34571
34572     tst_poll_events_macro_defined="no"
34573
34574 fi
34575 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34576   #
34577   if test "$tst_poll_events_macro_defined" = "yes"; then
34578     if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
34579
34580 cat >>confdefs.h <<_EOF
34581 #define CURL_PULL_SYS_POLL_H 1
34582 _EOF
34583
34584     fi
34585   fi
34586   #
34587
34588
34589
34590   ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
34591 #undef inline
34592 #ifdef HAVE_WINDOWS_H
34593 #ifndef WIN32_LEAN_AND_MEAN
34594 #define WIN32_LEAN_AND_MEAN
34595 #endif
34596 #include <windows.h>
34597 #ifdef HAVE_WINSOCK2_H
34598 #include <winsock2.h>
34599 #endif
34600 #else
34601 #ifdef HAVE_SYS_TYPES_H
34602 #include <sys/types.h>
34603 #endif
34604 #ifdef HAVE_SYS_SOCKET_H
34605 #include <sys/socket.h>
34606 #endif
34607 #ifdef HAVE_NETINET_IN_H
34608 #include <netinet/in.h>
34609 #endif
34610 #ifdef HAVE_ARPA_INET_H
34611 #include <arpa/inet.h>
34612 #endif
34613 #endif
34614
34615 "
34616 if test "x$ac_cv_type_in_addr_t" = xyes
34617 then :
34618
34619 else $as_nop
34620
34621         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
34622 printf %s "checking for in_addr_t equivalent... " >&6; }
34623 if test ${curl_cv_in_addr_t_equiv+y}
34624 then :
34625   printf %s "(cached) " >&6
34626 else $as_nop
34627
34628       curl_cv_in_addr_t_equiv="unknown"
34629       for t in "unsigned long" int size_t unsigned long; do
34630         if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
34631           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34632 /* end confdefs.h.  */
34633
34634
34635 #undef inline
34636 #ifdef HAVE_WINDOWS_H
34637 #ifndef WIN32_LEAN_AND_MEAN
34638 #define WIN32_LEAN_AND_MEAN
34639 #endif
34640 #include <windows.h>
34641 #ifdef HAVE_WINSOCK2_H
34642 #include <winsock2.h>
34643 #endif
34644 #else
34645 #ifdef HAVE_SYS_TYPES_H
34646 #include <sys/types.h>
34647 #endif
34648 #ifdef HAVE_SYS_SOCKET_H
34649 #include <sys/socket.h>
34650 #endif
34651 #ifdef HAVE_NETINET_IN_H
34652 #include <netinet/in.h>
34653 #endif
34654 #ifdef HAVE_ARPA_INET_H
34655 #include <arpa/inet.h>
34656 #endif
34657 #endif
34658
34659 int main (void)
34660 {
34661
34662               $t data = inet_addr ("1.2.3.4");
34663
34664  ;
34665  return 0;
34666 }
34667
34668 _ACEOF
34669 if ac_fn_c_try_link "$LINENO"
34670 then :
34671
34672             curl_cv_in_addr_t_equiv="$t"
34673
34674 fi
34675 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34676     conftest$ac_exeext conftest.$ac_ext
34677         fi
34678       done
34679
34680 fi
34681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
34682 printf "%s\n" "$curl_cv_in_addr_t_equiv" >&6; }
34683     case "$curl_cv_in_addr_t_equiv" in
34684       unknown)
34685         as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
34686         ;;
34687       *)
34688
34689 printf "%s\n" "#define in_addr_t $curl_cv_in_addr_t_equiv" >>confdefs.h
34690
34691         ;;
34692     esac
34693
34694 fi
34695
34696
34697
34698
34699    ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
34700 #undef inline
34701 #ifdef HAVE_WINDOWS_H
34702 #ifndef WIN32_LEAN_AND_MEAN
34703 #define WIN32_LEAN_AND_MEAN
34704 #endif
34705 #include <windows.h>
34706 #ifdef HAVE_WINSOCK2_H
34707 #include <winsock2.h>
34708 #endif
34709 #else
34710 #ifdef HAVE_SYS_TYPES_H
34711 #include <sys/types.h>
34712 #endif
34713 #ifdef HAVE_SYS_SOCKET_H
34714 #include <sys/socket.h>
34715 #endif
34716 #ifdef HAVE_NETINET_IN_H
34717 #include <netinet/in.h>
34718 #endif
34719 #ifdef HAVE_ARPA_INET_H
34720 #include <arpa/inet.h>
34721 #endif
34722 #endif
34723
34724 "
34725 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
34726 then :
34727
34728 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
34729
34730 fi
34731
34732
34733
34734
34735     ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
34736 if test "x$ac_cv_header_sys_select_h" = xyes
34737 then :
34738   printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
34739
34740 fi
34741 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
34742 if test "x$ac_cv_header_sys_socket_h" = xyes
34743 then :
34744   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
34745
34746 fi
34747
34748   #
34749   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for select" >&5
34750 printf %s "checking for select... " >&6; }
34751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34752 /* end confdefs.h.  */
34753
34754
34755 #undef inline
34756 #ifdef HAVE_WINDOWS_H
34757 #ifndef WIN32_LEAN_AND_MEAN
34758 #define WIN32_LEAN_AND_MEAN
34759 #endif
34760 #include <windows.h>
34761 #ifdef HAVE_WINSOCK2_H
34762 #include <winsock2.h>
34763 #endif
34764 #endif
34765 #ifdef HAVE_SYS_TYPES_H
34766 #include <sys/types.h>
34767 #endif
34768 #ifdef HAVE_SYS_TIME_H
34769 #include <sys/time.h>
34770 #endif
34771 #include <time.h>
34772 #ifndef HAVE_WINDOWS_H
34773 #ifdef HAVE_SYS_SELECT_H
34774 #include <sys/select.h>
34775 #elif defined(HAVE_UNISTD_H)
34776 #include <unistd.h>
34777 #endif
34778 #ifdef HAVE_SYS_SOCKET_H
34779 #include <sys/socket.h>
34780 #endif
34781 #ifdef HAVE_PROTO_BSDSOCKET_H
34782 #include <proto/bsdsocket.h>
34783 struct Library *SocketBase = NULL;
34784 #define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
34785 #endif
34786 #endif
34787
34788 int main (void)
34789 {
34790
34791       select(0, 0, 0, 0, 0);
34792
34793  ;
34794  return 0;
34795 }
34796
34797 _ACEOF
34798 if ac_fn_c_try_link "$LINENO"
34799 then :
34800
34801     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34802 printf "%s\n" "yes" >&6; }
34803     curl_cv_select="yes"
34804
34805 else $as_nop
34806
34807     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34808 printf "%s\n" "no" >&6; }
34809     curl_cv_select="no"
34810
34811 fi
34812 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34813     conftest$ac_exeext conftest.$ac_ext
34814   #
34815   if test "$curl_cv_select" = "yes"; then
34816     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
34817 printf %s "checking types of args and return type for select... " >&6; }
34818 if test ${curl_cv_func_select_args+y}
34819 then :
34820   printf %s "(cached) " >&6
34821 else $as_nop
34822
34823       curl_cv_func_select_args="unknown"
34824       for sel_retv in 'int' 'ssize_t'; do
34825         for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
34826           for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
34827             for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
34828               if test "$curl_cv_func_select_args" = "unknown"; then
34829                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34830 /* end confdefs.h.  */
34831
34832
34833 #undef inline
34834 #ifdef HAVE_WINDOWS_H
34835 #ifndef WIN32_LEAN_AND_MEAN
34836 #define WIN32_LEAN_AND_MEAN
34837 #endif
34838 #include <windows.h>
34839 #ifdef HAVE_WINSOCK2_H
34840 #include <winsock2.h>
34841 #endif
34842 #define SELECTCALLCONV PASCAL
34843 #endif
34844 #ifdef HAVE_SYS_TYPES_H
34845 #include <sys/types.h>
34846 #endif
34847 #ifdef HAVE_SYS_TIME_H
34848 #include <sys/time.h>
34849 #endif
34850 #include <time.h>
34851 #ifndef HAVE_WINDOWS_H
34852 #ifdef HAVE_SYS_SELECT_H
34853 #include <sys/select.h>
34854 #elif defined(HAVE_UNISTD_H)
34855 #include <unistd.h>
34856 #endif
34857 #ifdef HAVE_SYS_SOCKET_H
34858 #include <sys/socket.h>
34859 #endif
34860 #ifdef HAVE_PROTO_BSDSOCKET_H
34861 #include <proto/bsdsocket.h>
34862 struct Library *SocketBase = NULL;
34863 #define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
34864 #endif
34865 #define SELECTCALLCONV
34866 #endif
34867 #ifndef HAVE_STRUCT_TIMEVAL
34868                     struct timeval {
34869                       long tv_sec;
34870                       long tv_usec;
34871                     };
34872 #endif
34873 #ifndef HAVE_PROTO_BSDSOCKET_H
34874                     extern $sel_retv SELECTCALLCONV
34875                                 select($sel_arg1,
34876                                         $sel_arg234,
34877                                         $sel_arg234,
34878                                         $sel_arg234,
34879                                         $sel_arg5);
34880 #endif
34881
34882 int main (void)
34883 {
34884
34885                     $sel_arg1   nfds=0;
34886                     $sel_arg234 rfds=0;
34887                     $sel_arg234 wfds=0;
34888                     $sel_arg234 efds=0;
34889                     $sel_retv res = select(nfds, rfds, wfds, efds, 0);
34890
34891  ;
34892  return 0;
34893 }
34894
34895 _ACEOF
34896 if ac_fn_c_try_compile "$LINENO"
34897 then :
34898
34899                   curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
34900
34901 fi
34902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34903               fi
34904             done
34905           done
34906         done
34907       done
34908
34909 fi
34910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
34911 printf "%s\n" "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
34912     if test "$curl_cv_func_select_args" = "unknown"; then
34913       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
34914 printf "%s\n" "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
34915       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
34916 printf "%s\n" "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
34917     else
34918       select_prev_IFS=$IFS; IFS=','
34919       set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
34920       IFS=$select_prev_IFS
34921       shift
34922       #
34923       sel_qual_type_arg5=$3
34924       #
34925
34926 printf "%s\n" "#define SELECT_TYPE_ARG1 $1" >>confdefs.h
34927
34928
34929 printf "%s\n" "#define SELECT_TYPE_ARG234 $2" >>confdefs.h
34930
34931
34932 printf "%s\n" "#define SELECT_TYPE_RETV $4" >>confdefs.h
34933
34934       #
34935       prev_sh_opts=$-
34936       #
34937       case $prev_sh_opts in
34938         *f*)
34939           ;;
34940         *)
34941           set -f
34942           ;;
34943       esac
34944       #
34945       case "$sel_qual_type_arg5" in
34946         const*)
34947           sel_qual_arg5=const
34948           sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
34949         ;;
34950         *)
34951           sel_qual_arg5=
34952           sel_type_arg5=$sel_qual_type_arg5
34953         ;;
34954       esac
34955       #
34956
34957 printf "%s\n" "#define SELECT_QUAL_ARG5 $sel_qual_arg5" >>confdefs.h
34958
34959
34960 printf "%s\n" "#define SELECT_TYPE_ARG5 $sel_type_arg5" >>confdefs.h
34961
34962       #
34963       case $prev_sh_opts in
34964         *f*)
34965           ;;
34966         *)
34967           set +f
34968           ;;
34969       esac
34970       #
34971
34972 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
34973
34974       curl_cv_func_select="yes"
34975     fi
34976   fi
34977
34978
34979
34980     ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
34981 if test "x$ac_cv_header_sys_types_h" = xyes
34982 then :
34983   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
34984
34985 fi
34986 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
34987 if test "x$ac_cv_header_sys_socket_h" = xyes
34988 then :
34989   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
34990
34991 fi
34992
34993   #
34994   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
34995 printf %s "checking for recv... " >&6; }
34996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34997 /* end confdefs.h.  */
34998
34999
35000 #undef inline
35001 #ifdef HAVE_WINDOWS_H
35002 #ifndef WIN32_LEAN_AND_MEAN
35003 #define WIN32_LEAN_AND_MEAN
35004 #endif
35005 #include <windows.h>
35006 #ifdef HAVE_WINSOCK2_H
35007 #include <winsock2.h>
35008 #endif
35009 #else
35010 #ifdef HAVE_PROTO_BSDSOCKET_H
35011 #include <proto/bsdsocket.h>
35012 struct Library *SocketBase = NULL;
35013 #endif
35014 #ifdef HAVE_SYS_TYPES_H
35015 #include <sys/types.h>
35016 #endif
35017 #ifdef HAVE_SYS_SOCKET_H
35018 #include <sys/socket.h>
35019 #endif
35020 #endif
35021
35022 int main (void)
35023 {
35024
35025       recv(0, 0, 0, 0);
35026
35027  ;
35028  return 0;
35029 }
35030
35031 _ACEOF
35032 if ac_fn_c_try_link "$LINENO"
35033 then :
35034
35035     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35036 printf "%s\n" "yes" >&6; }
35037     curl_cv_recv="yes"
35038
35039 else $as_nop
35040
35041     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35042 printf "%s\n" "no" >&6; }
35043     curl_cv_recv="no"
35044
35045 fi
35046 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35047     conftest$ac_exeext conftest.$ac_ext
35048   #
35049   if test "$curl_cv_recv" = "yes"; then
35050     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
35051 printf %s "checking types of args and return type for recv... " >&6; }
35052 if test ${curl_cv_func_recv_args+y}
35053 then :
35054   printf %s "(cached) " >&6
35055 else $as_nop
35056
35057       curl_cv_func_recv_args="unknown"
35058       for recv_retv in 'int' 'ssize_t'; do
35059         for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
35060           for recv_arg2 in 'char *' 'void *'; do
35061             for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
35062               for recv_arg4 in 'int' 'unsigned int'; do
35063                 if test "$curl_cv_func_recv_args" = "unknown"; then
35064                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35065 /* end confdefs.h.  */
35066
35067
35068 #undef inline
35069 #ifdef HAVE_WINDOWS_H
35070 #ifndef WIN32_LEAN_AND_MEAN
35071 #define WIN32_LEAN_AND_MEAN
35072 #endif
35073 #include <windows.h>
35074 #ifdef HAVE_WINSOCK2_H
35075 #include <winsock2.h>
35076 #endif
35077 #define RECVCALLCONV PASCAL
35078 #else
35079 #ifdef HAVE_PROTO_BSDSOCKET_H
35080 #include <proto/bsdsocket.h>
35081 struct Library *SocketBase = NULL;
35082 #endif
35083 #ifdef HAVE_SYS_TYPES_H
35084 #include <sys/types.h>
35085 #endif
35086 #ifdef HAVE_SYS_SOCKET_H
35087 #include <sys/socket.h>
35088 #endif
35089 #define RECVCALLCONV
35090 #endif
35091 #ifndef HAVE_PROTO_BSDSOCKET_H
35092                       extern $recv_retv RECVCALLCONV
35093                       recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
35094 #endif
35095
35096 int main (void)
35097 {
35098
35099                       $recv_arg1 s=0;
35100                       $recv_arg2 buf=0;
35101                       $recv_arg3 len=0;
35102                       $recv_arg4 flags=0;
35103                       $recv_retv res = recv(s, buf, len, flags);
35104
35105  ;
35106  return 0;
35107 }
35108
35109 _ACEOF
35110 if ac_fn_c_try_compile "$LINENO"
35111 then :
35112
35113                     curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
35114
35115 fi
35116 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35117                 fi
35118               done
35119             done
35120           done
35121         done
35122       done
35123
35124 fi
35125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
35126 printf "%s\n" "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
35127     if test "$curl_cv_func_recv_args" = "unknown"; then
35128       as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
35129     else
35130       recv_prev_IFS=$IFS; IFS=','
35131       set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
35132       IFS=$recv_prev_IFS
35133       shift
35134       #
35135
35136 printf "%s\n" "#define RECV_TYPE_ARG1 $1" >>confdefs.h
35137
35138
35139 printf "%s\n" "#define RECV_TYPE_ARG2 $2" >>confdefs.h
35140
35141
35142 printf "%s\n" "#define RECV_TYPE_ARG3 $3" >>confdefs.h
35143
35144
35145 printf "%s\n" "#define RECV_TYPE_ARG4 $4" >>confdefs.h
35146
35147
35148 printf "%s\n" "#define RECV_TYPE_RETV $5" >>confdefs.h
35149
35150       #
35151
35152 printf "%s\n" "#define HAVE_RECV 1" >>confdefs.h
35153
35154       curl_cv_func_recv="yes"
35155     fi
35156   else
35157     as_fn_error $? "Unable to link function recv" "$LINENO" 5
35158   fi
35159
35160
35161     ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
35162 if test "x$ac_cv_header_sys_types_h" = xyes
35163 then :
35164   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35165
35166 fi
35167 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
35168 if test "x$ac_cv_header_sys_socket_h" = xyes
35169 then :
35170   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35171
35172 fi
35173
35174   #
35175   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for send" >&5
35176 printf %s "checking for send... " >&6; }
35177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35178 /* end confdefs.h.  */
35179
35180
35181 #undef inline
35182 #ifdef HAVE_WINDOWS_H
35183 #ifndef WIN32_LEAN_AND_MEAN
35184 #define WIN32_LEAN_AND_MEAN
35185 #endif
35186 #include <windows.h>
35187 #ifdef HAVE_WINSOCK2_H
35188 #include <winsock2.h>
35189 #endif
35190 #else
35191 #ifdef HAVE_PROTO_BSDSOCKET_H
35192 #include <proto/bsdsocket.h>
35193 struct Library *SocketBase = NULL;
35194 #endif
35195 #ifdef HAVE_SYS_TYPES_H
35196 #include <sys/types.h>
35197 #endif
35198 #ifdef HAVE_SYS_SOCKET_H
35199 #include <sys/socket.h>
35200 #endif
35201 #endif
35202
35203 int main (void)
35204 {
35205
35206       send(0, 0, 0, 0);
35207
35208  ;
35209  return 0;
35210 }
35211
35212 _ACEOF
35213 if ac_fn_c_try_link "$LINENO"
35214 then :
35215
35216     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35217 printf "%s\n" "yes" >&6; }
35218     curl_cv_send="yes"
35219
35220 else $as_nop
35221
35222     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35223 printf "%s\n" "no" >&6; }
35224     curl_cv_send="no"
35225
35226 fi
35227 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35228     conftest$ac_exeext conftest.$ac_ext
35229   #
35230   if test "$curl_cv_send" = "yes"; then
35231     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
35232 printf %s "checking types of args and return type for send... " >&6; }
35233 if test ${curl_cv_func_send_args+y}
35234 then :
35235   printf %s "(cached) " >&6
35236 else $as_nop
35237
35238       curl_cv_func_send_args="unknown"
35239       for send_retv in 'int' 'ssize_t'; do
35240         for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
35241           for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
35242             for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
35243               for send_arg4 in 'int' 'unsigned int'; do
35244                 if test "$curl_cv_func_send_args" = "unknown"; then
35245                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35246 /* end confdefs.h.  */
35247
35248
35249 #undef inline
35250 #ifdef HAVE_WINDOWS_H
35251 #ifndef WIN32_LEAN_AND_MEAN
35252 #define WIN32_LEAN_AND_MEAN
35253 #endif
35254 #include <windows.h>
35255 #ifdef HAVE_WINSOCK2_H
35256 #include <winsock2.h>
35257 #endif
35258 #define SENDCALLCONV PASCAL
35259 #else
35260 #ifdef HAVE_PROTO_BSDSOCKET_H
35261 #include <proto/bsdsocket.h>
35262 struct Library *SocketBase = NULL;
35263 #endif
35264 #ifdef HAVE_SYS_TYPES_H
35265 #include <sys/types.h>
35266 #endif
35267 #ifdef HAVE_SYS_SOCKET_H
35268 #include <sys/socket.h>
35269 #endif
35270 #define SENDCALLCONV
35271 #endif
35272 #ifndef HAVE_PROTO_BSDSOCKET_H
35273                       extern $send_retv SENDCALLCONV
35274                       send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
35275 #endif
35276
35277 int main (void)
35278 {
35279
35280                       $send_arg1 s=0;
35281                       $send_arg3 len=0;
35282                       $send_arg4 flags=0;
35283                       $send_retv res = send(s, 0, len, flags);
35284
35285  ;
35286  return 0;
35287 }
35288
35289 _ACEOF
35290 if ac_fn_c_try_compile "$LINENO"
35291 then :
35292
35293                     curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
35294
35295 fi
35296 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35297                 fi
35298               done
35299             done
35300           done
35301         done
35302       done
35303
35304 fi
35305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
35306 printf "%s\n" "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
35307     if test "$curl_cv_func_send_args" = "unknown"; then
35308       as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
35309     else
35310       send_prev_IFS=$IFS; IFS=','
35311       set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
35312       IFS=$send_prev_IFS
35313       shift
35314       #
35315       send_qual_type_arg2=$2
35316       #
35317
35318 printf "%s\n" "#define SEND_TYPE_ARG1 $1" >>confdefs.h
35319
35320
35321 printf "%s\n" "#define SEND_TYPE_ARG3 $3" >>confdefs.h
35322
35323
35324 printf "%s\n" "#define SEND_TYPE_ARG4 $4" >>confdefs.h
35325
35326
35327 printf "%s\n" "#define SEND_TYPE_RETV $5" >>confdefs.h
35328
35329       #
35330       prev_sh_opts=$-
35331       #
35332       case $prev_sh_opts in
35333         *f*)
35334           ;;
35335         *)
35336           set -f
35337           ;;
35338       esac
35339       #
35340       case "$send_qual_type_arg2" in
35341         const*)
35342           send_qual_arg2=const
35343           send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
35344         ;;
35345         *)
35346           send_qual_arg2=
35347           send_type_arg2=$send_qual_type_arg2
35348         ;;
35349       esac
35350       #
35351
35352 printf "%s\n" "#define SEND_QUAL_ARG2 $send_qual_arg2" >>confdefs.h
35353
35354
35355 printf "%s\n" "#define SEND_TYPE_ARG2 $send_type_arg2" >>confdefs.h
35356
35357       #
35358       case $prev_sh_opts in
35359         *f*)
35360           ;;
35361         *)
35362           set +f
35363           ;;
35364       esac
35365       #
35366
35367 printf "%s\n" "#define HAVE_SEND 1" >>confdefs.h
35368
35369       curl_cv_func_send="yes"
35370     fi
35371   else
35372     as_fn_error $? "Unable to link function send" "$LINENO" 5
35373   fi
35374
35375
35376   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
35377 if test "x$ac_cv_header_sys_types_h" = xyes
35378 then :
35379   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35380
35381 fi
35382 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
35383 if test "x$ac_cv_header_sys_socket_h" = xyes
35384 then :
35385   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35386
35387 fi
35388
35389   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
35390 printf %s "checking for MSG_NOSIGNAL... " >&6; }
35391 if test ${curl_cv_msg_nosignal+y}
35392 then :
35393   printf %s "(cached) " >&6
35394 else $as_nop
35395
35396     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35397 /* end confdefs.h.  */
35398
35399
35400 #undef inline
35401 #ifdef HAVE_WINDOWS_H
35402 #ifndef WIN32_LEAN_AND_MEAN
35403 #define WIN32_LEAN_AND_MEAN
35404 #endif
35405 #include <windows.h>
35406 #ifdef HAVE_WINSOCK2_H
35407 #include <winsock2.h>
35408 #endif
35409 #else
35410 #ifdef HAVE_PROTO_BSDSOCKET_H
35411 #include <proto/bsdsocket.h>
35412 struct Library *SocketBase = NULL;
35413 #endif
35414 #ifdef HAVE_SYS_TYPES_H
35415 #include <sys/types.h>
35416 #endif
35417 #ifdef HAVE_SYS_SOCKET_H
35418 #include <sys/socket.h>
35419 #endif
35420 #endif
35421
35422 int main (void)
35423 {
35424
35425         int flag=MSG_NOSIGNAL;
35426
35427  ;
35428  return 0;
35429 }
35430
35431 _ACEOF
35432 if ac_fn_c_try_compile "$LINENO"
35433 then :
35434
35435       curl_cv_msg_nosignal="yes"
35436
35437 else $as_nop
35438
35439       curl_cv_msg_nosignal="no"
35440
35441 fi
35442 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35443
35444 fi
35445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
35446 printf "%s\n" "$curl_cv_msg_nosignal" >&6; }
35447   case "$curl_cv_msg_nosignal" in
35448     yes)
35449
35450 printf "%s\n" "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h
35451
35452       ;;
35453   esac
35454
35455
35456
35457 curl_includes_unistd="\
35458 /* includes start */
35459 #ifdef HAVE_SYS_TYPES_H
35460 #  include <sys/types.h>
35461 #endif
35462 #ifdef HAVE_UNISTD_H
35463 #  include <unistd.h>
35464 #endif
35465 /* includes end */"
35466   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_unistd
35467 "
35468 if test "x$ac_cv_header_sys_types_h" = xyes
35469 then :
35470   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35471
35472 fi
35473 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_unistd
35474 "
35475 if test "x$ac_cv_header_unistd_h" = xyes
35476 then :
35477   printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
35478
35479 fi
35480
35481
35482
35483     #
35484   tst_links_alarm="unknown"
35485   tst_proto_alarm="unknown"
35486   tst_compi_alarm="unknown"
35487   tst_allow_alarm="unknown"
35488   #
35489   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
35490 printf %s "checking if alarm can be linked... " >&6; }
35491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35492 /* end confdefs.h.  */
35493
35494
35495 #define alarm innocuous_alarm
35496 #ifdef __STDC__
35497 # include <limits.h>
35498 #else
35499 # include <assert.h>
35500 #endif
35501 #undef alarm
35502 #ifdef __cplusplus
35503 extern "C"
35504 #endif
35505 char alarm ();
35506 #if defined __stub_alarm || defined __stub___alarm
35507 choke me
35508 #endif
35509
35510 int main (void)
35511 {
35512 return alarm ();
35513  ;
35514  return 0;
35515 }
35516
35517 _ACEOF
35518 if ac_fn_c_try_link "$LINENO"
35519 then :
35520
35521     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35522 printf "%s\n" "yes" >&6; }
35523     tst_links_alarm="yes"
35524
35525 else $as_nop
35526
35527     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35528 printf "%s\n" "no" >&6; }
35529     tst_links_alarm="no"
35530
35531 fi
35532 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35533     conftest$ac_exeext conftest.$ac_ext
35534   #
35535   if test "$tst_links_alarm" = "yes"; then
35536     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
35537 printf %s "checking if alarm is prototyped... " >&6; }
35538     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35539 /* end confdefs.h.  */
35540
35541       $curl_includes_unistd
35542
35543 _ACEOF
35544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35545   $EGREP "alarm" >/dev/null 2>&1
35546 then :
35547
35548       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35549 printf "%s\n" "yes" >&6; }
35550       tst_proto_alarm="yes"
35551
35552 else $as_nop
35553
35554       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35555 printf "%s\n" "no" >&6; }
35556       tst_proto_alarm="no"
35557
35558 fi
35559 rm -rf conftest*
35560
35561   fi
35562   #
35563   if test "$tst_proto_alarm" = "yes"; then
35564     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
35565 printf %s "checking if alarm is compilable... " >&6; }
35566     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35567 /* end confdefs.h.  */
35568
35569
35570         $curl_includes_unistd
35571
35572 int main (void)
35573 {
35574
35575         if(0 != alarm(0))
35576           return 1;
35577
35578  ;
35579  return 0;
35580 }
35581
35582 _ACEOF
35583 if ac_fn_c_try_compile "$LINENO"
35584 then :
35585
35586       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35587 printf "%s\n" "yes" >&6; }
35588       tst_compi_alarm="yes"
35589
35590 else $as_nop
35591
35592       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35593 printf "%s\n" "no" >&6; }
35594       tst_compi_alarm="no"
35595
35596 fi
35597 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35598   fi
35599   #
35600   if test "$tst_compi_alarm" = "yes"; then
35601     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
35602 printf %s "checking if alarm usage allowed... " >&6; }
35603     if test "x$curl_disallow_alarm" != "xyes"; then
35604       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35605 printf "%s\n" "yes" >&6; }
35606       tst_allow_alarm="yes"
35607     else
35608       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35609 printf "%s\n" "no" >&6; }
35610       tst_allow_alarm="no"
35611     fi
35612   fi
35613   #
35614   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
35615 printf %s "checking if alarm might be used... " >&6; }
35616   if test "$tst_links_alarm" = "yes" &&
35617      test "$tst_proto_alarm" = "yes" &&
35618      test "$tst_compi_alarm" = "yes" &&
35619      test "$tst_allow_alarm" = "yes"; then
35620     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35621 printf "%s\n" "yes" >&6; }
35622
35623 printf "%s\n" "#define HAVE_ALARM 1" >>confdefs.h
35624
35625     curl_cv_func_alarm="yes"
35626   else
35627     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35628 printf "%s\n" "no" >&6; }
35629     curl_cv_func_alarm="no"
35630   fi
35631
35632
35633 curl_includes_string="\
35634 /* includes start */
35635 #ifdef HAVE_SYS_TYPES_H
35636 #  include <sys/types.h>
35637 #endif
35638 #ifdef HAVE_STRING_H
35639 #  include <string.h>
35640 #endif
35641 #ifdef HAVE_STRINGS_H
35642 #  include <strings.h>
35643 #endif
35644 /* includes end */"
35645   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_string
35646 "
35647 if test "x$ac_cv_header_sys_types_h" = xyes
35648 then :
35649   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35650
35651 fi
35652 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$curl_includes_string
35653 "
35654 if test "x$ac_cv_header_string_h" = xyes
35655 then :
35656   printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
35657
35658 fi
35659 ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$curl_includes_string
35660 "
35661 if test "x$ac_cv_header_strings_h" = xyes
35662 then :
35663   printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
35664
35665 fi
35666
35667
35668
35669 curl_includes_libgen="\
35670 /* includes start */
35671 #ifdef HAVE_SYS_TYPES_H
35672 #  include <sys/types.h>
35673 #endif
35674 #ifdef HAVE_LIBGEN_H
35675 #  include <libgen.h>
35676 #endif
35677 /* includes end */"
35678   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_libgen
35679 "
35680 if test "x$ac_cv_header_sys_types_h" = xyes
35681 then :
35682   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35683
35684 fi
35685 ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$curl_includes_libgen
35686 "
35687 if test "x$ac_cv_header_libgen_h" = xyes
35688 then :
35689   printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
35690
35691 fi
35692
35693
35694
35695         #
35696   tst_links_basename="unknown"
35697   tst_proto_basename="unknown"
35698   tst_compi_basename="unknown"
35699   tst_allow_basename="unknown"
35700   #
35701   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
35702 printf %s "checking if basename can be linked... " >&6; }
35703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35704 /* end confdefs.h.  */
35705
35706
35707 #define basename innocuous_basename
35708 #ifdef __STDC__
35709 # include <limits.h>
35710 #else
35711 # include <assert.h>
35712 #endif
35713 #undef basename
35714 #ifdef __cplusplus
35715 extern "C"
35716 #endif
35717 char basename ();
35718 #if defined __stub_basename || defined __stub___basename
35719 choke me
35720 #endif
35721
35722 int main (void)
35723 {
35724 return basename ();
35725  ;
35726  return 0;
35727 }
35728
35729 _ACEOF
35730 if ac_fn_c_try_link "$LINENO"
35731 then :
35732
35733     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35734 printf "%s\n" "yes" >&6; }
35735     tst_links_basename="yes"
35736
35737 else $as_nop
35738
35739     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35740 printf "%s\n" "no" >&6; }
35741     tst_links_basename="no"
35742
35743 fi
35744 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35745     conftest$ac_exeext conftest.$ac_ext
35746   #
35747   if test "$tst_links_basename" = "yes"; then
35748     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
35749 printf %s "checking if basename is prototyped... " >&6; }
35750     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35751 /* end confdefs.h.  */
35752
35753       $curl_includes_string
35754       $curl_includes_libgen
35755       $curl_includes_unistd
35756
35757 _ACEOF
35758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35759   $EGREP "basename" >/dev/null 2>&1
35760 then :
35761
35762       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35763 printf "%s\n" "yes" >&6; }
35764       tst_proto_basename="yes"
35765
35766 else $as_nop
35767
35768       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35769 printf "%s\n" "no" >&6; }
35770       tst_proto_basename="no"
35771
35772 fi
35773 rm -rf conftest*
35774
35775   fi
35776   #
35777   if test "$tst_proto_basename" = "yes"; then
35778     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
35779 printf %s "checking if basename is compilable... " >&6; }
35780     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35781 /* end confdefs.h.  */
35782
35783
35784         $curl_includes_string
35785         $curl_includes_libgen
35786         $curl_includes_unistd
35787
35788 int main (void)
35789 {
35790
35791         if(0 != basename(0))
35792           return 1;
35793
35794  ;
35795  return 0;
35796 }
35797
35798 _ACEOF
35799 if ac_fn_c_try_compile "$LINENO"
35800 then :
35801
35802       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35803 printf "%s\n" "yes" >&6; }
35804       tst_compi_basename="yes"
35805
35806 else $as_nop
35807
35808       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35809 printf "%s\n" "no" >&6; }
35810       tst_compi_basename="no"
35811
35812 fi
35813 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35814   fi
35815   #
35816   if test "$tst_compi_basename" = "yes"; then
35817     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
35818 printf %s "checking if basename usage allowed... " >&6; }
35819     if test "x$curl_disallow_basename" != "xyes"; then
35820       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35821 printf "%s\n" "yes" >&6; }
35822       tst_allow_basename="yes"
35823     else
35824       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35825 printf "%s\n" "no" >&6; }
35826       tst_allow_basename="no"
35827     fi
35828   fi
35829   #
35830   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
35831 printf %s "checking if basename might be used... " >&6; }
35832   if test "$tst_links_basename" = "yes" &&
35833      test "$tst_proto_basename" = "yes" &&
35834      test "$tst_compi_basename" = "yes" &&
35835      test "$tst_allow_basename" = "yes"; then
35836     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35837 printf "%s\n" "yes" >&6; }
35838
35839 printf "%s\n" "#define HAVE_BASENAME 1" >>confdefs.h
35840
35841     curl_cv_func_basename="yes"
35842   else
35843     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35844 printf "%s\n" "no" >&6; }
35845     curl_cv_func_basename="no"
35846   fi
35847
35848
35849 curl_includes_socket="\
35850 /* includes start */
35851 #ifdef HAVE_SYS_TYPES_H
35852 #  include <sys/types.h>
35853 #endif
35854 #ifdef HAVE_SOCKET_H
35855 #  include <socket.h>
35856 #endif
35857 /* includes end */"
35858   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_socket
35859 "
35860 if test "x$ac_cv_header_sys_types_h" = xyes
35861 then :
35862   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35863
35864 fi
35865 ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "$curl_includes_socket
35866 "
35867 if test "x$ac_cv_header_socket_h" = xyes
35868 then :
35869   printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h
35870
35871 fi
35872
35873
35874
35875       #
35876   tst_links_closesocket="unknown"
35877   tst_proto_closesocket="unknown"
35878   tst_compi_closesocket="unknown"
35879   tst_allow_closesocket="unknown"
35880   #
35881   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
35882 printf %s "checking if closesocket can be linked... " >&6; }
35883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35884 /* end confdefs.h.  */
35885
35886
35887       $curl_includes_winsock2
35888       $curl_includes_bsdsocket
35889       $curl_includes_socket
35890
35891 int main (void)
35892 {
35893
35894       if(0 != closesocket(0))
35895         return 1;
35896
35897  ;
35898  return 0;
35899 }
35900
35901 _ACEOF
35902 if ac_fn_c_try_link "$LINENO"
35903 then :
35904
35905     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35906 printf "%s\n" "yes" >&6; }
35907     tst_links_closesocket="yes"
35908
35909 else $as_nop
35910
35911     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35912 printf "%s\n" "no" >&6; }
35913     tst_links_closesocket="no"
35914
35915 fi
35916 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35917     conftest$ac_exeext conftest.$ac_ext
35918   #
35919   if test "$tst_links_closesocket" = "yes"; then
35920     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
35921 printf %s "checking if closesocket is prototyped... " >&6; }
35922     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35923 /* end confdefs.h.  */
35924
35925       $curl_includes_winsock2
35926       $curl_includes_bsdsocket
35927       $curl_includes_socket
35928
35929 _ACEOF
35930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35931   $EGREP "closesocket" >/dev/null 2>&1
35932 then :
35933
35934       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35935 printf "%s\n" "yes" >&6; }
35936       tst_proto_closesocket="yes"
35937
35938 else $as_nop
35939
35940       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35941 printf "%s\n" "no" >&6; }
35942       tst_proto_closesocket="no"
35943
35944 fi
35945 rm -rf conftest*
35946
35947   fi
35948   #
35949   if test "$tst_proto_closesocket" = "yes"; then
35950     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
35951 printf %s "checking if closesocket is compilable... " >&6; }
35952     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35953 /* end confdefs.h.  */
35954
35955
35956         $curl_includes_winsock2
35957       $curl_includes_bsdsocket
35958         $curl_includes_socket
35959
35960 int main (void)
35961 {
35962
35963         if(0 != closesocket(0))
35964           return 1;
35965
35966  ;
35967  return 0;
35968 }
35969
35970 _ACEOF
35971 if ac_fn_c_try_compile "$LINENO"
35972 then :
35973
35974       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35975 printf "%s\n" "yes" >&6; }
35976       tst_compi_closesocket="yes"
35977
35978 else $as_nop
35979
35980       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35981 printf "%s\n" "no" >&6; }
35982       tst_compi_closesocket="no"
35983
35984 fi
35985 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35986   fi
35987   #
35988   if test "$tst_compi_closesocket" = "yes"; then
35989     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
35990 printf %s "checking if closesocket usage allowed... " >&6; }
35991     if test "x$curl_disallow_closesocket" != "xyes"; then
35992       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35993 printf "%s\n" "yes" >&6; }
35994       tst_allow_closesocket="yes"
35995     else
35996       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35997 printf "%s\n" "no" >&6; }
35998       tst_allow_closesocket="no"
35999     fi
36000   fi
36001   #
36002   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
36003 printf %s "checking if closesocket might be used... " >&6; }
36004   if test "$tst_links_closesocket" = "yes" &&
36005      test "$tst_proto_closesocket" = "yes" &&
36006      test "$tst_compi_closesocket" = "yes" &&
36007      test "$tst_allow_closesocket" = "yes"; then
36008     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36009 printf "%s\n" "yes" >&6; }
36010
36011 printf "%s\n" "#define HAVE_CLOSESOCKET 1" >>confdefs.h
36012
36013     curl_cv_func_closesocket="yes"
36014   else
36015     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36016 printf "%s\n" "no" >&6; }
36017     curl_cv_func_closesocket="no"
36018   fi
36019
36020
36021 curl_includes_sys_socket="\
36022 /* includes start */
36023 #ifdef HAVE_SYS_TYPES_H
36024 #  include <sys/types.h>
36025 #endif
36026 #ifdef HAVE_SYS_SOCKET_H
36027 #  include <sys/socket.h>
36028 #endif
36029 /* includes end */"
36030   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_sys_socket
36031 "
36032 if test "x$ac_cv_header_sys_types_h" = xyes
36033 then :
36034   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36035
36036 fi
36037 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_sys_socket
36038 "
36039 if test "x$ac_cv_header_sys_socket_h" = xyes
36040 then :
36041   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
36042
36043 fi
36044
36045
36046
36047     #
36048   tst_links_closesocket_camel="unknown"
36049   tst_proto_closesocket_camel="unknown"
36050   tst_compi_closesocket_camel="unknown"
36051   tst_allow_closesocket_camel="unknown"
36052   #
36053   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
36054 printf %s "checking if CloseSocket can be linked... " >&6; }
36055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36056 /* end confdefs.h.  */
36057
36058
36059       $curl_includes_sys_socket
36060
36061 int main (void)
36062 {
36063
36064       if(0 != CloseSocket(0))
36065         return 1;
36066
36067  ;
36068  return 0;
36069 }
36070
36071 _ACEOF
36072 if ac_fn_c_try_link "$LINENO"
36073 then :
36074
36075     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36076 printf "%s\n" "yes" >&6; }
36077     tst_links_closesocket_camel="yes"
36078
36079 else $as_nop
36080
36081     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36082 printf "%s\n" "no" >&6; }
36083     tst_links_closesocket_camel="no"
36084
36085 fi
36086 rm -f core conftest.err conftest.$ac_objext conftest.beam \
36087     conftest$ac_exeext conftest.$ac_ext
36088   #
36089   if test "$tst_links_closesocket_camel" = "yes"; then
36090     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
36091 printf %s "checking if CloseSocket is prototyped... " >&6; }
36092     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36093 /* end confdefs.h.  */
36094
36095       $curl_includes_sys_socket
36096
36097 _ACEOF
36098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36099   $EGREP "CloseSocket" >/dev/null 2>&1
36100 then :
36101
36102       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36103 printf "%s\n" "yes" >&6; }
36104       tst_proto_closesocket_camel="yes"
36105
36106 else $as_nop
36107
36108       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36109 printf "%s\n" "no" >&6; }
36110       tst_proto_closesocket_camel="no"
36111
36112 fi
36113 rm -rf conftest*
36114
36115   fi
36116   #
36117   if test "$tst_proto_closesocket_camel" = "yes"; then
36118     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
36119 printf %s "checking if CloseSocket is compilable... " >&6; }
36120     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36121 /* end confdefs.h.  */
36122
36123
36124         $curl_includes_sys_socket
36125
36126 int main (void)
36127 {
36128
36129         if(0 != CloseSocket(0))
36130           return 1;
36131
36132  ;
36133  return 0;
36134 }
36135
36136 _ACEOF
36137 if ac_fn_c_try_compile "$LINENO"
36138 then :
36139
36140       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36141 printf "%s\n" "yes" >&6; }
36142       tst_compi_closesocket_camel="yes"
36143
36144 else $as_nop
36145
36146       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36147 printf "%s\n" "no" >&6; }
36148       tst_compi_closesocket_camel="no"
36149
36150 fi
36151 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36152   fi
36153   #
36154   if test "$tst_compi_closesocket_camel" = "yes"; then
36155     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
36156 printf %s "checking if CloseSocket usage allowed... " >&6; }
36157     if test "x$curl_disallow_closesocket_camel" != "xyes"; then
36158       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36159 printf "%s\n" "yes" >&6; }
36160       tst_allow_closesocket_camel="yes"
36161     else
36162       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36163 printf "%s\n" "no" >&6; }
36164       tst_allow_closesocket_camel="no"
36165     fi
36166   fi
36167   #
36168   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
36169 printf %s "checking if CloseSocket might be used... " >&6; }
36170   if test "$tst_links_closesocket_camel" = "yes" &&
36171      test "$tst_proto_closesocket_camel" = "yes" &&
36172      test "$tst_compi_closesocket_camel" = "yes" &&
36173      test "$tst_allow_closesocket_camel" = "yes"; then
36174     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36175 printf "%s\n" "yes" >&6; }
36176
36177 printf "%s\n" "#define HAVE_CLOSESOCKET_CAMEL 1" >>confdefs.h
36178
36179     curl_cv_func_closesocket_camel="yes"
36180   else
36181     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36182 printf "%s\n" "no" >&6; }
36183     curl_cv_func_closesocket_camel="no"
36184   fi
36185
36186
36187         #
36188   tst_links_connect="unknown"
36189   tst_proto_connect="unknown"
36190   tst_compi_connect="unknown"
36191   tst_allow_connect="unknown"
36192   #
36193   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
36194 printf %s "checking if connect can be linked... " >&6; }
36195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36196 /* end confdefs.h.  */
36197
36198
36199       $curl_includes_winsock2
36200       $curl_includes_bsdsocket
36201       $curl_includes_sys_socket
36202       $curl_includes_socket
36203
36204 int main (void)
36205 {
36206
36207       if(0 != connect(0, 0, 0))
36208         return 1;
36209
36210  ;
36211  return 0;
36212 }
36213
36214 _ACEOF
36215 if ac_fn_c_try_link "$LINENO"
36216 then :
36217
36218     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36219 printf "%s\n" "yes" >&6; }
36220     tst_links_connect="yes"
36221
36222 else $as_nop
36223
36224     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36225 printf "%s\n" "no" >&6; }
36226     tst_links_connect="no"
36227
36228 fi
36229 rm -f core conftest.err conftest.$ac_objext conftest.beam \
36230     conftest$ac_exeext conftest.$ac_ext
36231   #
36232   if test "$tst_links_connect" = "yes"; then
36233     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
36234 printf %s "checking if connect is prototyped... " >&6; }
36235     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36236 /* end confdefs.h.  */
36237
36238       $curl_includes_winsock2
36239       $curl_includes_bsdsocket
36240       $curl_includes_sys_socket
36241       $curl_includes_socket
36242
36243 _ACEOF
36244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36245   $EGREP "connect" >/dev/null 2>&1
36246 then :
36247
36248       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36249 printf "%s\n" "yes" >&6; }
36250       tst_proto_connect="yes"
36251
36252 else $as_nop
36253
36254       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36255 printf "%s\n" "no" >&6; }
36256       tst_proto_connect="no"
36257
36258 fi
36259 rm -rf conftest*
36260
36261   fi
36262   #
36263   if test "$tst_proto_connect" = "yes"; then
36264     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
36265 printf %s "checking if connect is compilable... " >&6; }
36266     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36267 /* end confdefs.h.  */
36268
36269
36270         $curl_includes_winsock2
36271       $curl_includes_bsdsocket
36272         $curl_includes_sys_socket
36273         $curl_includes_socket
36274
36275 int main (void)
36276 {
36277
36278         if(0 != connect(0, 0, 0))
36279           return 1;
36280
36281  ;
36282  return 0;
36283 }
36284
36285 _ACEOF
36286 if ac_fn_c_try_compile "$LINENO"
36287 then :
36288
36289       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36290 printf "%s\n" "yes" >&6; }
36291       tst_compi_connect="yes"
36292
36293 else $as_nop
36294
36295       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36296 printf "%s\n" "no" >&6; }
36297       tst_compi_connect="no"
36298
36299 fi
36300 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36301   fi
36302   #
36303   if test "$tst_compi_connect" = "yes"; then
36304     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
36305 printf %s "checking if connect usage allowed... " >&6; }
36306     if test "x$curl_disallow_connect" != "xyes"; then
36307       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36308 printf "%s\n" "yes" >&6; }
36309       tst_allow_connect="yes"
36310     else
36311       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36312 printf "%s\n" "no" >&6; }
36313       tst_allow_connect="no"
36314     fi
36315   fi
36316   #
36317   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
36318 printf %s "checking if connect might be used... " >&6; }
36319   if test "$tst_links_connect" = "yes" &&
36320      test "$tst_proto_connect" = "yes" &&
36321      test "$tst_compi_connect" = "yes" &&
36322      test "$tst_allow_connect" = "yes"; then
36323     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36324 printf "%s\n" "yes" >&6; }
36325
36326 printf "%s\n" "#define HAVE_CONNECT 1" >>confdefs.h
36327
36328     curl_cv_func_connect="yes"
36329   else
36330     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36331 printf "%s\n" "no" >&6; }
36332     curl_cv_func_connect="no"
36333   fi
36334
36335
36336 curl_includes_fcntl="\
36337 /* includes start */
36338 #ifdef HAVE_SYS_TYPES_H
36339 #  include <sys/types.h>
36340 #endif
36341 #ifdef HAVE_UNISTD_H
36342 #  include <unistd.h>
36343 #endif
36344 #ifdef HAVE_FCNTL_H
36345 #  include <fcntl.h>
36346 #endif
36347 /* includes end */"
36348   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_fcntl
36349 "
36350 if test "x$ac_cv_header_sys_types_h" = xyes
36351 then :
36352   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36353
36354 fi
36355 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_fcntl
36356 "
36357 if test "x$ac_cv_header_unistd_h" = xyes
36358 then :
36359   printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
36360
36361 fi
36362 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$curl_includes_fcntl
36363 "
36364 if test "x$ac_cv_header_fcntl_h" = xyes
36365 then :
36366   printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
36367
36368 fi
36369
36370
36371
36372     #
36373   tst_links_fcntl="unknown"
36374   tst_proto_fcntl="unknown"
36375   tst_compi_fcntl="unknown"
36376   tst_allow_fcntl="unknown"
36377   #
36378   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
36379 printf %s "checking if fcntl can be linked... " >&6; }
36380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36381 /* end confdefs.h.  */
36382
36383
36384 #define fcntl innocuous_fcntl
36385 #ifdef __STDC__
36386 # include <limits.h>
36387 #else
36388 # include <assert.h>
36389 #endif
36390 #undef fcntl
36391 #ifdef __cplusplus
36392 extern "C"
36393 #endif
36394 char fcntl ();
36395 #if defined __stub_fcntl || defined __stub___fcntl
36396 choke me
36397 #endif
36398
36399 int main (void)
36400 {
36401 return fcntl ();
36402  ;
36403  return 0;
36404 }
36405
36406 _ACEOF
36407 if ac_fn_c_try_link "$LINENO"
36408 then :
36409
36410     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36411 printf "%s\n" "yes" >&6; }
36412     tst_links_fcntl="yes"
36413
36414 else $as_nop
36415
36416     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36417 printf "%s\n" "no" >&6; }
36418     tst_links_fcntl="no"
36419
36420 fi
36421 rm -f core conftest.err conftest.$ac_objext conftest.beam \
36422     conftest$ac_exeext conftest.$ac_ext
36423   #
36424   if test "$tst_links_fcntl" = "yes"; then
36425     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
36426 printf %s "checking if fcntl is prototyped... " >&6; }
36427     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36428 /* end confdefs.h.  */
36429
36430       $curl_includes_fcntl
36431
36432 _ACEOF
36433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36434   $EGREP "fcntl" >/dev/null 2>&1
36435 then :
36436
36437       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36438 printf "%s\n" "yes" >&6; }
36439       tst_proto_fcntl="yes"
36440
36441 else $as_nop
36442
36443       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36444 printf "%s\n" "no" >&6; }
36445       tst_proto_fcntl="no"
36446
36447 fi
36448 rm -rf conftest*
36449
36450   fi
36451   #
36452   if test "$tst_proto_fcntl" = "yes"; then
36453     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
36454 printf %s "checking if fcntl is compilable... " >&6; }
36455     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36456 /* end confdefs.h.  */
36457
36458
36459         $curl_includes_fcntl
36460
36461 int main (void)
36462 {
36463
36464         if(0 != fcntl(0, 0, 0))
36465           return 1;
36466
36467  ;
36468  return 0;
36469 }
36470
36471 _ACEOF
36472 if ac_fn_c_try_compile "$LINENO"
36473 then :
36474
36475       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36476 printf "%s\n" "yes" >&6; }
36477       tst_compi_fcntl="yes"
36478
36479 else $as_nop
36480
36481       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36482 printf "%s\n" "no" >&6; }
36483       tst_compi_fcntl="no"
36484
36485 fi
36486 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36487   fi
36488   #
36489   if test "$tst_compi_fcntl" = "yes"; then
36490     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
36491 printf %s "checking if fcntl usage allowed... " >&6; }
36492     if test "x$curl_disallow_fcntl" != "xyes"; then
36493       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36494 printf "%s\n" "yes" >&6; }
36495       tst_allow_fcntl="yes"
36496     else
36497       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36498 printf "%s\n" "no" >&6; }
36499       tst_allow_fcntl="no"
36500     fi
36501   fi
36502   #
36503   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
36504 printf %s "checking if fcntl might be used... " >&6; }
36505   if test "$tst_links_fcntl" = "yes" &&
36506      test "$tst_proto_fcntl" = "yes" &&
36507      test "$tst_compi_fcntl" = "yes" &&
36508      test "$tst_allow_fcntl" = "yes"; then
36509     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36510 printf "%s\n" "yes" >&6; }
36511
36512 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
36513
36514     curl_cv_func_fcntl="yes"
36515
36516   #
36517   tst_compi_fcntl_o_nonblock="unknown"
36518   tst_allow_fcntl_o_nonblock="unknown"
36519   #
36520   case $host_os in
36521     sunos4* | aix3* | beos*)
36522             curl_disallow_fcntl_o_nonblock="yes"
36523       ;;
36524   esac
36525   #
36526   if test "$curl_cv_func_fcntl" = "yes"; then
36527     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
36528 printf %s "checking if fcntl O_NONBLOCK is compilable... " >&6; }
36529     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36530 /* end confdefs.h.  */
36531
36532
36533         $curl_includes_fcntl
36534
36535 int main (void)
36536 {
36537
36538         int flags = 0;
36539         if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
36540           return 1;
36541
36542  ;
36543  return 0;
36544 }
36545
36546 _ACEOF
36547 if ac_fn_c_try_compile "$LINENO"
36548 then :
36549
36550       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36551 printf "%s\n" "yes" >&6; }
36552       tst_compi_fcntl_o_nonblock="yes"
36553
36554 else $as_nop
36555
36556       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36557 printf "%s\n" "no" >&6; }
36558       tst_compi_fcntl_o_nonblock="no"
36559
36560 fi
36561 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36562   fi
36563   #
36564   if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
36565     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
36566 printf %s "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
36567     if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
36568       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36569 printf "%s\n" "yes" >&6; }
36570       tst_allow_fcntl_o_nonblock="yes"
36571     else
36572       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36573 printf "%s\n" "no" >&6; }
36574       tst_allow_fcntl_o_nonblock="no"
36575     fi
36576   fi
36577   #
36578   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
36579 printf %s "checking if fcntl O_NONBLOCK might be used... " >&6; }
36580   if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
36581      test "$tst_allow_fcntl_o_nonblock" = "yes"; then
36582     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36583 printf "%s\n" "yes" >&6; }
36584
36585 printf "%s\n" "#define HAVE_FCNTL_O_NONBLOCK 1" >>confdefs.h
36586
36587     curl_cv_func_fcntl_o_nonblock="yes"
36588   else
36589     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36590 printf "%s\n" "no" >&6; }
36591     curl_cv_func_fcntl_o_nonblock="no"
36592   fi
36593
36594   else
36595     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36596 printf "%s\n" "no" >&6; }
36597     curl_cv_func_fcntl="no"
36598   fi
36599
36600
36601 curl_includes_ws2tcpip="\
36602 /* includes start */
36603 #ifdef HAVE_WINDOWS_H
36604 #  ifndef WIN32_LEAN_AND_MEAN
36605 #    define WIN32_LEAN_AND_MEAN
36606 #  endif
36607 #  include <windows.h>
36608 #  ifdef HAVE_WINSOCK2_H
36609 #    include <winsock2.h>
36610 #    ifdef HAVE_WS2TCPIP_H
36611 #       include <ws2tcpip.h>
36612 #    endif
36613 #  endif
36614 #endif
36615 /* includes end */"
36616
36617   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
36618 printf %s "checking for windows.h... " >&6; }
36619 if test ${curl_cv_header_windows_h+y}
36620 then :
36621   printf %s "(cached) " >&6
36622 else $as_nop
36623
36624     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36625 /* end confdefs.h.  */
36626
36627
36628 #undef inline
36629 #ifndef WIN32_LEAN_AND_MEAN
36630 #define WIN32_LEAN_AND_MEAN
36631 #endif
36632 #include <windows.h>
36633
36634 int main (void)
36635 {
36636
36637 #if defined(__CYGWIN__) || defined(__CEGCC__)
36638         HAVE_WINDOWS_H shall not be defined.
36639 #else
36640         int dummy=2*WINVER;
36641 #endif
36642
36643  ;
36644  return 0;
36645 }
36646
36647 _ACEOF
36648 if ac_fn_c_try_compile "$LINENO"
36649 then :
36650
36651       curl_cv_header_windows_h="yes"
36652
36653 else $as_nop
36654
36655       curl_cv_header_windows_h="no"
36656
36657 fi
36658 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36659
36660 fi
36661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
36662 printf "%s\n" "$curl_cv_header_windows_h" >&6; }
36663   case "$curl_cv_header_windows_h" in
36664     yes)
36665
36666 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
36667
36668       ;;
36669   esac
36670
36671
36672     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
36673 printf %s "checking for winsock2.h... " >&6; }
36674 if test ${curl_cv_header_winsock2_h+y}
36675 then :
36676   printf %s "(cached) " >&6
36677 else $as_nop
36678
36679     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36680 /* end confdefs.h.  */
36681
36682
36683 #undef inline
36684 #ifndef WIN32_LEAN_AND_MEAN
36685 #define WIN32_LEAN_AND_MEAN
36686 #endif
36687 #include <windows.h>
36688 #include <winsock2.h>
36689
36690 int main (void)
36691 {
36692
36693 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
36694         HAVE_WINSOCK2_H shall not be defined.
36695 #else
36696         int dummy=2*IPPROTO_ESP;
36697 #endif
36698
36699  ;
36700  return 0;
36701 }
36702
36703 _ACEOF
36704 if ac_fn_c_try_compile "$LINENO"
36705 then :
36706
36707       curl_cv_header_winsock2_h="yes"
36708
36709 else $as_nop
36710
36711       curl_cv_header_winsock2_h="no"
36712
36713 fi
36714 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36715
36716 fi
36717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
36718 printf "%s\n" "$curl_cv_header_winsock2_h" >&6; }
36719   case "$curl_cv_header_winsock2_h" in
36720     yes)
36721
36722 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
36723
36724       ;;
36725   esac
36726
36727
36728     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
36729 printf %s "checking for ws2tcpip.h... " >&6; }
36730 if test ${curl_cv_header_ws2tcpip_h+y}
36731 then :
36732   printf %s "(cached) " >&6
36733 else $as_nop
36734
36735     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36736 /* end confdefs.h.  */
36737
36738
36739 #undef inline
36740 #ifndef WIN32_LEAN_AND_MEAN
36741 #define WIN32_LEAN_AND_MEAN
36742 #endif
36743 #include <windows.h>
36744 #include <winsock2.h>
36745 #include <ws2tcpip.h>
36746
36747 int main (void)
36748 {
36749
36750 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
36751         HAVE_WS2TCPIP_H shall not be defined.
36752 #else
36753         int dummy=2*IP_PKTINFO;
36754 #endif
36755
36756  ;
36757  return 0;
36758 }
36759
36760 _ACEOF
36761 if ac_fn_c_try_compile "$LINENO"
36762 then :
36763
36764       curl_cv_header_ws2tcpip_h="yes"
36765
36766 else $as_nop
36767
36768       curl_cv_header_ws2tcpip_h="no"
36769
36770 fi
36771 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36772
36773 fi
36774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
36775 printf "%s\n" "$curl_cv_header_ws2tcpip_h" >&6; }
36776   case "$curl_cv_header_ws2tcpip_h" in
36777     yes)
36778
36779 printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
36780
36781       ;;
36782   esac
36783
36784
36785
36786 curl_includes_netdb="\
36787 /* includes start */
36788 #ifdef HAVE_SYS_TYPES_H
36789 #  include <sys/types.h>
36790 #endif
36791 #ifdef HAVE_NETDB_H
36792 #  include <netdb.h>
36793 #endif
36794 /* includes end */"
36795   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_netdb
36796 "
36797 if test "x$ac_cv_header_sys_types_h" = xyes
36798 then :
36799   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36800
36801 fi
36802 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$curl_includes_netdb
36803 "
36804 if test "x$ac_cv_header_netdb_h" = xyes
36805 then :
36806   printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
36807
36808 fi
36809
36810
36811
36812         #
36813   tst_links_freeaddrinfo="unknown"
36814   tst_proto_freeaddrinfo="unknown"
36815   tst_compi_freeaddrinfo="unknown"
36816   tst_allow_freeaddrinfo="unknown"
36817   #
36818   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
36819 printf %s "checking if freeaddrinfo can be linked... " >&6; }
36820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36821 /* end confdefs.h.  */
36822
36823
36824       $curl_includes_ws2tcpip
36825       $curl_includes_sys_socket
36826       $curl_includes_netdb
36827
36828 int main (void)
36829 {
36830
36831       freeaddrinfo(0);
36832
36833  ;
36834  return 0;
36835 }
36836
36837 _ACEOF
36838 if ac_fn_c_try_link "$LINENO"
36839 then :
36840
36841     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36842 printf "%s\n" "yes" >&6; }
36843     tst_links_freeaddrinfo="yes"
36844
36845 else $as_nop
36846
36847     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36848 printf "%s\n" "no" >&6; }
36849     tst_links_freeaddrinfo="no"
36850
36851 fi
36852 rm -f core conftest.err conftest.$ac_objext conftest.beam \
36853     conftest$ac_exeext conftest.$ac_ext
36854   #
36855   if test "$tst_links_freeaddrinfo" = "yes"; then
36856     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
36857 printf %s "checking if freeaddrinfo is prototyped... " >&6; }
36858     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36859 /* end confdefs.h.  */
36860
36861       $curl_includes_ws2tcpip
36862       $curl_includes_sys_socket
36863       $curl_includes_netdb
36864
36865 _ACEOF
36866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36867   $EGREP "freeaddrinfo" >/dev/null 2>&1
36868 then :
36869
36870       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36871 printf "%s\n" "yes" >&6; }
36872       tst_proto_freeaddrinfo="yes"
36873
36874 else $as_nop
36875
36876       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36877 printf "%s\n" "no" >&6; }
36878       tst_proto_freeaddrinfo="no"
36879
36880 fi
36881 rm -rf conftest*
36882
36883   fi
36884   #
36885   if test "$tst_proto_freeaddrinfo" = "yes"; then
36886     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
36887 printf %s "checking if freeaddrinfo is compilable... " >&6; }
36888     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36889 /* end confdefs.h.  */
36890
36891
36892         $curl_includes_ws2tcpip
36893         $curl_includes_sys_socket
36894         $curl_includes_netdb
36895
36896 int main (void)
36897 {
36898
36899         freeaddrinfo(0);
36900
36901  ;
36902  return 0;
36903 }
36904
36905 _ACEOF
36906 if ac_fn_c_try_compile "$LINENO"
36907 then :
36908
36909       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36910 printf "%s\n" "yes" >&6; }
36911       tst_compi_freeaddrinfo="yes"
36912
36913 else $as_nop
36914
36915       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36916 printf "%s\n" "no" >&6; }
36917       tst_compi_freeaddrinfo="no"
36918
36919 fi
36920 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36921   fi
36922   #
36923   if test "$tst_compi_freeaddrinfo" = "yes"; then
36924     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
36925 printf %s "checking if freeaddrinfo usage allowed... " >&6; }
36926     if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
36927       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36928 printf "%s\n" "yes" >&6; }
36929       tst_allow_freeaddrinfo="yes"
36930     else
36931       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36932 printf "%s\n" "no" >&6; }
36933       tst_allow_freeaddrinfo="no"
36934     fi
36935   fi
36936   #
36937   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
36938 printf %s "checking if freeaddrinfo might be used... " >&6; }
36939   if test "$tst_links_freeaddrinfo" = "yes" &&
36940      test "$tst_proto_freeaddrinfo" = "yes" &&
36941      test "$tst_compi_freeaddrinfo" = "yes" &&
36942      test "$tst_allow_freeaddrinfo" = "yes"; then
36943     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36944 printf "%s\n" "yes" >&6; }
36945
36946 printf "%s\n" "#define HAVE_FREEADDRINFO 1" >>confdefs.h
36947
36948     curl_cv_func_freeaddrinfo="yes"
36949   else
36950     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36951 printf "%s\n" "no" >&6; }
36952     curl_cv_func_freeaddrinfo="no"
36953   fi
36954
36955
36956 curl_includes_sys_xattr="\
36957 /* includes start */
36958 #ifdef HAVE_SYS_TYPES_H
36959 #  include <sys/types.h>
36960 #endif
36961 #ifdef HAVE_SYS_XATTR_H
36962 #  include <sys/xattr.h>
36963 #endif
36964 /* includes end */"
36965   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_sys_xattr
36966 "
36967 if test "x$ac_cv_header_sys_types_h" = xyes
36968 then :
36969   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36970
36971 fi
36972 ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$curl_includes_sys_xattr
36973 "
36974 if test "x$ac_cv_header_sys_xattr_h" = xyes
36975 then :
36976   printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
36977
36978 fi
36979
36980
36981
36982     #
36983   tst_links_fsetxattr="unknown"
36984   tst_proto_fsetxattr="unknown"
36985   tst_compi_fsetxattr="unknown"
36986   tst_allow_fsetxattr="unknown"
36987   tst_nargs_fsetxattr="unknown"
36988   #
36989   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
36990 printf %s "checking if fsetxattr can be linked... " >&6; }
36991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36992 /* end confdefs.h.  */
36993
36994
36995 #define fsetxattr innocuous_fsetxattr
36996 #ifdef __STDC__
36997 # include <limits.h>
36998 #else
36999 # include <assert.h>
37000 #endif
37001 #undef fsetxattr
37002 #ifdef __cplusplus
37003 extern "C"
37004 #endif
37005 char fsetxattr ();
37006 #if defined __stub_fsetxattr || defined __stub___fsetxattr
37007 choke me
37008 #endif
37009
37010 int main (void)
37011 {
37012 return fsetxattr ();
37013  ;
37014  return 0;
37015 }
37016
37017 _ACEOF
37018 if ac_fn_c_try_link "$LINENO"
37019 then :
37020
37021     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37022 printf "%s\n" "yes" >&6; }
37023     tst_links_fsetxattr="yes"
37024
37025 else $as_nop
37026
37027     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37028 printf "%s\n" "no" >&6; }
37029     tst_links_fsetxattr="no"
37030
37031 fi
37032 rm -f core conftest.err conftest.$ac_objext conftest.beam \
37033     conftest$ac_exeext conftest.$ac_ext
37034   #
37035   if test "$tst_links_fsetxattr" = "yes"; then
37036     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
37037 printf %s "checking if fsetxattr is prototyped... " >&6; }
37038     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37039 /* end confdefs.h.  */
37040
37041       $curl_includes_sys_xattr
37042
37043 _ACEOF
37044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37045   $EGREP "fsetxattr" >/dev/null 2>&1
37046 then :
37047
37048       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37049 printf "%s\n" "yes" >&6; }
37050       tst_proto_fsetxattr="yes"
37051
37052 else $as_nop
37053
37054       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37055 printf "%s\n" "no" >&6; }
37056       tst_proto_fsetxattr="no"
37057
37058 fi
37059 rm -rf conftest*
37060
37061   fi
37062   #
37063   if test "$tst_proto_fsetxattr" = "yes"; then
37064     if test "$tst_nargs_fsetxattr" = "unknown"; then
37065       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
37066 printf %s "checking if fsetxattr takes 5 args.... " >&6; }
37067       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37068 /* end confdefs.h.  */
37069
37070
37071           $curl_includes_sys_xattr
37072
37073 int main (void)
37074 {
37075
37076           if(0 != fsetxattr(0, 0, 0, 0, 0))
37077             return 1;
37078
37079  ;
37080  return 0;
37081 }
37082
37083 _ACEOF
37084 if ac_fn_c_try_compile "$LINENO"
37085 then :
37086
37087         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37088 printf "%s\n" "yes" >&6; }
37089         tst_compi_fsetxattr="yes"
37090         tst_nargs_fsetxattr="5"
37091
37092 else $as_nop
37093
37094         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37095 printf "%s\n" "no" >&6; }
37096         tst_compi_fsetxattr="no"
37097
37098 fi
37099 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37100     fi
37101     if test "$tst_nargs_fsetxattr" = "unknown"; then
37102       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
37103 printf %s "checking if fsetxattr takes 6 args.... " >&6; }
37104       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37105 /* end confdefs.h.  */
37106
37107
37108           $curl_includes_sys_xattr
37109
37110 int main (void)
37111 {
37112
37113           if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
37114             return 1;
37115
37116  ;
37117  return 0;
37118 }
37119
37120 _ACEOF
37121 if ac_fn_c_try_compile "$LINENO"
37122 then :
37123
37124         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37125 printf "%s\n" "yes" >&6; }
37126         tst_compi_fsetxattr="yes"
37127         tst_nargs_fsetxattr="6"
37128
37129 else $as_nop
37130
37131         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37132 printf "%s\n" "no" >&6; }
37133         tst_compi_fsetxattr="no"
37134
37135 fi
37136 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37137     fi
37138     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
37139 printf %s "checking if fsetxattr is compilable... " >&6; }
37140     if test "$tst_compi_fsetxattr" = "yes"; then
37141       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37142 printf "%s\n" "yes" >&6; }
37143     else
37144       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37145 printf "%s\n" "no" >&6; }
37146     fi
37147   fi
37148   #
37149   if test "$tst_compi_fsetxattr" = "yes"; then
37150     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
37151 printf %s "checking if fsetxattr usage allowed... " >&6; }
37152     if test "x$curl_disallow_fsetxattr" != "xyes"; then
37153       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37154 printf "%s\n" "yes" >&6; }
37155       tst_allow_fsetxattr="yes"
37156     else
37157       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37158 printf "%s\n" "no" >&6; }
37159       tst_allow_fsetxattr="no"
37160     fi
37161   fi
37162   #
37163   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
37164 printf %s "checking if fsetxattr might be used... " >&6; }
37165   if test "$tst_links_fsetxattr" = "yes" &&
37166      test "$tst_proto_fsetxattr" = "yes" &&
37167      test "$tst_compi_fsetxattr" = "yes" &&
37168      test "$tst_allow_fsetxattr" = "yes"; then
37169     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37170 printf "%s\n" "yes" >&6; }
37171
37172 printf "%s\n" "#define HAVE_FSETXATTR 1" >>confdefs.h
37173
37174             #
37175     if test "$tst_nargs_fsetxattr" -eq "5"; then
37176
37177 printf "%s\n" "#define HAVE_FSETXATTR_5 1" >>confdefs.h
37178
37179     elif test "$tst_nargs_fsetxattr" -eq "6"; then
37180
37181 printf "%s\n" "#define HAVE_FSETXATTR_6 1" >>confdefs.h
37182
37183     fi
37184     #
37185     curl_cv_func_fsetxattr="yes"
37186   else
37187     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37188 printf "%s\n" "no" >&6; }
37189     curl_cv_func_fsetxattr="no"
37190   fi
37191
37192
37193     #
37194   tst_links_ftruncate="unknown"
37195   tst_proto_ftruncate="unknown"
37196   tst_compi_ftruncate="unknown"
37197   tst_allow_ftruncate="unknown"
37198   #
37199   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
37200 printf %s "checking if ftruncate can be linked... " >&6; }
37201   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37202 /* end confdefs.h.  */
37203
37204
37205 #define ftruncate innocuous_ftruncate
37206 #ifdef __STDC__
37207 # include <limits.h>
37208 #else
37209 # include <assert.h>
37210 #endif
37211 #undef ftruncate
37212 #ifdef __cplusplus
37213 extern "C"
37214 #endif
37215 char ftruncate ();
37216 #if defined __stub_ftruncate || defined __stub___ftruncate
37217 choke me
37218 #endif
37219
37220 int main (void)
37221 {
37222 return ftruncate ();
37223  ;
37224  return 0;
37225 }
37226
37227 _ACEOF
37228 if ac_fn_c_try_link "$LINENO"
37229 then :
37230
37231     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37232 printf "%s\n" "yes" >&6; }
37233     tst_links_ftruncate="yes"
37234
37235 else $as_nop
37236
37237     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37238 printf "%s\n" "no" >&6; }
37239     tst_links_ftruncate="no"
37240
37241 fi
37242 rm -f core conftest.err conftest.$ac_objext conftest.beam \
37243     conftest$ac_exeext conftest.$ac_ext
37244   #
37245   if test "$tst_links_ftruncate" = "yes"; then
37246     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
37247 printf %s "checking if ftruncate is prototyped... " >&6; }
37248     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37249 /* end confdefs.h.  */
37250
37251       $curl_includes_unistd
37252
37253 _ACEOF
37254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37255   $EGREP "ftruncate" >/dev/null 2>&1
37256 then :
37257
37258       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37259 printf "%s\n" "yes" >&6; }
37260       tst_proto_ftruncate="yes"
37261
37262 else $as_nop
37263
37264       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37265 printf "%s\n" "no" >&6; }
37266       tst_proto_ftruncate="no"
37267
37268 fi
37269 rm -rf conftest*
37270
37271   fi
37272   #
37273   if test "$tst_proto_ftruncate" = "yes"; then
37274     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
37275 printf %s "checking if ftruncate is compilable... " >&6; }
37276     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37277 /* end confdefs.h.  */
37278
37279
37280         $curl_includes_unistd
37281
37282 int main (void)
37283 {
37284
37285         if(0 != ftruncate(0, 0))
37286           return 1;
37287
37288  ;
37289  return 0;
37290 }
37291
37292 _ACEOF
37293 if ac_fn_c_try_compile "$LINENO"
37294 then :
37295
37296       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37297 printf "%s\n" "yes" >&6; }
37298       tst_compi_ftruncate="yes"
37299
37300 else $as_nop
37301
37302       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37303 printf "%s\n" "no" >&6; }
37304       tst_compi_ftruncate="no"
37305
37306 fi
37307 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37308   fi
37309   #
37310   if test "$tst_compi_ftruncate" = "yes"; then
37311     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
37312 printf %s "checking if ftruncate usage allowed... " >&6; }
37313     if test "x$curl_disallow_ftruncate" != "xyes"; then
37314       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37315 printf "%s\n" "yes" >&6; }
37316       tst_allow_ftruncate="yes"
37317     else
37318       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37319 printf "%s\n" "no" >&6; }
37320       tst_allow_ftruncate="no"
37321     fi
37322   fi
37323   #
37324   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
37325 printf %s "checking if ftruncate might be used... " >&6; }
37326   if test "$tst_links_ftruncate" = "yes" &&
37327      test "$tst_proto_ftruncate" = "yes" &&
37328      test "$tst_compi_ftruncate" = "yes" &&
37329      test "$tst_allow_ftruncate" = "yes"; then
37330     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37331 printf "%s\n" "yes" >&6; }
37332
37333 printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
37334
37335     curl_cv_func_ftruncate="yes"
37336   else
37337     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37338 printf "%s\n" "no" >&6; }
37339     curl_cv_func_ftruncate="no"
37340   fi
37341
37342
37343 curl_includes_stdlib="\
37344 /* includes start */
37345 #ifdef HAVE_SYS_TYPES_H
37346 #  include <sys/types.h>
37347 #endif
37348 #ifdef HAVE_STDLIB_H
37349 #  include <stdlib.h>
37350 #endif
37351 /* includes end */"
37352   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_stdlib
37353 "
37354 if test "x$ac_cv_header_sys_types_h" = xyes
37355 then :
37356   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
37357
37358 fi
37359 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$curl_includes_stdlib
37360 "
37361 if test "x$ac_cv_header_stdlib_h" = xyes
37362 then :
37363   printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
37364
37365 fi
37366
37367
37368
37369               #
37370   tst_links_getaddrinfo="unknown"
37371   tst_proto_getaddrinfo="unknown"
37372   tst_compi_getaddrinfo="unknown"
37373   tst_works_getaddrinfo="unknown"
37374   tst_allow_getaddrinfo="unknown"
37375   tst_tsafe_getaddrinfo="unknown"
37376   #
37377   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
37378 printf %s "checking if getaddrinfo can be linked... " >&6; }
37379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37380 /* end confdefs.h.  */
37381
37382
37383       $curl_includes_ws2tcpip
37384       $curl_includes_sys_socket
37385       $curl_includes_netdb
37386
37387 int main (void)
37388 {
37389
37390       if(0 != getaddrinfo(0, 0, 0, 0))
37391         return 1;
37392
37393  ;
37394  return 0;
37395 }
37396
37397 _ACEOF
37398 if ac_fn_c_try_link "$LINENO"
37399 then :
37400
37401     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37402 printf "%s\n" "yes" >&6; }
37403     tst_links_getaddrinfo="yes"
37404
37405 else $as_nop
37406
37407     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37408 printf "%s\n" "no" >&6; }
37409     tst_links_getaddrinfo="no"
37410
37411 fi
37412 rm -f core conftest.err conftest.$ac_objext conftest.beam \
37413     conftest$ac_exeext conftest.$ac_ext
37414   #
37415   if test "$tst_links_getaddrinfo" = "yes"; then
37416     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
37417 printf %s "checking if getaddrinfo is prototyped... " >&6; }
37418     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37419 /* end confdefs.h.  */
37420
37421       $curl_includes_ws2tcpip
37422       $curl_includes_sys_socket
37423       $curl_includes_netdb
37424
37425 _ACEOF
37426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37427   $EGREP "getaddrinfo" >/dev/null 2>&1
37428 then :
37429
37430       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37431 printf "%s\n" "yes" >&6; }
37432       tst_proto_getaddrinfo="yes"
37433
37434 else $as_nop
37435
37436       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37437 printf "%s\n" "no" >&6; }
37438       tst_proto_getaddrinfo="no"
37439
37440 fi
37441 rm -rf conftest*
37442
37443   fi
37444   #
37445   if test "$tst_proto_getaddrinfo" = "yes"; then
37446     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
37447 printf %s "checking if getaddrinfo is compilable... " >&6; }
37448     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37449 /* end confdefs.h.  */
37450
37451
37452         $curl_includes_ws2tcpip
37453         $curl_includes_sys_socket
37454         $curl_includes_netdb
37455
37456 int main (void)
37457 {
37458
37459         if(0 != getaddrinfo(0, 0, 0, 0))
37460           return 1;
37461
37462  ;
37463  return 0;
37464 }
37465
37466 _ACEOF
37467 if ac_fn_c_try_compile "$LINENO"
37468 then :
37469
37470       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37471 printf "%s\n" "yes" >&6; }
37472       tst_compi_getaddrinfo="yes"
37473
37474 else $as_nop
37475
37476       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37477 printf "%s\n" "no" >&6; }
37478       tst_compi_getaddrinfo="no"
37479
37480 fi
37481 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37482   fi
37483   #
37484     if test "x$cross_compiling" != "xyes" &&
37485     test "$tst_compi_getaddrinfo" = "yes"; then
37486     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
37487 printf %s "checking if getaddrinfo seems to work... " >&6; }
37488
37489    case $host_os in
37490      darwin*) library_path_var=DYLD_LIBRARY_PATH ;;
37491      *)       library_path_var=LD_LIBRARY_PATH ;;
37492    esac
37493
37494    eval "old=$$library_path_var"
37495    eval "$library_path_var=\$CURL_LIBRARY_PATH:\$old"
37496
37497    eval "export $library_path_var"
37498    if test "$cross_compiling" = yes
37499 then :
37500   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37501 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
37502 as_fn_error $? "cannot run test program while cross compiling
37503 See \`config.log' for more details" "$LINENO" 5; }
37504 else $as_nop
37505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37506 /* end confdefs.h.  */
37507
37508
37509         $curl_includes_ws2tcpip
37510         $curl_includes_stdlib
37511         $curl_includes_string
37512         $curl_includes_sys_socket
37513         $curl_includes_netdb
37514
37515 int main (void)
37516 {
37517
37518         struct addrinfo hints;
37519         struct addrinfo *ai = 0;
37520         int error;
37521
37522         #ifdef HAVE_WINSOCK2_H
37523         WSADATA wsa;
37524         if (WSAStartup(MAKEWORD(2,2), &wsa))
37525                 exit(2);
37526         #endif
37527
37528         memset(&hints, 0, sizeof(hints));
37529         hints.ai_flags = AI_NUMERICHOST;
37530         hints.ai_family = AF_UNSPEC;
37531         hints.ai_socktype = SOCK_STREAM;
37532         error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
37533         if(error || !ai)
37534           exit(1); /* fail */
37535         else
37536           exit(0);
37537
37538  ;
37539  return 0;
37540 }
37541
37542 _ACEOF
37543 if ac_fn_c_try_run "$LINENO"
37544 then :
37545   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37546 printf "%s\n" "yes" >&6; }
37547       tst_works_getaddrinfo="yes"
37548
37549 else $as_nop
37550   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37551 printf "%s\n" "no" >&6; }
37552       tst_works_getaddrinfo="no"
37553
37554 fi
37555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37556   conftest.$ac_objext conftest.beam conftest.$ac_ext
37557 fi
37558
37559    eval "$library_path_var=\$old" # restore
37560
37561   fi
37562   #
37563   if test "$tst_compi_getaddrinfo" = "yes" &&
37564     test "$tst_works_getaddrinfo" != "no"; then
37565     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
37566 printf %s "checking if getaddrinfo usage allowed... " >&6; }
37567     if test "x$curl_disallow_getaddrinfo" != "xyes"; then
37568       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37569 printf "%s\n" "yes" >&6; }
37570       tst_allow_getaddrinfo="yes"
37571     else
37572       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37573 printf "%s\n" "no" >&6; }
37574       tst_allow_getaddrinfo="no"
37575     fi
37576   fi
37577   #
37578   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
37579 printf %s "checking if getaddrinfo might be used... " >&6; }
37580   if test "$tst_links_getaddrinfo" = "yes" &&
37581      test "$tst_proto_getaddrinfo" = "yes" &&
37582      test "$tst_compi_getaddrinfo" = "yes" &&
37583      test "$tst_allow_getaddrinfo" = "yes" &&
37584      test "$tst_works_getaddrinfo" != "no"; then
37585     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37586 printf "%s\n" "yes" >&6; }
37587
37588 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
37589
37590     curl_cv_func_getaddrinfo="yes"
37591   else
37592     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37593 printf "%s\n" "no" >&6; }
37594     curl_cv_func_getaddrinfo="no"
37595     curl_cv_func_getaddrinfo_threadsafe="no"
37596   fi
37597   #
37598   if test "$curl_cv_func_getaddrinfo" = "yes"; then
37599     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
37600 printf %s "checking if getaddrinfo is threadsafe... " >&6; }
37601     case $host_os in
37602       aix[1234].* | aix5.[01].*)
37603                 tst_tsafe_getaddrinfo="no"
37604         ;;
37605       aix*)
37606                 tst_tsafe_getaddrinfo="yes"
37607         ;;
37608       darwin[12345].*)
37609                 tst_tsafe_getaddrinfo="no"
37610         ;;
37611       darwin*)
37612                 tst_tsafe_getaddrinfo="yes"
37613         ;;
37614       freebsd[1234].* | freebsd5.[1234]*)
37615                 tst_tsafe_getaddrinfo="no"
37616         ;;
37617       freebsd*)
37618                 tst_tsafe_getaddrinfo="yes"
37619         ;;
37620       hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
37621                 tst_tsafe_getaddrinfo="no"
37622         ;;
37623       hpux*)
37624                 tst_tsafe_getaddrinfo="yes"
37625         ;;
37626       midnightbsd*)
37627                 tst_tsafe_getaddrinfo="yes"
37628         ;;
37629       netbsd[123].*)
37630                 tst_tsafe_getaddrinfo="no"
37631         ;;
37632       netbsd*)
37633                 tst_tsafe_getaddrinfo="yes"
37634         ;;
37635       *bsd*)
37636                 tst_tsafe_getaddrinfo="no"
37637         ;;
37638       solaris2*)
37639                 tst_tsafe_getaddrinfo="yes"
37640         ;;
37641     esac
37642     if test "$tst_tsafe_getaddrinfo" = "unknown" &&
37643        test "$curl_cv_native_windows" = "yes"; then
37644       tst_tsafe_getaddrinfo="yes"
37645     fi
37646     if test "$tst_tsafe_getaddrinfo" = "unknown"; then
37647
37648
37649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37650 /* end confdefs.h.  */
37651
37652
37653         $curl_includes_sys_socket
37654         $curl_includes_netdb
37655
37656 int main (void)
37657 {
37658 #ifdef h_errno
37659   return 0;
37660 #else
37661   force compilation error
37662 #endif
37663 }
37664
37665
37666 _ACEOF
37667 if ac_fn_c_try_compile "$LINENO"
37668 then :
37669
37670     tst_symbol_defined="yes"
37671
37672 else $as_nop
37673
37674     tst_symbol_defined="no"
37675
37676 fi
37677 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37678   if test "$tst_symbol_defined" = "yes"; then
37679     curl_cv_have_def_h_errno=yes
37680
37681   else
37682     curl_cv_have_def_h_errno=no
37683
37684   fi
37685
37686       if test "$curl_cv_have_def_h_errno" = "yes"; then
37687         tst_h_errno_macro="yes"
37688       else
37689         tst_h_errno_macro="no"
37690       fi
37691       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37692 /* end confdefs.h.  */
37693
37694
37695           $curl_includes_sys_socket
37696           $curl_includes_netdb
37697
37698 int main (void)
37699 {
37700
37701           h_errno = 2;
37702           if(0 != h_errno)
37703             return 1;
37704
37705  ;
37706  return 0;
37707 }
37708
37709 _ACEOF
37710 if ac_fn_c_try_compile "$LINENO"
37711 then :
37712
37713         tst_h_errno_modifiable_lvalue="yes"
37714
37715 else $as_nop
37716
37717         tst_h_errno_modifiable_lvalue="no"
37718
37719 fi
37720 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37721       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37722 /* end confdefs.h.  */
37723
37724
37725
37726 int main (void)
37727 {
37728
37729 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
37730           return 0;
37731 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
37732           return 0;
37733 #else
37734           force compilation error
37735 #endif
37736
37737  ;
37738  return 0;
37739 }
37740
37741 _ACEOF
37742 if ac_fn_c_try_compile "$LINENO"
37743 then :
37744
37745         tst_h_errno_sbs_issue_7="yes"
37746
37747 else $as_nop
37748
37749         tst_h_errno_sbs_issue_7="no"
37750
37751 fi
37752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37753       if test "$tst_h_errno_macro" = "no" &&
37754          test "$tst_h_errno_modifiable_lvalue" = "no" &&
37755          test "$tst_h_errno_sbs_issue_7" = "no"; then
37756         tst_tsafe_getaddrinfo="no"
37757       else
37758         tst_tsafe_getaddrinfo="yes"
37759       fi
37760     fi
37761     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
37762 printf "%s\n" "$tst_tsafe_getaddrinfo" >&6; }
37763     if test "$tst_tsafe_getaddrinfo" = "yes"; then
37764
37765 printf "%s\n" "#define HAVE_GETADDRINFO_THREADSAFE 1" >>confdefs.h
37766
37767       curl_cv_func_getaddrinfo_threadsafe="yes"
37768     else
37769       curl_cv_func_getaddrinfo_threadsafe="no"
37770     fi
37771   fi
37772
37773
37774       #
37775   tst_links_gethostbyname="unknown"
37776   tst_proto_gethostbyname="unknown"
37777   tst_compi_gethostbyname="unknown"
37778   tst_allow_gethostbyname="unknown"
37779   #
37780   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
37781 printf %s "checking if gethostbyname can be linked... " >&6; }
37782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37783 /* end confdefs.h.  */
37784
37785
37786       $curl_includes_winsock2
37787       $curl_includes_bsdsocket
37788       $curl_includes_netdb
37789
37790 int main (void)
37791 {
37792
37793       if(0 != gethostbyname(0))
37794         return 1;
37795
37796  ;
37797  return 0;
37798 }
37799
37800 _ACEOF
37801 if ac_fn_c_try_link "$LINENO"
37802 then :
37803
37804     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37805 printf "%s\n" "yes" >&6; }
37806     tst_links_gethostbyname="yes"
37807
37808 else $as_nop
37809
37810     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37811 printf "%s\n" "no" >&6; }
37812     tst_links_gethostbyname="no"
37813
37814 fi
37815 rm -f core conftest.err conftest.$ac_objext conftest.beam \
37816     conftest$ac_exeext conftest.$ac_ext
37817   #
37818   if test "$tst_links_gethostbyname" = "yes"; then
37819     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
37820 printf %s "checking if gethostbyname is prototyped... " >&6; }
37821     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37822 /* end confdefs.h.  */
37823
37824       $curl_includes_winsock2
37825       $curl_includes_bsdsocket
37826       $curl_includes_netdb
37827
37828 _ACEOF
37829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37830   $EGREP "gethostbyname" >/dev/null 2>&1
37831 then :
37832
37833       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37834 printf "%s\n" "yes" >&6; }
37835       tst_proto_gethostbyname="yes"
37836
37837 else $as_nop
37838
37839       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37840 printf "%s\n" "no" >&6; }
37841       tst_proto_gethostbyname="no"
37842
37843 fi
37844 rm -rf conftest*
37845
37846   fi
37847   #
37848   if test "$tst_proto_gethostbyname" = "yes"; then
37849     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
37850 printf %s "checking if gethostbyname is compilable... " >&6; }
37851     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37852 /* end confdefs.h.  */
37853
37854
37855         $curl_includes_winsock2
37856       $curl_includes_bsdsocket
37857         $curl_includes_netdb
37858
37859 int main (void)
37860 {
37861
37862         if(0 != gethostbyname(0))
37863           return 1;
37864
37865  ;
37866  return 0;
37867 }
37868
37869 _ACEOF
37870 if ac_fn_c_try_compile "$LINENO"
37871 then :
37872
37873       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37874 printf "%s\n" "yes" >&6; }
37875       tst_compi_gethostbyname="yes"
37876
37877 else $as_nop
37878
37879       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37880 printf "%s\n" "no" >&6; }
37881       tst_compi_gethostbyname="no"
37882
37883 fi
37884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37885   fi
37886   #
37887   if test "$tst_compi_gethostbyname" = "yes"; then
37888     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
37889 printf %s "checking if gethostbyname usage allowed... " >&6; }
37890     if test "x$curl_disallow_gethostbyname" != "xyes"; then
37891       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37892 printf "%s\n" "yes" >&6; }
37893       tst_allow_gethostbyname="yes"
37894     else
37895       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37896 printf "%s\n" "no" >&6; }
37897       tst_allow_gethostbyname="no"
37898     fi
37899   fi
37900   #
37901   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
37902 printf %s "checking if gethostbyname might be used... " >&6; }
37903   if test "$tst_links_gethostbyname" = "yes" &&
37904      test "$tst_proto_gethostbyname" = "yes" &&
37905      test "$tst_compi_gethostbyname" = "yes" &&
37906      test "$tst_allow_gethostbyname" = "yes"; then
37907     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37908 printf "%s\n" "yes" >&6; }
37909
37910 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
37911
37912     curl_cv_func_gethostbyname="yes"
37913   else
37914     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37915 printf "%s\n" "no" >&6; }
37916     curl_cv_func_gethostbyname="no"
37917   fi
37918
37919
37920     #
37921   tst_links_gethostbyname_r="unknown"
37922   tst_proto_gethostbyname_r="unknown"
37923   tst_compi_gethostbyname_r="unknown"
37924   tst_allow_gethostbyname_r="unknown"
37925   tst_nargs_gethostbyname_r="unknown"
37926   #
37927   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
37928 printf %s "checking if gethostbyname_r can be linked... " >&6; }
37929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37930 /* end confdefs.h.  */
37931
37932
37933 #define gethostbyname_r innocuous_gethostbyname_r
37934 #ifdef __STDC__
37935 # include <limits.h>
37936 #else
37937 # include <assert.h>
37938 #endif
37939 #undef gethostbyname_r
37940 #ifdef __cplusplus
37941 extern "C"
37942 #endif
37943 char gethostbyname_r ();
37944 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
37945 choke me
37946 #endif
37947
37948 int main (void)
37949 {
37950 return gethostbyname_r ();
37951  ;
37952  return 0;
37953 }
37954
37955 _ACEOF
37956 if ac_fn_c_try_link "$LINENO"
37957 then :
37958
37959     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37960 printf "%s\n" "yes" >&6; }
37961     tst_links_gethostbyname_r="yes"
37962
37963 else $as_nop
37964
37965     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37966 printf "%s\n" "no" >&6; }
37967     tst_links_gethostbyname_r="no"
37968
37969 fi
37970 rm -f core conftest.err conftest.$ac_objext conftest.beam \
37971     conftest$ac_exeext conftest.$ac_ext
37972   #
37973   if test "$tst_links_gethostbyname_r" = "yes"; then
37974     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
37975 printf %s "checking if gethostbyname_r is prototyped... " >&6; }
37976     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37977 /* end confdefs.h.  */
37978
37979       $curl_includes_netdb
37980
37981 _ACEOF
37982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37983   $EGREP "gethostbyname_r" >/dev/null 2>&1
37984 then :
37985
37986       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37987 printf "%s\n" "yes" >&6; }
37988       tst_proto_gethostbyname_r="yes"
37989
37990 else $as_nop
37991
37992       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37993 printf "%s\n" "no" >&6; }
37994       tst_proto_gethostbyname_r="no"
37995
37996 fi
37997 rm -rf conftest*
37998
37999   fi
38000   #
38001   if test "$tst_proto_gethostbyname_r" = "yes"; then
38002     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
38003       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
38004 printf %s "checking if gethostbyname_r takes 3 args.... " >&6; }
38005       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38006 /* end confdefs.h.  */
38007
38008
38009           $curl_includes_netdb
38010
38011 int main (void)
38012 {
38013
38014           if(0 != gethostbyname_r(0, 0, 0))
38015             return 1;
38016
38017  ;
38018  return 0;
38019 }
38020
38021 _ACEOF
38022 if ac_fn_c_try_compile "$LINENO"
38023 then :
38024
38025         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38026 printf "%s\n" "yes" >&6; }
38027         tst_compi_gethostbyname_r="yes"
38028         tst_nargs_gethostbyname_r="3"
38029
38030 else $as_nop
38031
38032         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38033 printf "%s\n" "no" >&6; }
38034         tst_compi_gethostbyname_r="no"
38035
38036 fi
38037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38038     fi
38039     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
38040       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
38041 printf %s "checking if gethostbyname_r takes 5 args.... " >&6; }
38042       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38043 /* end confdefs.h.  */
38044
38045
38046           $curl_includes_netdb
38047
38048 int main (void)
38049 {
38050
38051           if(0 != gethostbyname_r(0, 0, 0, 0, 0))
38052             return 1;
38053
38054  ;
38055  return 0;
38056 }
38057
38058 _ACEOF
38059 if ac_fn_c_try_compile "$LINENO"
38060 then :
38061
38062         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38063 printf "%s\n" "yes" >&6; }
38064         tst_compi_gethostbyname_r="yes"
38065         tst_nargs_gethostbyname_r="5"
38066
38067 else $as_nop
38068
38069         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38070 printf "%s\n" "no" >&6; }
38071         tst_compi_gethostbyname_r="no"
38072
38073 fi
38074 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38075     fi
38076     if test "$tst_nargs_gethostbyname_r" = "unknown"; then
38077       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
38078 printf %s "checking if gethostbyname_r takes 6 args.... " >&6; }
38079       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38080 /* end confdefs.h.  */
38081
38082
38083           $curl_includes_netdb
38084
38085 int main (void)
38086 {
38087
38088           if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
38089             return 1;
38090
38091  ;
38092  return 0;
38093 }
38094
38095 _ACEOF
38096 if ac_fn_c_try_compile "$LINENO"
38097 then :
38098
38099         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38100 printf "%s\n" "yes" >&6; }
38101         tst_compi_gethostbyname_r="yes"
38102         tst_nargs_gethostbyname_r="6"
38103
38104 else $as_nop
38105
38106         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38107 printf "%s\n" "no" >&6; }
38108         tst_compi_gethostbyname_r="no"
38109
38110 fi
38111 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38112     fi
38113     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
38114 printf %s "checking if gethostbyname_r is compilable... " >&6; }
38115     if test "$tst_compi_gethostbyname_r" = "yes"; then
38116       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38117 printf "%s\n" "yes" >&6; }
38118     else
38119       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38120 printf "%s\n" "no" >&6; }
38121     fi
38122   fi
38123   #
38124   if test "$tst_compi_gethostbyname_r" = "yes"; then
38125     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
38126 printf %s "checking if gethostbyname_r usage allowed... " >&6; }
38127     if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
38128       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38129 printf "%s\n" "yes" >&6; }
38130       tst_allow_gethostbyname_r="yes"
38131     else
38132       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38133 printf "%s\n" "no" >&6; }
38134       tst_allow_gethostbyname_r="no"
38135     fi
38136   fi
38137   #
38138   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
38139 printf %s "checking if gethostbyname_r might be used... " >&6; }
38140   if test "$tst_links_gethostbyname_r" = "yes" &&
38141      test "$tst_proto_gethostbyname_r" = "yes" &&
38142      test "$tst_compi_gethostbyname_r" = "yes" &&
38143      test "$tst_allow_gethostbyname_r" = "yes"; then
38144     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38145 printf "%s\n" "yes" >&6; }
38146
38147 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
38148
38149             #
38150     if test "$tst_nargs_gethostbyname_r" -eq "3"; then
38151
38152 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
38153
38154     elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
38155
38156 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
38157
38158     elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
38159
38160 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
38161
38162     fi
38163     #
38164     curl_cv_func_gethostbyname_r="yes"
38165   else
38166     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38167 printf "%s\n" "no" >&6; }
38168     curl_cv_func_gethostbyname_r="no"
38169   fi
38170
38171
38172 curl_preprocess_callconv="\
38173 /* preprocess start */
38174 #ifdef HAVE_WINDOWS_H
38175 #  define FUNCALLCONV __stdcall
38176 #else
38177 #  define FUNCALLCONV
38178 #endif
38179 /* preprocess end */"
38180
38181
38182           #
38183   tst_links_gethostname="unknown"
38184   tst_proto_gethostname="unknown"
38185   tst_compi_gethostname="unknown"
38186   tst_allow_gethostname="unknown"
38187   #
38188   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
38189 printf %s "checking if gethostname can be linked... " >&6; }
38190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38191 /* end confdefs.h.  */
38192
38193
38194       $curl_includes_winsock2
38195       $curl_includes_bsdsocket
38196       $curl_includes_unistd
38197
38198 int main (void)
38199 {
38200
38201       if(0 != gethostname(0, 0))
38202         return 1;
38203
38204  ;
38205  return 0;
38206 }
38207
38208 _ACEOF
38209 if ac_fn_c_try_link "$LINENO"
38210 then :
38211
38212     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38213 printf "%s\n" "yes" >&6; }
38214     tst_links_gethostname="yes"
38215
38216 else $as_nop
38217
38218     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38219 printf "%s\n" "no" >&6; }
38220     tst_links_gethostname="no"
38221
38222 fi
38223 rm -f core conftest.err conftest.$ac_objext conftest.beam \
38224     conftest$ac_exeext conftest.$ac_ext
38225   #
38226   if test "$tst_links_gethostname" = "yes"; then
38227     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
38228 printf %s "checking if gethostname is prototyped... " >&6; }
38229     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38230 /* end confdefs.h.  */
38231
38232       $curl_includes_winsock2
38233       $curl_includes_bsdsocket
38234       $curl_includes_unistd
38235
38236 _ACEOF
38237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38238   $EGREP "gethostname" >/dev/null 2>&1
38239 then :
38240
38241       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38242 printf "%s\n" "yes" >&6; }
38243       tst_proto_gethostname="yes"
38244
38245 else $as_nop
38246
38247       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38248 printf "%s\n" "no" >&6; }
38249       tst_proto_gethostname="no"
38250
38251 fi
38252 rm -rf conftest*
38253
38254   fi
38255   #
38256   if test "$tst_proto_gethostname" = "yes"; then
38257     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
38258 printf %s "checking if gethostname is compilable... " >&6; }
38259     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38260 /* end confdefs.h.  */
38261
38262
38263         $curl_includes_winsock2
38264       $curl_includes_bsdsocket
38265         $curl_includes_unistd
38266
38267 int main (void)
38268 {
38269
38270         if(0 != gethostname(0, 0))
38271           return 1;
38272
38273  ;
38274  return 0;
38275 }
38276
38277 _ACEOF
38278 if ac_fn_c_try_compile "$LINENO"
38279 then :
38280
38281       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38282 printf "%s\n" "yes" >&6; }
38283       tst_compi_gethostname="yes"
38284
38285 else $as_nop
38286
38287       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38288 printf "%s\n" "no" >&6; }
38289       tst_compi_gethostname="no"
38290
38291 fi
38292 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38293   fi
38294   #
38295   if test "$tst_compi_gethostname" = "yes"; then
38296     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
38297 printf %s "checking for gethostname arg 2 data type... " >&6; }
38298     tst_gethostname_type_arg2="unknown"
38299     for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
38300       for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
38301         if test "$tst_gethostname_type_arg2" = "unknown"; then
38302           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38303 /* end confdefs.h.  */
38304
38305
38306               $curl_includes_winsock2
38307       $curl_includes_bsdsocket
38308               $curl_includes_unistd
38309               $curl_preprocess_callconv
38310               extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
38311
38312 int main (void)
38313 {
38314
38315               if(0 != gethostname(0, 0))
38316                 return 1;
38317
38318  ;
38319  return 0;
38320 }
38321
38322 _ACEOF
38323 if ac_fn_c_try_compile "$LINENO"
38324 then :
38325
38326             tst_gethostname_type_arg2="$tst_arg2"
38327
38328 fi
38329 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38330         fi
38331       done
38332     done
38333     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
38334 printf "%s\n" "$tst_gethostname_type_arg2" >&6; }
38335     if test "$tst_gethostname_type_arg2" != "unknown"; then
38336
38337 printf "%s\n" "#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2" >>confdefs.h
38338
38339     fi
38340   fi
38341   #
38342   if test "$tst_compi_gethostname" = "yes"; then
38343     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
38344 printf %s "checking if gethostname usage allowed... " >&6; }
38345     if test "x$curl_disallow_gethostname" != "xyes"; then
38346       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38347 printf "%s\n" "yes" >&6; }
38348       tst_allow_gethostname="yes"
38349     else
38350       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38351 printf "%s\n" "no" >&6; }
38352       tst_allow_gethostname="no"
38353     fi
38354   fi
38355   #
38356   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
38357 printf %s "checking if gethostname might be used... " >&6; }
38358   if test "$tst_links_gethostname" = "yes" &&
38359      test "$tst_proto_gethostname" = "yes" &&
38360      test "$tst_compi_gethostname" = "yes" &&
38361      test "$tst_allow_gethostname" = "yes"; then
38362     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38363 printf "%s\n" "yes" >&6; }
38364
38365 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
38366
38367     curl_cv_func_gethostname="yes"
38368   else
38369     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38370 printf "%s\n" "no" >&6; }
38371     curl_cv_func_gethostname="no"
38372   fi
38373
38374
38375           #
38376   tst_links_getpeername="unknown"
38377   tst_proto_getpeername="unknown"
38378   tst_compi_getpeername="unknown"
38379   tst_allow_getpeername="unknown"
38380   #
38381   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername can be linked" >&5
38382 printf %s "checking if getpeername can be linked... " >&6; }
38383   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38384 /* end confdefs.h.  */
38385
38386
38387       $curl_includes_winsock2
38388       $curl_includes_bsdsocket
38389       $curl_includes_sys_socket
38390
38391 int main (void)
38392 {
38393
38394       if(0 != getpeername(0, (void *)0, (void *)0))
38395         return 1;
38396
38397  ;
38398  return 0;
38399 }
38400
38401 _ACEOF
38402 if ac_fn_c_try_link "$LINENO"
38403 then :
38404
38405     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38406 printf "%s\n" "yes" >&6; }
38407     tst_links_getpeername="yes"
38408
38409 else $as_nop
38410
38411     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38412 printf "%s\n" "no" >&6; }
38413     tst_links_getpeername="no"
38414
38415 fi
38416 rm -f core conftest.err conftest.$ac_objext conftest.beam \
38417     conftest$ac_exeext conftest.$ac_ext
38418   #
38419   if test "$tst_links_getpeername" = "yes"; then
38420     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername is prototyped" >&5
38421 printf %s "checking if getpeername is prototyped... " >&6; }
38422     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38423 /* end confdefs.h.  */
38424
38425       $curl_includes_winsock2
38426       $curl_includes_bsdsocket
38427       $curl_includes_sys_socket
38428
38429 _ACEOF
38430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38431   $EGREP "getpeername" >/dev/null 2>&1
38432 then :
38433
38434       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38435 printf "%s\n" "yes" >&6; }
38436       tst_proto_getpeername="yes"
38437
38438 else $as_nop
38439
38440       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38441 printf "%s\n" "no" >&6; }
38442       tst_proto_getpeername="no"
38443
38444 fi
38445 rm -rf conftest*
38446
38447   fi
38448   #
38449   if test "$tst_proto_getpeername" = "yes"; then
38450     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername is compilable" >&5
38451 printf %s "checking if getpeername is compilable... " >&6; }
38452     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38453 /* end confdefs.h.  */
38454
38455
38456         $curl_includes_winsock2
38457         $curl_includes_bsdsocket
38458         $curl_includes_sys_socket
38459
38460 int main (void)
38461 {
38462
38463         if(0 != getpeername(0, (void *)0, (void *)0))
38464           return 1;
38465
38466  ;
38467  return 0;
38468 }
38469
38470 _ACEOF
38471 if ac_fn_c_try_compile "$LINENO"
38472 then :
38473
38474       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38475 printf "%s\n" "yes" >&6; }
38476       tst_compi_getpeername="yes"
38477
38478 else $as_nop
38479
38480       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38481 printf "%s\n" "no" >&6; }
38482       tst_compi_getpeername="no"
38483
38484 fi
38485 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38486   fi
38487   #
38488   if test "$tst_compi_getpeername" = "yes"; then
38489     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername usage allowed" >&5
38490 printf %s "checking if getpeername usage allowed... " >&6; }
38491     if test "x$curl_disallow_getpeername" != "xyes"; then
38492       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38493 printf "%s\n" "yes" >&6; }
38494       tst_allow_getpeername="yes"
38495     else
38496       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38497 printf "%s\n" "no" >&6; }
38498       tst_allow_getpeername="no"
38499     fi
38500   fi
38501   #
38502   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername might be used" >&5
38503 printf %s "checking if getpeername might be used... " >&6; }
38504   if test "$tst_links_getpeername" = "yes" &&
38505      test "$tst_proto_getpeername" = "yes" &&
38506      test "$tst_compi_getpeername" = "yes" &&
38507      test "$tst_allow_getpeername" = "yes"; then
38508     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38509 printf "%s\n" "yes" >&6; }
38510
38511 printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h
38512
38513     curl_cv_func_getpeername="yes"
38514   else
38515     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38516 printf "%s\n" "no" >&6; }
38517     curl_cv_func_getpeername="no"
38518   fi
38519
38520
38521           #
38522   tst_links_getsockname="unknown"
38523   tst_proto_getsockname="unknown"
38524   tst_compi_getsockname="unknown"
38525   tst_allow_getsockname="unknown"
38526   #
38527   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname can be linked" >&5
38528 printf %s "checking if getsockname can be linked... " >&6; }
38529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38530 /* end confdefs.h.  */
38531
38532
38533       $curl_includes_winsock2
38534       $curl_includes_bsdsocket
38535       $curl_includes_sys_socket
38536
38537 int main (void)
38538 {
38539
38540       if(0 != getsockname(0, (void *)0, (void *)0))
38541         return 1;
38542
38543  ;
38544  return 0;
38545 }
38546
38547 _ACEOF
38548 if ac_fn_c_try_link "$LINENO"
38549 then :
38550
38551     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38552 printf "%s\n" "yes" >&6; }
38553     tst_links_getsockname="yes"
38554
38555 else $as_nop
38556
38557     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38558 printf "%s\n" "no" >&6; }
38559     tst_links_getsockname="no"
38560
38561 fi
38562 rm -f core conftest.err conftest.$ac_objext conftest.beam \
38563     conftest$ac_exeext conftest.$ac_ext
38564   #
38565   if test "$tst_links_getsockname" = "yes"; then
38566     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname is prototyped" >&5
38567 printf %s "checking if getsockname is prototyped... " >&6; }
38568     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38569 /* end confdefs.h.  */
38570
38571       $curl_includes_winsock2
38572       $curl_includes_bsdsocket
38573       $curl_includes_sys_socket
38574
38575 _ACEOF
38576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38577   $EGREP "getsockname" >/dev/null 2>&1
38578 then :
38579
38580       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38581 printf "%s\n" "yes" >&6; }
38582       tst_proto_getsockname="yes"
38583
38584 else $as_nop
38585
38586       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38587 printf "%s\n" "no" >&6; }
38588       tst_proto_getsockname="no"
38589
38590 fi
38591 rm -rf conftest*
38592
38593   fi
38594   #
38595   if test "$tst_proto_getsockname" = "yes"; then
38596     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname is compilable" >&5
38597 printf %s "checking if getsockname is compilable... " >&6; }
38598     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38599 /* end confdefs.h.  */
38600
38601
38602         $curl_includes_winsock2
38603         $curl_includes_bsdsocket
38604         $curl_includes_sys_socket
38605
38606 int main (void)
38607 {
38608
38609         if(0 != getsockname(0, (void *)0, (void *)0))
38610           return 1;
38611
38612  ;
38613  return 0;
38614 }
38615
38616 _ACEOF
38617 if ac_fn_c_try_compile "$LINENO"
38618 then :
38619
38620       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38621 printf "%s\n" "yes" >&6; }
38622       tst_compi_getsockname="yes"
38623
38624 else $as_nop
38625
38626       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38627 printf "%s\n" "no" >&6; }
38628       tst_compi_getsockname="no"
38629
38630 fi
38631 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38632   fi
38633   #
38634   if test "$tst_compi_getsockname" = "yes"; then
38635     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname usage allowed" >&5
38636 printf %s "checking if getsockname usage allowed... " >&6; }
38637     if test "x$curl_disallow_getsockname" != "xyes"; then
38638       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38639 printf "%s\n" "yes" >&6; }
38640       tst_allow_getsockname="yes"
38641     else
38642       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38643 printf "%s\n" "no" >&6; }
38644       tst_allow_getsockname="no"
38645     fi
38646   fi
38647   #
38648   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname might be used" >&5
38649 printf %s "checking if getsockname might be used... " >&6; }
38650   if test "$tst_links_getsockname" = "yes" &&
38651      test "$tst_proto_getsockname" = "yes" &&
38652      test "$tst_compi_getsockname" = "yes" &&
38653      test "$tst_allow_getsockname" = "yes"; then
38654     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38655 printf "%s\n" "yes" >&6; }
38656
38657 printf "%s\n" "#define HAVE_GETSOCKNAME 1" >>confdefs.h
38658
38659     curl_cv_func_getsockname="yes"
38660   else
38661     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38662 printf "%s\n" "no" >&6; }
38663     curl_cv_func_getsockname="no"
38664   fi
38665
38666
38667 curl_includes_netif="\
38668 /* includes start */
38669 #ifdef HAVE_NET_IF_H
38670 #  include <net/if.h>
38671 #endif
38672 /* includes end */"
38673   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$curl_includes_netif
38674 "
38675 if test "x$ac_cv_header_net_if_h" = xyes
38676 then :
38677   printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
38678
38679 fi
38680
38681
38682
38683         #
38684   tst_links_if_nametoindex="unknown"
38685   tst_proto_if_nametoindex="unknown"
38686   tst_compi_if_nametoindex="unknown"
38687   tst_allow_if_nametoindex="unknown"
38688   #
38689   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex can be linked" >&5
38690 printf %s "checking if if_nametoindex can be linked... " >&6; }
38691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38692 /* end confdefs.h.  */
38693
38694
38695       $curl_includes_winsock2
38696       $curl_includes_bsdsocket
38697       #include <net/if.h>
38698
38699 int main (void)
38700 {
38701
38702       if(0 != if_nametoindex(""))
38703         return 1;
38704
38705  ;
38706  return 0;
38707 }
38708
38709 _ACEOF
38710 if ac_fn_c_try_link "$LINENO"
38711 then :
38712
38713     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38714 printf "%s\n" "yes" >&6; }
38715     tst_links_if_nametoindex="yes"
38716
38717 else $as_nop
38718
38719     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38720 printf "%s\n" "no" >&6; }
38721     tst_links_if_nametoindex="no"
38722
38723 fi
38724 rm -f core conftest.err conftest.$ac_objext conftest.beam \
38725     conftest$ac_exeext conftest.$ac_ext
38726   #
38727   if test "$tst_links_if_nametoindex" = "yes"; then
38728     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is prototyped" >&5
38729 printf %s "checking if if_nametoindex is prototyped... " >&6; }
38730     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38731 /* end confdefs.h.  */
38732
38733       $curl_includes_winsock2
38734       $curl_includes_netif
38735
38736 _ACEOF
38737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38738   $EGREP "if_nametoindex" >/dev/null 2>&1
38739 then :
38740
38741       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38742 printf "%s\n" "yes" >&6; }
38743       tst_proto_if_nametoindex="yes"
38744
38745 else $as_nop
38746
38747       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38748 printf "%s\n" "no" >&6; }
38749       tst_proto_if_nametoindex="no"
38750
38751 fi
38752 rm -rf conftest*
38753
38754   fi
38755   #
38756   if test "$tst_proto_if_nametoindex" = "yes"; then
38757     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is compilable" >&5
38758 printf %s "checking if if_nametoindex is compilable... " >&6; }
38759     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38760 /* end confdefs.h.  */
38761
38762
38763         $curl_includes_winsock2
38764         $curl_includes_netif
38765
38766 int main (void)
38767 {
38768
38769         if(0 != if_nametoindex(""))
38770           return 1;
38771
38772  ;
38773  return 0;
38774 }
38775
38776 _ACEOF
38777 if ac_fn_c_try_compile "$LINENO"
38778 then :
38779
38780       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38781 printf "%s\n" "yes" >&6; }
38782       tst_compi_if_nametoindex="yes"
38783
38784 else $as_nop
38785
38786       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38787 printf "%s\n" "no" >&6; }
38788       tst_compi_if_nametoindex="no"
38789
38790 fi
38791 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38792   fi
38793   #
38794   if test "$tst_compi_if_nametoindex" = "yes"; then
38795     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex usage allowed" >&5
38796 printf %s "checking if if_nametoindex usage allowed... " >&6; }
38797     if test "x$curl_disallow_if_nametoindex" != "xyes"; then
38798       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38799 printf "%s\n" "yes" >&6; }
38800       tst_allow_if_nametoindex="yes"
38801     else
38802       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38803 printf "%s\n" "no" >&6; }
38804       tst_allow_if_nametoindex="no"
38805     fi
38806   fi
38807   #
38808   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex might be used" >&5
38809 printf %s "checking if if_nametoindex might be used... " >&6; }
38810   if test "$tst_links_if_nametoindex" = "yes" &&
38811      test "$tst_proto_if_nametoindex" = "yes" &&
38812      test "$tst_compi_if_nametoindex" = "yes" &&
38813      test "$tst_allow_if_nametoindex" = "yes"; then
38814     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38815 printf "%s\n" "yes" >&6; }
38816
38817 printf "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h
38818
38819     curl_cv_func_if_nametoindex="yes"
38820   else
38821     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38822 printf "%s\n" "no" >&6; }
38823     curl_cv_func_if_nametoindex="no"
38824   fi
38825
38826
38827 curl_includes_ifaddrs="\
38828 /* includes start */
38829 #ifdef HAVE_SYS_TYPES_H
38830 #  include <sys/types.h>
38831 #endif
38832 #ifdef HAVE_SYS_SOCKET_H
38833 #  include <sys/socket.h>
38834 #endif
38835 #ifdef HAVE_NETINET_IN_H
38836 #  include <netinet/in.h>
38837 #endif
38838 #ifdef HAVE_IFADDRS_H
38839 #  include <ifaddrs.h>
38840 #endif
38841 /* includes end */"
38842   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_ifaddrs
38843 "
38844 if test "x$ac_cv_header_sys_types_h" = xyes
38845 then :
38846   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
38847
38848 fi
38849 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_ifaddrs
38850 "
38851 if test "x$ac_cv_header_sys_socket_h" = xyes
38852 then :
38853   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
38854
38855 fi
38856 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$curl_includes_ifaddrs
38857 "
38858 if test "x$ac_cv_header_netinet_in_h" = xyes
38859 then :
38860   printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
38861
38862 fi
38863 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$curl_includes_ifaddrs
38864 "
38865 if test "x$ac_cv_header_ifaddrs_h" = xyes
38866 then :
38867   printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h
38868
38869 fi
38870
38871
38872
38873       #
38874   tst_links_getifaddrs="unknown"
38875   tst_proto_getifaddrs="unknown"
38876   tst_compi_getifaddrs="unknown"
38877   tst_works_getifaddrs="unknown"
38878   tst_allow_getifaddrs="unknown"
38879   #
38880   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
38881 printf %s "checking if getifaddrs can be linked... " >&6; }
38882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38883 /* end confdefs.h.  */
38884
38885
38886 #define getifaddrs innocuous_getifaddrs
38887 #ifdef __STDC__
38888 # include <limits.h>
38889 #else
38890 # include <assert.h>
38891 #endif
38892 #undef getifaddrs
38893 #ifdef __cplusplus
38894 extern "C"
38895 #endif
38896 char getifaddrs ();
38897 #if defined __stub_getifaddrs || defined __stub___getifaddrs
38898 choke me
38899 #endif
38900
38901 int main (void)
38902 {
38903 return getifaddrs ();
38904  ;
38905  return 0;
38906 }
38907
38908 _ACEOF
38909 if ac_fn_c_try_link "$LINENO"
38910 then :
38911
38912     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38913 printf "%s\n" "yes" >&6; }
38914     tst_links_getifaddrs="yes"
38915
38916 else $as_nop
38917
38918     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38919 printf "%s\n" "no" >&6; }
38920     tst_links_getifaddrs="no"
38921
38922 fi
38923 rm -f core conftest.err conftest.$ac_objext conftest.beam \
38924     conftest$ac_exeext conftest.$ac_ext
38925   #
38926   if test "$tst_links_getifaddrs" = "yes"; then
38927     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
38928 printf %s "checking if getifaddrs is prototyped... " >&6; }
38929     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38930 /* end confdefs.h.  */
38931
38932       $curl_includes_ifaddrs
38933
38934 _ACEOF
38935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38936   $EGREP "getifaddrs" >/dev/null 2>&1
38937 then :
38938
38939       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38940 printf "%s\n" "yes" >&6; }
38941       tst_proto_getifaddrs="yes"
38942
38943 else $as_nop
38944
38945       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38946 printf "%s\n" "no" >&6; }
38947       tst_proto_getifaddrs="no"
38948
38949 fi
38950 rm -rf conftest*
38951
38952   fi
38953   #
38954   if test "$tst_proto_getifaddrs" = "yes"; then
38955     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
38956 printf %s "checking if getifaddrs is compilable... " >&6; }
38957     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38958 /* end confdefs.h.  */
38959
38960
38961         $curl_includes_ifaddrs
38962
38963 int main (void)
38964 {
38965
38966         if(0 != getifaddrs(0))
38967           return 1;
38968
38969  ;
38970  return 0;
38971 }
38972
38973 _ACEOF
38974 if ac_fn_c_try_compile "$LINENO"
38975 then :
38976
38977       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38978 printf "%s\n" "yes" >&6; }
38979       tst_compi_getifaddrs="yes"
38980
38981 else $as_nop
38982
38983       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38984 printf "%s\n" "no" >&6; }
38985       tst_compi_getifaddrs="no"
38986
38987 fi
38988 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38989   fi
38990   #
38991     if test "x$cross_compiling" != "xyes" &&
38992     test "$tst_compi_getifaddrs" = "yes"; then
38993     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
38994 printf %s "checking if getifaddrs seems to work... " >&6; }
38995
38996    case $host_os in
38997      darwin*) library_path_var=DYLD_LIBRARY_PATH ;;
38998      *)       library_path_var=LD_LIBRARY_PATH ;;
38999    esac
39000
39001    eval "old=$$library_path_var"
39002    eval "$library_path_var=\$CURL_LIBRARY_PATH:\$old"
39003
39004    eval "export $library_path_var"
39005    if test "$cross_compiling" = yes
39006 then :
39007   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39008 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39009 as_fn_error $? "cannot run test program while cross compiling
39010 See \`config.log' for more details" "$LINENO" 5; }
39011 else $as_nop
39012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39013 /* end confdefs.h.  */
39014
39015
39016         $curl_includes_stdlib
39017         $curl_includes_ifaddrs
39018
39019 int main (void)
39020 {
39021
39022         struct ifaddrs *ifa = 0;
39023         int error;
39024
39025         error = getifaddrs(&ifa);
39026         if(error || !ifa)
39027           exit(1); /* fail */
39028         else
39029           exit(0);
39030
39031  ;
39032  return 0;
39033 }
39034
39035 _ACEOF
39036 if ac_fn_c_try_run "$LINENO"
39037 then :
39038   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39039 printf "%s\n" "yes" >&6; }
39040       tst_works_getifaddrs="yes"
39041
39042 else $as_nop
39043   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39044 printf "%s\n" "no" >&6; }
39045       tst_works_getifaddrs="no"
39046
39047 fi
39048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39049   conftest.$ac_objext conftest.beam conftest.$ac_ext
39050 fi
39051
39052    eval "$library_path_var=\$old" # restore
39053
39054   fi
39055   #
39056   if test "$tst_compi_getifaddrs" = "yes" &&
39057     test "$tst_works_getifaddrs" != "no"; then
39058     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
39059 printf %s "checking if getifaddrs usage allowed... " >&6; }
39060     if test "x$curl_disallow_getifaddrs" != "xyes"; then
39061       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39062 printf "%s\n" "yes" >&6; }
39063       tst_allow_getifaddrs="yes"
39064     else
39065       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39066 printf "%s\n" "no" >&6; }
39067       tst_allow_getifaddrs="no"
39068     fi
39069   fi
39070   #
39071   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
39072 printf %s "checking if getifaddrs might be used... " >&6; }
39073   if test "$tst_links_getifaddrs" = "yes" &&
39074      test "$tst_proto_getifaddrs" = "yes" &&
39075      test "$tst_compi_getifaddrs" = "yes" &&
39076      test "$tst_allow_getifaddrs" = "yes" &&
39077      test "$tst_works_getifaddrs" != "no"; then
39078     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39079 printf "%s\n" "yes" >&6; }
39080
39081 printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
39082
39083     curl_cv_func_getifaddrs="yes"
39084   else
39085     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39086 printf "%s\n" "no" >&6; }
39087     curl_cv_func_getifaddrs="no"
39088   fi
39089
39090
39091 curl_includes_time="\
39092 /* includes start */
39093 #ifdef HAVE_SYS_TYPES_H
39094 #  include <sys/types.h>
39095 #endif
39096 #ifdef HAVE_SYS_TIME_H
39097 #  include <sys/time.h>
39098 #endif
39099 #include <time.h>
39100 /* includes end */"
39101   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_time
39102 "
39103 if test "x$ac_cv_header_sys_types_h" = xyes
39104 then :
39105   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
39106
39107 fi
39108 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$curl_includes_time
39109 "
39110 if test "x$ac_cv_header_sys_time_h" = xyes
39111 then :
39112   printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
39113
39114 fi
39115
39116
39117
39118       #
39119   tst_links_gmtime_r="unknown"
39120   tst_proto_gmtime_r="unknown"
39121   tst_compi_gmtime_r="unknown"
39122   tst_works_gmtime_r="unknown"
39123   tst_allow_gmtime_r="unknown"
39124   #
39125   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
39126 printf %s "checking if gmtime_r can be linked... " >&6; }
39127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39128 /* end confdefs.h.  */
39129
39130
39131 #define gmtime_r innocuous_gmtime_r
39132 #ifdef __STDC__
39133 # include <limits.h>
39134 #else
39135 # include <assert.h>
39136 #endif
39137 #undef gmtime_r
39138 #ifdef __cplusplus
39139 extern "C"
39140 #endif
39141 char gmtime_r ();
39142 #if defined __stub_gmtime_r || defined __stub___gmtime_r
39143 choke me
39144 #endif
39145
39146 int main (void)
39147 {
39148 return gmtime_r ();
39149  ;
39150  return 0;
39151 }
39152
39153 _ACEOF
39154 if ac_fn_c_try_link "$LINENO"
39155 then :
39156
39157     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39158 printf "%s\n" "yes" >&6; }
39159     tst_links_gmtime_r="yes"
39160
39161 else $as_nop
39162
39163     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39164 printf "%s\n" "no" >&6; }
39165     tst_links_gmtime_r="no"
39166
39167 fi
39168 rm -f core conftest.err conftest.$ac_objext conftest.beam \
39169     conftest$ac_exeext conftest.$ac_ext
39170   #
39171   if test "$tst_links_gmtime_r" = "yes"; then
39172     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
39173 printf %s "checking if gmtime_r is prototyped... " >&6; }
39174     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39175 /* end confdefs.h.  */
39176
39177       $curl_includes_time
39178
39179 _ACEOF
39180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39181   $EGREP "gmtime_r" >/dev/null 2>&1
39182 then :
39183
39184       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39185 printf "%s\n" "yes" >&6; }
39186       tst_proto_gmtime_r="yes"
39187
39188 else $as_nop
39189
39190       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39191 printf "%s\n" "no" >&6; }
39192       tst_proto_gmtime_r="no"
39193
39194 fi
39195 rm -rf conftest*
39196
39197   fi
39198   #
39199   if test "$tst_proto_gmtime_r" = "yes"; then
39200     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
39201 printf %s "checking if gmtime_r is compilable... " >&6; }
39202     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39203 /* end confdefs.h.  */
39204
39205
39206         $curl_includes_time
39207
39208 int main (void)
39209 {
39210
39211         if(0 != gmtime_r(0, 0))
39212           return 1;
39213
39214  ;
39215  return 0;
39216 }
39217
39218 _ACEOF
39219 if ac_fn_c_try_compile "$LINENO"
39220 then :
39221
39222       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39223 printf "%s\n" "yes" >&6; }
39224       tst_compi_gmtime_r="yes"
39225
39226 else $as_nop
39227
39228       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39229 printf "%s\n" "no" >&6; }
39230       tst_compi_gmtime_r="no"
39231
39232 fi
39233 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39234   fi
39235   #
39236     if test "x$cross_compiling" != "xyes" &&
39237     test "$tst_compi_gmtime_r" = "yes"; then
39238     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
39239 printf %s "checking if gmtime_r seems to work... " >&6; }
39240
39241    case $host_os in
39242      darwin*) library_path_var=DYLD_LIBRARY_PATH ;;
39243      *)       library_path_var=LD_LIBRARY_PATH ;;
39244    esac
39245
39246    eval "old=$$library_path_var"
39247    eval "$library_path_var=\$CURL_LIBRARY_PATH:\$old"
39248
39249    eval "export $library_path_var"
39250    if test "$cross_compiling" = yes
39251 then :
39252   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39253 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39254 as_fn_error $? "cannot run test program while cross compiling
39255 See \`config.log' for more details" "$LINENO" 5; }
39256 else $as_nop
39257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39258 /* end confdefs.h.  */
39259
39260
39261         $curl_includes_stdlib
39262         $curl_includes_time
39263
39264 int main (void)
39265 {
39266
39267         time_t local = 1170352587;
39268         struct tm *gmt = 0;
39269         struct tm result;
39270         gmt = gmtime_r(&local, &result);
39271         if(gmt)
39272           exit(0);
39273         else
39274           exit(1);
39275
39276  ;
39277  return 0;
39278 }
39279
39280 _ACEOF
39281 if ac_fn_c_try_run "$LINENO"
39282 then :
39283   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39284 printf "%s\n" "yes" >&6; }
39285       tst_works_gmtime_r="yes"
39286
39287 else $as_nop
39288   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39289 printf "%s\n" "no" >&6; }
39290       tst_works_gmtime_r="no"
39291
39292 fi
39293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39294   conftest.$ac_objext conftest.beam conftest.$ac_ext
39295 fi
39296
39297    eval "$library_path_var=\$old" # restore
39298
39299   fi
39300   #
39301   if test "$tst_compi_gmtime_r" = "yes" &&
39302     test "$tst_works_gmtime_r" != "no"; then
39303     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
39304 printf %s "checking if gmtime_r usage allowed... " >&6; }
39305     if test "x$curl_disallow_gmtime_r" != "xyes"; then
39306       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39307 printf "%s\n" "yes" >&6; }
39308       tst_allow_gmtime_r="yes"
39309     else
39310       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39311 printf "%s\n" "no" >&6; }
39312       tst_allow_gmtime_r="no"
39313     fi
39314   fi
39315   #
39316   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
39317 printf %s "checking if gmtime_r might be used... " >&6; }
39318   if test "$tst_links_gmtime_r" = "yes" &&
39319      test "$tst_proto_gmtime_r" = "yes" &&
39320      test "$tst_compi_gmtime_r" = "yes" &&
39321      test "$tst_allow_gmtime_r" = "yes" &&
39322      test "$tst_works_gmtime_r" != "no"; then
39323     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39324 printf "%s\n" "yes" >&6; }
39325
39326 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
39327
39328     curl_cv_func_gmtime_r="yes"
39329   else
39330     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39331 printf "%s\n" "no" >&6; }
39332     curl_cv_func_gmtime_r="no"
39333   fi
39334
39335
39336 curl_includes_arpa_inet="\
39337 /* includes start */
39338 #ifdef HAVE_SYS_TYPES_H
39339 #  include <sys/types.h>
39340 #endif
39341 #ifdef HAVE_SYS_SOCKET_H
39342 #  include <sys/socket.h>
39343 #endif
39344 #ifdef HAVE_NETINET_IN_H
39345 #  include <netinet/in.h>
39346 #endif
39347 #ifdef HAVE_ARPA_INET_H
39348 #  include <arpa/inet.h>
39349 #endif
39350 #ifdef HAVE_WINSOCK2_H
39351 #include <winsock2.h>
39352 #include <ws2tcpip.h>
39353 #endif
39354 /* includes end */"
39355   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_arpa_inet
39356 "
39357 if test "x$ac_cv_header_sys_types_h" = xyes
39358 then :
39359   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
39360
39361 fi
39362 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_arpa_inet
39363 "
39364 if test "x$ac_cv_header_sys_socket_h" = xyes
39365 then :
39366   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
39367
39368 fi
39369 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$curl_includes_arpa_inet
39370 "
39371 if test "x$ac_cv_header_netinet_in_h" = xyes
39372 then :
39373   printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
39374
39375 fi
39376 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$curl_includes_arpa_inet
39377 "
39378 if test "x$ac_cv_header_arpa_inet_h" = xyes
39379 then :
39380   printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
39381
39382 fi
39383
39384
39385
39386         #
39387   tst_links_inet_ntop="unknown"
39388   tst_proto_inet_ntop="unknown"
39389   tst_compi_inet_ntop="unknown"
39390   tst_works_inet_ntop="unknown"
39391   tst_allow_inet_ntop="unknown"
39392   #
39393   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
39394 printf %s "checking if inet_ntop can be linked... " >&6; }
39395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39396 /* end confdefs.h.  */
39397
39398
39399 #define inet_ntop innocuous_inet_ntop
39400 #ifdef __STDC__
39401 # include <limits.h>
39402 #else
39403 # include <assert.h>
39404 #endif
39405 #undef inet_ntop
39406 #ifdef __cplusplus
39407 extern "C"
39408 #endif
39409 char inet_ntop ();
39410 #if defined __stub_inet_ntop || defined __stub___inet_ntop
39411 choke me
39412 #endif
39413
39414 int main (void)
39415 {
39416 return inet_ntop ();
39417  ;
39418  return 0;
39419 }
39420
39421 _ACEOF
39422 if ac_fn_c_try_link "$LINENO"
39423 then :
39424
39425     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39426 printf "%s\n" "yes" >&6; }
39427     tst_links_inet_ntop="yes"
39428
39429 else $as_nop
39430
39431     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39432 printf "%s\n" "no" >&6; }
39433     tst_links_inet_ntop="no"
39434
39435 fi
39436 rm -f core conftest.err conftest.$ac_objext conftest.beam \
39437     conftest$ac_exeext conftest.$ac_ext
39438   #
39439   if test "$tst_links_inet_ntop" = "yes"; then
39440     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
39441 printf %s "checking if inet_ntop is prototyped... " >&6; }
39442     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39443 /* end confdefs.h.  */
39444
39445       $curl_includes_arpa_inet
39446
39447 _ACEOF
39448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39449   $EGREP "inet_ntop" >/dev/null 2>&1
39450 then :
39451
39452       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39453 printf "%s\n" "yes" >&6; }
39454       tst_proto_inet_ntop="yes"
39455
39456 else $as_nop
39457
39458       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39459 printf "%s\n" "no" >&6; }
39460       tst_proto_inet_ntop="no"
39461
39462 fi
39463 rm -rf conftest*
39464
39465   fi
39466   #
39467   if test "$tst_proto_inet_ntop" = "yes"; then
39468     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
39469 printf %s "checking if inet_ntop is compilable... " >&6; }
39470     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39471 /* end confdefs.h.  */
39472
39473
39474         $curl_includes_arpa_inet
39475
39476 int main (void)
39477 {
39478
39479         if(0 != inet_ntop(0, 0, 0, 0))
39480           return 1;
39481
39482  ;
39483  return 0;
39484 }
39485
39486 _ACEOF
39487 if ac_fn_c_try_compile "$LINENO"
39488 then :
39489
39490       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39491 printf "%s\n" "yes" >&6; }
39492       tst_compi_inet_ntop="yes"
39493
39494 else $as_nop
39495
39496       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39497 printf "%s\n" "no" >&6; }
39498       tst_compi_inet_ntop="no"
39499
39500 fi
39501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39502   fi
39503   #
39504     if test "x$cross_compiling" != "xyes" &&
39505     test "$tst_compi_inet_ntop" = "yes"; then
39506     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
39507 printf %s "checking if inet_ntop seems to work... " >&6; }
39508
39509    case $host_os in
39510      darwin*) library_path_var=DYLD_LIBRARY_PATH ;;
39511      *)       library_path_var=LD_LIBRARY_PATH ;;
39512    esac
39513
39514    eval "old=$$library_path_var"
39515    eval "$library_path_var=\$CURL_LIBRARY_PATH:\$old"
39516
39517    eval "export $library_path_var"
39518    if test "$cross_compiling" = yes
39519 then :
39520   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39521 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39522 as_fn_error $? "cannot run test program while cross compiling
39523 See \`config.log' for more details" "$LINENO" 5; }
39524 else $as_nop
39525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39526 /* end confdefs.h.  */
39527
39528
39529         $curl_includes_stdlib
39530         $curl_includes_arpa_inet
39531         $curl_includes_string
39532
39533 int main (void)
39534 {
39535
39536         char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
39537         char ipv4res[sizeof "255.255.255.255"];
39538         unsigned char ipv6a[26];
39539         unsigned char ipv4a[5];
39540         char *ipv6ptr = 0;
39541         char *ipv4ptr = 0;
39542         /* - */
39543         ipv4res[0] = '\0';
39544         ipv4a[0] = 0xc0;
39545         ipv4a[1] = 0xa8;
39546         ipv4a[2] = 0x64;
39547         ipv4a[3] = 0x01;
39548         ipv4a[4] = 0x01;
39549         /* - */
39550         ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
39551         if(!ipv4ptr)
39552           exit(1); /* fail */
39553         if(ipv4ptr != ipv4res)
39554           exit(1); /* fail */
39555         if(!ipv4ptr[0])
39556           exit(1); /* fail */
39557         if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
39558           exit(1); /* fail */
39559         /* - */
39560         ipv6res[0] = '\0';
39561         memset(ipv6a, 0, sizeof(ipv6a));
39562         ipv6a[0] = 0xfe;
39563         ipv6a[1] = 0x80;
39564         ipv6a[8] = 0x02;
39565         ipv6a[9] = 0x14;
39566         ipv6a[10] = 0x4f;
39567         ipv6a[11] = 0xff;
39568         ipv6a[12] = 0xfe;
39569         ipv6a[13] = 0x0b;
39570         ipv6a[14] = 0x76;
39571         ipv6a[15] = 0xc8;
39572         ipv6a[25] = 0x01;
39573         /* - */
39574         ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
39575         if(!ipv6ptr)
39576           exit(1); /* fail */
39577         if(ipv6ptr != ipv6res)
39578           exit(1); /* fail */
39579         if(!ipv6ptr[0])
39580           exit(1); /* fail */
39581         if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
39582           exit(1); /* fail */
39583         /* - */
39584         exit(0);
39585
39586  ;
39587  return 0;
39588 }
39589
39590 _ACEOF
39591 if ac_fn_c_try_run "$LINENO"
39592 then :
39593   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39594 printf "%s\n" "yes" >&6; }
39595       tst_works_inet_ntop="yes"
39596
39597 else $as_nop
39598   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39599 printf "%s\n" "no" >&6; }
39600       tst_works_inet_ntop="no"
39601
39602 fi
39603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39604   conftest.$ac_objext conftest.beam conftest.$ac_ext
39605 fi
39606
39607    eval "$library_path_var=\$old" # restore
39608
39609   fi
39610   #
39611   if test "$tst_compi_inet_ntop" = "yes" &&
39612     test "$tst_works_inet_ntop" != "no"; then
39613     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
39614 printf %s "checking if inet_ntop usage allowed... " >&6; }
39615     if test "x$curl_disallow_inet_ntop" != "xyes"; then
39616       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39617 printf "%s\n" "yes" >&6; }
39618       tst_allow_inet_ntop="yes"
39619     else
39620       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39621 printf "%s\n" "no" >&6; }
39622       tst_allow_inet_ntop="no"
39623     fi
39624   fi
39625   #
39626   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
39627 printf %s "checking if inet_ntop might be used... " >&6; }
39628   if test "$tst_links_inet_ntop" = "yes" &&
39629      test "$tst_proto_inet_ntop" = "yes" &&
39630      test "$tst_compi_inet_ntop" = "yes" &&
39631      test "$tst_allow_inet_ntop" = "yes" &&
39632      test "$tst_works_inet_ntop" != "no"; then
39633     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39634 printf "%s\n" "yes" >&6; }
39635
39636 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
39637
39638     curl_cv_func_inet_ntop="yes"
39639   else
39640     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39641 printf "%s\n" "no" >&6; }
39642     curl_cv_func_inet_ntop="no"
39643   fi
39644
39645
39646         #
39647   tst_links_inet_pton="unknown"
39648   tst_proto_inet_pton="unknown"
39649   tst_compi_inet_pton="unknown"
39650   tst_works_inet_pton="unknown"
39651   tst_allow_inet_pton="unknown"
39652   #
39653   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
39654 printf %s "checking if inet_pton can be linked... " >&6; }
39655   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39656 /* end confdefs.h.  */
39657
39658
39659 #define inet_pton innocuous_inet_pton
39660 #ifdef __STDC__
39661 # include <limits.h>
39662 #else
39663 # include <assert.h>
39664 #endif
39665 #undef inet_pton
39666 #ifdef __cplusplus
39667 extern "C"
39668 #endif
39669 char inet_pton ();
39670 #if defined __stub_inet_pton || defined __stub___inet_pton
39671 choke me
39672 #endif
39673
39674 int main (void)
39675 {
39676 return inet_pton ();
39677  ;
39678  return 0;
39679 }
39680
39681 _ACEOF
39682 if ac_fn_c_try_link "$LINENO"
39683 then :
39684
39685     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39686 printf "%s\n" "yes" >&6; }
39687     tst_links_inet_pton="yes"
39688
39689 else $as_nop
39690
39691     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39692 printf "%s\n" "no" >&6; }
39693     tst_links_inet_pton="no"
39694
39695 fi
39696 rm -f core conftest.err conftest.$ac_objext conftest.beam \
39697     conftest$ac_exeext conftest.$ac_ext
39698   #
39699   if test "$tst_links_inet_pton" = "yes"; then
39700     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
39701 printf %s "checking if inet_pton is prototyped... " >&6; }
39702     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39703 /* end confdefs.h.  */
39704
39705       $curl_includes_arpa_inet
39706
39707 _ACEOF
39708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39709   $EGREP "inet_pton" >/dev/null 2>&1
39710 then :
39711
39712       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39713 printf "%s\n" "yes" >&6; }
39714       tst_proto_inet_pton="yes"
39715
39716 else $as_nop
39717
39718       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39719 printf "%s\n" "no" >&6; }
39720       tst_proto_inet_pton="no"
39721
39722 fi
39723 rm -rf conftest*
39724
39725   fi
39726   #
39727   if test "$tst_proto_inet_pton" = "yes"; then
39728     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
39729 printf %s "checking if inet_pton is compilable... " >&6; }
39730     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39731 /* end confdefs.h.  */
39732
39733
39734         $curl_includes_arpa_inet
39735
39736 int main (void)
39737 {
39738
39739         if(0 != inet_pton(0, 0, 0))
39740           return 1;
39741
39742  ;
39743  return 0;
39744 }
39745
39746 _ACEOF
39747 if ac_fn_c_try_compile "$LINENO"
39748 then :
39749
39750       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39751 printf "%s\n" "yes" >&6; }
39752       tst_compi_inet_pton="yes"
39753
39754 else $as_nop
39755
39756       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39757 printf "%s\n" "no" >&6; }
39758       tst_compi_inet_pton="no"
39759
39760 fi
39761 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39762   fi
39763   #
39764     if test "x$cross_compiling" != "xyes" &&
39765     test "$tst_compi_inet_pton" = "yes"; then
39766     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
39767 printf %s "checking if inet_pton seems to work... " >&6; }
39768
39769    case $host_os in
39770      darwin*) library_path_var=DYLD_LIBRARY_PATH ;;
39771      *)       library_path_var=LD_LIBRARY_PATH ;;
39772    esac
39773
39774    eval "old=$$library_path_var"
39775    eval "$library_path_var=\$CURL_LIBRARY_PATH:\$old"
39776
39777    eval "export $library_path_var"
39778    if test "$cross_compiling" = yes
39779 then :
39780   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39781 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39782 as_fn_error $? "cannot run test program while cross compiling
39783 See \`config.log' for more details" "$LINENO" 5; }
39784 else $as_nop
39785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39786 /* end confdefs.h.  */
39787
39788
39789         $curl_includes_stdlib
39790         $curl_includes_arpa_inet
39791         $curl_includes_string
39792
39793 int main (void)
39794 {
39795
39796         unsigned char ipv6a[16+1];
39797         unsigned char ipv4a[4+1];
39798         const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
39799         const char *ipv4src = "192.168.100.1";
39800         /* - */
39801         memset(ipv4a, 1, sizeof(ipv4a));
39802         if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
39803           exit(1); /* fail */
39804         /* - */
39805         if( (ipv4a[0] != 0xc0) ||
39806             (ipv4a[1] != 0xa8) ||
39807             (ipv4a[2] != 0x64) ||
39808             (ipv4a[3] != 0x01) ||
39809             (ipv4a[4] != 0x01) )
39810           exit(1); /* fail */
39811         /* - */
39812         memset(ipv6a, 1, sizeof(ipv6a));
39813         if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
39814           exit(1); /* fail */
39815         /* - */
39816         if( (ipv6a[0]  != 0xfe) ||
39817             (ipv6a[1]  != 0x80) ||
39818             (ipv6a[8]  != 0x02) ||
39819             (ipv6a[9]  != 0x14) ||
39820             (ipv6a[10] != 0x4f) ||
39821             (ipv6a[11] != 0xff) ||
39822             (ipv6a[12] != 0xfe) ||
39823             (ipv6a[13] != 0x0b) ||
39824             (ipv6a[14] != 0x76) ||
39825             (ipv6a[15] != 0xc8) ||
39826             (ipv6a[16] != 0x01) )
39827           exit(1); /* fail */
39828         /* - */
39829         if( (ipv6a[2]  != 0x0) ||
39830             (ipv6a[3]  != 0x0) ||
39831             (ipv6a[4]  != 0x0) ||
39832             (ipv6a[5]  != 0x0) ||
39833             (ipv6a[6]  != 0x0) ||
39834             (ipv6a[7]  != 0x0) )
39835           exit(1); /* fail */
39836         /* - */
39837         exit(0);
39838
39839  ;
39840  return 0;
39841 }
39842
39843 _ACEOF
39844 if ac_fn_c_try_run "$LINENO"
39845 then :
39846   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39847 printf "%s\n" "yes" >&6; }
39848       tst_works_inet_pton="yes"
39849
39850 else $as_nop
39851   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39852 printf "%s\n" "no" >&6; }
39853       tst_works_inet_pton="no"
39854
39855 fi
39856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39857   conftest.$ac_objext conftest.beam conftest.$ac_ext
39858 fi
39859
39860    eval "$library_path_var=\$old" # restore
39861
39862   fi
39863   #
39864   if test "$tst_compi_inet_pton" = "yes" &&
39865     test "$tst_works_inet_pton" != "no"; then
39866     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
39867 printf %s "checking if inet_pton usage allowed... " >&6; }
39868     if test "x$curl_disallow_inet_pton" != "xyes"; then
39869       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39870 printf "%s\n" "yes" >&6; }
39871       tst_allow_inet_pton="yes"
39872     else
39873       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39874 printf "%s\n" "no" >&6; }
39875       tst_allow_inet_pton="no"
39876     fi
39877   fi
39878   #
39879   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
39880 printf %s "checking if inet_pton might be used... " >&6; }
39881   if test "$tst_links_inet_pton" = "yes" &&
39882      test "$tst_proto_inet_pton" = "yes" &&
39883      test "$tst_compi_inet_pton" = "yes" &&
39884      test "$tst_allow_inet_pton" = "yes" &&
39885      test "$tst_works_inet_pton" != "no"; then
39886     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39887 printf "%s\n" "yes" >&6; }
39888
39889 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
39890
39891     curl_cv_func_inet_pton="yes"
39892   else
39893     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39894 printf "%s\n" "no" >&6; }
39895     curl_cv_func_inet_pton="no"
39896   fi
39897
39898
39899 curl_includes_stropts="\
39900 /* includes start */
39901 #ifdef HAVE_SYS_TYPES_H
39902 #  include <sys/types.h>
39903 #endif
39904 #ifdef HAVE_UNISTD_H
39905 #  include <unistd.h>
39906 #endif
39907 #ifdef HAVE_SYS_SOCKET_H
39908 #  include <sys/socket.h>
39909 #endif
39910 #ifdef HAVE_SYS_IOCTL_H
39911 #  include <sys/ioctl.h>
39912 #endif
39913 #ifdef HAVE_STROPTS_H
39914 #  include <stropts.h>
39915 #endif
39916 /* includes end */"
39917   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_stropts
39918 "
39919 if test "x$ac_cv_header_sys_types_h" = xyes
39920 then :
39921   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
39922
39923 fi
39924 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_stropts
39925 "
39926 if test "x$ac_cv_header_unistd_h" = xyes
39927 then :
39928   printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
39929
39930 fi
39931 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_stropts
39932 "
39933 if test "x$ac_cv_header_sys_socket_h" = xyes
39934 then :
39935   printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
39936
39937 fi
39938 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$curl_includes_stropts
39939 "
39940 if test "x$ac_cv_header_sys_ioctl_h" = xyes
39941 then :
39942   printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
39943
39944 fi
39945 ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$curl_includes_stropts
39946 "
39947 if test "x$ac_cv_header_stropts_h" = xyes
39948 then :
39949   printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h
39950
39951 fi
39952
39953
39954
39955     #
39956   tst_links_ioctl="unknown"
39957   tst_proto_ioctl="unknown"
39958   tst_compi_ioctl="unknown"
39959   tst_allow_ioctl="unknown"
39960   #
39961   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
39962 printf %s "checking if ioctl can be linked... " >&6; }
39963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39964 /* end confdefs.h.  */
39965
39966
39967 #define ioctl innocuous_ioctl
39968 #ifdef __STDC__
39969 # include <limits.h>
39970 #else
39971 # include <assert.h>
39972 #endif
39973 #undef ioctl
39974 #ifdef __cplusplus
39975 extern "C"
39976 #endif
39977 char ioctl ();
39978 #if defined __stub_ioctl || defined __stub___ioctl
39979 choke me
39980 #endif
39981
39982 int main (void)
39983 {
39984 return ioctl ();
39985  ;
39986  return 0;
39987 }
39988
39989 _ACEOF
39990 if ac_fn_c_try_link "$LINENO"
39991 then :
39992
39993     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39994 printf "%s\n" "yes" >&6; }
39995     tst_links_ioctl="yes"
39996
39997 else $as_nop
39998
39999     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40000 printf "%s\n" "no" >&6; }
40001     tst_links_ioctl="no"
40002
40003 fi
40004 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40005     conftest$ac_exeext conftest.$ac_ext
40006   #
40007   if test "$tst_links_ioctl" = "yes"; then
40008     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
40009 printf %s "checking if ioctl is prototyped... " >&6; }
40010     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40011 /* end confdefs.h.  */
40012
40013       $curl_includes_stropts
40014
40015 _ACEOF
40016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40017   $EGREP "ioctl" >/dev/null 2>&1
40018 then :
40019
40020       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40021 printf "%s\n" "yes" >&6; }
40022       tst_proto_ioctl="yes"
40023
40024 else $as_nop
40025
40026       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40027 printf "%s\n" "no" >&6; }
40028       tst_proto_ioctl="no"
40029
40030 fi
40031 rm -rf conftest*
40032
40033   fi
40034   #
40035   if test "$tst_proto_ioctl" = "yes"; then
40036     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
40037 printf %s "checking if ioctl is compilable... " >&6; }
40038     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40039 /* end confdefs.h.  */
40040
40041
40042         $curl_includes_stropts
40043
40044 int main (void)
40045 {
40046
40047         if(0 != ioctl(0, 0, 0))
40048           return 1;
40049
40050  ;
40051  return 0;
40052 }
40053
40054 _ACEOF
40055 if ac_fn_c_try_compile "$LINENO"
40056 then :
40057
40058       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40059 printf "%s\n" "yes" >&6; }
40060       tst_compi_ioctl="yes"
40061
40062 else $as_nop
40063
40064       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40065 printf "%s\n" "no" >&6; }
40066       tst_compi_ioctl="no"
40067
40068 fi
40069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40070   fi
40071   #
40072   if test "$tst_compi_ioctl" = "yes"; then
40073     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
40074 printf %s "checking if ioctl usage allowed... " >&6; }
40075     if test "x$curl_disallow_ioctl" != "xyes"; then
40076       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40077 printf "%s\n" "yes" >&6; }
40078       tst_allow_ioctl="yes"
40079     else
40080       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40081 printf "%s\n" "no" >&6; }
40082       tst_allow_ioctl="no"
40083     fi
40084   fi
40085   #
40086   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
40087 printf %s "checking if ioctl might be used... " >&6; }
40088   if test "$tst_links_ioctl" = "yes" &&
40089      test "$tst_proto_ioctl" = "yes" &&
40090      test "$tst_compi_ioctl" = "yes" &&
40091      test "$tst_allow_ioctl" = "yes"; then
40092     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40093 printf "%s\n" "yes" >&6; }
40094
40095 printf "%s\n" "#define HAVE_IOCTL 1" >>confdefs.h
40096
40097     curl_cv_func_ioctl="yes"
40098
40099   #
40100   tst_compi_ioctl_fionbio="unknown"
40101   tst_allow_ioctl_fionbio="unknown"
40102   #
40103   if test "$curl_cv_func_ioctl" = "yes"; then
40104     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
40105 printf %s "checking if ioctl FIONBIO is compilable... " >&6; }
40106     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40107 /* end confdefs.h.  */
40108
40109
40110         $curl_includes_stropts
40111
40112 int main (void)
40113 {
40114
40115         int flags = 0;
40116         if(0 != ioctl(0, FIONBIO, &flags))
40117           return 1;
40118
40119  ;
40120  return 0;
40121 }
40122
40123 _ACEOF
40124 if ac_fn_c_try_compile "$LINENO"
40125 then :
40126
40127       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40128 printf "%s\n" "yes" >&6; }
40129       tst_compi_ioctl_fionbio="yes"
40130
40131 else $as_nop
40132
40133       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40134 printf "%s\n" "no" >&6; }
40135       tst_compi_ioctl_fionbio="no"
40136
40137 fi
40138 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40139   fi
40140   #
40141   if test "$tst_compi_ioctl_fionbio" = "yes"; then
40142     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
40143 printf %s "checking if ioctl FIONBIO usage allowed... " >&6; }
40144     if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
40145       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40146 printf "%s\n" "yes" >&6; }
40147       tst_allow_ioctl_fionbio="yes"
40148     else
40149       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40150 printf "%s\n" "no" >&6; }
40151       tst_allow_ioctl_fionbio="no"
40152     fi
40153   fi
40154   #
40155   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
40156 printf %s "checking if ioctl FIONBIO might be used... " >&6; }
40157   if test "$tst_compi_ioctl_fionbio" = "yes" &&
40158      test "$tst_allow_ioctl_fionbio" = "yes"; then
40159     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40160 printf "%s\n" "yes" >&6; }
40161
40162 printf "%s\n" "#define HAVE_IOCTL_FIONBIO 1" >>confdefs.h
40163
40164     curl_cv_func_ioctl_fionbio="yes"
40165   else
40166     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40167 printf "%s\n" "no" >&6; }
40168     curl_cv_func_ioctl_fionbio="no"
40169   fi
40170
40171
40172   #
40173   tst_compi_ioctl_siocgifaddr="unknown"
40174   tst_allow_ioctl_siocgifaddr="unknown"
40175   #
40176   if test "$curl_cv_func_ioctl" = "yes"; then
40177     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
40178 printf %s "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
40179     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40180 /* end confdefs.h.  */
40181
40182
40183         $curl_includes_stropts
40184         #include <net/if.h>
40185
40186 int main (void)
40187 {
40188
40189         struct ifreq ifr;
40190         if(0 != ioctl(0, SIOCGIFADDR, &ifr))
40191           return 1;
40192
40193  ;
40194  return 0;
40195 }
40196
40197 _ACEOF
40198 if ac_fn_c_try_compile "$LINENO"
40199 then :
40200
40201       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40202 printf "%s\n" "yes" >&6; }
40203       tst_compi_ioctl_siocgifaddr="yes"
40204
40205 else $as_nop
40206
40207       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40208 printf "%s\n" "no" >&6; }
40209       tst_compi_ioctl_siocgifaddr="no"
40210
40211 fi
40212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40213   fi
40214   #
40215   if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
40216     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
40217 printf %s "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
40218     if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
40219       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40220 printf "%s\n" "yes" >&6; }
40221       tst_allow_ioctl_siocgifaddr="yes"
40222     else
40223       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40224 printf "%s\n" "no" >&6; }
40225       tst_allow_ioctl_siocgifaddr="no"
40226     fi
40227   fi
40228   #
40229   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
40230 printf %s "checking if ioctl SIOCGIFADDR might be used... " >&6; }
40231   if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
40232      test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
40233     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40234 printf "%s\n" "yes" >&6; }
40235
40236 printf "%s\n" "#define HAVE_IOCTL_SIOCGIFADDR 1" >>confdefs.h
40237
40238     curl_cv_func_ioctl_siocgifaddr="yes"
40239   else
40240     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40241 printf "%s\n" "no" >&6; }
40242     curl_cv_func_ioctl_siocgifaddr="no"
40243   fi
40244
40245   else
40246     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40247 printf "%s\n" "no" >&6; }
40248     curl_cv_func_ioctl="no"
40249   fi
40250
40251
40252     #
40253   tst_links_ioctlsocket="unknown"
40254   tst_proto_ioctlsocket="unknown"
40255   tst_compi_ioctlsocket="unknown"
40256   tst_allow_ioctlsocket="unknown"
40257   #
40258   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
40259 printf %s "checking if ioctlsocket can be linked... " >&6; }
40260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40261 /* end confdefs.h.  */
40262
40263
40264       $curl_includes_winsock2
40265       $curl_includes_bsdsocket
40266
40267 int main (void)
40268 {
40269
40270       if(0 != ioctlsocket(0, 0, 0))
40271         return 1;
40272
40273  ;
40274  return 0;
40275 }
40276
40277 _ACEOF
40278 if ac_fn_c_try_link "$LINENO"
40279 then :
40280
40281     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40282 printf "%s\n" "yes" >&6; }
40283     tst_links_ioctlsocket="yes"
40284
40285 else $as_nop
40286
40287     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40288 printf "%s\n" "no" >&6; }
40289     tst_links_ioctlsocket="no"
40290
40291 fi
40292 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40293     conftest$ac_exeext conftest.$ac_ext
40294   #
40295   if test "$tst_links_ioctlsocket" = "yes"; then
40296     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
40297 printf %s "checking if ioctlsocket is prototyped... " >&6; }
40298     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40299 /* end confdefs.h.  */
40300
40301       $curl_includes_winsock2
40302       $curl_includes_bsdsocket
40303
40304 _ACEOF
40305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40306   $EGREP "ioctlsocket" >/dev/null 2>&1
40307 then :
40308
40309       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40310 printf "%s\n" "yes" >&6; }
40311       tst_proto_ioctlsocket="yes"
40312
40313 else $as_nop
40314
40315       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40316 printf "%s\n" "no" >&6; }
40317       tst_proto_ioctlsocket="no"
40318
40319 fi
40320 rm -rf conftest*
40321
40322   fi
40323   #
40324   if test "$tst_proto_ioctlsocket" = "yes"; then
40325     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
40326 printf %s "checking if ioctlsocket is compilable... " >&6; }
40327     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40328 /* end confdefs.h.  */
40329
40330
40331         $curl_includes_winsock2
40332       $curl_includes_bsdsocket
40333
40334 int main (void)
40335 {
40336
40337         if(0 != ioctlsocket(0, 0, 0))
40338           return 1;
40339
40340  ;
40341  return 0;
40342 }
40343
40344 _ACEOF
40345 if ac_fn_c_try_compile "$LINENO"
40346 then :
40347
40348       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40349 printf "%s\n" "yes" >&6; }
40350       tst_compi_ioctlsocket="yes"
40351
40352 else $as_nop
40353
40354       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40355 printf "%s\n" "no" >&6; }
40356       tst_compi_ioctlsocket="no"
40357
40358 fi
40359 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40360   fi
40361   #
40362   if test "$tst_compi_ioctlsocket" = "yes"; then
40363     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
40364 printf %s "checking if ioctlsocket usage allowed... " >&6; }
40365     if test "x$curl_disallow_ioctlsocket" != "xyes"; then
40366       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40367 printf "%s\n" "yes" >&6; }
40368       tst_allow_ioctlsocket="yes"
40369     else
40370       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40371 printf "%s\n" "no" >&6; }
40372       tst_allow_ioctlsocket="no"
40373     fi
40374   fi
40375   #
40376   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
40377 printf %s "checking if ioctlsocket might be used... " >&6; }
40378   if test "$tst_links_ioctlsocket" = "yes" &&
40379      test "$tst_proto_ioctlsocket" = "yes" &&
40380      test "$tst_compi_ioctlsocket" = "yes" &&
40381      test "$tst_allow_ioctlsocket" = "yes"; then
40382     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40383 printf "%s\n" "yes" >&6; }
40384
40385 printf "%s\n" "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
40386
40387     curl_cv_func_ioctlsocket="yes"
40388
40389   #
40390   tst_compi_ioctlsocket_fionbio="unknown"
40391   tst_allow_ioctlsocket_fionbio="unknown"
40392   #
40393   if test "$curl_cv_func_ioctlsocket" = "yes"; then
40394     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
40395 printf %s "checking if ioctlsocket FIONBIO is compilable... " >&6; }
40396     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40397 /* end confdefs.h.  */
40398
40399
40400         $curl_includes_winsock2
40401       $curl_includes_bsdsocket
40402
40403 int main (void)
40404 {
40405
40406         int flags = 0;
40407         if(0 != ioctlsocket(0, FIONBIO, &flags))
40408           return 1;
40409
40410  ;
40411  return 0;
40412 }
40413
40414 _ACEOF
40415 if ac_fn_c_try_compile "$LINENO"
40416 then :
40417
40418       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40419 printf "%s\n" "yes" >&6; }
40420       tst_compi_ioctlsocket_fionbio="yes"
40421
40422 else $as_nop
40423
40424       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40425 printf "%s\n" "no" >&6; }
40426       tst_compi_ioctlsocket_fionbio="no"
40427
40428 fi
40429 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40430   fi
40431   #
40432   if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
40433     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
40434 printf %s "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
40435     if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
40436       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40437 printf "%s\n" "yes" >&6; }
40438       tst_allow_ioctlsocket_fionbio="yes"
40439     else
40440       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40441 printf "%s\n" "no" >&6; }
40442       tst_allow_ioctlsocket_fionbio="no"
40443     fi
40444   fi
40445   #
40446   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
40447 printf %s "checking if ioctlsocket FIONBIO might be used... " >&6; }
40448   if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
40449      test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
40450     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40451 printf "%s\n" "yes" >&6; }
40452
40453 printf "%s\n" "#define HAVE_IOCTLSOCKET_FIONBIO 1" >>confdefs.h
40454
40455     curl_cv_func_ioctlsocket_fionbio="yes"
40456   else
40457     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40458 printf "%s\n" "no" >&6; }
40459     curl_cv_func_ioctlsocket_fionbio="no"
40460   fi
40461
40462   else
40463     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40464 printf "%s\n" "no" >&6; }
40465     curl_cv_func_ioctlsocket="no"
40466   fi
40467
40468
40469     #
40470   tst_links_ioctlsocket_camel="unknown"
40471   tst_proto_ioctlsocket_camel="unknown"
40472   tst_compi_ioctlsocket_camel="unknown"
40473   tst_allow_ioctlsocket_camel="unknown"
40474   #
40475   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
40476 printf %s "checking if IoctlSocket can be linked... " >&6; }
40477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40478 /* end confdefs.h.  */
40479
40480
40481 #define IoctlSocket innocuous_IoctlSocket
40482 #ifdef __STDC__
40483 # include <limits.h>
40484 #else
40485 # include <assert.h>
40486 #endif
40487 #undef IoctlSocket
40488 #ifdef __cplusplus
40489 extern "C"
40490 #endif
40491 char IoctlSocket ();
40492 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
40493 choke me
40494 #endif
40495
40496 int main (void)
40497 {
40498 return IoctlSocket ();
40499  ;
40500  return 0;
40501 }
40502
40503 _ACEOF
40504 if ac_fn_c_try_link "$LINENO"
40505 then :
40506
40507     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40508 printf "%s\n" "yes" >&6; }
40509     tst_links_ioctlsocket_camel="yes"
40510
40511 else $as_nop
40512
40513     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40514 printf "%s\n" "no" >&6; }
40515     tst_links_ioctlsocket_camel="no"
40516
40517 fi
40518 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40519     conftest$ac_exeext conftest.$ac_ext
40520   #
40521   if test "$tst_links_ioctlsocket_camel" = "yes"; then
40522     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
40523 printf %s "checking if IoctlSocket is prototyped... " >&6; }
40524     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40525 /* end confdefs.h.  */
40526
40527       $curl_includes_stropts
40528
40529 _ACEOF
40530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40531   $EGREP "IoctlSocket" >/dev/null 2>&1
40532 then :
40533
40534       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40535 printf "%s\n" "yes" >&6; }
40536       tst_proto_ioctlsocket_camel="yes"
40537
40538 else $as_nop
40539
40540       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40541 printf "%s\n" "no" >&6; }
40542       tst_proto_ioctlsocket_camel="no"
40543
40544 fi
40545 rm -rf conftest*
40546
40547   fi
40548   #
40549   if test "$tst_proto_ioctlsocket_camel" = "yes"; then
40550     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
40551 printf %s "checking if IoctlSocket is compilable... " >&6; }
40552     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40553 /* end confdefs.h.  */
40554
40555
40556         $curl_includes_stropts
40557
40558 int main (void)
40559 {
40560
40561         if(0 != IoctlSocket(0, 0, 0))
40562           return 1;
40563
40564  ;
40565  return 0;
40566 }
40567
40568 _ACEOF
40569 if ac_fn_c_try_compile "$LINENO"
40570 then :
40571
40572       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40573 printf "%s\n" "yes" >&6; }
40574       tst_compi_ioctlsocket_camel="yes"
40575
40576 else $as_nop
40577
40578       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40579 printf "%s\n" "no" >&6; }
40580       tst_compi_ioctlsocket_camel="no"
40581
40582 fi
40583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40584   fi
40585   #
40586   if test "$tst_compi_ioctlsocket_camel" = "yes"; then
40587     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
40588 printf %s "checking if IoctlSocket usage allowed... " >&6; }
40589     if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
40590       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40591 printf "%s\n" "yes" >&6; }
40592       tst_allow_ioctlsocket_camel="yes"
40593     else
40594       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40595 printf "%s\n" "no" >&6; }
40596       tst_allow_ioctlsocket_camel="no"
40597     fi
40598   fi
40599   #
40600   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
40601 printf %s "checking if IoctlSocket might be used... " >&6; }
40602   if test "$tst_links_ioctlsocket_camel" = "yes" &&
40603      test "$tst_proto_ioctlsocket_camel" = "yes" &&
40604      test "$tst_compi_ioctlsocket_camel" = "yes" &&
40605      test "$tst_allow_ioctlsocket_camel" = "yes"; then
40606     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40607 printf "%s\n" "yes" >&6; }
40608
40609 printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL 1" >>confdefs.h
40610
40611     curl_cv_func_ioctlsocket_camel="yes"
40612
40613   #
40614   tst_compi_ioctlsocket_camel_fionbio="unknown"
40615   tst_allow_ioctlsocket_camel_fionbio="unknown"
40616   #
40617   if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
40618     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
40619 printf %s "checking if IoctlSocket FIONBIO is compilable... " >&6; }
40620     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40621 /* end confdefs.h.  */
40622
40623
40624         $curl_includes_stropts
40625
40626 int main (void)
40627 {
40628
40629         long flags = 0;
40630         if(0 != IoctlSocket(0, FIONBIO, &flags))
40631           return 1;
40632
40633  ;
40634  return 0;
40635 }
40636
40637 _ACEOF
40638 if ac_fn_c_try_compile "$LINENO"
40639 then :
40640
40641       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40642 printf "%s\n" "yes" >&6; }
40643       tst_compi_ioctlsocket_camel_fionbio="yes"
40644
40645 else $as_nop
40646
40647       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40648 printf "%s\n" "no" >&6; }
40649       tst_compi_ioctlsocket_camel_fionbio="no"
40650
40651 fi
40652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40653   fi
40654   #
40655   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
40656     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
40657 printf %s "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
40658     if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
40659       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40660 printf "%s\n" "yes" >&6; }
40661       tst_allow_ioctlsocket_camel_fionbio="yes"
40662     else
40663       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664 printf "%s\n" "no" >&6; }
40665       tst_allow_ioctlsocket_camel_fionbio="no"
40666     fi
40667   fi
40668   #
40669   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
40670 printf %s "checking if IoctlSocket FIONBIO might be used... " >&6; }
40671   if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
40672      test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
40673     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40674 printf "%s\n" "yes" >&6; }
40675
40676 printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1" >>confdefs.h
40677
40678     curl_cv_func_ioctlsocket_camel_fionbio="yes"
40679   else
40680     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40681 printf "%s\n" "no" >&6; }
40682     curl_cv_func_ioctlsocket_camel_fionbio="no"
40683   fi
40684
40685   else
40686     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40687 printf "%s\n" "no" >&6; }
40688     curl_cv_func_ioctlsocket_camel="no"
40689   fi
40690
40691
40692       #
40693   tst_links_localtime_r="unknown"
40694   tst_proto_localtime_r="unknown"
40695   tst_compi_localtime_r="unknown"
40696   tst_works_localtime_r="unknown"
40697   tst_allow_localtime_r="unknown"
40698   #
40699   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
40700 printf %s "checking if localtime_r can be linked... " >&6; }
40701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40702 /* end confdefs.h.  */
40703
40704
40705 #define localtime_r innocuous_localtime_r
40706 #ifdef __STDC__
40707 # include <limits.h>
40708 #else
40709 # include <assert.h>
40710 #endif
40711 #undef localtime_r
40712 #ifdef __cplusplus
40713 extern "C"
40714 #endif
40715 char localtime_r ();
40716 #if defined __stub_localtime_r || defined __stub___localtime_r
40717 choke me
40718 #endif
40719
40720 int main (void)
40721 {
40722 return localtime_r ();
40723  ;
40724  return 0;
40725 }
40726
40727 _ACEOF
40728 if ac_fn_c_try_link "$LINENO"
40729 then :
40730
40731     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40732 printf "%s\n" "yes" >&6; }
40733     tst_links_localtime_r="yes"
40734
40735 else $as_nop
40736
40737     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40738 printf "%s\n" "no" >&6; }
40739     tst_links_localtime_r="no"
40740
40741 fi
40742 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40743     conftest$ac_exeext conftest.$ac_ext
40744   #
40745   if test "$tst_links_localtime_r" = "yes"; then
40746     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
40747 printf %s "checking if localtime_r is prototyped... " >&6; }
40748     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40749 /* end confdefs.h.  */
40750
40751       $curl_includes_time
40752
40753 _ACEOF
40754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40755   $EGREP "localtime_r" >/dev/null 2>&1
40756 then :
40757
40758       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40759 printf "%s\n" "yes" >&6; }
40760       tst_proto_localtime_r="yes"
40761
40762 else $as_nop
40763
40764       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40765 printf "%s\n" "no" >&6; }
40766       tst_proto_localtime_r="no"
40767
40768 fi
40769 rm -rf conftest*
40770
40771   fi
40772   #
40773   if test "$tst_proto_localtime_r" = "yes"; then
40774     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
40775 printf %s "checking if localtime_r is compilable... " >&6; }
40776     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40777 /* end confdefs.h.  */
40778
40779
40780         $curl_includes_time
40781
40782 int main (void)
40783 {
40784
40785         if(0 != localtime_r(0, 0))
40786           return 1;
40787
40788  ;
40789  return 0;
40790 }
40791
40792 _ACEOF
40793 if ac_fn_c_try_compile "$LINENO"
40794 then :
40795
40796       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40797 printf "%s\n" "yes" >&6; }
40798       tst_compi_localtime_r="yes"
40799
40800 else $as_nop
40801
40802       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40803 printf "%s\n" "no" >&6; }
40804       tst_compi_localtime_r="no"
40805
40806 fi
40807 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40808   fi
40809   #
40810     if test "x$cross_compiling" != "xyes" &&
40811     test "$tst_compi_localtime_r" = "yes"; then
40812     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
40813 printf %s "checking if localtime_r seems to work... " >&6; }
40814
40815    case $host_os in
40816      darwin*) library_path_var=DYLD_LIBRARY_PATH ;;
40817      *)       library_path_var=LD_LIBRARY_PATH ;;
40818    esac
40819
40820    eval "old=$$library_path_var"
40821    eval "$library_path_var=\$CURL_LIBRARY_PATH:\$old"
40822
40823    eval "export $library_path_var"
40824    if test "$cross_compiling" = yes
40825 then :
40826   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
40827 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
40828 as_fn_error $? "cannot run test program while cross compiling
40829 See \`config.log' for more details" "$LINENO" 5; }
40830 else $as_nop
40831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40832 /* end confdefs.h.  */
40833
40834
40835         $curl_includes_stdlib
40836         $curl_includes_time
40837
40838 int main (void)
40839 {
40840
40841         time_t clock = 1170352587;
40842         struct tm *tmp = 0;
40843         struct tm result;
40844         tmp = localtime_r(&clock, &result);
40845         if(tmp)
40846           exit(0);
40847         else
40848           exit(1);
40849
40850  ;
40851  return 0;
40852 }
40853
40854 _ACEOF
40855 if ac_fn_c_try_run "$LINENO"
40856 then :
40857   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40858 printf "%s\n" "yes" >&6; }
40859       tst_works_localtime_r="yes"
40860
40861 else $as_nop
40862   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40863 printf "%s\n" "no" >&6; }
40864       tst_works_localtime_r="no"
40865
40866 fi
40867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40868   conftest.$ac_objext conftest.beam conftest.$ac_ext
40869 fi
40870
40871    eval "$library_path_var=\$old" # restore
40872
40873   fi
40874   #
40875   if test "$tst_compi_localtime_r" = "yes" &&
40876     test "$tst_works_localtime_r" != "no"; then
40877     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
40878 printf %s "checking if localtime_r usage allowed... " >&6; }
40879     if test "x$curl_disallow_localtime_r" != "xyes"; then
40880       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40881 printf "%s\n" "yes" >&6; }
40882       tst_allow_localtime_r="yes"
40883     else
40884       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40885 printf "%s\n" "no" >&6; }
40886       tst_allow_localtime_r="no"
40887     fi
40888   fi
40889   #
40890   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
40891 printf %s "checking if localtime_r might be used... " >&6; }
40892   if test "$tst_links_localtime_r" = "yes" &&
40893      test "$tst_proto_localtime_r" = "yes" &&
40894      test "$tst_compi_localtime_r" = "yes" &&
40895      test "$tst_allow_localtime_r" = "yes" &&
40896      test "$tst_works_localtime_r" != "no"; then
40897     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40898 printf "%s\n" "yes" >&6; }
40899
40900 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
40901
40902     curl_cv_func_localtime_r="yes"
40903   else
40904     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40905 printf "%s\n" "no" >&6; }
40906     curl_cv_func_localtime_r="no"
40907   fi
40908
40909
40910     #
40911   tst_links_memrchr="unknown"
40912   tst_macro_memrchr="unknown"
40913   tst_proto_memrchr="unknown"
40914   tst_compi_memrchr="unknown"
40915   tst_allow_memrchr="unknown"
40916   #
40917   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
40918 printf %s "checking if memrchr can be linked... " >&6; }
40919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40920 /* end confdefs.h.  */
40921
40922
40923 #define memrchr innocuous_memrchr
40924 #ifdef __STDC__
40925 # include <limits.h>
40926 #else
40927 # include <assert.h>
40928 #endif
40929 #undef memrchr
40930 #ifdef __cplusplus
40931 extern "C"
40932 #endif
40933 char memrchr ();
40934 #if defined __stub_memrchr || defined __stub___memrchr
40935 choke me
40936 #endif
40937
40938 int main (void)
40939 {
40940 return memrchr ();
40941  ;
40942  return 0;
40943 }
40944
40945 _ACEOF
40946 if ac_fn_c_try_link "$LINENO"
40947 then :
40948
40949     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40950 printf "%s\n" "yes" >&6; }
40951     tst_links_memrchr="yes"
40952
40953 else $as_nop
40954
40955     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40956 printf "%s\n" "no" >&6; }
40957     tst_links_memrchr="no"
40958
40959 fi
40960 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40961     conftest$ac_exeext conftest.$ac_ext
40962   #
40963   if test "$tst_links_memrchr" = "no"; then
40964     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
40965 printf %s "checking if memrchr seems a macro... " >&6; }
40966     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40967 /* end confdefs.h.  */
40968
40969
40970         $curl_includes_string
40971
40972 int main (void)
40973 {
40974
40975         if(0 != memrchr(0, 0, 0))
40976           return 1;
40977
40978  ;
40979  return 0;
40980 }
40981
40982 _ACEOF
40983 if ac_fn_c_try_link "$LINENO"
40984 then :
40985
40986       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40987 printf "%s\n" "yes" >&6; }
40988       tst_macro_memrchr="yes"
40989
40990 else $as_nop
40991
40992       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40993 printf "%s\n" "no" >&6; }
40994       tst_macro_memrchr="no"
40995
40996 fi
40997 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40998     conftest$ac_exeext conftest.$ac_ext
40999   fi
41000   #
41001   if test "$tst_links_memrchr" = "yes"; then
41002     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
41003 printf %s "checking if memrchr is prototyped... " >&6; }
41004     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41005 /* end confdefs.h.  */
41006
41007       $curl_includes_string
41008
41009 _ACEOF
41010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41011   $EGREP "memrchr" >/dev/null 2>&1
41012 then :
41013
41014       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41015 printf "%s\n" "yes" >&6; }
41016       tst_proto_memrchr="yes"
41017
41018 else $as_nop
41019
41020       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41021 printf "%s\n" "no" >&6; }
41022       tst_proto_memrchr="no"
41023
41024 fi
41025 rm -rf conftest*
41026
41027   fi
41028   #
41029   if test "$tst_proto_memrchr" = "yes" ||
41030      test "$tst_macro_memrchr" = "yes"; then
41031     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
41032 printf %s "checking if memrchr is compilable... " >&6; }
41033     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41034 /* end confdefs.h.  */
41035
41036
41037         $curl_includes_string
41038
41039 int main (void)
41040 {
41041
41042         if(0 != memrchr(0, 0, 0))
41043           return 1;
41044
41045  ;
41046  return 0;
41047 }
41048
41049 _ACEOF
41050 if ac_fn_c_try_compile "$LINENO"
41051 then :
41052
41053       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41054 printf "%s\n" "yes" >&6; }
41055       tst_compi_memrchr="yes"
41056
41057 else $as_nop
41058
41059       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41060 printf "%s\n" "no" >&6; }
41061       tst_compi_memrchr="no"
41062
41063 fi
41064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41065   fi
41066   #
41067   if test "$tst_compi_memrchr" = "yes"; then
41068     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
41069 printf %s "checking if memrchr usage allowed... " >&6; }
41070     if test "x$curl_disallow_memrchr" != "xyes"; then
41071       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41072 printf "%s\n" "yes" >&6; }
41073       tst_allow_memrchr="yes"
41074     else
41075       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41076 printf "%s\n" "no" >&6; }
41077       tst_allow_memrchr="no"
41078     fi
41079   fi
41080   #
41081   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
41082 printf %s "checking if memrchr might be used... " >&6; }
41083   if (test "$tst_proto_memrchr" = "yes" ||
41084       test "$tst_macro_memrchr" = "yes") &&
41085      test "$tst_compi_memrchr" = "yes" &&
41086      test "$tst_allow_memrchr" = "yes"; then
41087     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41088 printf "%s\n" "yes" >&6; }
41089
41090 printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h
41091
41092     curl_cv_func_memrchr="yes"
41093   else
41094     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41095 printf "%s\n" "no" >&6; }
41096     curl_cv_func_memrchr="no"
41097   fi
41098
41099
41100       #
41101   tst_links_poll="unknown"
41102   tst_proto_poll="unknown"
41103   tst_compi_poll="unknown"
41104   tst_works_poll="unknown"
41105   tst_allow_poll="unknown"
41106   #
41107   case $host_os in
41108     darwin*|interix*)
41109                                           curl_disallow_poll="yes"
41110       tst_compi_poll="no"
41111       ;;
41112   esac
41113   #
41114   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
41115 printf %s "checking if poll can be linked... " >&6; }
41116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41117 /* end confdefs.h.  */
41118
41119
41120       $curl_includes_poll
41121
41122 int main (void)
41123 {
41124
41125       if(0 != poll(0, 0, 0))
41126         return 1;
41127
41128  ;
41129  return 0;
41130 }
41131
41132 _ACEOF
41133 if ac_fn_c_try_link "$LINENO"
41134 then :
41135
41136     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41137 printf "%s\n" "yes" >&6; }
41138     tst_links_poll="yes"
41139
41140 else $as_nop
41141
41142     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41143 printf "%s\n" "no" >&6; }
41144     tst_links_poll="no"
41145
41146 fi
41147 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41148     conftest$ac_exeext conftest.$ac_ext
41149   #
41150   if test "$tst_links_poll" = "yes"; then
41151     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
41152 printf %s "checking if poll is prototyped... " >&6; }
41153     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41154 /* end confdefs.h.  */
41155
41156       $curl_includes_poll
41157
41158 _ACEOF
41159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41160   $EGREP "poll" >/dev/null 2>&1
41161 then :
41162
41163       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41164 printf "%s\n" "yes" >&6; }
41165       tst_proto_poll="yes"
41166
41167 else $as_nop
41168
41169       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41170 printf "%s\n" "no" >&6; }
41171       tst_proto_poll="no"
41172
41173 fi
41174 rm -rf conftest*
41175
41176   fi
41177   #
41178   if test "$tst_proto_poll" = "yes"; then
41179     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
41180 printf %s "checking if poll is compilable... " >&6; }
41181     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41182 /* end confdefs.h.  */
41183
41184
41185         $curl_includes_poll
41186
41187 int main (void)
41188 {
41189
41190         if(0 != poll(0, 0, 0))
41191           return 1;
41192
41193  ;
41194  return 0;
41195 }
41196
41197 _ACEOF
41198 if ac_fn_c_try_compile "$LINENO"
41199 then :
41200
41201       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41202 printf "%s\n" "yes" >&6; }
41203       tst_compi_poll="yes"
41204
41205 else $as_nop
41206
41207       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41208 printf "%s\n" "no" >&6; }
41209       tst_compi_poll="no"
41210
41211 fi
41212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41213   fi
41214   #
41215     if test "x$cross_compiling" != "xyes" &&
41216     test "$tst_compi_poll" = "yes"; then
41217     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
41218 printf %s "checking if poll seems to work... " >&6; }
41219
41220    case $host_os in
41221      darwin*) library_path_var=DYLD_LIBRARY_PATH ;;
41222      *)       library_path_var=LD_LIBRARY_PATH ;;
41223    esac
41224
41225    eval "old=$$library_path_var"
41226    eval "$library_path_var=\$CURL_LIBRARY_PATH:\$old"
41227
41228    eval "export $library_path_var"
41229    if test "$cross_compiling" = yes
41230 then :
41231   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
41232 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
41233 as_fn_error $? "cannot run test program while cross compiling
41234 See \`config.log' for more details" "$LINENO" 5; }
41235 else $as_nop
41236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41237 /* end confdefs.h.  */
41238
41239
41240         $curl_includes_stdlib
41241         $curl_includes_poll
41242         $curl_includes_time
41243
41244 int main (void)
41245 {
41246
41247         /* detect the original poll() breakage */
41248         if(0 != poll(0, 0, 10))
41249           exit(1); /* fail */
41250         else {
41251           /* detect the 10.12 poll() breakage */
41252           struct timeval before, after;
41253           int rc;
41254           size_t us;
41255
41256           gettimeofday(&before, NULL);
41257           rc = poll(NULL, 0, 500);
41258           gettimeofday(&after, NULL);
41259
41260           us = (after.tv_sec - before.tv_sec) * 1000000 +
41261             (after.tv_usec - before.tv_usec);
41262
41263           if(us < 400000)
41264             exit(1);
41265         }
41266
41267  ;
41268  return 0;
41269 }
41270
41271 _ACEOF
41272 if ac_fn_c_try_run "$LINENO"
41273 then :
41274   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41275 printf "%s\n" "yes" >&6; }
41276       tst_works_poll="yes"
41277
41278 else $as_nop
41279   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41280 printf "%s\n" "no" >&6; }
41281       tst_works_poll="no"
41282
41283 fi
41284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41285   conftest.$ac_objext conftest.beam conftest.$ac_ext
41286 fi
41287
41288    eval "$library_path_var=\$old" # restore
41289
41290   fi
41291   #
41292   if test "$tst_compi_poll" = "yes" &&
41293     test "$tst_works_poll" != "no"; then
41294     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
41295 printf %s "checking if poll usage allowed... " >&6; }
41296     if test "x$curl_disallow_poll" != "xyes"; then
41297       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41298 printf "%s\n" "yes" >&6; }
41299       tst_allow_poll="yes"
41300     else
41301       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41302 printf "%s\n" "no" >&6; }
41303       tst_allow_poll="no"
41304     fi
41305   fi
41306   #
41307   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
41308 printf %s "checking if poll might be used... " >&6; }
41309   if test "$tst_links_poll" = "yes" &&
41310      test "$tst_proto_poll" = "yes" &&
41311      test "$tst_compi_poll" = "yes" &&
41312      test "$tst_allow_poll" = "yes" &&
41313      test "$tst_works_poll" != "no"; then
41314     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41315 printf "%s\n" "yes" >&6; }
41316
41317 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
41318
41319
41320 printf "%s\n" "#define HAVE_POLL_FINE 1" >>confdefs.h
41321
41322     curl_cv_func_poll="yes"
41323   else
41324     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41325 printf "%s\n" "no" >&6; }
41326     curl_cv_func_poll="no"
41327   fi
41328
41329
41330       #
41331   tst_links_setsockopt="unknown"
41332   tst_proto_setsockopt="unknown"
41333   tst_compi_setsockopt="unknown"
41334   tst_allow_setsockopt="unknown"
41335   #
41336   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
41337 printf %s "checking if setsockopt can be linked... " >&6; }
41338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41339 /* end confdefs.h.  */
41340
41341
41342       $curl_includes_winsock2
41343       $curl_includes_bsdsocket
41344       $curl_includes_sys_socket
41345
41346 int main (void)
41347 {
41348
41349       if(0 != setsockopt(0, 0, 0, 0, 0))
41350         return 1;
41351
41352  ;
41353  return 0;
41354 }
41355
41356 _ACEOF
41357 if ac_fn_c_try_link "$LINENO"
41358 then :
41359
41360     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41361 printf "%s\n" "yes" >&6; }
41362     tst_links_setsockopt="yes"
41363
41364 else $as_nop
41365
41366     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41367 printf "%s\n" "no" >&6; }
41368     tst_links_setsockopt="no"
41369
41370 fi
41371 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41372     conftest$ac_exeext conftest.$ac_ext
41373   #
41374   if test "$tst_links_setsockopt" = "yes"; then
41375     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
41376 printf %s "checking if setsockopt is prototyped... " >&6; }
41377     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41378 /* end confdefs.h.  */
41379
41380       $curl_includes_winsock2
41381       $curl_includes_bsdsocket
41382       $curl_includes_sys_socket
41383
41384 _ACEOF
41385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41386   $EGREP "setsockopt" >/dev/null 2>&1
41387 then :
41388
41389       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41390 printf "%s\n" "yes" >&6; }
41391       tst_proto_setsockopt="yes"
41392
41393 else $as_nop
41394
41395       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41396 printf "%s\n" "no" >&6; }
41397       tst_proto_setsockopt="no"
41398
41399 fi
41400 rm -rf conftest*
41401
41402   fi
41403   #
41404   if test "$tst_proto_setsockopt" = "yes"; then
41405     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
41406 printf %s "checking if setsockopt is compilable... " >&6; }
41407     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41408 /* end confdefs.h.  */
41409
41410
41411         $curl_includes_winsock2
41412       $curl_includes_bsdsocket
41413         $curl_includes_sys_socket
41414
41415 int main (void)
41416 {
41417
41418         if(0 != setsockopt(0, 0, 0, 0, 0))
41419           return 1;
41420
41421  ;
41422  return 0;
41423 }
41424
41425 _ACEOF
41426 if ac_fn_c_try_compile "$LINENO"
41427 then :
41428
41429       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41430 printf "%s\n" "yes" >&6; }
41431       tst_compi_setsockopt="yes"
41432
41433 else $as_nop
41434
41435       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41436 printf "%s\n" "no" >&6; }
41437       tst_compi_setsockopt="no"
41438
41439 fi
41440 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41441   fi
41442   #
41443   if test "$tst_compi_setsockopt" = "yes"; then
41444     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
41445 printf %s "checking if setsockopt usage allowed... " >&6; }
41446     if test "x$curl_disallow_setsockopt" != "xyes"; then
41447       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41448 printf "%s\n" "yes" >&6; }
41449       tst_allow_setsockopt="yes"
41450     else
41451       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41452 printf "%s\n" "no" >&6; }
41453       tst_allow_setsockopt="no"
41454     fi
41455   fi
41456   #
41457   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
41458 printf %s "checking if setsockopt might be used... " >&6; }
41459   if test "$tst_links_setsockopt" = "yes" &&
41460      test "$tst_proto_setsockopt" = "yes" &&
41461      test "$tst_compi_setsockopt" = "yes" &&
41462      test "$tst_allow_setsockopt" = "yes"; then
41463     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41464 printf "%s\n" "yes" >&6; }
41465
41466 printf "%s\n" "#define HAVE_SETSOCKOPT 1" >>confdefs.h
41467
41468     curl_cv_func_setsockopt="yes"
41469
41470   #
41471   tst_compi_setsockopt_so_nonblock="unknown"
41472   tst_allow_setsockopt_so_nonblock="unknown"
41473   #
41474   if test "$curl_cv_func_setsockopt" = "yes"; then
41475     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
41476 printf %s "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
41477     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41478 /* end confdefs.h.  */
41479
41480
41481         $curl_includes_winsock2
41482       $curl_includes_bsdsocket
41483         $curl_includes_sys_socket
41484
41485 int main (void)
41486 {
41487
41488         if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
41489           return 1;
41490
41491  ;
41492  return 0;
41493 }
41494
41495 _ACEOF
41496 if ac_fn_c_try_compile "$LINENO"
41497 then :
41498
41499       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41500 printf "%s\n" "yes" >&6; }
41501       tst_compi_setsockopt_so_nonblock="yes"
41502
41503 else $as_nop
41504
41505       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41506 printf "%s\n" "no" >&6; }
41507       tst_compi_setsockopt_so_nonblock="no"
41508
41509 fi
41510 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41511   fi
41512   #
41513   if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
41514     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
41515 printf %s "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
41516     if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
41517       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41518 printf "%s\n" "yes" >&6; }
41519       tst_allow_setsockopt_so_nonblock="yes"
41520     else
41521       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41522 printf "%s\n" "no" >&6; }
41523       tst_allow_setsockopt_so_nonblock="no"
41524     fi
41525   fi
41526   #
41527   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
41528 printf %s "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
41529   if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
41530      test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
41531     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41532 printf "%s\n" "yes" >&6; }
41533
41534 printf "%s\n" "#define HAVE_SETSOCKOPT_SO_NONBLOCK 1" >>confdefs.h
41535
41536     curl_cv_func_setsockopt_so_nonblock="yes"
41537   else
41538     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41539 printf "%s\n" "no" >&6; }
41540     curl_cv_func_setsockopt_so_nonblock="no"
41541   fi
41542
41543   else
41544     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41545 printf "%s\n" "no" >&6; }
41546     curl_cv_func_setsockopt="no"
41547   fi
41548
41549
41550 curl_includes_signal="\
41551 /* includes start */
41552 #ifdef HAVE_SYS_TYPES_H
41553 #  include <sys/types.h>
41554 #endif
41555 #ifdef HAVE_SIGNAL_H
41556 #  include <signal.h>
41557 #endif
41558 /* includes end */"
41559   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_signal
41560 "
41561 if test "x$ac_cv_header_sys_types_h" = xyes
41562 then :
41563   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
41564
41565 fi
41566 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$curl_includes_signal
41567 "
41568 if test "x$ac_cv_header_signal_h" = xyes
41569 then :
41570   printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
41571
41572 fi
41573
41574
41575
41576     #
41577   tst_links_sigaction="unknown"
41578   tst_proto_sigaction="unknown"
41579   tst_compi_sigaction="unknown"
41580   tst_allow_sigaction="unknown"
41581   #
41582   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
41583 printf %s "checking if sigaction can be linked... " >&6; }
41584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41585 /* end confdefs.h.  */
41586
41587
41588 #define sigaction innocuous_sigaction
41589 #ifdef __STDC__
41590 # include <limits.h>
41591 #else
41592 # include <assert.h>
41593 #endif
41594 #undef sigaction
41595 #ifdef __cplusplus
41596 extern "C"
41597 #endif
41598 char sigaction ();
41599 #if defined __stub_sigaction || defined __stub___sigaction
41600 choke me
41601 #endif
41602
41603 int main (void)
41604 {
41605 return sigaction ();
41606  ;
41607  return 0;
41608 }
41609
41610 _ACEOF
41611 if ac_fn_c_try_link "$LINENO"
41612 then :
41613
41614     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41615 printf "%s\n" "yes" >&6; }
41616     tst_links_sigaction="yes"
41617
41618 else $as_nop
41619
41620     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41621 printf "%s\n" "no" >&6; }
41622     tst_links_sigaction="no"
41623
41624 fi
41625 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41626     conftest$ac_exeext conftest.$ac_ext
41627   #
41628   if test "$tst_links_sigaction" = "yes"; then
41629     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
41630 printf %s "checking if sigaction is prototyped... " >&6; }
41631     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41632 /* end confdefs.h.  */
41633
41634       $curl_includes_signal
41635
41636 _ACEOF
41637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41638   $EGREP "sigaction" >/dev/null 2>&1
41639 then :
41640
41641       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41642 printf "%s\n" "yes" >&6; }
41643       tst_proto_sigaction="yes"
41644
41645 else $as_nop
41646
41647       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41648 printf "%s\n" "no" >&6; }
41649       tst_proto_sigaction="no"
41650
41651 fi
41652 rm -rf conftest*
41653
41654   fi
41655   #
41656   if test "$tst_proto_sigaction" = "yes"; then
41657     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
41658 printf %s "checking if sigaction is compilable... " >&6; }
41659     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41660 /* end confdefs.h.  */
41661
41662
41663         $curl_includes_signal
41664
41665 int main (void)
41666 {
41667
41668         if(0 != sigaction(0, 0, 0))
41669           return 1;
41670
41671  ;
41672  return 0;
41673 }
41674
41675 _ACEOF
41676 if ac_fn_c_try_compile "$LINENO"
41677 then :
41678
41679       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41680 printf "%s\n" "yes" >&6; }
41681       tst_compi_sigaction="yes"
41682
41683 else $as_nop
41684
41685       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41686 printf "%s\n" "no" >&6; }
41687       tst_compi_sigaction="no"
41688
41689 fi
41690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41691   fi
41692   #
41693   if test "$tst_compi_sigaction" = "yes"; then
41694     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
41695 printf %s "checking if sigaction usage allowed... " >&6; }
41696     if test "x$curl_disallow_sigaction" != "xyes"; then
41697       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41698 printf "%s\n" "yes" >&6; }
41699       tst_allow_sigaction="yes"
41700     else
41701       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41702 printf "%s\n" "no" >&6; }
41703       tst_allow_sigaction="no"
41704     fi
41705   fi
41706   #
41707   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
41708 printf %s "checking if sigaction might be used... " >&6; }
41709   if test "$tst_links_sigaction" = "yes" &&
41710      test "$tst_proto_sigaction" = "yes" &&
41711      test "$tst_compi_sigaction" = "yes" &&
41712      test "$tst_allow_sigaction" = "yes"; then
41713     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41714 printf "%s\n" "yes" >&6; }
41715
41716 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
41717
41718     curl_cv_func_sigaction="yes"
41719   else
41720     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41721 printf "%s\n" "no" >&6; }
41722     curl_cv_func_sigaction="no"
41723   fi
41724
41725
41726     #
41727   tst_links_siginterrupt="unknown"
41728   tst_proto_siginterrupt="unknown"
41729   tst_compi_siginterrupt="unknown"
41730   tst_allow_siginterrupt="unknown"
41731   #
41732   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
41733 printf %s "checking if siginterrupt can be linked... " >&6; }
41734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41735 /* end confdefs.h.  */
41736
41737
41738 #define siginterrupt innocuous_siginterrupt
41739 #ifdef __STDC__
41740 # include <limits.h>
41741 #else
41742 # include <assert.h>
41743 #endif
41744 #undef siginterrupt
41745 #ifdef __cplusplus
41746 extern "C"
41747 #endif
41748 char siginterrupt ();
41749 #if defined __stub_siginterrupt || defined __stub___siginterrupt
41750 choke me
41751 #endif
41752
41753 int main (void)
41754 {
41755 return siginterrupt ();
41756  ;
41757  return 0;
41758 }
41759
41760 _ACEOF
41761 if ac_fn_c_try_link "$LINENO"
41762 then :
41763
41764     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41765 printf "%s\n" "yes" >&6; }
41766     tst_links_siginterrupt="yes"
41767
41768 else $as_nop
41769
41770     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41771 printf "%s\n" "no" >&6; }
41772     tst_links_siginterrupt="no"
41773
41774 fi
41775 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41776     conftest$ac_exeext conftest.$ac_ext
41777   #
41778   if test "$tst_links_siginterrupt" = "yes"; then
41779     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
41780 printf %s "checking if siginterrupt is prototyped... " >&6; }
41781     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41782 /* end confdefs.h.  */
41783
41784       $curl_includes_signal
41785
41786 _ACEOF
41787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41788   $EGREP "siginterrupt" >/dev/null 2>&1
41789 then :
41790
41791       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41792 printf "%s\n" "yes" >&6; }
41793       tst_proto_siginterrupt="yes"
41794
41795 else $as_nop
41796
41797       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41798 printf "%s\n" "no" >&6; }
41799       tst_proto_siginterrupt="no"
41800
41801 fi
41802 rm -rf conftest*
41803
41804   fi
41805   #
41806   if test "$tst_proto_siginterrupt" = "yes"; then
41807     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
41808 printf %s "checking if siginterrupt is compilable... " >&6; }
41809     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41810 /* end confdefs.h.  */
41811
41812
41813         $curl_includes_signal
41814
41815 int main (void)
41816 {
41817
41818         if(0 != siginterrupt(0, 0))
41819           return 1;
41820
41821  ;
41822  return 0;
41823 }
41824
41825 _ACEOF
41826 if ac_fn_c_try_compile "$LINENO"
41827 then :
41828
41829       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41830 printf "%s\n" "yes" >&6; }
41831       tst_compi_siginterrupt="yes"
41832
41833 else $as_nop
41834
41835       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41836 printf "%s\n" "no" >&6; }
41837       tst_compi_siginterrupt="no"
41838
41839 fi
41840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41841   fi
41842   #
41843   if test "$tst_compi_siginterrupt" = "yes"; then
41844     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
41845 printf %s "checking if siginterrupt usage allowed... " >&6; }
41846     if test "x$curl_disallow_siginterrupt" != "xyes"; then
41847       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41848 printf "%s\n" "yes" >&6; }
41849       tst_allow_siginterrupt="yes"
41850     else
41851       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41852 printf "%s\n" "no" >&6; }
41853       tst_allow_siginterrupt="no"
41854     fi
41855   fi
41856   #
41857   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
41858 printf %s "checking if siginterrupt might be used... " >&6; }
41859   if test "$tst_links_siginterrupt" = "yes" &&
41860      test "$tst_proto_siginterrupt" = "yes" &&
41861      test "$tst_compi_siginterrupt" = "yes" &&
41862      test "$tst_allow_siginterrupt" = "yes"; then
41863     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41864 printf "%s\n" "yes" >&6; }
41865
41866 printf "%s\n" "#define HAVE_SIGINTERRUPT 1" >>confdefs.h
41867
41868     curl_cv_func_siginterrupt="yes"
41869   else
41870     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41871 printf "%s\n" "no" >&6; }
41872     curl_cv_func_siginterrupt="no"
41873   fi
41874
41875
41876     #
41877   tst_links_signal="unknown"
41878   tst_proto_signal="unknown"
41879   tst_compi_signal="unknown"
41880   tst_allow_signal="unknown"
41881   #
41882   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
41883 printf %s "checking if signal can be linked... " >&6; }
41884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41885 /* end confdefs.h.  */
41886
41887
41888 #define signal innocuous_signal
41889 #ifdef __STDC__
41890 # include <limits.h>
41891 #else
41892 # include <assert.h>
41893 #endif
41894 #undef signal
41895 #ifdef __cplusplus
41896 extern "C"
41897 #endif
41898 char signal ();
41899 #if defined __stub_signal || defined __stub___signal
41900 choke me
41901 #endif
41902
41903 int main (void)
41904 {
41905 return signal ();
41906  ;
41907  return 0;
41908 }
41909
41910 _ACEOF
41911 if ac_fn_c_try_link "$LINENO"
41912 then :
41913
41914     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41915 printf "%s\n" "yes" >&6; }
41916     tst_links_signal="yes"
41917
41918 else $as_nop
41919
41920     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41921 printf "%s\n" "no" >&6; }
41922     tst_links_signal="no"
41923
41924 fi
41925 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41926     conftest$ac_exeext conftest.$ac_ext
41927   #
41928   if test "$tst_links_signal" = "yes"; then
41929     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
41930 printf %s "checking if signal is prototyped... " >&6; }
41931     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41932 /* end confdefs.h.  */
41933
41934       $curl_includes_signal
41935
41936 _ACEOF
41937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41938   $EGREP "signal" >/dev/null 2>&1
41939 then :
41940
41941       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41942 printf "%s\n" "yes" >&6; }
41943       tst_proto_signal="yes"
41944
41945 else $as_nop
41946
41947       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41948 printf "%s\n" "no" >&6; }
41949       tst_proto_signal="no"
41950
41951 fi
41952 rm -rf conftest*
41953
41954   fi
41955   #
41956   if test "$tst_proto_signal" = "yes"; then
41957     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
41958 printf %s "checking if signal is compilable... " >&6; }
41959     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41960 /* end confdefs.h.  */
41961
41962
41963         $curl_includes_signal
41964
41965 int main (void)
41966 {
41967
41968         if(0 != signal(0, 0))
41969           return 1;
41970
41971  ;
41972  return 0;
41973 }
41974
41975 _ACEOF
41976 if ac_fn_c_try_compile "$LINENO"
41977 then :
41978
41979       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41980 printf "%s\n" "yes" >&6; }
41981       tst_compi_signal="yes"
41982
41983 else $as_nop
41984
41985       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41986 printf "%s\n" "no" >&6; }
41987       tst_compi_signal="no"
41988
41989 fi
41990 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41991   fi
41992   #
41993   if test "$tst_compi_signal" = "yes"; then
41994     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
41995 printf %s "checking if signal usage allowed... " >&6; }
41996     if test "x$curl_disallow_signal" != "xyes"; then
41997       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41998 printf "%s\n" "yes" >&6; }
41999       tst_allow_signal="yes"
42000     else
42001       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42002 printf "%s\n" "no" >&6; }
42003       tst_allow_signal="no"
42004     fi
42005   fi
42006   #
42007   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
42008 printf %s "checking if signal might be used... " >&6; }
42009   if test "$tst_links_signal" = "yes" &&
42010      test "$tst_proto_signal" = "yes" &&
42011      test "$tst_compi_signal" = "yes" &&
42012      test "$tst_allow_signal" = "yes"; then
42013     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42014 printf "%s\n" "yes" >&6; }
42015
42016 printf "%s\n" "#define HAVE_SIGNAL 1" >>confdefs.h
42017
42018     curl_cv_func_signal="yes"
42019   else
42020     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42021 printf "%s\n" "no" >&6; }
42022     curl_cv_func_signal="no"
42023   fi
42024
42025
42026 curl_includes_setjmp="\
42027 /* includes start */
42028 #ifdef HAVE_SYS_TYPES_H
42029 #  include <sys/types.h>
42030 #endif
42031 #ifdef HAVE_SETJMP_H
42032 #  include <setjmp.h>
42033 #endif
42034 /* includes end */"
42035   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_setjmp
42036 "
42037 if test "x$ac_cv_header_sys_types_h" = xyes
42038 then :
42039   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
42040
42041 fi
42042 ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$curl_includes_setjmp
42043 "
42044 if test "x$ac_cv_header_setjmp_h" = xyes
42045 then :
42046   printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
42047
42048 fi
42049
42050
42051
42052     #
42053   tst_links_sigsetjmp="unknown"
42054   tst_macro_sigsetjmp="unknown"
42055   tst_proto_sigsetjmp="unknown"
42056   tst_compi_sigsetjmp="unknown"
42057   tst_allow_sigsetjmp="unknown"
42058   #
42059   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
42060 printf %s "checking if sigsetjmp can be linked... " >&6; }
42061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42062 /* end confdefs.h.  */
42063
42064
42065 #define sigsetjmp innocuous_sigsetjmp
42066 #ifdef __STDC__
42067 # include <limits.h>
42068 #else
42069 # include <assert.h>
42070 #endif
42071 #undef sigsetjmp
42072 #ifdef __cplusplus
42073 extern "C"
42074 #endif
42075 char sigsetjmp ();
42076 #if defined __stub_sigsetjmp || defined __stub___sigsetjmp
42077 choke me
42078 #endif
42079
42080 int main (void)
42081 {
42082 return sigsetjmp ();
42083  ;
42084  return 0;
42085 }
42086
42087 _ACEOF
42088 if ac_fn_c_try_link "$LINENO"
42089 then :
42090
42091     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42092 printf "%s\n" "yes" >&6; }
42093     tst_links_sigsetjmp="yes"
42094
42095 else $as_nop
42096
42097     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42098 printf "%s\n" "no" >&6; }
42099     tst_links_sigsetjmp="no"
42100
42101 fi
42102 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42103     conftest$ac_exeext conftest.$ac_ext
42104   #
42105   if test "$tst_links_sigsetjmp" = "no"; then
42106     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
42107 printf %s "checking if sigsetjmp seems a macro... " >&6; }
42108     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42109 /* end confdefs.h.  */
42110
42111
42112         $curl_includes_setjmp
42113
42114 int main (void)
42115 {
42116
42117         sigjmp_buf env;
42118         if(0 != sigsetjmp(env, 0))
42119           return 1;
42120
42121  ;
42122  return 0;
42123 }
42124
42125 _ACEOF
42126 if ac_fn_c_try_link "$LINENO"
42127 then :
42128
42129       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42130 printf "%s\n" "yes" >&6; }
42131       tst_macro_sigsetjmp="yes"
42132
42133 else $as_nop
42134
42135       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42136 printf "%s\n" "no" >&6; }
42137       tst_macro_sigsetjmp="no"
42138
42139 fi
42140 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42141     conftest$ac_exeext conftest.$ac_ext
42142   fi
42143   #
42144   if test "$tst_links_sigsetjmp" = "yes"; then
42145     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
42146 printf %s "checking if sigsetjmp is prototyped... " >&6; }
42147     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42148 /* end confdefs.h.  */
42149
42150       $curl_includes_setjmp
42151
42152 _ACEOF
42153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42154   $EGREP "sigsetjmp" >/dev/null 2>&1
42155 then :
42156
42157       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42158 printf "%s\n" "yes" >&6; }
42159       tst_proto_sigsetjmp="yes"
42160
42161 else $as_nop
42162
42163       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42164 printf "%s\n" "no" >&6; }
42165       tst_proto_sigsetjmp="no"
42166
42167 fi
42168 rm -rf conftest*
42169
42170   fi
42171   #
42172   if test "$tst_proto_sigsetjmp" = "yes" ||
42173      test "$tst_macro_sigsetjmp" = "yes"; then
42174     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
42175 printf %s "checking if sigsetjmp is compilable... " >&6; }
42176     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42177 /* end confdefs.h.  */
42178
42179
42180         $curl_includes_setjmp
42181
42182 int main (void)
42183 {
42184
42185         sigjmp_buf env;
42186         if(0 != sigsetjmp(env, 0))
42187           return 1;
42188
42189  ;
42190  return 0;
42191 }
42192
42193 _ACEOF
42194 if ac_fn_c_try_compile "$LINENO"
42195 then :
42196
42197       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42198 printf "%s\n" "yes" >&6; }
42199       tst_compi_sigsetjmp="yes"
42200
42201 else $as_nop
42202
42203       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42204 printf "%s\n" "no" >&6; }
42205       tst_compi_sigsetjmp="no"
42206
42207 fi
42208 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42209   fi
42210   #
42211   if test "$tst_compi_sigsetjmp" = "yes"; then
42212     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
42213 printf %s "checking if sigsetjmp usage allowed... " >&6; }
42214     if test "x$curl_disallow_sigsetjmp" != "xyes"; then
42215       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42216 printf "%s\n" "yes" >&6; }
42217       tst_allow_sigsetjmp="yes"
42218     else
42219       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42220 printf "%s\n" "no" >&6; }
42221       tst_allow_sigsetjmp="no"
42222     fi
42223   fi
42224   #
42225   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
42226 printf %s "checking if sigsetjmp might be used... " >&6; }
42227   if (test "$tst_proto_sigsetjmp" = "yes" ||
42228       test "$tst_macro_sigsetjmp" = "yes") &&
42229      test "$tst_compi_sigsetjmp" = "yes" &&
42230      test "$tst_allow_sigsetjmp" = "yes"; then
42231     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42232 printf "%s\n" "yes" >&6; }
42233
42234 printf "%s\n" "#define HAVE_SIGSETJMP 1" >>confdefs.h
42235
42236     curl_cv_func_sigsetjmp="yes"
42237   else
42238     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42239 printf "%s\n" "no" >&6; }
42240     curl_cv_func_sigsetjmp="no"
42241   fi
42242
42243
42244         #
42245   tst_links_socket="unknown"
42246   tst_proto_socket="unknown"
42247   tst_compi_socket="unknown"
42248   tst_allow_socket="unknown"
42249   #
42250   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
42251 printf %s "checking if socket can be linked... " >&6; }
42252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42253 /* end confdefs.h.  */
42254
42255
42256       $curl_includes_winsock2
42257       $curl_includes_bsdsocket
42258       $curl_includes_sys_socket
42259       $curl_includes_socket
42260
42261 int main (void)
42262 {
42263
42264       if(0 != socket(0, 0, 0))
42265         return 1;
42266
42267  ;
42268  return 0;
42269 }
42270
42271 _ACEOF
42272 if ac_fn_c_try_link "$LINENO"
42273 then :
42274
42275     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42276 printf "%s\n" "yes" >&6; }
42277     tst_links_socket="yes"
42278
42279 else $as_nop
42280
42281     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42282 printf "%s\n" "no" >&6; }
42283     tst_links_socket="no"
42284
42285 fi
42286 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42287     conftest$ac_exeext conftest.$ac_ext
42288   #
42289   if test "$tst_links_socket" = "yes"; then
42290     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
42291 printf %s "checking if socket is prototyped... " >&6; }
42292     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42293 /* end confdefs.h.  */
42294
42295       $curl_includes_winsock2
42296       $curl_includes_bsdsocket
42297       $curl_includes_sys_socket
42298       $curl_includes_socket
42299
42300 _ACEOF
42301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42302   $EGREP "socket" >/dev/null 2>&1
42303 then :
42304
42305       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42306 printf "%s\n" "yes" >&6; }
42307       tst_proto_socket="yes"
42308
42309 else $as_nop
42310
42311       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42312 printf "%s\n" "no" >&6; }
42313       tst_proto_socket="no"
42314
42315 fi
42316 rm -rf conftest*
42317
42318   fi
42319   #
42320   if test "$tst_proto_socket" = "yes"; then
42321     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
42322 printf %s "checking if socket is compilable... " >&6; }
42323     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42324 /* end confdefs.h.  */
42325
42326
42327         $curl_includes_winsock2
42328       $curl_includes_bsdsocket
42329         $curl_includes_sys_socket
42330         $curl_includes_socket
42331
42332 int main (void)
42333 {
42334
42335         if(0 != socket(0, 0, 0))
42336           return 1;
42337
42338  ;
42339  return 0;
42340 }
42341
42342 _ACEOF
42343 if ac_fn_c_try_compile "$LINENO"
42344 then :
42345
42346       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42347 printf "%s\n" "yes" >&6; }
42348       tst_compi_socket="yes"
42349
42350 else $as_nop
42351
42352       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42353 printf "%s\n" "no" >&6; }
42354       tst_compi_socket="no"
42355
42356 fi
42357 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42358   fi
42359   #
42360   if test "$tst_compi_socket" = "yes"; then
42361     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
42362 printf %s "checking if socket usage allowed... " >&6; }
42363     if test "x$curl_disallow_socket" != "xyes"; then
42364       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42365 printf "%s\n" "yes" >&6; }
42366       tst_allow_socket="yes"
42367     else
42368       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42369 printf "%s\n" "no" >&6; }
42370       tst_allow_socket="no"
42371     fi
42372   fi
42373   #
42374   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
42375 printf %s "checking if socket might be used... " >&6; }
42376   if test "$tst_links_socket" = "yes" &&
42377      test "$tst_proto_socket" = "yes" &&
42378      test "$tst_compi_socket" = "yes" &&
42379      test "$tst_allow_socket" = "yes"; then
42380     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42381 printf "%s\n" "yes" >&6; }
42382
42383 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
42384
42385     curl_cv_func_socket="yes"
42386   else
42387     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42388 printf "%s\n" "no" >&6; }
42389     curl_cv_func_socket="no"
42390   fi
42391
42392
42393       #
42394   tst_links_socketpair="unknown"
42395   tst_proto_socketpair="unknown"
42396   tst_compi_socketpair="unknown"
42397   tst_allow_socketpair="unknown"
42398   #
42399   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
42400 printf %s "checking if socketpair can be linked... " >&6; }
42401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42402 /* end confdefs.h.  */
42403
42404
42405 #define socketpair innocuous_socketpair
42406 #ifdef __STDC__
42407 # include <limits.h>
42408 #else
42409 # include <assert.h>
42410 #endif
42411 #undef socketpair
42412 #ifdef __cplusplus
42413 extern "C"
42414 #endif
42415 char socketpair ();
42416 #if defined __stub_socketpair || defined __stub___socketpair
42417 choke me
42418 #endif
42419
42420 int main (void)
42421 {
42422 return socketpair ();
42423  ;
42424  return 0;
42425 }
42426
42427 _ACEOF
42428 if ac_fn_c_try_link "$LINENO"
42429 then :
42430
42431     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42432 printf "%s\n" "yes" >&6; }
42433     tst_links_socketpair="yes"
42434
42435 else $as_nop
42436
42437     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42438 printf "%s\n" "no" >&6; }
42439     tst_links_socketpair="no"
42440
42441 fi
42442 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42443     conftest$ac_exeext conftest.$ac_ext
42444   #
42445   if test "$tst_links_socketpair" = "yes"; then
42446     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
42447 printf %s "checking if socketpair is prototyped... " >&6; }
42448     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42449 /* end confdefs.h.  */
42450
42451       $curl_includes_sys_socket
42452       $curl_includes_socket
42453
42454 _ACEOF
42455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42456   $EGREP "socketpair" >/dev/null 2>&1
42457 then :
42458
42459       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42460 printf "%s\n" "yes" >&6; }
42461       tst_proto_socketpair="yes"
42462
42463 else $as_nop
42464
42465       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42466 printf "%s\n" "no" >&6; }
42467       tst_proto_socketpair="no"
42468
42469 fi
42470 rm -rf conftest*
42471
42472   fi
42473   #
42474   if test "$tst_proto_socketpair" = "yes"; then
42475     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
42476 printf %s "checking if socketpair is compilable... " >&6; }
42477     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42478 /* end confdefs.h.  */
42479
42480
42481         $curl_includes_sys_socket
42482         $curl_includes_socket
42483
42484 int main (void)
42485 {
42486
42487         int sv[2];
42488         if(0 != socketpair(0, 0, 0, sv))
42489           return 1;
42490
42491  ;
42492  return 0;
42493 }
42494
42495 _ACEOF
42496 if ac_fn_c_try_compile "$LINENO"
42497 then :
42498
42499       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42500 printf "%s\n" "yes" >&6; }
42501       tst_compi_socketpair="yes"
42502
42503 else $as_nop
42504
42505       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42506 printf "%s\n" "no" >&6; }
42507       tst_compi_socketpair="no"
42508
42509 fi
42510 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42511   fi
42512   #
42513   if test "$tst_compi_socketpair" = "yes"; then
42514     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
42515 printf %s "checking if socketpair usage allowed... " >&6; }
42516     if test "x$curl_disallow_socketpair" != "xyes"; then
42517       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42518 printf "%s\n" "yes" >&6; }
42519       tst_allow_socketpair="yes"
42520     else
42521       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42522 printf "%s\n" "no" >&6; }
42523       tst_allow_socketpair="no"
42524     fi
42525   fi
42526   #
42527   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
42528 printf %s "checking if socketpair might be used... " >&6; }
42529   if test "$tst_links_socketpair" = "yes" &&
42530      test "$tst_proto_socketpair" = "yes" &&
42531      test "$tst_compi_socketpair" = "yes" &&
42532      test "$tst_allow_socketpair" = "yes"; then
42533     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42534 printf "%s\n" "yes" >&6; }
42535
42536 printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h
42537
42538     curl_cv_func_socketpair="yes"
42539   else
42540     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42541 printf "%s\n" "no" >&6; }
42542     curl_cv_func_socketpair="no"
42543   fi
42544
42545
42546     #
42547   tst_links_strcasecmp="unknown"
42548   tst_proto_strcasecmp="unknown"
42549   tst_compi_strcasecmp="unknown"
42550   tst_allow_strcasecmp="unknown"
42551   #
42552   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
42553 printf %s "checking if strcasecmp can be linked... " >&6; }
42554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42555 /* end confdefs.h.  */
42556
42557
42558 #define strcasecmp innocuous_strcasecmp
42559 #ifdef __STDC__
42560 # include <limits.h>
42561 #else
42562 # include <assert.h>
42563 #endif
42564 #undef strcasecmp
42565 #ifdef __cplusplus
42566 extern "C"
42567 #endif
42568 char strcasecmp ();
42569 #if defined __stub_strcasecmp || defined __stub___strcasecmp
42570 choke me
42571 #endif
42572
42573 int main (void)
42574 {
42575 return strcasecmp ();
42576  ;
42577  return 0;
42578 }
42579
42580 _ACEOF
42581 if ac_fn_c_try_link "$LINENO"
42582 then :
42583
42584     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42585 printf "%s\n" "yes" >&6; }
42586     tst_links_strcasecmp="yes"
42587
42588 else $as_nop
42589
42590     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42591 printf "%s\n" "no" >&6; }
42592     tst_links_strcasecmp="no"
42593
42594 fi
42595 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42596     conftest$ac_exeext conftest.$ac_ext
42597   #
42598   if test "$tst_links_strcasecmp" = "yes"; then
42599     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
42600 printf %s "checking if strcasecmp is prototyped... " >&6; }
42601     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42602 /* end confdefs.h.  */
42603
42604       $curl_includes_string
42605
42606 _ACEOF
42607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42608   $EGREP "strcasecmp" >/dev/null 2>&1
42609 then :
42610
42611       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42612 printf "%s\n" "yes" >&6; }
42613       tst_proto_strcasecmp="yes"
42614
42615 else $as_nop
42616
42617       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42618 printf "%s\n" "no" >&6; }
42619       tst_proto_strcasecmp="no"
42620
42621 fi
42622 rm -rf conftest*
42623
42624   fi
42625   #
42626   if test "$tst_proto_strcasecmp" = "yes"; then
42627     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
42628 printf %s "checking if strcasecmp is compilable... " >&6; }
42629     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42630 /* end confdefs.h.  */
42631
42632
42633         $curl_includes_string
42634
42635 int main (void)
42636 {
42637
42638         if(0 != strcasecmp(0, 0))
42639           return 1;
42640
42641  ;
42642  return 0;
42643 }
42644
42645 _ACEOF
42646 if ac_fn_c_try_compile "$LINENO"
42647 then :
42648
42649       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42650 printf "%s\n" "yes" >&6; }
42651       tst_compi_strcasecmp="yes"
42652
42653 else $as_nop
42654
42655       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42656 printf "%s\n" "no" >&6; }
42657       tst_compi_strcasecmp="no"
42658
42659 fi
42660 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42661   fi
42662   #
42663   if test "$tst_compi_strcasecmp" = "yes"; then
42664     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
42665 printf %s "checking if strcasecmp usage allowed... " >&6; }
42666     if test "x$curl_disallow_strcasecmp" != "xyes"; then
42667       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42668 printf "%s\n" "yes" >&6; }
42669       tst_allow_strcasecmp="yes"
42670     else
42671       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42672 printf "%s\n" "no" >&6; }
42673       tst_allow_strcasecmp="no"
42674     fi
42675   fi
42676   #
42677   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
42678 printf %s "checking if strcasecmp might be used... " >&6; }
42679   if test "$tst_links_strcasecmp" = "yes" &&
42680      test "$tst_proto_strcasecmp" = "yes" &&
42681      test "$tst_compi_strcasecmp" = "yes" &&
42682      test "$tst_allow_strcasecmp" = "yes"; then
42683     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42684 printf "%s\n" "yes" >&6; }
42685
42686 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
42687
42688     curl_cv_func_strcasecmp="yes"
42689   else
42690     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42691 printf "%s\n" "no" >&6; }
42692     curl_cv_func_strcasecmp="no"
42693   fi
42694
42695
42696     #
42697   tst_links_strcmpi="unknown"
42698   tst_proto_strcmpi="unknown"
42699   tst_compi_strcmpi="unknown"
42700   tst_allow_strcmpi="unknown"
42701   #
42702   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
42703 printf %s "checking if strcmpi can be linked... " >&6; }
42704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42705 /* end confdefs.h.  */
42706
42707
42708 #define strcmpi innocuous_strcmpi
42709 #ifdef __STDC__
42710 # include <limits.h>
42711 #else
42712 # include <assert.h>
42713 #endif
42714 #undef strcmpi
42715 #ifdef __cplusplus
42716 extern "C"
42717 #endif
42718 char strcmpi ();
42719 #if defined __stub_strcmpi || defined __stub___strcmpi
42720 choke me
42721 #endif
42722
42723 int main (void)
42724 {
42725 return strcmpi ();
42726  ;
42727  return 0;
42728 }
42729
42730 _ACEOF
42731 if ac_fn_c_try_link "$LINENO"
42732 then :
42733
42734     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42735 printf "%s\n" "yes" >&6; }
42736     tst_links_strcmpi="yes"
42737
42738 else $as_nop
42739
42740     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42741 printf "%s\n" "no" >&6; }
42742     tst_links_strcmpi="no"
42743
42744 fi
42745 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42746     conftest$ac_exeext conftest.$ac_ext
42747   #
42748   if test "$tst_links_strcmpi" = "yes"; then
42749     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
42750 printf %s "checking if strcmpi is prototyped... " >&6; }
42751     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42752 /* end confdefs.h.  */
42753
42754       $curl_includes_string
42755
42756 _ACEOF
42757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42758   $EGREP "strcmpi" >/dev/null 2>&1
42759 then :
42760
42761       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42762 printf "%s\n" "yes" >&6; }
42763       tst_proto_strcmpi="yes"
42764
42765 else $as_nop
42766
42767       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42768 printf "%s\n" "no" >&6; }
42769       tst_proto_strcmpi="no"
42770
42771 fi
42772 rm -rf conftest*
42773
42774   fi
42775   #
42776   if test "$tst_proto_strcmpi" = "yes"; then
42777     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
42778 printf %s "checking if strcmpi is compilable... " >&6; }
42779     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42780 /* end confdefs.h.  */
42781
42782
42783         $curl_includes_string
42784
42785 int main (void)
42786 {
42787
42788         if(0 != strcmpi(0, 0))
42789           return 1;
42790
42791  ;
42792  return 0;
42793 }
42794
42795 _ACEOF
42796 if ac_fn_c_try_compile "$LINENO"
42797 then :
42798
42799       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42800 printf "%s\n" "yes" >&6; }
42801       tst_compi_strcmpi="yes"
42802
42803 else $as_nop
42804
42805       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42806 printf "%s\n" "no" >&6; }
42807       tst_compi_strcmpi="no"
42808
42809 fi
42810 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42811   fi
42812   #
42813   if test "$tst_compi_strcmpi" = "yes"; then
42814     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
42815 printf %s "checking if strcmpi usage allowed... " >&6; }
42816     if test "x$curl_disallow_strcmpi" != "xyes"; then
42817       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42818 printf "%s\n" "yes" >&6; }
42819       tst_allow_strcmpi="yes"
42820     else
42821       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42822 printf "%s\n" "no" >&6; }
42823       tst_allow_strcmpi="no"
42824     fi
42825   fi
42826   #
42827   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
42828 printf %s "checking if strcmpi might be used... " >&6; }
42829   if test "$tst_links_strcmpi" = "yes" &&
42830      test "$tst_proto_strcmpi" = "yes" &&
42831      test "$tst_compi_strcmpi" = "yes" &&
42832      test "$tst_allow_strcmpi" = "yes"; then
42833     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42834 printf "%s\n" "yes" >&6; }
42835
42836 printf "%s\n" "#define HAVE_STRCMPI 1" >>confdefs.h
42837
42838     curl_cv_func_strcmpi="yes"
42839   else
42840     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42841 printf "%s\n" "no" >&6; }
42842     curl_cv_func_strcmpi="no"
42843   fi
42844
42845
42846     #
42847   tst_links_strdup="unknown"
42848   tst_proto_strdup="unknown"
42849   tst_compi_strdup="unknown"
42850   tst_allow_strdup="unknown"
42851   #
42852   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
42853 printf %s "checking if strdup can be linked... " >&6; }
42854   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42855 /* end confdefs.h.  */
42856
42857
42858 #define strdup innocuous_strdup
42859 #ifdef __STDC__
42860 # include <limits.h>
42861 #else
42862 # include <assert.h>
42863 #endif
42864 #undef strdup
42865 #ifdef __cplusplus
42866 extern "C"
42867 #endif
42868 char strdup ();
42869 #if defined __stub_strdup || defined __stub___strdup
42870 choke me
42871 #endif
42872
42873 int main (void)
42874 {
42875 return strdup ();
42876  ;
42877  return 0;
42878 }
42879
42880 _ACEOF
42881 if ac_fn_c_try_link "$LINENO"
42882 then :
42883
42884     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42885 printf "%s\n" "yes" >&6; }
42886     tst_links_strdup="yes"
42887
42888 else $as_nop
42889
42890     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42891 printf "%s\n" "no" >&6; }
42892     tst_links_strdup="no"
42893
42894 fi
42895 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42896     conftest$ac_exeext conftest.$ac_ext
42897   #
42898   if test "$tst_links_strdup" = "yes"; then
42899     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
42900 printf %s "checking if strdup is prototyped... " >&6; }
42901     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42902 /* end confdefs.h.  */
42903
42904       $curl_includes_string
42905
42906 _ACEOF
42907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42908   $EGREP "strdup" >/dev/null 2>&1
42909 then :
42910
42911       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42912 printf "%s\n" "yes" >&6; }
42913       tst_proto_strdup="yes"
42914
42915 else $as_nop
42916
42917       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42918 printf "%s\n" "no" >&6; }
42919       tst_proto_strdup="no"
42920
42921 fi
42922 rm -rf conftest*
42923
42924   fi
42925   #
42926   if test "$tst_proto_strdup" = "yes"; then
42927     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
42928 printf %s "checking if strdup is compilable... " >&6; }
42929     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42930 /* end confdefs.h.  */
42931
42932
42933         $curl_includes_string
42934
42935 int main (void)
42936 {
42937
42938         if(0 != strdup(0))
42939           return 1;
42940
42941  ;
42942  return 0;
42943 }
42944
42945 _ACEOF
42946 if ac_fn_c_try_compile "$LINENO"
42947 then :
42948
42949       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42950 printf "%s\n" "yes" >&6; }
42951       tst_compi_strdup="yes"
42952
42953 else $as_nop
42954
42955       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42956 printf "%s\n" "no" >&6; }
42957       tst_compi_strdup="no"
42958
42959 fi
42960 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42961   fi
42962   #
42963   if test "$tst_compi_strdup" = "yes"; then
42964     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
42965 printf %s "checking if strdup usage allowed... " >&6; }
42966     if test "x$curl_disallow_strdup" != "xyes"; then
42967       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42968 printf "%s\n" "yes" >&6; }
42969       tst_allow_strdup="yes"
42970     else
42971       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42972 printf "%s\n" "no" >&6; }
42973       tst_allow_strdup="no"
42974     fi
42975   fi
42976   #
42977   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
42978 printf %s "checking if strdup might be used... " >&6; }
42979   if test "$tst_links_strdup" = "yes" &&
42980      test "$tst_proto_strdup" = "yes" &&
42981      test "$tst_compi_strdup" = "yes" &&
42982      test "$tst_allow_strdup" = "yes"; then
42983     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42984 printf "%s\n" "yes" >&6; }
42985
42986 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
42987
42988     curl_cv_func_strdup="yes"
42989   else
42990     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42991 printf "%s\n" "no" >&6; }
42992     curl_cv_func_strdup="no"
42993   fi
42994
42995
42996       #
42997   tst_links_strerror_r="unknown"
42998   tst_proto_strerror_r="unknown"
42999   tst_compi_strerror_r="unknown"
43000   tst_glibc_strerror_r="unknown"
43001   tst_posix_strerror_r="unknown"
43002   tst_allow_strerror_r="unknown"
43003   tst_works_glibc_strerror_r="unknown"
43004   tst_works_posix_strerror_r="unknown"
43005   tst_glibc_strerror_r_type_arg3="unknown"
43006   tst_posix_strerror_r_type_arg3="unknown"
43007   #
43008   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
43009 printf %s "checking if strerror_r can be linked... " >&6; }
43010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43011 /* end confdefs.h.  */
43012
43013
43014 #define strerror_r innocuous_strerror_r
43015 #ifdef __STDC__
43016 # include <limits.h>
43017 #else
43018 # include <assert.h>
43019 #endif
43020 #undef strerror_r
43021 #ifdef __cplusplus
43022 extern "C"
43023 #endif
43024 char strerror_r ();
43025 #if defined __stub_strerror_r || defined __stub___strerror_r
43026 choke me
43027 #endif
43028
43029 int main (void)
43030 {
43031 return strerror_r ();
43032  ;
43033  return 0;
43034 }
43035
43036 _ACEOF
43037 if ac_fn_c_try_link "$LINENO"
43038 then :
43039
43040     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43041 printf "%s\n" "yes" >&6; }
43042     tst_links_strerror_r="yes"
43043
43044 else $as_nop
43045
43046     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43047 printf "%s\n" "no" >&6; }
43048     tst_links_strerror_r="no"
43049
43050 fi
43051 rm -f core conftest.err conftest.$ac_objext conftest.beam \
43052     conftest$ac_exeext conftest.$ac_ext
43053   #
43054   if test "$tst_links_strerror_r" = "yes"; then
43055     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
43056 printf %s "checking if strerror_r is prototyped... " >&6; }
43057     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43058 /* end confdefs.h.  */
43059
43060       $curl_includes_string
43061
43062 _ACEOF
43063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43064   $EGREP "strerror_r" >/dev/null 2>&1
43065 then :
43066
43067       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43068 printf "%s\n" "yes" >&6; }
43069       tst_proto_strerror_r="yes"
43070
43071 else $as_nop
43072
43073       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43074 printf "%s\n" "no" >&6; }
43075       tst_proto_strerror_r="no"
43076
43077 fi
43078 rm -rf conftest*
43079
43080   fi
43081   #
43082   if test "$tst_proto_strerror_r" = "yes"; then
43083     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
43084 printf %s "checking if strerror_r is compilable... " >&6; }
43085     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43086 /* end confdefs.h.  */
43087
43088
43089         $curl_includes_string
43090
43091 int main (void)
43092 {
43093
43094         if(0 != strerror_r(0, 0, 0))
43095           return 1;
43096
43097  ;
43098  return 0;
43099 }
43100
43101 _ACEOF
43102 if ac_fn_c_try_compile "$LINENO"
43103 then :
43104
43105       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43106 printf "%s\n" "yes" >&6; }
43107       tst_compi_strerror_r="yes"
43108
43109 else $as_nop
43110
43111       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43112 printf "%s\n" "no" >&6; }
43113       tst_compi_strerror_r="no"
43114
43115 fi
43116 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43117   fi
43118   #
43119   if test "$tst_compi_strerror_r" = "yes"; then
43120     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
43121 printf %s "checking if strerror_r is glibc like... " >&6; }
43122     tst_glibc_strerror_r_type_arg3="unknown"
43123     for arg3 in 'size_t' 'int' 'unsigned int'; do
43124       if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
43125         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43126 /* end confdefs.h.  */
43127
43128
43129             $curl_includes_string
43130             char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
43131
43132 int main (void)
43133 {
43134
43135             if(0 != strerror_r(0, 0, 0))
43136               return 1;
43137
43138  ;
43139  return 0;
43140 }
43141
43142 _ACEOF
43143 if ac_fn_c_try_compile "$LINENO"
43144 then :
43145
43146           tst_glibc_strerror_r_type_arg3="$arg3"
43147
43148 fi
43149 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43150       fi
43151     done
43152     case "$tst_glibc_strerror_r_type_arg3" in
43153       unknown)
43154         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43155 printf "%s\n" "no" >&6; }
43156         tst_glibc_strerror_r="no"
43157         ;;
43158       *)
43159         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43160 printf "%s\n" "yes" >&6; }
43161         tst_glibc_strerror_r="yes"
43162         ;;
43163     esac
43164   fi
43165   #
43166     if test "x$cross_compiling" != "xyes" &&
43167     test "$tst_glibc_strerror_r" = "yes"; then
43168     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
43169 printf %s "checking if strerror_r seems to work... " >&6; }
43170
43171    case $host_os in
43172      darwin*) library_path_var=DYLD_LIBRARY_PATH ;;
43173      *)       library_path_var=LD_LIBRARY_PATH ;;
43174    esac
43175
43176    eval "old=$$library_path_var"
43177    eval "$library_path_var=\$CURL_LIBRARY_PATH:\$old"
43178
43179    eval "export $library_path_var"
43180    if test "$cross_compiling" = yes
43181 then :
43182   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
43183 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
43184 as_fn_error $? "cannot run test program while cross compiling
43185 See \`config.log' for more details" "$LINENO" 5; }
43186 else $as_nop
43187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43188 /* end confdefs.h.  */
43189
43190
43191         $curl_includes_stdlib
43192         $curl_includes_string
43193 #       include <errno.h>
43194
43195 int main (void)
43196 {
43197
43198         char buffer[1024];
43199         char *string = 0;
43200         buffer[0] = '\0';
43201         string = strerror_r(EACCES, buffer, sizeof(buffer));
43202         if(!string)
43203           exit(1); /* fail */
43204         if(!string[0])
43205           exit(1); /* fail */
43206         else
43207           exit(0);
43208
43209  ;
43210  return 0;
43211 }
43212
43213 _ACEOF
43214 if ac_fn_c_try_run "$LINENO"
43215 then :
43216   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43217 printf "%s\n" "yes" >&6; }
43218       tst_works_glibc_strerror_r="yes"
43219
43220 else $as_nop
43221   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43222 printf "%s\n" "no" >&6; }
43223       tst_works_glibc_strerror_r="no"
43224
43225 fi
43226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43227   conftest.$ac_objext conftest.beam conftest.$ac_ext
43228 fi
43229
43230    eval "$library_path_var=\$old" # restore
43231
43232   fi
43233   #
43234   if test "$tst_compi_strerror_r" = "yes" &&
43235     test "$tst_works_glibc_strerror_r" != "yes"; then
43236     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
43237 printf %s "checking if strerror_r is POSIX like... " >&6; }
43238     tst_posix_strerror_r_type_arg3="unknown"
43239     for arg3 in 'size_t' 'int' 'unsigned int'; do
43240       if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
43241         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43242 /* end confdefs.h.  */
43243
43244
43245             $curl_includes_string
43246             int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
43247
43248 int main (void)
43249 {
43250
43251             if(0 != strerror_r(0, 0, 0))
43252               return 1;
43253
43254  ;
43255  return 0;
43256 }
43257
43258 _ACEOF
43259 if ac_fn_c_try_compile "$LINENO"
43260 then :
43261
43262           tst_posix_strerror_r_type_arg3="$arg3"
43263
43264 fi
43265 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43266       fi
43267     done
43268     case "$tst_posix_strerror_r_type_arg3" in
43269       unknown)
43270         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43271 printf "%s\n" "no" >&6; }
43272         tst_posix_strerror_r="no"
43273         ;;
43274       *)
43275         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43276 printf "%s\n" "yes" >&6; }
43277         tst_posix_strerror_r="yes"
43278         ;;
43279     esac
43280   fi
43281   #
43282     if test "x$cross_compiling" != "xyes" &&
43283     test "$tst_posix_strerror_r" = "yes"; then
43284     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
43285 printf %s "checking if strerror_r seems to work... " >&6; }
43286
43287    case $host_os in
43288      darwin*) library_path_var=DYLD_LIBRARY_PATH ;;
43289      *)       library_path_var=LD_LIBRARY_PATH ;;
43290    esac
43291
43292    eval "old=$$library_path_var"
43293    eval "$library_path_var=\$CURL_LIBRARY_PATH:\$old"
43294
43295    eval "export $library_path_var"
43296    if test "$cross_compiling" = yes
43297 then :
43298   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
43299 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
43300 as_fn_error $? "cannot run test program while cross compiling
43301 See \`config.log' for more details" "$LINENO" 5; }
43302 else $as_nop
43303   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43304 /* end confdefs.h.  */
43305
43306
43307         $curl_includes_stdlib
43308         $curl_includes_string
43309 #       include <errno.h>
43310
43311 int main (void)
43312 {
43313
43314         char buffer[1024];
43315         int error = 1;
43316         buffer[0] = '\0';
43317         error = strerror_r(EACCES, buffer, sizeof(buffer));
43318         if(error)
43319           exit(1); /* fail */
43320         if(buffer[0] == '\0')
43321           exit(1); /* fail */
43322         else
43323           exit(0);
43324
43325  ;
43326  return 0;
43327 }
43328
43329 _ACEOF
43330 if ac_fn_c_try_run "$LINENO"
43331 then :
43332   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43333 printf "%s\n" "yes" >&6; }
43334       tst_works_posix_strerror_r="yes"
43335
43336 else $as_nop
43337   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43338 printf "%s\n" "no" >&6; }
43339       tst_works_posix_strerror_r="no"
43340
43341 fi
43342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43343   conftest.$ac_objext conftest.beam conftest.$ac_ext
43344 fi
43345
43346    eval "$library_path_var=\$old" # restore
43347
43348   fi
43349   #
43350   if test "$tst_works_glibc_strerror_r" = "yes"; then
43351     tst_posix_strerror_r="no"
43352   fi
43353   if test "$tst_works_posix_strerror_r" = "yes"; then
43354     tst_glibc_strerror_r="no"
43355   fi
43356   if test "$tst_glibc_strerror_r" = "yes" &&
43357     test "$tst_works_glibc_strerror_r" != "no" &&
43358     test "$tst_posix_strerror_r" != "yes"; then
43359     tst_allow_strerror_r="check"
43360   fi
43361   if test "$tst_posix_strerror_r" = "yes" &&
43362     test "$tst_works_posix_strerror_r" != "no" &&
43363     test "$tst_glibc_strerror_r" != "yes"; then
43364     tst_allow_strerror_r="check"
43365   fi
43366   if test "$tst_allow_strerror_r" = "check"; then
43367     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
43368 printf %s "checking if strerror_r usage allowed... " >&6; }
43369     if test "x$curl_disallow_strerror_r" != "xyes"; then
43370       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43371 printf "%s\n" "yes" >&6; }
43372       tst_allow_strerror_r="yes"
43373     else
43374       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43375 printf "%s\n" "no" >&6; }
43376       tst_allow_strerror_r="no"
43377     fi
43378   fi
43379   #
43380   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
43381 printf %s "checking if strerror_r might be used... " >&6; }
43382   if test "$tst_links_strerror_r" = "yes" &&
43383      test "$tst_proto_strerror_r" = "yes" &&
43384      test "$tst_compi_strerror_r" = "yes" &&
43385      test "$tst_allow_strerror_r" = "yes"; then
43386     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43387 printf "%s\n" "yes" >&6; }
43388     if test "$tst_glibc_strerror_r" = "yes"; then
43389
43390 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
43391
43392
43393 printf "%s\n" "#define HAVE_GLIBC_STRERROR_R 1" >>confdefs.h
43394
43395
43396 printf "%s\n" "#define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3" >>confdefs.h
43397
43398     fi
43399     if test "$tst_posix_strerror_r" = "yes"; then
43400
43401 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
43402
43403
43404 printf "%s\n" "#define HAVE_POSIX_STRERROR_R 1" >>confdefs.h
43405
43406
43407 printf "%s\n" "#define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3" >>confdefs.h
43408
43409     fi
43410     curl_cv_func_strerror_r="yes"
43411   else
43412     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43413 printf "%s\n" "no" >&6; }
43414     curl_cv_func_strerror_r="no"
43415   fi
43416   #
43417   if test "$tst_compi_strerror_r" = "yes" &&
43418      test "$tst_allow_strerror_r" = "unknown"; then
43419     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
43420 printf "%s\n" "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
43421   fi
43422   #
43423
43424
43425     #
43426   tst_links_stricmp="unknown"
43427   tst_proto_stricmp="unknown"
43428   tst_compi_stricmp="unknown"
43429   tst_allow_stricmp="unknown"
43430   #
43431   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
43432 printf %s "checking if stricmp can be linked... " >&6; }
43433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43434 /* end confdefs.h.  */
43435
43436
43437 #define stricmp innocuous_stricmp
43438 #ifdef __STDC__
43439 # include <limits.h>
43440 #else
43441 # include <assert.h>
43442 #endif
43443 #undef stricmp
43444 #ifdef __cplusplus
43445 extern "C"
43446 #endif
43447 char stricmp ();
43448 #if defined __stub_stricmp || defined __stub___stricmp
43449 choke me
43450 #endif
43451
43452 int main (void)
43453 {
43454 return stricmp ();
43455  ;
43456  return 0;
43457 }
43458
43459 _ACEOF
43460 if ac_fn_c_try_link "$LINENO"
43461 then :
43462
43463     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43464 printf "%s\n" "yes" >&6; }
43465     tst_links_stricmp="yes"
43466
43467 else $as_nop
43468
43469     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43470 printf "%s\n" "no" >&6; }
43471     tst_links_stricmp="no"
43472
43473 fi
43474 rm -f core conftest.err conftest.$ac_objext conftest.beam \
43475     conftest$ac_exeext conftest.$ac_ext
43476   #
43477   if test "$tst_links_stricmp" = "yes"; then
43478     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
43479 printf %s "checking if stricmp is prototyped... " >&6; }
43480     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43481 /* end confdefs.h.  */
43482
43483       $curl_includes_string
43484
43485 _ACEOF
43486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43487   $EGREP "stricmp" >/dev/null 2>&1
43488 then :
43489
43490       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43491 printf "%s\n" "yes" >&6; }
43492       tst_proto_stricmp="yes"
43493
43494 else $as_nop
43495
43496       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43497 printf "%s\n" "no" >&6; }
43498       tst_proto_stricmp="no"
43499
43500 fi
43501 rm -rf conftest*
43502
43503   fi
43504   #
43505   if test "$tst_proto_stricmp" = "yes"; then
43506     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
43507 printf %s "checking if stricmp is compilable... " >&6; }
43508     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43509 /* end confdefs.h.  */
43510
43511
43512         $curl_includes_string
43513
43514 int main (void)
43515 {
43516
43517         if(0 != stricmp(0, 0))
43518           return 1;
43519
43520  ;
43521  return 0;
43522 }
43523
43524 _ACEOF
43525 if ac_fn_c_try_compile "$LINENO"
43526 then :
43527
43528       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43529 printf "%s\n" "yes" >&6; }
43530       tst_compi_stricmp="yes"
43531
43532 else $as_nop
43533
43534       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43535 printf "%s\n" "no" >&6; }
43536       tst_compi_stricmp="no"
43537
43538 fi
43539 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43540   fi
43541   #
43542   if test "$tst_compi_stricmp" = "yes"; then
43543     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
43544 printf %s "checking if stricmp usage allowed... " >&6; }
43545     if test "x$curl_disallow_stricmp" != "xyes"; then
43546       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43547 printf "%s\n" "yes" >&6; }
43548       tst_allow_stricmp="yes"
43549     else
43550       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43551 printf "%s\n" "no" >&6; }
43552       tst_allow_stricmp="no"
43553     fi
43554   fi
43555   #
43556   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
43557 printf %s "checking if stricmp might be used... " >&6; }
43558   if test "$tst_links_stricmp" = "yes" &&
43559      test "$tst_proto_stricmp" = "yes" &&
43560      test "$tst_compi_stricmp" = "yes" &&
43561      test "$tst_allow_stricmp" = "yes"; then
43562     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43563 printf "%s\n" "yes" >&6; }
43564
43565 printf "%s\n" "#define HAVE_STRICMP 1" >>confdefs.h
43566
43567     curl_cv_func_stricmp="yes"
43568   else
43569     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43570 printf "%s\n" "no" >&6; }
43571     curl_cv_func_stricmp="no"
43572   fi
43573
43574
43575     #
43576   tst_links_strncmpi="unknown"
43577   tst_proto_strncmpi="unknown"
43578   tst_compi_strncmpi="unknown"
43579   tst_allow_strncmpi="unknown"
43580   #
43581   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
43582 printf %s "checking if strncmpi can be linked... " >&6; }
43583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43584 /* end confdefs.h.  */
43585
43586
43587 #define strncmpi innocuous_strncmpi
43588 #ifdef __STDC__
43589 # include <limits.h>
43590 #else
43591 # include <assert.h>
43592 #endif
43593 #undef strncmpi
43594 #ifdef __cplusplus
43595 extern "C"
43596 #endif
43597 char strncmpi ();
43598 #if defined __stub_strncmpi || defined __stub___strncmpi
43599 choke me
43600 #endif
43601
43602 int main (void)
43603 {
43604 return strncmpi ();
43605  ;
43606  return 0;
43607 }
43608
43609 _ACEOF
43610 if ac_fn_c_try_link "$LINENO"
43611 then :
43612
43613     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43614 printf "%s\n" "yes" >&6; }
43615     tst_links_strncmpi="yes"
43616
43617 else $as_nop
43618
43619     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43620 printf "%s\n" "no" >&6; }
43621     tst_links_strncmpi="no"
43622
43623 fi
43624 rm -f core conftest.err conftest.$ac_objext conftest.beam \
43625     conftest$ac_exeext conftest.$ac_ext
43626   #
43627   if test "$tst_links_strncmpi" = "yes"; then
43628     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
43629 printf %s "checking if strncmpi is prototyped... " >&6; }
43630     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43631 /* end confdefs.h.  */
43632
43633       $curl_includes_string
43634
43635 _ACEOF
43636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43637   $EGREP "strncmpi" >/dev/null 2>&1
43638 then :
43639
43640       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43641 printf "%s\n" "yes" >&6; }
43642       tst_proto_strncmpi="yes"
43643
43644 else $as_nop
43645
43646       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43647 printf "%s\n" "no" >&6; }
43648       tst_proto_strncmpi="no"
43649
43650 fi
43651 rm -rf conftest*
43652
43653   fi
43654   #
43655   if test "$tst_proto_strncmpi" = "yes"; then
43656     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
43657 printf %s "checking if strncmpi is compilable... " >&6; }
43658     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43659 /* end confdefs.h.  */
43660
43661
43662         $curl_includes_string
43663
43664 int main (void)
43665 {
43666
43667         if(0 != strncmpi(0, 0))
43668           return 1;
43669
43670  ;
43671  return 0;
43672 }
43673
43674 _ACEOF
43675 if ac_fn_c_try_compile "$LINENO"
43676 then :
43677
43678       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43679 printf "%s\n" "yes" >&6; }
43680       tst_compi_strncmpi="yes"
43681
43682 else $as_nop
43683
43684       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43685 printf "%s\n" "no" >&6; }
43686       tst_compi_strncmpi="no"
43687
43688 fi
43689 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43690   fi
43691   #
43692   if test "$tst_compi_strncmpi" = "yes"; then
43693     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
43694 printf %s "checking if strncmpi usage allowed... " >&6; }
43695     if test "x$curl_disallow_strncmpi" != "xyes"; then
43696       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43697 printf "%s\n" "yes" >&6; }
43698       tst_allow_strncmpi="yes"
43699     else
43700       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43701 printf "%s\n" "no" >&6; }
43702       tst_allow_strncmpi="no"
43703     fi
43704   fi
43705   #
43706   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
43707 printf %s "checking if strncmpi might be used... " >&6; }
43708   if test "$tst_links_strncmpi" = "yes" &&
43709      test "$tst_proto_strncmpi" = "yes" &&
43710      test "$tst_compi_strncmpi" = "yes" &&
43711      test "$tst_allow_strncmpi" = "yes"; then
43712     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43713 printf "%s\n" "yes" >&6; }
43714
43715 printf "%s\n" "#define HAVE_STRNCMPI 1" >>confdefs.h
43716
43717     curl_cv_func_strncmpi="yes"
43718   else
43719     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43720 printf "%s\n" "no" >&6; }
43721     curl_cv_func_strncmpi="no"
43722   fi
43723
43724
43725     #
43726   tst_links_strnicmp="unknown"
43727   tst_proto_strnicmp="unknown"
43728   tst_compi_strnicmp="unknown"
43729   tst_allow_strnicmp="unknown"
43730   #
43731   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
43732 printf %s "checking if strnicmp can be linked... " >&6; }
43733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43734 /* end confdefs.h.  */
43735
43736
43737 #define strnicmp innocuous_strnicmp
43738 #ifdef __STDC__
43739 # include <limits.h>
43740 #else
43741 # include <assert.h>
43742 #endif
43743 #undef strnicmp
43744 #ifdef __cplusplus
43745 extern "C"
43746 #endif
43747 char strnicmp ();
43748 #if defined __stub_strnicmp || defined __stub___strnicmp
43749 choke me
43750 #endif
43751
43752 int main (void)
43753 {
43754 return strnicmp ();
43755  ;
43756  return 0;
43757 }
43758
43759 _ACEOF
43760 if ac_fn_c_try_link "$LINENO"
43761 then :
43762
43763     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43764 printf "%s\n" "yes" >&6; }
43765     tst_links_strnicmp="yes"
43766
43767 else $as_nop
43768
43769     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43770 printf "%s\n" "no" >&6; }
43771     tst_links_strnicmp="no"
43772
43773 fi
43774 rm -f core conftest.err conftest.$ac_objext conftest.beam \
43775     conftest$ac_exeext conftest.$ac_ext
43776   #
43777   if test "$tst_links_strnicmp" = "yes"; then
43778     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
43779 printf %s "checking if strnicmp is prototyped... " >&6; }
43780     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43781 /* end confdefs.h.  */
43782
43783       $curl_includes_string
43784
43785 _ACEOF
43786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43787   $EGREP "strnicmp" >/dev/null 2>&1
43788 then :
43789
43790       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43791 printf "%s\n" "yes" >&6; }
43792       tst_proto_strnicmp="yes"
43793
43794 else $as_nop
43795
43796       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43797 printf "%s\n" "no" >&6; }
43798       tst_proto_strnicmp="no"
43799
43800 fi
43801 rm -rf conftest*
43802
43803   fi
43804   #
43805   if test "$tst_proto_strnicmp" = "yes"; then
43806     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
43807 printf %s "checking if strnicmp is compilable... " >&6; }
43808     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43809 /* end confdefs.h.  */
43810
43811
43812         $curl_includes_string
43813
43814 int main (void)
43815 {
43816
43817         if(0 != strnicmp(0, 0))
43818           return 1;
43819
43820  ;
43821  return 0;
43822 }
43823
43824 _ACEOF
43825 if ac_fn_c_try_compile "$LINENO"
43826 then :
43827
43828       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43829 printf "%s\n" "yes" >&6; }
43830       tst_compi_strnicmp="yes"
43831
43832 else $as_nop
43833
43834       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43835 printf "%s\n" "no" >&6; }
43836       tst_compi_strnicmp="no"
43837
43838 fi
43839 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43840   fi
43841   #
43842   if test "$tst_compi_strnicmp" = "yes"; then
43843     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
43844 printf %s "checking if strnicmp usage allowed... " >&6; }
43845     if test "x$curl_disallow_strnicmp" != "xyes"; then
43846       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43847 printf "%s\n" "yes" >&6; }
43848       tst_allow_strnicmp="yes"
43849     else
43850       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43851 printf "%s\n" "no" >&6; }
43852       tst_allow_strnicmp="no"
43853     fi
43854   fi
43855   #
43856   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
43857 printf %s "checking if strnicmp might be used... " >&6; }
43858   if test "$tst_links_strnicmp" = "yes" &&
43859      test "$tst_proto_strnicmp" = "yes" &&
43860      test "$tst_compi_strnicmp" = "yes" &&
43861      test "$tst_allow_strnicmp" = "yes"; then
43862     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43863 printf "%s\n" "yes" >&6; }
43864
43865 printf "%s\n" "#define HAVE_STRNICMP 1" >>confdefs.h
43866
43867     curl_cv_func_strnicmp="yes"
43868   else
43869     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43870 printf "%s\n" "no" >&6; }
43871     curl_cv_func_strnicmp="no"
43872   fi
43873
43874
43875     #
43876   tst_links_strstr="unknown"
43877   tst_proto_strstr="unknown"
43878   tst_compi_strstr="unknown"
43879   tst_allow_strstr="unknown"
43880   #
43881   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
43882 printf %s "checking if strstr can be linked... " >&6; }
43883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43884 /* end confdefs.h.  */
43885
43886
43887 #define strstr innocuous_strstr
43888 #ifdef __STDC__
43889 # include <limits.h>
43890 #else
43891 # include <assert.h>
43892 #endif
43893 #undef strstr
43894 #ifdef __cplusplus
43895 extern "C"
43896 #endif
43897 char strstr ();
43898 #if defined __stub_strstr || defined __stub___strstr
43899 choke me
43900 #endif
43901
43902 int main (void)
43903 {
43904 return strstr ();
43905  ;
43906  return 0;
43907 }
43908
43909 _ACEOF
43910 if ac_fn_c_try_link "$LINENO"
43911 then :
43912
43913     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43914 printf "%s\n" "yes" >&6; }
43915     tst_links_strstr="yes"
43916
43917 else $as_nop
43918
43919     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43920 printf "%s\n" "no" >&6; }
43921     tst_links_strstr="no"
43922
43923 fi
43924 rm -f core conftest.err conftest.$ac_objext conftest.beam \
43925     conftest$ac_exeext conftest.$ac_ext
43926   #
43927   if test "$tst_links_strstr" = "yes"; then
43928     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
43929 printf %s "checking if strstr is prototyped... " >&6; }
43930     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43931 /* end confdefs.h.  */
43932
43933       $curl_includes_string
43934
43935 _ACEOF
43936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43937   $EGREP "strstr" >/dev/null 2>&1
43938 then :
43939
43940       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43941 printf "%s\n" "yes" >&6; }
43942       tst_proto_strstr="yes"
43943
43944 else $as_nop
43945
43946       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43947 printf "%s\n" "no" >&6; }
43948       tst_proto_strstr="no"
43949
43950 fi
43951 rm -rf conftest*
43952
43953   fi
43954   #
43955   if test "$tst_proto_strstr" = "yes"; then
43956     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
43957 printf %s "checking if strstr is compilable... " >&6; }
43958     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43959 /* end confdefs.h.  */
43960
43961
43962         $curl_includes_string
43963
43964 int main (void)
43965 {
43966
43967         if(0 != strstr(0, 0))
43968           return 1;
43969
43970  ;
43971  return 0;
43972 }
43973
43974 _ACEOF
43975 if ac_fn_c_try_compile "$LINENO"
43976 then :
43977
43978       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43979 printf "%s\n" "yes" >&6; }
43980       tst_compi_strstr="yes"
43981
43982 else $as_nop
43983
43984       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43985 printf "%s\n" "no" >&6; }
43986       tst_compi_strstr="no"
43987
43988 fi
43989 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43990   fi
43991   #
43992   if test "$tst_compi_strstr" = "yes"; then
43993     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
43994 printf %s "checking if strstr usage allowed... " >&6; }
43995     if test "x$curl_disallow_strstr" != "xyes"; then
43996       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43997 printf "%s\n" "yes" >&6; }
43998       tst_allow_strstr="yes"
43999     else
44000       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44001 printf "%s\n" "no" >&6; }
44002       tst_allow_strstr="no"
44003     fi
44004   fi
44005   #
44006   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
44007 printf %s "checking if strstr might be used... " >&6; }
44008   if test "$tst_links_strstr" = "yes" &&
44009      test "$tst_proto_strstr" = "yes" &&
44010      test "$tst_compi_strstr" = "yes" &&
44011      test "$tst_allow_strstr" = "yes"; then
44012     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44013 printf "%s\n" "yes" >&6; }
44014
44015 printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
44016
44017     curl_cv_func_strstr="yes"
44018   else
44019     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44020 printf "%s\n" "no" >&6; }
44021     curl_cv_func_strstr="no"
44022   fi
44023
44024
44025     #
44026   tst_links_strtok_r="unknown"
44027   tst_proto_strtok_r="unknown"
44028   tst_compi_strtok_r="unknown"
44029   tst_allow_strtok_r="unknown"
44030   #
44031   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
44032 printf %s "checking if strtok_r can be linked... " >&6; }
44033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44034 /* end confdefs.h.  */
44035
44036
44037 #define strtok_r innocuous_strtok_r
44038 #ifdef __STDC__
44039 # include <limits.h>
44040 #else
44041 # include <assert.h>
44042 #endif
44043 #undef strtok_r
44044 #ifdef __cplusplus
44045 extern "C"
44046 #endif
44047 char strtok_r ();
44048 #if defined __stub_strtok_r || defined __stub___strtok_r
44049 choke me
44050 #endif
44051
44052 int main (void)
44053 {
44054 return strtok_r ();
44055  ;
44056  return 0;
44057 }
44058
44059 _ACEOF
44060 if ac_fn_c_try_link "$LINENO"
44061 then :
44062
44063     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44064 printf "%s\n" "yes" >&6; }
44065     tst_links_strtok_r="yes"
44066
44067 else $as_nop
44068
44069     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44070 printf "%s\n" "no" >&6; }
44071     tst_links_strtok_r="no"
44072
44073 fi
44074 rm -f core conftest.err conftest.$ac_objext conftest.beam \
44075     conftest$ac_exeext conftest.$ac_ext
44076   #
44077   if test "$tst_links_strtok_r" = "yes"; then
44078     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
44079 printf %s "checking if strtok_r is prototyped... " >&6; }
44080     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44081 /* end confdefs.h.  */
44082
44083       $curl_includes_string
44084
44085 _ACEOF
44086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44087   $EGREP "strtok_r" >/dev/null 2>&1
44088 then :
44089
44090       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44091 printf "%s\n" "yes" >&6; }
44092       tst_proto_strtok_r="yes"
44093
44094 else $as_nop
44095
44096       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44097 printf "%s\n" "no" >&6; }
44098       tst_proto_strtok_r="no"
44099
44100 fi
44101 rm -rf conftest*
44102
44103   fi
44104   #
44105   if test "$tst_proto_strtok_r" = "yes"; then
44106     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
44107 printf %s "checking if strtok_r is compilable... " >&6; }
44108     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44109 /* end confdefs.h.  */
44110
44111
44112         $curl_includes_string
44113
44114 int main (void)
44115 {
44116
44117         if(0 != strtok_r(0, 0, 0))
44118           return 1;
44119
44120  ;
44121  return 0;
44122 }
44123
44124 _ACEOF
44125 if ac_fn_c_try_compile "$LINENO"
44126 then :
44127
44128       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44129 printf "%s\n" "yes" >&6; }
44130       tst_compi_strtok_r="yes"
44131
44132 else $as_nop
44133
44134       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44135 printf "%s\n" "no" >&6; }
44136       tst_compi_strtok_r="no"
44137
44138 fi
44139 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
44140   fi
44141   #
44142   if test "$tst_compi_strtok_r" = "yes"; then
44143     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
44144 printf %s "checking if strtok_r usage allowed... " >&6; }
44145     if test "x$curl_disallow_strtok_r" != "xyes"; then
44146       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44147 printf "%s\n" "yes" >&6; }
44148       tst_allow_strtok_r="yes"
44149     else
44150       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44151 printf "%s\n" "no" >&6; }
44152       tst_allow_strtok_r="no"
44153     fi
44154   fi
44155   #
44156   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
44157 printf %s "checking if strtok_r might be used... " >&6; }
44158   if test "$tst_links_strtok_r" = "yes" &&
44159      test "$tst_proto_strtok_r" = "yes" &&
44160      test "$tst_compi_strtok_r" = "yes" &&
44161      test "$tst_allow_strtok_r" = "yes"; then
44162     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44163 printf "%s\n" "yes" >&6; }
44164
44165 printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
44166
44167     curl_cv_func_strtok_r="yes"
44168   else
44169     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44170 printf "%s\n" "no" >&6; }
44171     curl_cv_func_strtok_r="no"
44172   fi
44173
44174
44175     #
44176   tst_links_strtoll="unknown"
44177   tst_proto_strtoll="unknown"
44178   tst_compi_strtoll="unknown"
44179   tst_allow_strtoll="unknown"
44180   #
44181   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
44182 printf %s "checking if strtoll can be linked... " >&6; }
44183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44184 /* end confdefs.h.  */
44185
44186
44187 #define strtoll innocuous_strtoll
44188 #ifdef __STDC__
44189 # include <limits.h>
44190 #else
44191 # include <assert.h>
44192 #endif
44193 #undef strtoll
44194 #ifdef __cplusplus
44195 extern "C"
44196 #endif
44197 char strtoll ();
44198 #if defined __stub_strtoll || defined __stub___strtoll
44199 choke me
44200 #endif
44201
44202 int main (void)
44203 {
44204 return strtoll ();
44205  ;
44206  return 0;
44207 }
44208
44209 _ACEOF
44210 if ac_fn_c_try_link "$LINENO"
44211 then :
44212
44213     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44214 printf "%s\n" "yes" >&6; }
44215     tst_links_strtoll="yes"
44216
44217 else $as_nop
44218
44219     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44220 printf "%s\n" "no" >&6; }
44221     tst_links_strtoll="no"
44222
44223 fi
44224 rm -f core conftest.err conftest.$ac_objext conftest.beam \
44225     conftest$ac_exeext conftest.$ac_ext
44226   #
44227   if test "$tst_links_strtoll" = "yes"; then
44228     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
44229 printf %s "checking if strtoll is prototyped... " >&6; }
44230     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44231 /* end confdefs.h.  */
44232
44233       $curl_includes_stdlib
44234
44235 _ACEOF
44236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44237   $EGREP "strtoll" >/dev/null 2>&1
44238 then :
44239
44240       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44241 printf "%s\n" "yes" >&6; }
44242       tst_proto_strtoll="yes"
44243
44244 else $as_nop
44245
44246       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44247 printf "%s\n" "no" >&6; }
44248       tst_proto_strtoll="no"
44249
44250 fi
44251 rm -rf conftest*
44252
44253   fi
44254   #
44255   if test "$tst_proto_strtoll" = "yes"; then
44256     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
44257 printf %s "checking if strtoll is compilable... " >&6; }
44258     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44259 /* end confdefs.h.  */
44260
44261
44262         $curl_includes_stdlib
44263
44264 int main (void)
44265 {
44266
44267         if(0 != strtoll(0, 0, 0))
44268           return 1;
44269
44270  ;
44271  return 0;
44272 }
44273
44274 _ACEOF
44275 if ac_fn_c_try_compile "$LINENO"
44276 then :
44277
44278       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44279 printf "%s\n" "yes" >&6; }
44280       tst_compi_strtoll="yes"
44281
44282 else $as_nop
44283
44284       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44285 printf "%s\n" "no" >&6; }
44286       tst_compi_strtoll="no"
44287
44288 fi
44289 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
44290   fi
44291   #
44292   if test "$tst_compi_strtoll" = "yes"; then
44293     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
44294 printf %s "checking if strtoll usage allowed... " >&6; }
44295     if test "x$curl_disallow_strtoll" != "xyes"; then
44296       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44297 printf "%s\n" "yes" >&6; }
44298       tst_allow_strtoll="yes"
44299     else
44300       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44301 printf "%s\n" "no" >&6; }
44302       tst_allow_strtoll="no"
44303     fi
44304   fi
44305   #
44306   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
44307 printf %s "checking if strtoll might be used... " >&6; }
44308   if test "$tst_links_strtoll" = "yes" &&
44309      test "$tst_proto_strtoll" = "yes" &&
44310      test "$tst_compi_strtoll" = "yes" &&
44311      test "$tst_allow_strtoll" = "yes"; then
44312     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44313 printf "%s\n" "yes" >&6; }
44314
44315 printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
44316
44317     curl_cv_func_strtoll="yes"
44318   else
44319     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44320 printf "%s\n" "no" >&6; }
44321     curl_cv_func_strtoll="no"
44322   fi
44323
44324
44325 curl_includes_sys_uio="\
44326 /* includes start */
44327 #ifdef HAVE_SYS_TYPES_H
44328 #  include <sys/types.h>
44329 #endif
44330 #ifdef HAVE_SYS_UIO_H
44331 #  include <sys/uio.h>
44332 #endif
44333 /* includes end */"
44334   ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_sys_uio
44335 "
44336 if test "x$ac_cv_header_sys_types_h" = xyes
44337 then :
44338   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
44339
44340 fi
44341 ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$curl_includes_sys_uio
44342 "
44343 if test "x$ac_cv_header_sys_uio_h" = xyes
44344 then :
44345   printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
44346
44347 fi
44348
44349
44350
44351     #
44352   tst_links_writev="unknown"
44353   tst_proto_writev="unknown"
44354   tst_compi_writev="unknown"
44355   tst_allow_writev="unknown"
44356   #
44357   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
44358 printf %s "checking if writev can be linked... " >&6; }
44359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44360 /* end confdefs.h.  */
44361
44362
44363 #define writev innocuous_writev
44364 #ifdef __STDC__
44365 # include <limits.h>
44366 #else
44367 # include <assert.h>
44368 #endif
44369 #undef writev
44370 #ifdef __cplusplus
44371 extern "C"
44372 #endif
44373 char writev ();
44374 #if defined __stub_writev || defined __stub___writev
44375 choke me
44376 #endif
44377
44378 int main (void)
44379 {
44380 return writev ();
44381  ;
44382  return 0;
44383 }
44384
44385 _ACEOF
44386 if ac_fn_c_try_link "$LINENO"
44387 then :
44388
44389     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44390 printf "%s\n" "yes" >&6; }
44391     tst_links_writev="yes"
44392
44393 else $as_nop
44394
44395     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44396 printf "%s\n" "no" >&6; }
44397     tst_links_writev="no"
44398
44399 fi
44400 rm -f core conftest.err conftest.$ac_objext conftest.beam \
44401     conftest$ac_exeext conftest.$ac_ext
44402   #
44403   if test "$tst_links_writev" = "yes"; then
44404     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
44405 printf %s "checking if writev is prototyped... " >&6; }
44406     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44407 /* end confdefs.h.  */
44408
44409       $curl_includes_sys_uio
44410
44411 _ACEOF
44412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44413   $EGREP "writev" >/dev/null 2>&1
44414 then :
44415
44416       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44417 printf "%s\n" "yes" >&6; }
44418       tst_proto_writev="yes"
44419
44420 else $as_nop
44421
44422       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44423 printf "%s\n" "no" >&6; }
44424       tst_proto_writev="no"
44425
44426 fi
44427 rm -rf conftest*
44428
44429   fi
44430   #
44431   if test "$tst_proto_writev" = "yes"; then
44432     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
44433 printf %s "checking if writev is compilable... " >&6; }
44434     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44435 /* end confdefs.h.  */
44436
44437
44438         $curl_includes_sys_uio
44439
44440 int main (void)
44441 {
44442
44443         if(0 != writev(0, 0, 0))
44444           return 1;
44445
44446  ;
44447  return 0;
44448 }
44449
44450 _ACEOF
44451 if ac_fn_c_try_compile "$LINENO"
44452 then :
44453
44454       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44455 printf "%s\n" "yes" >&6; }
44456       tst_compi_writev="yes"
44457
44458 else $as_nop
44459
44460       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44461 printf "%s\n" "no" >&6; }
44462       tst_compi_writev="no"
44463
44464 fi
44465 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
44466   fi
44467   #
44468   if test "$tst_compi_writev" = "yes"; then
44469     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
44470 printf %s "checking if writev usage allowed... " >&6; }
44471     if test "x$curl_disallow_writev" != "xyes"; then
44472       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44473 printf "%s\n" "yes" >&6; }
44474       tst_allow_writev="yes"
44475     else
44476       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44477 printf "%s\n" "no" >&6; }
44478       tst_allow_writev="no"
44479     fi
44480   fi
44481   #
44482   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
44483 printf %s "checking if writev might be used... " >&6; }
44484   if test "$tst_links_writev" = "yes" &&
44485      test "$tst_proto_writev" = "yes" &&
44486      test "$tst_compi_writev" = "yes" &&
44487      test "$tst_allow_writev" = "yes"; then
44488     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44489 printf "%s\n" "yes" >&6; }
44490
44491 printf "%s\n" "#define HAVE_WRITEV 1" >>confdefs.h
44492
44493     curl_cv_func_writev="yes"
44494   else
44495     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44496 printf "%s\n" "no" >&6; }
44497     curl_cv_func_writev="no"
44498   fi
44499
44500
44501 case $host in
44502   *msdosdjgpp)
44503      ac_cv_func_pipe=no
44504      skipcheck_pipe=yes
44505      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
44506 printf "%s\n" "$as_me: skip check for pipe on msdosdjgpp" >&6;}
44507     ;;
44508 esac
44509
44510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
44511 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
44512 if test ${ac_cv_c_undeclared_builtin_options+y}
44513 then :
44514   printf %s "(cached) " >&6
44515 else $as_nop
44516   ac_save_CFLAGS=$CFLAGS
44517    ac_cv_c_undeclared_builtin_options='cannot detect'
44518    for ac_arg in '' -fno-builtin; do
44519      CFLAGS="$ac_save_CFLAGS $ac_arg"
44520      # This test program should *not* compile successfully.
44521      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44522 /* end confdefs.h.  */
44523
44524 int main (void)
44525 {
44526 (void) strchr;
44527  ;
44528  return 0;
44529 }
44530 _ACEOF
44531 if ac_fn_c_try_compile "$LINENO"
44532 then :
44533
44534 else $as_nop
44535   # This test program should compile successfully.
44536         # No library function is consistently available on
44537         # freestanding implementations, so test against a dummy
44538         # declaration.  Include always-available headers on the
44539         # off chance that they somehow elicit warnings.
44540         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44541 /* end confdefs.h.  */
44542 #include <float.h>
44543 #include <limits.h>
44544 #include <stdarg.h>
44545 #include <stddef.h>
44546 extern void ac_decl (int, char *);
44547
44548 int main (void)
44549 {
44550 (void) ac_decl (0, (char *) 0);
44551   (void) ac_decl;
44552
44553  ;
44554  return 0;
44555 }
44556 _ACEOF
44557 if ac_fn_c_try_compile "$LINENO"
44558 then :
44559   if test x"$ac_arg" = x
44560 then :
44561   ac_cv_c_undeclared_builtin_options='none needed'
44562 else $as_nop
44563   ac_cv_c_undeclared_builtin_options=$ac_arg
44564 fi
44565           break
44566 fi
44567 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
44568 fi
44569 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
44570     done
44571     CFLAGS=$ac_save_CFLAGS
44572
44573 fi
44574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
44575 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
44576   case $ac_cv_c_undeclared_builtin_options in #(
44577   'cannot detect') :
44578     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
44579 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
44580 as_fn_error $? "cannot make $CC report undeclared builtins
44581 See \`config.log' for more details" "$LINENO" 5; } ;; #(
44582   'none needed') :
44583     ac_c_undeclared_builtin_options='' ;; #(
44584   *) :
44585     ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
44586 esac
44587
44588 ac_fn_check_decl "$LINENO" "getpwuid_r" "ac_cv_have_decl_getpwuid_r" "#include <pwd.h>
44589           #include <sys/types.h>
44590 " "$ac_c_undeclared_builtin_options" "CFLAGS"
44591 if test "x$ac_cv_have_decl_getpwuid_r" = xyes
44592 then :
44593   ac_have_decl=1
44594 else $as_nop
44595   ac_have_decl=0
44596 fi
44597 printf "%s\n" "#define HAVE_DECL_GETPWUID_R $ac_have_decl" >>confdefs.h
44598 if test $ac_have_decl = 1
44599 then :
44600
44601 else $as_nop
44602
44603 printf "%s\n" "#define HAVE_DECL_GETPWUID_R_MISSING 1" >>confdefs.h
44604
44605 fi
44606
44607
44608
44609
44610   for ac_func in fnmatch geteuid getpass_r getppid getpwuid getpwuid_r getrlimit gettimeofday if_nametoindex mach_absolute_time pipe setlocale setmode setrlimit usleep utime utimes
44611 do :
44612   as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
44613 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
44614 if eval test \"x\$"$as_ac_var"\" = x"yes"
44615 then :
44616   cat >>confdefs.h <<_ACEOF
44617 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
44618 _ACEOF
44619
44620
44621 else $as_nop
44622
44623   func="$ac_func"
44624   eval skipcheck=\$skipcheck_$func
44625   if test "x$skipcheck" != "xyes"; then
44626     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
44627 printf %s "checking deeper for $func... " >&6; }
44628     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44629 /* end confdefs.h.  */
44630
44631
44632
44633 int main (void)
44634 {
44635
44636         $func ();
44637
44638  ;
44639  return 0;
44640 }
44641
44642 _ACEOF
44643 if ac_fn_c_try_link "$LINENO"
44644 then :
44645
44646       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44647 printf "%s\n" "yes" >&6; }
44648       eval "ac_cv_func_$func=yes"
44649
44650 cat >>confdefs.h <<_ACEOF
44651 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
44652 _ACEOF
44653
44654
44655 else $as_nop
44656
44657       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
44658 printf "%s\n" "but still no" >&6; }
44659
44660 fi
44661 rm -f core conftest.err conftest.$ac_objext conftest.beam \
44662     conftest$ac_exeext conftest.$ac_ext
44663   fi
44664
44665 fi
44666
44667 done
44668
44669
44670             #
44671   tst_method="unknown"
44672
44673   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
44674 printf %s "checking how to set a socket into non-blocking mode... " >&6; }
44675   if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
44676     tst_method="fcntl O_NONBLOCK"
44677   elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
44678     tst_method="ioctl FIONBIO"
44679   elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
44680     tst_method="ioctlsocket FIONBIO"
44681   elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
44682     tst_method="IoctlSocket FIONBIO"
44683   elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
44684     tst_method="setsockopt SO_NONBLOCK"
44685   fi
44686   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
44687 printf "%s\n" "$tst_method" >&6; }
44688   if test "$tst_method" = "unknown"; then
44689     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
44690 printf "%s\n" "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
44691   fi
44692
44693
44694
44695 # Extract the first word of "perl", so it can be a program name with args.
44696 set dummy perl; ac_word=$2
44697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44698 printf %s "checking for $ac_word... " >&6; }
44699 if test ${ac_cv_path_PERL+y}
44700 then :
44701   printf %s "(cached) " >&6
44702 else $as_nop
44703   case $PERL in
44704   [\\/]* | ?:[\\/]*)
44705   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
44706   ;;
44707   *)
44708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44709 as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
44710 for as_dir in $as_dummy
44711 do
44712   IFS=$as_save_IFS
44713   case $as_dir in #(((
44714     '') as_dir=./ ;;
44715     */) ;;
44716     *) as_dir=$as_dir/ ;;
44717   esac
44718     for ac_exec_ext in '' $ac_executable_extensions; do
44719   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
44720     ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
44721     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
44722     break 2
44723   fi
44724 done
44725   done
44726 IFS=$as_save_IFS
44727
44728   ;;
44729 esac
44730 fi
44731 PERL=$ac_cv_path_PERL
44732 if test -n "$PERL"; then
44733   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
44734 printf "%s\n" "$PERL" >&6; }
44735 else
44736   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44737 printf "%s\n" "no" >&6; }
44738 fi
44739
44740
44741
44742
44743 for ac_prog in gnroff nroff
44744 do
44745   # Extract the first word of "$ac_prog", so it can be a program name with args.
44746 set dummy $ac_prog; ac_word=$2
44747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44748 printf %s "checking for $ac_word... " >&6; }
44749 if test ${ac_cv_path_NROFF+y}
44750 then :
44751   printf %s "(cached) " >&6
44752 else $as_nop
44753   case $NROFF in
44754   [\\/]* | ?:[\\/]*)
44755   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
44756   ;;
44757   *)
44758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44759 as_dummy="$PATH:/usr/bin/:/usr/local/bin "
44760 for as_dir in $as_dummy
44761 do
44762   IFS=$as_save_IFS
44763   case $as_dir in #(((
44764     '') as_dir=./ ;;
44765     */) ;;
44766     *) as_dir=$as_dir/ ;;
44767   esac
44768     for ac_exec_ext in '' $ac_executable_extensions; do
44769   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
44770     ac_cv_path_NROFF="$as_dir$ac_word$ac_exec_ext"
44771     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
44772     break 2
44773   fi
44774 done
44775   done
44776 IFS=$as_save_IFS
44777
44778   ;;
44779 esac
44780 fi
44781 NROFF=$ac_cv_path_NROFF
44782 if test -n "$NROFF"; then
44783   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
44784 printf "%s\n" "$NROFF" >&6; }
44785 else
44786   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44787 printf "%s\n" "no" >&6; }
44788 fi
44789
44790
44791   test -n "$NROFF" && break
44792 done
44793
44794
44795
44796 if test -n "$NROFF"; then
44797
44798   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
44799 printf %s "checking how to use *nroff to get plain text from man pages... " >&6; }
44800   MANOPT="-man"
44801   mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
44802   if test -z "$mancheck"; then
44803     MANOPT="-mandoc"
44804    mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
44805     if test -z "$mancheck"; then
44806       MANOPT=""
44807       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
44808 printf "%s\n" "failed" >&6; }
44809       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
44810 printf "%s\n" "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
44811     else
44812       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
44813 printf "%s\n" "$MANOPT" >&6; }
44814     fi
44815   else
44816     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
44817 printf "%s\n" "$MANOPT" >&6; }
44818   fi
44819
44820 fi
44821
44822 if test -z "$MANOPT"
44823 then
44824       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
44825 printf "%s\n" "$as_me: WARNING: disabling built-in manual" >&2;}
44826   USE_MANUAL="no";
44827 fi
44828
44829
44830 if test "$USE_MANUAL" = "1"; then
44831
44832 printf "%s\n" "#define USE_MANUAL 1" >>confdefs.h
44833
44834   curl_manual_msg="enabled"
44835 fi
44836
44837  if test x"$USE_MANUAL" = x1; then
44838   USE_MANUAL_TRUE=
44839   USE_MANUAL_FALSE='#'
44840 else
44841   USE_MANUAL_TRUE='#'
44842   USE_MANUAL_FALSE=
44843 fi
44844
44845
44846
44847
44848
44849   #
44850   if test "$want_ares" = "yes"; then
44851         clean_CPPFLAGS="$CPPFLAGS"
44852     clean_LDFLAGS="$LDFLAGS"
44853     clean_LIBS="$LIBS"
44854     embedded_ares="unknown"
44855     configure_runpath=`pwd`
44856     embedded_ares_builddir="$configure_runpath/ares"
44857     if test -n "$want_ares_path"; then
44858             ARES_PCDIR="$want_ares_path/lib/pkgconfig"
44859
44860     if test -n "$PKG_CONFIG"; then
44861       PKGCONFIG="$PKG_CONFIG"
44862     else
44863       if test -n "$ac_tool_prefix"; then
44864   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
44865 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
44866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44867 printf %s "checking for $ac_word... " >&6; }
44868 if test ${ac_cv_path_PKGCONFIG+y}
44869 then :
44870   printf %s "(cached) " >&6
44871 else $as_nop
44872   case $PKGCONFIG in
44873   [\\/]* | ?:[\\/]*)
44874   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
44875   ;;
44876   *)
44877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44878 as_dummy="$PATH:/usr/bin:/usr/local/bin"
44879 for as_dir in $as_dummy
44880 do
44881   IFS=$as_save_IFS
44882   case $as_dir in #(((
44883     '') as_dir=./ ;;
44884     */) ;;
44885     *) as_dir=$as_dir/ ;;
44886   esac
44887     for ac_exec_ext in '' $ac_executable_extensions; do
44888   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
44889     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
44890     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
44891     break 2
44892   fi
44893 done
44894   done
44895 IFS=$as_save_IFS
44896
44897   ;;
44898 esac
44899 fi
44900 PKGCONFIG=$ac_cv_path_PKGCONFIG
44901 if test -n "$PKGCONFIG"; then
44902   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
44903 printf "%s\n" "$PKGCONFIG" >&6; }
44904 else
44905   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44906 printf "%s\n" "no" >&6; }
44907 fi
44908
44909
44910 fi
44911 if test -z "$ac_cv_path_PKGCONFIG"; then
44912   ac_pt_PKGCONFIG=$PKGCONFIG
44913   # Extract the first word of "pkg-config", so it can be a program name with args.
44914 set dummy pkg-config; ac_word=$2
44915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44916 printf %s "checking for $ac_word... " >&6; }
44917 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
44918 then :
44919   printf %s "(cached) " >&6
44920 else $as_nop
44921   case $ac_pt_PKGCONFIG in
44922   [\\/]* | ?:[\\/]*)
44923   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
44924   ;;
44925   *)
44926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44927 as_dummy="$PATH:/usr/bin:/usr/local/bin"
44928 for as_dir in $as_dummy
44929 do
44930   IFS=$as_save_IFS
44931   case $as_dir in #(((
44932     '') as_dir=./ ;;
44933     */) ;;
44934     *) as_dir=$as_dir/ ;;
44935   esac
44936     for ac_exec_ext in '' $ac_executable_extensions; do
44937   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
44938     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
44939     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
44940     break 2
44941   fi
44942 done
44943   done
44944 IFS=$as_save_IFS
44945
44946   ;;
44947 esac
44948 fi
44949 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
44950 if test -n "$ac_pt_PKGCONFIG"; then
44951   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
44952 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
44953 else
44954   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44955 printf "%s\n" "no" >&6; }
44956 fi
44957
44958   if test "x$ac_pt_PKGCONFIG" = x; then
44959     PKGCONFIG="no"
44960   else
44961     case $cross_compiling:$ac_tool_warned in
44962 yes:)
44963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
44964 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
44965 ac_tool_warned=yes ;;
44966 esac
44967     PKGCONFIG=$ac_pt_PKGCONFIG
44968   fi
44969 else
44970   PKGCONFIG="$ac_cv_path_PKGCONFIG"
44971 fi
44972
44973     fi
44974
44975     if test "x$PKGCONFIG" != "xno"; then
44976       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
44977 printf %s "checking for libcares options with pkg-config... " >&6; }
44978             itexists=`
44979     if test -n "$ARES_PCDIR"; then
44980       PKG_CONFIG_LIBDIR="$ARES_PCDIR"
44981       export PKG_CONFIG_LIBDIR
44982     fi
44983          $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
44984
44985       if test -z "$itexists"; then
44986                         PKGCONFIG="no"
44987         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44988 printf "%s\n" "no" >&6; }
44989       else
44990         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
44991 printf "%s\n" "found" >&6; }
44992       fi
44993     fi
44994
44995       if test "$PKGCONFIG" != "no" ; then
44996         ares_LIBS=`
44997     if test -n "$ARES_PCDIR"; then
44998       PKG_CONFIG_LIBDIR="$ARES_PCDIR"
44999       export PKG_CONFIG_LIBDIR
45000     fi
45001
45002           $PKGCONFIG --libs-only-l libcares`
45003         ares_LDFLAGS=`
45004     if test -n "$ARES_PCDIR"; then
45005       PKG_CONFIG_LIBDIR="$ARES_PCDIR"
45006       export PKG_CONFIG_LIBDIR
45007     fi
45008
45009           $PKGCONFIG --libs-only-L libcares`
45010         ares_CPPFLAGS=`
45011     if test -n "$ARES_PCDIR"; then
45012       PKG_CONFIG_LIBDIR="$ARES_PCDIR"
45013       export PKG_CONFIG_LIBDIR
45014     fi
45015
45016           $PKGCONFIG --cflags-only-I libcares`
45017         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares LIBS: \"$ares_LIBS\"" >&5
45018 printf "%s\n" "$as_me: pkg-config: ares LIBS: \"$ares_LIBS\"" >&6;}
45019         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&5
45020 printf "%s\n" "$as_me: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
45021         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
45022 printf "%s\n" "$as_me: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
45023       else
45024                 ares_CPPFLAGS="-I$want_ares_path/include"
45025         ares_LDFLAGS="-L$want_ares_path/lib"
45026         ares_LIBS="-lcares"
45027       fi
45028     else
45029             if test -d "$srcdir/ares"; then
45030                 embedded_ares="yes"
45031         subdirs="$subdirs ares"
45032
45033                         ares_CPPFLAGS=""
45034         ares_LDFLAGS="-L$embedded_ares_builddir"
45035         ares_LIBS="-lcares"
45036       else
45037
45038     if test -n "$PKG_CONFIG"; then
45039       PKGCONFIG="$PKG_CONFIG"
45040     else
45041       if test -n "$ac_tool_prefix"; then
45042   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
45043 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
45044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
45045 printf %s "checking for $ac_word... " >&6; }
45046 if test ${ac_cv_path_PKGCONFIG+y}
45047 then :
45048   printf %s "(cached) " >&6
45049 else $as_nop
45050   case $PKGCONFIG in
45051   [\\/]* | ?:[\\/]*)
45052   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
45053   ;;
45054   *)
45055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45056 as_dummy="$PATH:/usr/bin:/usr/local/bin"
45057 for as_dir in $as_dummy
45058 do
45059   IFS=$as_save_IFS
45060   case $as_dir in #(((
45061     '') as_dir=./ ;;
45062     */) ;;
45063     *) as_dir=$as_dir/ ;;
45064   esac
45065     for ac_exec_ext in '' $ac_executable_extensions; do
45066   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
45067     ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
45068     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
45069     break 2
45070   fi
45071 done
45072   done
45073 IFS=$as_save_IFS
45074
45075   ;;
45076 esac
45077 fi
45078 PKGCONFIG=$ac_cv_path_PKGCONFIG
45079 if test -n "$PKGCONFIG"; then
45080   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
45081 printf "%s\n" "$PKGCONFIG" >&6; }
45082 else
45083   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45084 printf "%s\n" "no" >&6; }
45085 fi
45086
45087
45088 fi
45089 if test -z "$ac_cv_path_PKGCONFIG"; then
45090   ac_pt_PKGCONFIG=$PKGCONFIG
45091   # Extract the first word of "pkg-config", so it can be a program name with args.
45092 set dummy pkg-config; ac_word=$2
45093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
45094 printf %s "checking for $ac_word... " >&6; }
45095 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
45096 then :
45097   printf %s "(cached) " >&6
45098 else $as_nop
45099   case $ac_pt_PKGCONFIG in
45100   [\\/]* | ?:[\\/]*)
45101   ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
45102   ;;
45103   *)
45104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45105 as_dummy="$PATH:/usr/bin:/usr/local/bin"
45106 for as_dir in $as_dummy
45107 do
45108   IFS=$as_save_IFS
45109   case $as_dir in #(((
45110     '') as_dir=./ ;;
45111     */) ;;
45112     *) as_dir=$as_dir/ ;;
45113   esac
45114     for ac_exec_ext in '' $ac_executable_extensions; do
45115   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
45116     ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
45117     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
45118     break 2
45119   fi
45120 done
45121   done
45122 IFS=$as_save_IFS
45123
45124   ;;
45125 esac
45126 fi
45127 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
45128 if test -n "$ac_pt_PKGCONFIG"; then
45129   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
45130 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
45131 else
45132   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45133 printf "%s\n" "no" >&6; }
45134 fi
45135
45136   if test "x$ac_pt_PKGCONFIG" = x; then
45137     PKGCONFIG="no"
45138   else
45139     case $cross_compiling:$ac_tool_warned in
45140 yes:)
45141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
45142 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
45143 ac_tool_warned=yes ;;
45144 esac
45145     PKGCONFIG=$ac_pt_PKGCONFIG
45146   fi
45147 else
45148   PKGCONFIG="$ac_cv_path_PKGCONFIG"
45149 fi
45150
45151     fi
45152
45153     if test "x$PKGCONFIG" != "xno"; then
45154       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
45155 printf %s "checking for libcares options with pkg-config... " >&6; }
45156             itexists=`
45157     if test -n ""; then
45158       PKG_CONFIG_LIBDIR=""
45159       export PKG_CONFIG_LIBDIR
45160     fi
45161          $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
45162
45163       if test -z "$itexists"; then
45164                         PKGCONFIG="no"
45165         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45166 printf "%s\n" "no" >&6; }
45167       else
45168         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
45169 printf "%s\n" "found" >&6; }
45170       fi
45171     fi
45172
45173         if test "$PKGCONFIG" != "no" ; then
45174           ares_LIBS=`$PKGCONFIG --libs-only-l libcares`
45175           ares_LDFLAGS=`$PKGCONFIG --libs-only-L libcares`
45176           ares_CPPFLAGS=`$PKGCONFIG --cflags-only-I libcares`
45177           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&5
45178 printf "%s\n" "$as_me: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&6;}
45179           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&5
45180 printf "%s\n" "$as_me: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
45181           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
45182 printf "%s\n" "$as_me: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
45183         else
45184           ares_CPPFLAGS=""
45185           ares_LDFLAGS=""
45186           ares_LIBS="-lcares"
45187         fi
45188       fi
45189     fi
45190     #
45191     CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
45192     LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
45193     LIBS="$ares_LIBS $clean_LIBS"
45194     #
45195     if test "$embedded_ares" != "yes"; then
45196                   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
45197 printf %s "checking that c-ares is good and recent enough... " >&6; }
45198       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45199 /* end confdefs.h.  */
45200
45201
45202 #include <ares.h>
45203           /* set of dummy functions in case c-ares was built with debug */
45204           void curl_dofree() { }
45205           void curl_sclose() { }
45206           void curl_domalloc() { }
45207           void curl_docalloc() { }
45208           void curl_socket() { }
45209
45210 int main (void)
45211 {
45212
45213           ares_channel channel;
45214           ares_cancel(channel); /* added in 1.2.0 */
45215           ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
45216           ares_dup(&channel, channel); /* added in 1.6.0 */
45217
45218  ;
45219  return 0;
45220 }
45221
45222 _ACEOF
45223 if ac_fn_c_try_link "$LINENO"
45224 then :
45225
45226         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45227 printf "%s\n" "yes" >&6; }
45228
45229 else $as_nop
45230
45231         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45232 printf "%s\n" "no" >&6; }
45233         as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
45234                 CPPFLAGS="$clean_CPPFLAGS"
45235         LDFLAGS="$clean_LDFLAGS"
45236         LIBS="$clean_LIBS"
45237         # prevent usage
45238         want_ares="no"
45239
45240 fi
45241 rm -f core conftest.err conftest.$ac_objext conftest.beam \
45242     conftest$ac_exeext conftest.$ac_ext
45243     fi
45244     if test "$want_ares" = "yes"; then
45245
45246 printf "%s\n" "#define USE_ARES 1" >>confdefs.h
45247
45248       USE_ARES=1
45249
45250       curl_res_msg="c-ares"
45251     fi
45252   fi
45253
45254  if test x$embedded_ares = xyes; then
45255   USE_EMBEDDED_ARES_TRUE=
45256   USE_EMBEDDED_ARES_FALSE='#'
45257 else
45258   USE_EMBEDDED_ARES_TRUE='#'
45259   USE_EMBEDDED_ARES_FALSE=
45260 fi
45261
45262
45263 if test "x$curl_cv_native_windows" != "xyes" &&
45264    test "x$enable_shared" = "xyes"; then
45265   build_libhostname=yes
45266 else
45267   build_libhostname=no
45268 fi
45269  if test x$build_libhostname = xyes; then
45270   BUILD_LIBHOSTNAME_TRUE=
45271   BUILD_LIBHOSTNAME_FALSE='#'
45272 else
45273   BUILD_LIBHOSTNAME_TRUE='#'
45274   BUILD_LIBHOSTNAME_FALSE=
45275 fi
45276
45277
45278 if test "x$want_ares" != xyes; then
45279
45280   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
45281 printf %s "checking whether to enable the threaded resolver... " >&6; }
45282   OPT_THRES="default"
45283   # Check whether --enable-threaded_resolver was given.
45284 if test ${enable_threaded_resolver+y}
45285 then :
45286   enableval=$enable_threaded_resolver; OPT_THRES=$enableval
45287 fi
45288
45289   case "$OPT_THRES" in
45290     no)
45291             want_thres="no"
45292       ;;
45293     *)
45294             want_thres="yes"
45295       ;;
45296   esac
45297   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
45298 printf "%s\n" "$want_thres" >&6; }
45299
45300 fi
45301
45302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
45303 printf %s "checking whether to use POSIX threads for threaded resolver... " >&6; }
45304 # Check whether --enable-pthreads was given.
45305 if test ${enable_pthreads+y}
45306 then :
45307   enableval=$enable_pthreads;  case "$enableval" in
45308   no)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45309 printf "%s\n" "no" >&6; }
45310        want_pthreads=no
45311        ;;
45312   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45313 printf "%s\n" "yes" >&6; }
45314        want_pthreads=yes
45315        ;;
45316   esac
45317 else $as_nop
45318
45319        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: auto" >&5
45320 printf "%s\n" "auto" >&6; }
45321        want_pthreads=auto
45322
45323
45324 fi
45325
45326
45327 if test "$want_pthreads" != "no"; then
45328   if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
45329     as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
45330   fi
45331   if test "$dontwant_rt" != "no"; then
45332         if test "$want_pthreads" = "yes"; then
45333       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
45334 printf "%s\n" "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
45335     fi
45336     want_pthreads=no
45337   fi
45338 fi
45339
45340 if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
45341   want_pthreads=no
45342 fi
45343
45344 if test "$want_pthreads" != "no"; then
45345   ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
45346 if test "x$ac_cv_header_pthread_h" = xyes
45347 then :
45348
45349 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
45350
45351       save_CFLAGS="$CFLAGS"
45352                                     save_LIBS="$LIBS"
45353
45354       LIBS=
45355             ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
45356 if test "x$ac_cv_func_pthread_create" = xyes
45357 then :
45358   USE_THREADS_POSIX=1
45359 fi
45360
45361       LIBS="$save_LIBS"
45362
45363             case $host in
45364       *-hp-hpux*)
45365                   USE_THREADS_POSIX=""
45366          ;;
45367       *)
45368          ;;
45369       esac
45370
45371             if test "$USE_THREADS_POSIX" != "1"
45372       then
45373         CFLAGS="$CFLAGS -pthread"
45374         # assign PTHREAD for pkg-config use
45375         PTHREAD=" -pthread"
45376         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
45377 printf %s "checking for pthread_create in -lpthread... " >&6; }
45378 if test ${ac_cv_lib_pthread_pthread_create+y}
45379 then :
45380   printf %s "(cached) " >&6
45381 else $as_nop
45382   ac_check_lib_save_LIBS=$LIBS
45383 LIBS="-lpthread  $LIBS"
45384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45385 /* end confdefs.h.  */
45386
45387
45388 #ifdef __cplusplus
45389 extern "C"
45390 #endif
45391 char pthread_create ();
45392 int main (void)
45393 {
45394 return pthread_create ();
45395  ;
45396  return 0;
45397 }
45398 _ACEOF
45399 if ac_fn_c_try_link "$LINENO"
45400 then :
45401   ac_cv_lib_pthread_pthread_create=yes
45402 else $as_nop
45403   ac_cv_lib_pthread_pthread_create=no
45404 fi
45405 rm -f core conftest.err conftest.$ac_objext conftest.beam \
45406     conftest$ac_exeext conftest.$ac_ext
45407 LIBS=$ac_check_lib_save_LIBS
45408 fi
45409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
45410 printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; }
45411 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
45412 then :
45413   USE_THREADS_POSIX=1
45414 else $as_nop
45415    CFLAGS="$save_CFLAGS"
45416 fi
45417
45418       fi
45419
45420       if test "x$USE_THREADS_POSIX" = "x1"
45421       then
45422
45423 printf "%s\n" "#define USE_THREADS_POSIX 1" >>confdefs.h
45424
45425         curl_res_msg="POSIX threaded"
45426       fi
45427
45428 fi
45429
45430 fi
45431
45432 if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
45433   if test "$want_pthreads" = "yes"; then
45434     as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
45435   fi
45436     if test "$curl_cv_native_windows" = "yes"; then
45437     USE_THREADS_WIN32=1
45438
45439 printf "%s\n" "#define USE_THREADS_WIN32 1" >>confdefs.h
45440
45441     curl_res_msg="Win32 threaded"
45442   else
45443     as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
45444   fi
45445 fi
45446
45447
45448       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking convert -I options to -isystem" >&5
45449 printf %s "checking convert -I options to -isystem... " >&6; }
45450   if test "$compiler_id" = "GNU_C" ||
45451     test "$compiler_id" = "CLANG"; then
45452     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45453 printf "%s\n" "yes" >&6; }
45454     tmp_has_include="no"
45455     tmp_chg_FLAGS="$CFLAGS"
45456     for word1 in $tmp_chg_FLAGS; do
45457       case "$word1" in
45458         -I*)
45459           tmp_has_include="yes"
45460           ;;
45461       esac
45462     done
45463     if test "$tmp_has_include" = "yes"; then
45464       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
45465       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
45466       CFLAGS="$tmp_chg_FLAGS"
45467       squeeze CFLAGS
45468     fi
45469     tmp_has_include="no"
45470     tmp_chg_FLAGS="$CPPFLAGS"
45471     for word1 in $tmp_chg_FLAGS; do
45472       case "$word1" in
45473         -I*)
45474           tmp_has_include="yes"
45475           ;;
45476       esac
45477     done
45478     if test "$tmp_has_include" = "yes"; then
45479       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
45480       tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
45481       CPPFLAGS="$tmp_chg_FLAGS"
45482       squeeze CPPFLAGS
45483     fi
45484   else
45485     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45486 printf "%s\n" "no" >&6; }
45487   fi
45488
45489
45490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
45491 printf %s "checking whether to enable verbose strings... " >&6; }
45492 # Check whether --enable-verbose was given.
45493 if test ${enable_verbose+y}
45494 then :
45495   enableval=$enable_verbose;  case "$enableval" in
45496   no)
45497        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45498 printf "%s\n" "no" >&6; }
45499
45500 printf "%s\n" "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
45501
45502        curl_verbose_msg="no"
45503        ;;
45504   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45505 printf "%s\n" "yes" >&6; }
45506        ;;
45507   esac
45508 else $as_nop
45509   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45510 printf "%s\n" "yes" >&6; }
45511
45512 fi
45513
45514
45515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
45516 printf %s "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
45517 # Check whether --enable-sspi was given.
45518 if test ${enable_sspi+y}
45519 then :
45520   enableval=$enable_sspi;  case "$enableval" in
45521   yes)
45522        if test "$curl_cv_native_windows" = "yes"; then
45523          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45524 printf "%s\n" "yes" >&6; }
45525
45526 printf "%s\n" "#define USE_WINDOWS_SSPI 1" >>confdefs.h
45527
45528          USE_WINDOWS_SSPI=1
45529
45530          curl_sspi_msg="enabled"
45531        else
45532          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45533 printf "%s\n" "no" >&6; }
45534          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
45535 printf "%s\n" "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
45536        fi
45537        ;;
45538   *)
45539        if test "x$SCHANNEL_ENABLED" = "x1"; then
45540          # --with-schannel implies --enable-sspi
45541          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45542 printf "%s\n" "yes" >&6; }
45543        else
45544          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45545 printf "%s\n" "no" >&6; }
45546        fi
45547        ;;
45548   esac
45549 else $as_nop
45550   if test "x$SCHANNEL_ENABLED" = "x1"; then
45551          # --with-schannel implies --enable-sspi
45552          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45553 printf "%s\n" "yes" >&6; }
45554        else
45555          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45556 printf "%s\n" "no" >&6; }
45557        fi
45558
45559 fi
45560
45561
45562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
45563 printf %s "checking whether to enable cryptographic authentication methods... " >&6; }
45564 # Check whether --enable-crypto-auth was given.
45565 if test ${enable_crypto_auth+y}
45566 then :
45567   enableval=$enable_crypto_auth;  case "$enableval" in
45568   no)
45569        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45570 printf "%s\n" "no" >&6; }
45571
45572 printf "%s\n" "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
45573
45574        CURL_DISABLE_CRYPTO_AUTH=1
45575        ;;
45576   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45577 printf "%s\n" "yes" >&6; }
45578        ;;
45579   esac
45580 else $as_nop
45581   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45582 printf "%s\n" "yes" >&6; }
45583
45584 fi
45585
45586
45587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support NTLM" >&5
45588 printf %s "checking whether to support NTLM... " >&6; }
45589 # Check whether --enable-ntlm was given.
45590 if test ${enable_ntlm+y}
45591 then :
45592   enableval=$enable_ntlm;  case "$enableval" in
45593   no)
45594        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45595 printf "%s\n" "no" >&6; }
45596
45597 printf "%s\n" "#define CURL_DISABLE_NTLM 1" >>confdefs.h
45598
45599        CURL_DISABLE_NTLM=1
45600        ;;
45601   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45602 printf "%s\n" "yes" >&6; }
45603        ;;
45604   esac
45605 else $as_nop
45606   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45607 printf "%s\n" "yes" >&6; }
45608
45609 fi
45610
45611
45612
45613     OPT_NTLM_WB="default"
45614   # Check whether --enable-ntlm-wb was given.
45615 if test ${enable_ntlm_wb+y}
45616 then :
45617   enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
45618 fi
45619
45620   want_ntlm_wb_file="/usr/bin/ntlm_auth"
45621   case "$OPT_NTLM_WB" in
45622     no)
45623             want_ntlm_wb="no"
45624       ;;
45625     default)
45626             want_ntlm_wb="yes"
45627       ;;
45628     *)
45629             want_ntlm_wb="yes"
45630       if test -n "$enableval" && test "$enableval" != "yes"; then
45631         want_ntlm_wb_file="$enableval"
45632       fi
45633       ;;
45634   esac
45635
45636
45637
45638       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
45639 printf %s "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
45640   if test "$curl_cv_native_windows" = "yes" ||
45641     test "x$SSL_ENABLED" = "x"; then
45642     want_ntlm_wb_file=""
45643     want_ntlm_wb="no"
45644   fi
45645   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
45646 printf "%s\n" "$want_ntlm_wb" >&6; }
45647   if test "$want_ntlm_wb" = "yes"; then
45648
45649 printf "%s\n" "#define NTLM_WB_ENABLED 1" >>confdefs.h
45650
45651
45652 printf "%s\n" "#define NTLM_WB_FILE \"$want_ntlm_wb_file\"" >>confdefs.h
45653
45654     NTLM_WB_ENABLED=1
45655   fi
45656
45657
45658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
45659 printf %s "checking whether to enable TLS-SRP authentication... " >&6; }
45660 # Check whether --enable-tls-srp was given.
45661 if test ${enable_tls_srp+y}
45662 then :
45663   enableval=$enable_tls_srp;  case "$enableval" in
45664   no)
45665        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45666 printf "%s\n" "no" >&6; }
45667        want_tls_srp=no
45668        ;;
45669   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45670 printf "%s\n" "yes" >&6; }
45671        want_tls_srp=yes
45672        ;;
45673   esac
45674 else $as_nop
45675   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45676 printf "%s\n" "yes" >&6; }
45677        want_tls_srp=yes
45678
45679 fi
45680
45681
45682 if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
45683
45684 printf "%s\n" "#define USE_TLS_SRP 1" >>confdefs.h
45685
45686    USE_TLS_SRP=1
45687    curl_tls_srp_msg="enabled"
45688 fi
45689
45690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
45691 printf %s "checking whether to enable Unix domain sockets... " >&6; }
45692 # Check whether --enable-unix-sockets was given.
45693 if test ${enable_unix_sockets+y}
45694 then :
45695   enableval=$enable_unix_sockets;  case "$enableval" in
45696   no)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45697 printf "%s\n" "no" >&6; }
45698        want_unix_sockets=no
45699        ;;
45700   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45701 printf "%s\n" "yes" >&6; }
45702        want_unix_sockets=yes
45703        ;;
45704   esac
45705 else $as_nop
45706
45707        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: auto" >&5
45708 printf "%s\n" "auto" >&6; }
45709        want_unix_sockets=auto
45710
45711
45712 fi
45713
45714 if test "x$want_unix_sockets" != "xno"; then
45715   ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
45716     #include <sys/un.h>
45717
45718 "
45719 if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes
45720 then :
45721
45722
45723 printf "%s\n" "#define USE_UNIX_SOCKETS 1" >>confdefs.h
45724
45725     USE_UNIX_SOCKETS=1
45726
45727     curl_unix_sockets_msg="enabled"
45728
45729 else $as_nop
45730
45731     if test "x$want_unix_sockets" = "xyes"; then
45732       as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
45733     fi
45734
45735 fi
45736
45737 fi
45738
45739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support cookies" >&5
45740 printf %s "checking whether to support cookies... " >&6; }
45741 # Check whether --enable-cookies was given.
45742 if test ${enable_cookies+y}
45743 then :
45744   enableval=$enable_cookies;  case "$enableval" in
45745   no)
45746        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45747 printf "%s\n" "no" >&6; }
45748
45749 printf "%s\n" "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
45750
45751        ;;
45752   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45753 printf "%s\n" "yes" >&6; }
45754        ;;
45755   esac
45756 else $as_nop
45757   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45758 printf "%s\n" "yes" >&6; }
45759
45760 fi
45761
45762
45763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support socketpair" >&5
45764 printf %s "checking whether to support socketpair... " >&6; }
45765 # Check whether --enable-socketpair was given.
45766 if test ${enable_socketpair+y}
45767 then :
45768   enableval=$enable_socketpair;  case "$enableval" in
45769   no)
45770        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45771 printf "%s\n" "no" >&6; }
45772
45773 printf "%s\n" "#define CURL_DISABLE_SOCKETPAIR 1" >>confdefs.h
45774
45775        ;;
45776   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45777 printf "%s\n" "yes" >&6; }
45778        ;;
45779   esac
45780 else $as_nop
45781   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45782 printf "%s\n" "yes" >&6; }
45783
45784 fi
45785
45786
45787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HTTP authentication" >&5
45788 printf %s "checking whether to support HTTP authentication... " >&6; }
45789 # Check whether --enable-http-auth was given.
45790 if test ${enable_http_auth+y}
45791 then :
45792   enableval=$enable_http_auth;  case "$enableval" in
45793   no)
45794        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45795 printf "%s\n" "no" >&6; }
45796
45797 printf "%s\n" "#define CURL_DISABLE_HTTP_AUTH 1" >>confdefs.h
45798
45799        ;;
45800   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45801 printf "%s\n" "yes" >&6; }
45802        ;;
45803   esac
45804 else $as_nop
45805   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45806 printf "%s\n" "yes" >&6; }
45807
45808 fi
45809
45810
45811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support DoH" >&5
45812 printf %s "checking whether to support DoH... " >&6; }
45813 # Check whether --enable-doh was given.
45814 if test ${enable_doh+y}
45815 then :
45816   enableval=$enable_doh;  case "$enableval" in
45817   no)
45818        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45819 printf "%s\n" "no" >&6; }
45820
45821 printf "%s\n" "#define CURL_DISABLE_DOH 1" >>confdefs.h
45822
45823        ;;
45824   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45825 printf "%s\n" "yes" >&6; }
45826        ;;
45827   esac
45828 else $as_nop
45829   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45830 printf "%s\n" "yes" >&6; }
45831
45832 fi
45833
45834
45835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support the MIME API" >&5
45836 printf %s "checking whether to support the MIME API... " >&6; }
45837 # Check whether --enable-mime was given.
45838 if test ${enable_mime+y}
45839 then :
45840   enableval=$enable_mime;  case "$enableval" in
45841   no)
45842        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45843 printf "%s\n" "no" >&6; }
45844
45845 printf "%s\n" "#define CURL_DISABLE_MIME 1" >>confdefs.h
45846
45847        ;;
45848   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45849 printf "%s\n" "yes" >&6; }
45850        ;;
45851   esac
45852 else $as_nop
45853   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45854 printf "%s\n" "yes" >&6; }
45855
45856 fi
45857
45858
45859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support date parsing" >&5
45860 printf %s "checking whether to support date parsing... " >&6; }
45861 # Check whether --enable-dateparse was given.
45862 if test ${enable_dateparse+y}
45863 then :
45864   enableval=$enable_dateparse;  case "$enableval" in
45865   no)
45866        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45867 printf "%s\n" "no" >&6; }
45868
45869 printf "%s\n" "#define CURL_DISABLE_PARSEDATE 1" >>confdefs.h
45870
45871        ;;
45872   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45873 printf "%s\n" "yes" >&6; }
45874        ;;
45875   esac
45876 else $as_nop
45877   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45878 printf "%s\n" "yes" >&6; }
45879
45880 fi
45881
45882
45883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support netrc parsing" >&5
45884 printf %s "checking whether to support netrc parsing... " >&6; }
45885 # Check whether --enable-netrc was given.
45886 if test ${enable_netrc+y}
45887 then :
45888   enableval=$enable_netrc;  case "$enableval" in
45889   no)
45890        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45891 printf "%s\n" "no" >&6; }
45892
45893 printf "%s\n" "#define CURL_DISABLE_NETRC 1" >>confdefs.h
45894
45895        ;;
45896   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45897 printf "%s\n" "yes" >&6; }
45898        ;;
45899   esac
45900 else $as_nop
45901   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45902 printf "%s\n" "yes" >&6; }
45903
45904 fi
45905
45906
45907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support progress-meter" >&5
45908 printf %s "checking whether to support progress-meter... " >&6; }
45909 # Check whether --enable-progress-meter was given.
45910 if test ${enable_progress_meter+y}
45911 then :
45912   enableval=$enable_progress_meter;  case "$enableval" in
45913   no)
45914        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45915 printf "%s\n" "no" >&6; }
45916
45917 printf "%s\n" "#define CURL_DISABLE_PROGRESS_METER 1" >>confdefs.h
45918
45919        ;;
45920   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45921 printf "%s\n" "yes" >&6; }
45922        ;;
45923   esac
45924 else $as_nop
45925   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45926 printf "%s\n" "yes" >&6; }
45927
45928 fi
45929
45930
45931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support DNS shuffling" >&5
45932 printf %s "checking whether to support DNS shuffling... " >&6; }
45933 # Check whether --enable-dnsshuffle was given.
45934 if test ${enable_dnsshuffle+y}
45935 then :
45936   enableval=$enable_dnsshuffle;  case "$enableval" in
45937   no)
45938        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45939 printf "%s\n" "no" >&6; }
45940
45941 printf "%s\n" "#define CURL_DISABLE_SHUFFLE_DNS 1" >>confdefs.h
45942
45943        ;;
45944   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45945 printf "%s\n" "yes" >&6; }
45946        ;;
45947   esac
45948 else $as_nop
45949   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45950 printf "%s\n" "yes" >&6; }
45951
45952 fi
45953
45954
45955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support curl_easy_option*" >&5
45956 printf %s "checking whether to support curl_easy_option*... " >&6; }
45957 # Check whether --enable-get-easy-options was given.
45958 if test ${enable_get_easy_options+y}
45959 then :
45960   enableval=$enable_get_easy_options;  case "$enableval" in
45961   no)
45962        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45963 printf "%s\n" "no" >&6; }
45964
45965 printf "%s\n" "#define CURL_DISABLE_GETOPTIONS 1" >>confdefs.h
45966
45967        ;;
45968   *)   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45969 printf "%s\n" "yes" >&6; }
45970        ;;
45971   esac
45972 else $as_nop
45973   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45974 printf "%s\n" "yes" >&6; }
45975
45976 fi
45977
45978
45979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support alt-svc" >&5
45980 printf %s "checking whether to support alt-svc... " >&6; }
45981 # Check whether --enable-alt-svc was given.
45982 if test ${enable_alt_svc+y}
45983 then :
45984   enableval=$enable_alt_svc;  case "$enableval" in
45985   no)
45986        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45987 printf "%s\n" "no" >&6; }
45988
45989 printf "%s\n" "#define CURL_DISABLE_ALTSVC 1" >>confdefs.h
45990
45991        curl_altsvc_msg="no";
45992        enable_altsvc="no"
45993        ;;
45994   *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45995 printf "%s\n" "yes" >&6; }
45996        ;;
45997   esac
45998 else $as_nop
45999   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
46000 printf "%s\n" "no" >&6; }
46001
46002 fi
46003
46004
46005 if test -n "$SSL_ENABLED"; then
46006
46007         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HSTS" >&5
46008 printf %s "checking whether to support HSTS... " >&6; }
46009   # Check whether --enable-hsts was given.
46010 if test ${enable_hsts+y}
46011 then :
46012   enableval=$enable_hsts;  case "$enableval" in
46013     no)
46014        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
46015 printf "%s\n" "no" >&6; }
46016        hsts="no"
46017        ;;
46018     *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46019 printf "%s\n" "yes" >&6; }
46020        ;;
46021     esac
46022 else $as_nop
46023   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hsts" >&5
46024 printf "%s\n" "$hsts" >&6; }
46025
46026 fi
46027
46028 else
46029   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: disables HSTS due to lack of SSL" >&5
46030 printf "%s\n" "$as_me: disables HSTS due to lack of SSL" >&6;}
46031   hsts="no"
46032 fi
46033
46034 if test "x$hsts" != "xyes"; then
46035   curl_hsts_msg="no      (--enable-hsts)";
46036
46037 printf "%s\n" "#define CURL_DISABLE_HSTS 1" >>confdefs.h
46038
46039 fi
46040
46041 if test "x$want_ech" != "xno"; then
46042   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ECH support is available" >&5
46043 printf %s "checking whether ECH support is available... " >&6; }
46044
46045     ECH_ENABLED=0
46046   ECH_SUPPORT=''
46047
46048       if test "x$OPENSSL_ENABLED" = "x1"; then
46049
46050   for ac_func in SSL_get_ech_status
46051 do :
46052   ac_fn_c_check_func "$LINENO" "SSL_get_ech_status" "ac_cv_func_SSL_get_ech_status"
46053 if test "x$ac_cv_func_SSL_get_ech_status" = xyes
46054 then :
46055   printf "%s\n" "#define HAVE_SSL_GET_ECH_STATUS 1" >>confdefs.h
46056  ECH_SUPPORT="ECH support available (OpenSSL with SSL_get_ech_status)"
46057       ECH_ENABLED=1
46058 fi
46059
46060 done
46061
46062     fi
46063
46064     if test "x$ECH_ENABLED" = "x1"; then
46065
46066 printf "%s\n" "#define USE_ECH 1" >>confdefs.h
46067
46068     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ECH_SUPPORT" >&5
46069 printf "%s\n" "$ECH_SUPPORT" >&6; }
46070     experimental="$experimental ECH"
46071   else
46072     as_fn_error $? "--enable-ech ignored: No ECH support found" "$LINENO" 5
46073   fi
46074 fi
46075
46076
46077   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
46078 printf %s "checking whether hiding of library internal symbols will actually happen... " >&6; }
46079   CFLAG_CURL_SYMBOL_HIDING=""
46080   doing_symbol_hiding="no"
46081   if test x"$curl_cv_native_windows" != "xyes" &&
46082     test "$want_symbol_hiding" = "yes" &&
46083     test "$supports_symbol_hiding" = "yes"; then
46084     doing_symbol_hiding="yes"
46085     CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
46086
46087 printf "%s\n" "#define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN" >>confdefs.h
46088
46089     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46090 printf "%s\n" "yes" >&6; }
46091   else
46092     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
46093 printf "%s\n" "no" >&6; }
46094   fi
46095    if test x$doing_symbol_hiding = xyes; then
46096   DOING_CURL_SYMBOL_HIDING_TRUE=
46097   DOING_CURL_SYMBOL_HIDING_FALSE='#'
46098 else
46099   DOING_CURL_SYMBOL_HIDING_TRUE='#'
46100   DOING_CURL_SYMBOL_HIDING_FALSE=
46101 fi
46102
46103
46104
46105
46106 LIBCURL_LIBS="$LIBS$PTHREAD"
46107
46108
46109
46110
46111
46112 BLANK_AT_MAKETIME=
46113
46114
46115  if test x$cross_compiling = xyes; then
46116   CROSSCOMPILING_TRUE=
46117   CROSSCOMPILING_FALSE='#'
46118 else
46119   CROSSCOMPILING_TRUE='#'
46120   CROSSCOMPILING_FALSE=
46121 fi
46122
46123
46124 ENABLE_SHARED="$enable_shared"
46125
46126
46127 ENABLE_STATIC="$enable_static"
46128
46129
46130 if test "x$enable_shared" = "xno"; then
46131   LIBCURL_NO_SHARED=$LIBCURL_LIBS
46132 else
46133   LIBCURL_NO_SHARED=
46134 fi
46135
46136
46137
46138 if test "x$OPENSSL_ENABLED" = "x1"; then
46139   SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
46140 elif test -n "$SSL_ENABLED"; then
46141   SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
46142 fi
46143 if test "x$IPV6_ENABLED" = "x1"; then
46144   SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
46145 fi
46146 if test "x$USE_UNIX_SOCKETS" = "x1"; then
46147   SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
46148 fi
46149 if test "x$HAVE_LIBZ" = "x1"; then
46150   SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
46151 fi
46152 if test "x$HAVE_BROTLI" = "x1"; then
46153   SUPPORT_FEATURES="$SUPPORT_FEATURES brotli"
46154 fi
46155 if test "x$HAVE_ZSTD" = "x1"; then
46156   SUPPORT_FEATURES="$SUPPORT_FEATURES zstd"
46157 fi
46158 if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
46159                             -o "x$USE_THREADS_WIN32" = "x1"; then
46160   SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
46161 fi
46162 if test "x$IDN_ENABLED" = "x1"; then
46163   SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
46164 fi
46165 if test "x$USE_WINDOWS_SSPI" = "x1"; then
46166   SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
46167 fi
46168
46169 if test "x$HAVE_GSSAPI" = "x1"; then
46170   SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
46171 fi
46172
46173 if test "x$curl_psl_msg" = "xenabled"; then
46174   SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
46175 fi
46176
46177 if test "x$curl_gsasl_msg" = "xenabled"; then
46178   SUPPORT_FEATURES="$SUPPORT_FEATURES GSASL"
46179 fi
46180
46181 if test "x$enable_altsvc" = "xyes"; then
46182   SUPPORT_FEATURES="$SUPPORT_FEATURES alt-svc"
46183 fi
46184 if test "x$hsts" = "xyes"; then
46185   SUPPORT_FEATURES="$SUPPORT_FEATURES HSTS"
46186 fi
46187
46188 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
46189     \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
46190   SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
46191 fi
46192
46193 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
46194     \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
46195   SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
46196 fi
46197
46198 use_curl_ntlm_core=no
46199
46200 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
46201     "x$CURL_DISABLE_NTLM" != "x1"; then
46202   if test "x$OPENSSL_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
46203       -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1" \
46204       -o "x$SECURETRANSPORT_ENABLED" = "x1" \
46205       -o "x$USE_WIN32_CRYPTO" = "x1" \
46206       -o "x$WOLFSSL_NTLM" = "x1"; then
46207     use_curl_ntlm_core=yes
46208   fi
46209
46210   if test "x$use_curl_ntlm_core" = "xyes" \
46211       -o "x$USE_WINDOWS_SSPI" = "x1"; then
46212     SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
46213
46214     if test "x$CURL_DISABLE_HTTP" != "x1" -a \
46215         "x$NTLM_WB_ENABLED" = "x1"; then
46216       SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
46217     fi
46218   fi
46219 fi
46220
46221 if test "x$USE_TLS_SRP" = "x1"; then
46222   SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
46223 fi
46224
46225 if test "x$USE_NGHTTP2" = "x1" -o "x$USE_HYPER" = "x1"; then
46226   SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
46227 fi
46228
46229 if test "x$USE_NGTCP2" = "x1" -o "x$USE_QUICHE" = "x1"; then
46230   SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP3"
46231 fi
46232
46233 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
46234   SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
46235 fi
46236
46237 if test "x$https_proxy" != "xno"; then
46238   if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \
46239       -o "x$NSS_ENABLED" = "x1"; then
46240     SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
46241   fi
46242 fi
46243
46244 if test "x$ECH_ENABLED" = "x1"; then
46245   SUPPORT_FEATURES="$SUPPORT_FEATURES ECH"
46246 fi
46247
46248 if test ${ac_cv_sizeof_curl_off_t} -gt 4; then
46249   if test ${ac_cv_sizeof_off_t} -gt 4 -o \
46250      "$curl_win32_file_api" = "win32_large_files"; then
46251     SUPPORT_FEATURES="$SUPPORT_FEATURES Largefile"
46252   fi
46253 fi
46254
46255 SUPPORT_FEATURES=`echo $SUPPORT_FEATURES | tr ' ' '\012' | sort | tr '\012' ' '`
46256
46257
46258 if test "x$CURL_DISABLE_HTTP" != "x1"; then
46259   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
46260   if test "x$SSL_ENABLED" = "x1"; then
46261     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
46262   fi
46263 fi
46264 if test "x$CURL_DISABLE_FTP" != "x1"; then
46265   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
46266   if test "x$SSL_ENABLED" = "x1"; then
46267     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
46268   fi
46269 fi
46270 if test "x$CURL_DISABLE_FILE" != "x1"; then
46271   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
46272 fi
46273 if test "x$CURL_DISABLE_TELNET" != "x1"; then
46274   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
46275 fi
46276 if test "x$CURL_DISABLE_LDAP" != "x1"; then
46277   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
46278   if test "x$CURL_DISABLE_LDAPS" != "x1"; then
46279     if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
46280       (test "x$USE_OPENLDAP" != "x1"  && test "x$HAVE_LDAP_SSL" = "x1"); then
46281       SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
46282     fi
46283   fi
46284 fi
46285 if test "x$CURL_DISABLE_DICT" != "x1"; then
46286   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
46287 fi
46288 if test "x$CURL_DISABLE_TFTP" != "x1"; then
46289   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
46290 fi
46291 if test "x$CURL_DISABLE_GOPHER" != "x1"; then
46292   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
46293   if test "x$SSL_ENABLED" = "x1"; then
46294     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHERS"
46295   fi
46296 fi
46297 if test "x$CURL_DISABLE_MQTT" != "x1"; then
46298   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS MQTT"
46299 fi
46300 if test "x$CURL_DISABLE_POP3" != "x1"; then
46301   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
46302   if test "x$SSL_ENABLED" = "x1"; then
46303     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
46304   fi
46305 fi
46306 if test "x$CURL_DISABLE_IMAP" != "x1"; then
46307   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
46308   if test "x$SSL_ENABLED" = "x1"; then
46309     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
46310   fi
46311 fi
46312 if test "x$CURL_DISABLE_SMB" != "x1" \
46313     -a "x$use_curl_ntlm_core" = "xyes"; then
46314   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
46315   if test "x$SSL_ENABLED" = "x1"; then
46316     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
46317   fi
46318 fi
46319 if test "x$CURL_DISABLE_SMTP" != "x1"; then
46320   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
46321   if test "x$SSL_ENABLED" = "x1"; then
46322     SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
46323   fi
46324 fi
46325 if test "x$USE_LIBSSH2" = "x1"; then
46326   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
46327   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
46328 fi
46329 if test "x$USE_LIBSSH" = "x1"; then
46330   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
46331   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
46332 fi
46333 if test "x$USE_WOLFSSH" = "x1"; then
46334   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
46335 fi
46336 if test "x$CURL_DISABLE_RTSP" != "x1"; then
46337   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
46338 fi
46339 if test "x$USE_LIBRTMP" = "x1"; then
46340   SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
46341 fi
46342
46343 SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
46344
46345
46346
46347
46348 squeeze CFLAGS
46349 squeeze CPPFLAGS
46350 squeeze DEFS
46351 squeeze LDFLAGS
46352 squeeze LIBS
46353
46354 squeeze LIBCURL_LIBS
46355 squeeze CURL_NETWORK_LIBS
46356 squeeze CURL_NETWORK_AND_TIME_LIBS
46357
46358 squeeze SUPPORT_FEATURES
46359 squeeze SUPPORT_PROTOCOLS
46360
46361
46362
46363   xc_bad_var_libs=no
46364   for xc_word in $LIBS; do
46365     case "$xc_word" in
46366       -l* | --library=*)
46367         :
46368         ;;
46369       *)
46370         xc_bad_var_libs=yes
46371         ;;
46372     esac
46373   done
46374   if test $xc_bad_var_libs = yes; then
46375     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
46376 printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;}
46377     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
46378 printf "%s\n" "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
46379   fi
46380
46381
46382   xc_bad_var_ldflags=no
46383   for xc_word in $LDFLAGS; do
46384     case "$xc_word" in
46385       -D*)
46386         xc_bad_var_ldflags=yes
46387         ;;
46388       -U*)
46389         xc_bad_var_ldflags=yes
46390         ;;
46391       -I*)
46392         xc_bad_var_ldflags=yes
46393         ;;
46394       -l* | --library=*)
46395         xc_bad_var_ldflags=yes
46396         ;;
46397     esac
46398   done
46399   if test $xc_bad_var_ldflags = yes; then
46400     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
46401 printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
46402     xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
46403     for xc_word in $LDFLAGS; do
46404       case "$xc_word" in
46405         -D*)
46406           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
46407 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
46408           ;;
46409         -U*)
46410           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
46411 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
46412           ;;
46413         -I*)
46414           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
46415 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
46416           ;;
46417         -l* | --library=*)
46418           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
46419 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
46420           ;;
46421       esac
46422     done
46423   fi
46424
46425
46426   xc_bad_var_cppflags=no
46427   for xc_word in $CPPFLAGS; do
46428     case "$xc_word" in
46429       -rpath*)
46430         xc_bad_var_cppflags=yes
46431         ;;
46432       -L* | --library-path=*)
46433         xc_bad_var_cppflags=yes
46434         ;;
46435       -l* | --library=*)
46436         xc_bad_var_cppflags=yes
46437         ;;
46438     esac
46439   done
46440   if test $xc_bad_var_cppflags = yes; then
46441     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
46442 printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
46443     xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
46444     for xc_word in $CPPFLAGS; do
46445       case "$xc_word" in
46446         -rpath*)
46447           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
46448 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
46449           ;;
46450         -L* | --library-path=*)
46451           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
46452 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
46453           ;;
46454         -l* | --library=*)
46455           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
46456 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
46457           ;;
46458       esac
46459     done
46460   fi
46461
46462
46463   xc_bad_var_cflags=no
46464   for xc_word in $CFLAGS; do
46465     case "$xc_word" in
46466       -D*)
46467         xc_bad_var_cflags=yes
46468         ;;
46469       -U*)
46470         xc_bad_var_cflags=yes
46471         ;;
46472       -I*)
46473         xc_bad_var_cflags=yes
46474         ;;
46475       -rpath*)
46476         xc_bad_var_cflags=yes
46477         ;;
46478       -L* | --library-path=*)
46479         xc_bad_var_cflags=yes
46480         ;;
46481       -l* | --library=*)
46482         xc_bad_var_cflags=yes
46483         ;;
46484     esac
46485   done
46486   if test $xc_bad_var_cflags = yes; then
46487     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
46488 printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;}
46489     xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
46490     for xc_word in $CFLAGS; do
46491       case "$xc_word" in
46492         -D*)
46493           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
46494 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
46495           ;;
46496         -U*)
46497           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
46498 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
46499           ;;
46500         -I*)
46501           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
46502 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
46503           ;;
46504         -rpath*)
46505           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
46506 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
46507           ;;
46508         -L* | --library-path=*)
46509           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
46510 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
46511           ;;
46512         -l* | --library=*)
46513           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
46514 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
46515           ;;
46516       esac
46517     done
46518   fi
46519
46520   if test $xc_bad_var_libs = yes ||
46521      test $xc_bad_var_cflags = yes ||
46522      test $xc_bad_var_ldflags = yes ||
46523      test $xc_bad_var_cppflags = yes; then
46524      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
46525 printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
46526   fi
46527
46528
46529 SSL_BACKENDS=${ssl_backends}
46530
46531
46532 if test "x$want_curldebug_assumed" = "xyes" &&
46533   test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
46534   ac_configure_args="$ac_configure_args --enable-curldebug"
46535 fi
46536
46537 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"
46538
46539 cat >confcache <<\_ACEOF
46540 # This file is a shell script that caches the results of configure
46541 # tests run on this system so they can be shared between configure
46542 # scripts and configure runs, see configure's option --config-cache.
46543 # It is not useful on other systems.  If it contains results you don't
46544 # want to keep, you may remove or edit it.
46545 #
46546 # config.status only pays attention to the cache file if you give it
46547 # the --recheck option to rerun configure.
46548 #
46549 # `ac_cv_env_foo' variables (set or unset) will be overridden when
46550 # loading this file, other *unset* `ac_cv_foo' will be assigned the
46551 # following values.
46552
46553 _ACEOF
46554
46555 # The following way of writing the cache mishandles newlines in values,
46556 # but we know of no workaround that is simple, portable, and efficient.
46557 # So, we kill variables containing newlines.
46558 # Ultrix sh set writes to stderr and can't be redirected directly,
46559 # and sets the high bit in the cache file unless we assign to the vars.
46560 (
46561   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
46562     eval ac_val=\$$ac_var
46563     case $ac_val in #(
46564     *${as_nl}*)
46565       case $ac_var in #(
46566       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
46567 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
46568       esac
46569       case $ac_var in #(
46570       _ | IFS | as_nl) ;; #(
46571       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
46572       *) { eval $ac_var=; unset $ac_var;} ;;
46573       esac ;;
46574     esac
46575   done
46576
46577   (set) 2>&1 |
46578     case $as_nl`(ac_space=' '; set) 2>&1` in #(
46579     *${as_nl}ac_space=\ *)
46580       # `set' does not quote correctly, so add quotes: double-quote
46581       # substitution turns \\\\ into \\, and sed turns \\ into \.
46582       sed -n \
46583         "s/'/'\\\\''/g;
46584           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
46585       ;; #(
46586     *)
46587       # `set' quotes correctly as required by POSIX, so do not add quotes.
46588       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
46589       ;;
46590     esac |
46591     sort
46592 ) |
46593   sed '
46594      /^ac_cv_env_/b end
46595      t clear
46596      :clear
46597      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
46598      t end
46599      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
46600      :end' >>confcache
46601 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
46602   if test -w "$cache_file"; then
46603     if test "x$cache_file" != "x/dev/null"; then
46604       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
46605 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
46606       if test ! -f "$cache_file" || test -h "$cache_file"; then
46607         cat confcache >"$cache_file"
46608       else
46609         case $cache_file in #(
46610         */* | ?:*)
46611           mv -f confcache "$cache_file"$$ &&
46612           mv -f "$cache_file"$$ "$cache_file" ;; #(
46613         *)
46614           mv -f confcache "$cache_file" ;;
46615         esac
46616       fi
46617     fi
46618   else
46619     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
46620 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
46621   fi
46622 fi
46623 rm -f confcache
46624
46625 test "x$prefix" = xNONE && prefix=$ac_default_prefix
46626 # Let make expand exec_prefix.
46627 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
46628
46629 DEFS=-DHAVE_CONFIG_H
46630
46631 ac_libobjs=
46632 ac_ltlibobjs=
46633 U=
46634 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
46635   # 1. Remove the extension, and $U if already installed.
46636   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
46637   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
46638   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
46639   #    will be set to the directory where LIBOBJS objects are built.
46640   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
46641   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
46642 done
46643 LIBOBJS=$ac_libobjs
46644
46645 LTLIBOBJS=$ac_ltlibobjs
46646
46647
46648 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
46649   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
46650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46651 fi
46652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
46653 printf %s "checking that generated files are newer than configure... " >&6; }
46654    if test -n "$am_sleep_pid"; then
46655      # Hide warnings about reused PIDs.
46656      wait $am_sleep_pid 2>/dev/null
46657    fi
46658    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
46659 printf "%s\n" "done" >&6; }
46660 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
46661   as_fn_error $? "conditional \"AMDEP\" was never defined.
46662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46663 fi
46664 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
46665   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
46666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46667 fi
46668  if test -n "$EXEEXT"; then
46669   am__EXEEXT_TRUE=
46670   am__EXEEXT_FALSE='#'
46671 else
46672   am__EXEEXT_TRUE='#'
46673   am__EXEEXT_FALSE=
46674 fi
46675
46676 if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
46677   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
46678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46679 fi
46680 if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
46681   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
46682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46683 fi
46684 if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
46685   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
46686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46687 fi
46688 if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
46689   as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
46690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46691 fi
46692 if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
46693   as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
46694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46695 fi
46696 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
46697   as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
46698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46699 fi
46700 if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
46701   as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
46702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46703 fi
46704 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
46705   as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
46706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46707 fi
46708 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
46709   as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
46710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46711 fi
46712 if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
46713   as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
46714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46715 fi
46716 if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
46717   as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
46718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46719 fi
46720 if test -z "${USE_GSASL_TRUE}" && test -z "${USE_GSASL_FALSE}"; then
46721   as_fn_error $? "conditional \"USE_GSASL\" was never defined.
46722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46723 fi
46724 if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
46725   as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
46726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46727 fi
46728 if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
46729   as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
46730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46731 fi
46732 if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
46733   as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
46734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46735 fi
46736 if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
46737   as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
46738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46739 fi
46740 if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
46741   as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
46742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46743 fi
46744 if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
46745   as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
46746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46747 fi
46748
46749 : "${CONFIG_STATUS=./config.status}"
46750 ac_write_fail=0
46751 ac_clean_files_save=$ac_clean_files
46752 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
46753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
46754 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
46755 as_write_fail=0
46756 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
46757 #! $SHELL
46758 # Generated by $as_me.
46759 # Run this file to recreate the current configuration.
46760 # Compiler output produced by configure, useful for debugging
46761 # configure, is in config.log if it exists.
46762
46763 debug=false
46764 ac_cs_recheck=false
46765 ac_cs_silent=false
46766
46767 SHELL=\${CONFIG_SHELL-$SHELL}
46768 export SHELL
46769 _ASEOF
46770 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
46771 ## -------------------- ##
46772 ## M4sh Initialization. ##
46773 ## -------------------- ##
46774
46775 # Be more Bourne compatible
46776 DUALCASE=1; export DUALCASE # for MKS sh
46777 as_nop=:
46778 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
46779 then :
46780   emulate sh
46781   NULLCMD=:
46782   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
46783   # is contrary to our usage.  Disable this feature.
46784   alias -g '${1+"$@"}'='"$@"'
46785   setopt NO_GLOB_SUBST
46786 else $as_nop
46787   case `(set -o) 2>/dev/null` in #(
46788   *posix*) :
46789     set -o posix ;; #(
46790   *) :
46791      ;;
46792 esac
46793 fi
46794
46795
46796
46797 # Reset variables that may have inherited troublesome values from
46798 # the environment.
46799
46800 # IFS needs to be set, to space, tab, and newline, in precisely that order.
46801 # (If _AS_PATH_WALK were called with IFS unset, it would have the
46802 # side effect of setting IFS to empty, thus disabling word splitting.)
46803 # Quoting is to prevent editors from complaining about space-tab.
46804 as_nl='
46805 '
46806 export as_nl
46807 IFS=" ""        $as_nl"
46808
46809 PS1='$ '
46810 PS2='> '
46811 PS4='+ '
46812
46813 # Ensure predictable behavior from utilities with locale-dependent output.
46814 LC_ALL=C
46815 export LC_ALL
46816 LANGUAGE=C
46817 export LANGUAGE
46818
46819 # We cannot yet rely on "unset" to work, but we need these variables
46820 # to be unset--not just set to an empty or harmless value--now, to
46821 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
46822 # also avoids known problems related to "unset" and subshell syntax
46823 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
46824 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
46825 do eval test \${$as_var+y} \
46826   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
46827 done
46828
46829 # Ensure that fds 0, 1, and 2 are open.
46830 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
46831 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
46832 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
46833
46834
46835
46836 # Find who we are.  Look in the path if we contain no directory separator.
46837 as_myself=
46838 case $0 in #((
46839   *[\\/]* ) as_myself=$0 ;;
46840   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46841 for as_dir in $PATH
46842 do
46843   IFS=$as_save_IFS
46844   case $as_dir in #(((
46845     '') as_dir=./ ;;
46846     */) ;;
46847     *) as_dir=$as_dir/ ;;
46848   esac
46849     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
46850   done
46851 IFS=$as_save_IFS
46852
46853      ;;
46854 esac
46855 # We did not find ourselves, most probably we were run as `sh COMMAND'
46856 # in which case we are not to be found in the path.
46857 if test "x$as_myself" = x; then
46858   as_myself=$0
46859 fi
46860 if test ! -f "$as_myself"; then
46861   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
46862   exit 1
46863 fi
46864
46865
46866
46867 # as_fn_error STATUS ERROR [LINENO LOG_FD]
46868 # ----------------------------------------
46869 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
46870 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
46871 # script with STATUS, using 1 if that was 0.
46872 as_fn_error ()
46873 {
46874   as_status=$1; test $as_status -eq 0 && as_status=1
46875   if test "$4"; then
46876     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
46877     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
46878   fi
46879   printf "%s\n" "$as_me: error: $2" >&2
46880   as_fn_exit $as_status
46881 } # as_fn_error
46882
46883
46884
46885 # as_fn_set_status STATUS
46886 # -----------------------
46887 # Set $? to STATUS, without forking.
46888 as_fn_set_status ()
46889 {
46890   return $1
46891 } # as_fn_set_status
46892
46893 # as_fn_exit STATUS
46894 # -----------------
46895 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
46896 as_fn_exit ()
46897 {
46898   set +e
46899   as_fn_set_status $1
46900   exit $1
46901 } # as_fn_exit
46902
46903 # as_fn_unset VAR
46904 # ---------------
46905 # Portably unset VAR.
46906 as_fn_unset ()
46907 {
46908   { eval $1=; unset $1;}
46909 }
46910 as_unset=as_fn_unset
46911
46912 # as_fn_append VAR VALUE
46913 # ----------------------
46914 # Append the text in VALUE to the end of the definition contained in VAR. Take
46915 # advantage of any shell optimizations that allow amortized linear growth over
46916 # repeated appends, instead of the typical quadratic growth present in naive
46917 # implementations.
46918 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
46919 then :
46920   eval 'as_fn_append ()
46921   {
46922     eval $1+=\$2
46923   }'
46924 else $as_nop
46925   as_fn_append ()
46926   {
46927     eval $1=\$$1\$2
46928   }
46929 fi # as_fn_append
46930
46931 # as_fn_arith ARG...
46932 # ------------------
46933 # Perform arithmetic evaluation on the ARGs, and store the result in the
46934 # global $as_val. Take advantage of shells that can avoid forks. The arguments
46935 # must be portable across $(()) and expr.
46936 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
46937 then :
46938   eval 'as_fn_arith ()
46939   {
46940     as_val=$(( $* ))
46941   }'
46942 else $as_nop
46943   as_fn_arith ()
46944   {
46945     as_val=`expr "$@" || test $? -eq 1`
46946   }
46947 fi # as_fn_arith
46948
46949
46950 if expr a : '\(a\)' >/dev/null 2>&1 &&
46951    test "X`expr 00001 : '.*\(...\)'`" = X001; then
46952   as_expr=expr
46953 else
46954   as_expr=false
46955 fi
46956
46957 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
46958   as_basename=basename
46959 else
46960   as_basename=false
46961 fi
46962
46963 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
46964   as_dirname=dirname
46965 else
46966   as_dirname=false
46967 fi
46968
46969 as_me=`$as_basename -- "$0" ||
46970 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46971          X"$0" : 'X\(//\)$' \| \
46972          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
46973 printf "%s\n" X/"$0" |
46974     sed '/^.*\/\([^/][^/]*\)\/*$/{
46975             s//\1/
46976             q
46977           }
46978           /^X\/\(\/\/\)$/{
46979             s//\1/
46980             q
46981           }
46982           /^X\/\(\/\).*/{
46983             s//\1/
46984             q
46985           }
46986           s/.*/./; q'`
46987
46988 # Avoid depending upon Character Ranges.
46989 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
46990 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
46991 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
46992 as_cr_digits='0123456789'
46993 as_cr_alnum=$as_cr_Letters$as_cr_digits
46994
46995
46996 # Determine whether it's possible to make 'echo' print without a newline.
46997 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
46998 # for compatibility with existing Makefiles.
46999 ECHO_C= ECHO_N= ECHO_T=
47000 case `echo -n x` in #(((((
47001 -n*)
47002   case `echo 'xy\c'` in
47003   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
47004   xy)  ECHO_C='\c';;
47005   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
47006        ECHO_T=' ';;
47007   esac;;
47008 *)
47009   ECHO_N='-n';;
47010 esac
47011
47012 # For backward compatibility with old third-party macros, we provide
47013 # the shell variables $as_echo and $as_echo_n.  New code should use
47014 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
47015 as_echo='printf %s\n'
47016 as_echo_n='printf %s'
47017
47018 rm -f conf$$ conf$$.exe conf$$.file
47019 if test -d conf$$.dir; then
47020   rm -f conf$$.dir/conf$$.file
47021 else
47022   rm -f conf$$.dir
47023   mkdir conf$$.dir 2>/dev/null
47024 fi
47025 if (echo >conf$$.file) 2>/dev/null; then
47026   if ln -s conf$$.file conf$$ 2>/dev/null; then
47027     as_ln_s='ln -s'
47028     # ... but there are two gotchas:
47029     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
47030     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
47031     # In both cases, we have to default to `cp -pR'.
47032     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
47033       as_ln_s='cp -pR'
47034   elif ln conf$$.file conf$$ 2>/dev/null; then
47035     as_ln_s=ln
47036   else
47037     as_ln_s='cp -pR'
47038   fi
47039 else
47040   as_ln_s='cp -pR'
47041 fi
47042 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
47043 rmdir conf$$.dir 2>/dev/null
47044
47045
47046 # as_fn_mkdir_p
47047 # -------------
47048 # Create "$as_dir" as a directory, including parents if necessary.
47049 as_fn_mkdir_p ()
47050 {
47051
47052   case $as_dir in #(
47053   -*) as_dir=./$as_dir;;
47054   esac
47055   test -d "$as_dir" || eval $as_mkdir_p || {
47056     as_dirs=
47057     while :; do
47058       case $as_dir in #(
47059       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
47060       *) as_qdir=$as_dir;;
47061       esac
47062       as_dirs="'$as_qdir' $as_dirs"
47063       as_dir=`$as_dirname -- "$as_dir" ||
47064 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47065          X"$as_dir" : 'X\(//\)[^/]' \| \
47066          X"$as_dir" : 'X\(//\)$' \| \
47067          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
47068 printf "%s\n" X"$as_dir" |
47069     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47070             s//\1/
47071             q
47072           }
47073           /^X\(\/\/\)[^/].*/{
47074             s//\1/
47075             q
47076           }
47077           /^X\(\/\/\)$/{
47078             s//\1/
47079             q
47080           }
47081           /^X\(\/\).*/{
47082             s//\1/
47083             q
47084           }
47085           s/.*/./; q'`
47086       test -d "$as_dir" && break
47087     done
47088     test -z "$as_dirs" || eval "mkdir $as_dirs"
47089   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
47090
47091
47092 } # as_fn_mkdir_p
47093 if mkdir -p . 2>/dev/null; then
47094   as_mkdir_p='mkdir -p "$as_dir"'
47095 else
47096   test -d ./-p && rmdir ./-p
47097   as_mkdir_p=false
47098 fi
47099
47100
47101 # as_fn_executable_p FILE
47102 # -----------------------
47103 # Test if FILE is an executable regular file.
47104 as_fn_executable_p ()
47105 {
47106   test -f "$1" && test -x "$1"
47107 } # as_fn_executable_p
47108 as_test_x='test -x'
47109 as_executable_p=as_fn_executable_p
47110
47111 # Sed expression to map a string onto a valid CPP name.
47112 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
47113
47114 # Sed expression to map a string onto a valid variable name.
47115 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
47116
47117
47118 exec 6>&1
47119 ## ----------------------------------- ##
47120 ## Main body of $CONFIG_STATUS script. ##
47121 ## ----------------------------------- ##
47122 _ASEOF
47123 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
47124
47125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47126 # Save the log message, to keep $0 and so on meaningful, and to
47127 # report actual input values of CONFIG_FILES etc. instead of their
47128 # values after options handling.
47129 ac_log="
47130 This file was extended by curl $as_me -, which was
47131 generated by GNU Autoconf 2.71.  Invocation command line was
47132
47133   CONFIG_FILES    = $CONFIG_FILES
47134   CONFIG_HEADERS  = $CONFIG_HEADERS
47135   CONFIG_LINKS    = $CONFIG_LINKS
47136   CONFIG_COMMANDS = $CONFIG_COMMANDS
47137   $ $0 $@
47138
47139 on `(hostname || uname -n) 2>/dev/null | sed 1q`
47140 "
47141
47142 _ACEOF
47143
47144 case $ac_config_files in *"
47145 "*) set x $ac_config_files; shift; ac_config_files=$*;;
47146 esac
47147
47148 case $ac_config_headers in *"
47149 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
47150 esac
47151
47152
47153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47154 # Files that config.status was made for.
47155 config_files="$ac_config_files"
47156 config_headers="$ac_config_headers"
47157 config_commands="$ac_config_commands"
47158
47159 _ACEOF
47160
47161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47162 ac_cs_usage="\
47163 \`$as_me' instantiates files and other configuration actions
47164 from templates according to the current configuration.  Unless the files
47165 and actions are specified as TAGs, all are instantiated by default.
47166
47167 Usage: $0 [OPTION]... [TAG]...
47168
47169   -h, --help       print this help, then exit
47170   -V, --version    print version number and configuration settings, then exit
47171       --config     print configuration, then exit
47172   -q, --quiet, --silent
47173                    do not print progress messages
47174   -d, --debug      don't remove temporary files
47175       --recheck    update $as_me by reconfiguring in the same conditions
47176       --file=FILE[:TEMPLATE]
47177                    instantiate the configuration file FILE
47178       --header=FILE[:TEMPLATE]
47179                    instantiate the configuration header FILE
47180
47181 Configuration files:
47182 $config_files
47183
47184 Configuration headers:
47185 $config_headers
47186
47187 Configuration commands:
47188 $config_commands
47189
47190 Report bugs to <a suitable curl mailing list: https://curl.se/mail/>."
47191
47192 _ACEOF
47193 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
47194 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
47195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47196 ac_cs_config='$ac_cs_config_escaped'
47197 ac_cs_version="\\
47198 curl config.status -
47199 configured by $0, generated by GNU Autoconf 2.71,
47200   with options \\"\$ac_cs_config\\"
47201
47202 Copyright (C) 2021 Free Software Foundation, Inc.
47203 This config.status script is free software; the Free Software Foundation
47204 gives unlimited permission to copy, distribute and modify it."
47205
47206 ac_pwd='$ac_pwd'
47207 srcdir='$srcdir'
47208 INSTALL='$INSTALL'
47209 MKDIR_P='$MKDIR_P'
47210 AWK='$AWK'
47211 test -n "\$AWK" || AWK=awk
47212 _ACEOF
47213
47214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47215 # The default lists apply if the user does not specify any file.
47216 ac_need_defaults=:
47217 while test $# != 0
47218 do
47219   case $1 in
47220   --*=?*)
47221     ac_option=`expr "X$1" : 'X\([^=]*\)='`
47222     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
47223     ac_shift=:
47224     ;;
47225   --*=)
47226     ac_option=`expr "X$1" : 'X\([^=]*\)='`
47227     ac_optarg=
47228     ac_shift=:
47229     ;;
47230   *)
47231     ac_option=$1
47232     ac_optarg=$2
47233     ac_shift=shift
47234     ;;
47235   esac
47236
47237   case $ac_option in
47238   # Handling of the options.
47239   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
47240     ac_cs_recheck=: ;;
47241   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
47242     printf "%s\n" "$ac_cs_version"; exit ;;
47243   --config | --confi | --conf | --con | --co | --c )
47244     printf "%s\n" "$ac_cs_config"; exit ;;
47245   --debug | --debu | --deb | --de | --d | -d )
47246     debug=: ;;
47247   --file | --fil | --fi | --f )
47248     $ac_shift
47249     case $ac_optarg in
47250     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
47251     '') as_fn_error $? "missing file argument" ;;
47252     esac
47253     as_fn_append CONFIG_FILES " '$ac_optarg'"
47254     ac_need_defaults=false;;
47255   --header | --heade | --head | --hea )
47256     $ac_shift
47257     case $ac_optarg in
47258     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
47259     esac
47260     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
47261     ac_need_defaults=false;;
47262   --he | --h)
47263     # Conflict between --help and --header
47264     as_fn_error $? "ambiguous option: \`$1'
47265 Try \`$0 --help' for more information.";;
47266   --help | --hel | -h )
47267     printf "%s\n" "$ac_cs_usage"; exit ;;
47268   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
47269   | -silent | --silent | --silen | --sile | --sil | --si | --s)
47270     ac_cs_silent=: ;;
47271
47272   # This is an error.
47273   -*) as_fn_error $? "unrecognized option: \`$1'
47274 Try \`$0 --help' for more information." ;;
47275
47276   *) as_fn_append ac_config_targets " $1"
47277      ac_need_defaults=false ;;
47278
47279   esac
47280   shift
47281 done
47282
47283 ac_configure_extra_args=
47284
47285 if $ac_cs_silent; then
47286   exec 6>/dev/null
47287   ac_configure_extra_args="$ac_configure_extra_args --silent"
47288 fi
47289
47290 _ACEOF
47291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47292 if \$ac_cs_recheck; then
47293   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
47294   shift
47295   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
47296   CONFIG_SHELL='$SHELL'
47297   export CONFIG_SHELL
47298   exec "\$@"
47299 fi
47300
47301 _ACEOF
47302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47303 exec 5>>config.log
47304 {
47305   echo
47306   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
47307 ## Running $as_me. ##
47308 _ASBOX
47309   printf "%s\n" "$ac_log"
47310 } >&5
47311
47312 _ACEOF
47313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47314 #
47315 # INIT-COMMANDS
47316 #
47317 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
47318
47319
47320 # The HP-UX ksh and POSIX shell print the target directory to stdout
47321 # if CDPATH is set.
47322 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
47323
47324 sed_quote_subst='$sed_quote_subst'
47325 double_quote_subst='$double_quote_subst'
47326 delay_variable_subst='$delay_variable_subst'
47327 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
47328 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
47329 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
47330 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
47331 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
47332 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
47333 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
47334 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
47335 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
47336 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
47337 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
47338 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
47339 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
47340 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
47341 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
47342 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
47343 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
47344 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
47345 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
47346 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
47347 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
47348 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
47349 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
47350 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
47351 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
47352 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
47353 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
47354 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
47355 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
47356 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
47357 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
47358 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
47359 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
47360 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
47361 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
47362 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
47363 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
47364 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
47365 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
47366 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
47367 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
47368 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
47369 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
47370 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
47371 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
47372 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
47373 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
47374 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
47375 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
47376 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
47377 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
47378 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
47379 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
47380 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
47381 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
47382 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
47383 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
47384 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
47385 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
47386 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"`'
47387 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
47388 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
47389 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
47390 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
47391 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
47392 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
47393 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
47394 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
47395 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
47396 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
47397 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
47398 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
47399 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
47400 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
47401 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
47402 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
47403 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
47404 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
47405 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
47406 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
47407 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
47408 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
47409 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
47410 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
47411 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
47412 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
47413 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
47414 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
47415 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
47416 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
47417 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
47418 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
47419 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
47420 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
47421 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
47422 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
47423 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
47424 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
47425 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
47426 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
47427 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
47428 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
47429 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
47430 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
47431 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
47432 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
47433 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
47434 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
47435 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
47436 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
47437 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
47438 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
47439 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
47440 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
47441 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
47442 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
47443 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
47444 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
47445 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
47446 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
47447 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
47448 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
47449 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
47450 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
47451 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
47452 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
47453 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
47454 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
47455 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
47456 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
47457 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
47458 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
47459 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
47460 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
47461 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
47462 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
47463
47464 LTCC='$LTCC'
47465 LTCFLAGS='$LTCFLAGS'
47466 compiler='$compiler_DEFAULT'
47467
47468 # A function that is used when there is no print builtin or printf.
47469 func_fallback_echo ()
47470 {
47471   eval 'cat <<_LTECHO_EOF
47472 \$1
47473 _LTECHO_EOF'
47474 }
47475
47476 # Quote evaled strings.
47477 for var in AS \
47478 DLLTOOL \
47479 OBJDUMP \
47480 SHELL \
47481 ECHO \
47482 PATH_SEPARATOR \
47483 SED \
47484 GREP \
47485 EGREP \
47486 FGREP \
47487 LD \
47488 NM \
47489 LN_S \
47490 lt_SP2NL \
47491 lt_NL2SP \
47492 reload_flag \
47493 deplibs_check_method \
47494 file_magic_cmd \
47495 file_magic_glob \
47496 want_nocaseglob \
47497 sharedlib_from_linklib_cmd \
47498 AR \
47499 AR_FLAGS \
47500 archiver_list_spec \
47501 STRIP \
47502 RANLIB \
47503 CC \
47504 CFLAGS \
47505 compiler \
47506 lt_cv_sys_global_symbol_pipe \
47507 lt_cv_sys_global_symbol_to_cdecl \
47508 lt_cv_sys_global_symbol_to_import \
47509 lt_cv_sys_global_symbol_to_c_name_address \
47510 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
47511 lt_cv_nm_interface \
47512 nm_file_list_spec \
47513 lt_cv_truncate_bin \
47514 lt_prog_compiler_no_builtin_flag \
47515 lt_prog_compiler_pic \
47516 lt_prog_compiler_wl \
47517 lt_prog_compiler_static \
47518 lt_cv_prog_compiler_c_o \
47519 need_locks \
47520 MANIFEST_TOOL \
47521 DSYMUTIL \
47522 NMEDIT \
47523 LIPO \
47524 OTOOL \
47525 OTOOL64 \
47526 shrext_cmds \
47527 export_dynamic_flag_spec \
47528 whole_archive_flag_spec \
47529 compiler_needs_object \
47530 with_gnu_ld \
47531 allow_undefined_flag \
47532 no_undefined_flag \
47533 hardcode_libdir_flag_spec \
47534 hardcode_libdir_separator \
47535 exclude_expsyms \
47536 include_expsyms \
47537 file_list_spec \
47538 variables_saved_for_relink \
47539 libname_spec \
47540 library_names_spec \
47541 soname_spec \
47542 install_override_mode \
47543 finish_eval \
47544 old_striplib \
47545 striplib; do
47546     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
47547     *[\\\\\\\`\\"\\\$]*)
47548       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
47549       ;;
47550     *)
47551       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
47552       ;;
47553     esac
47554 done
47555
47556 # Double-quote double-evaled strings.
47557 for var in reload_cmds \
47558 old_postinstall_cmds \
47559 old_postuninstall_cmds \
47560 old_archive_cmds \
47561 extract_expsyms_cmds \
47562 old_archive_from_new_cmds \
47563 old_archive_from_expsyms_cmds \
47564 archive_cmds \
47565 archive_expsym_cmds \
47566 module_cmds \
47567 module_expsym_cmds \
47568 export_symbols_cmds \
47569 prelink_cmds \
47570 postlink_cmds \
47571 postinstall_cmds \
47572 postuninstall_cmds \
47573 finish_cmds \
47574 sys_lib_search_path_spec \
47575 configure_time_dlsearch_path \
47576 configure_time_lt_sys_library_path; do
47577     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
47578     *[\\\\\\\`\\"\\\$]*)
47579       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
47580       ;;
47581     *)
47582       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
47583       ;;
47584     esac
47585 done
47586
47587 ac_aux_dir='$ac_aux_dir'
47588
47589 # See if we are running on zsh, and set the options that allow our
47590 # commands through without removal of \ escapes INIT.
47591 if test -n "\${ZSH_VERSION+set}"; then
47592    setopt NO_GLOB_SUBST
47593 fi
47594
47595
47596     PACKAGE='$PACKAGE'
47597     VERSION='$VERSION'
47598     RM='$RM'
47599     ofile='$ofile'
47600
47601
47602
47603
47604 _ACEOF
47605
47606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47607
47608 # Handling of arguments.
47609 for ac_config_target in $ac_config_targets
47610 do
47611   case $ac_config_target in
47612     "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
47613     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
47614     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
47615     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
47616     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
47617     "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
47618     "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
47619     "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
47620     "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
47621     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
47622     "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
47623     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
47624     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
47625     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
47626     "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
47627     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
47628     "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
47629     "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
47630     "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
47631     "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
47632     "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
47633     "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
47634     "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
47635     "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
47636     "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
47637     "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
47638
47639   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
47640   esac
47641 done
47642
47643
47644 # If the user did not use the arguments to specify the items to instantiate,
47645 # then the envvar interface is used.  Set only those that are not.
47646 # We use the long form for the default assignment because of an extremely
47647 # bizarre bug on SunOS 4.1.3.
47648 if $ac_need_defaults; then
47649   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
47650   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
47651   test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
47652 fi
47653
47654 # Have a temporary directory for convenience.  Make it in the build tree
47655 # simply because there is no reason against having it here, and in addition,
47656 # creating and moving files from /tmp can sometimes cause problems.
47657 # Hook for its removal unless debugging.
47658 # Note that there is a small window in which the directory will not be cleaned:
47659 # after its creation but before its name has been assigned to `$tmp'.
47660 $debug ||
47661 {
47662   tmp= ac_tmp=
47663   trap 'exit_status=$?
47664   : "${ac_tmp:=$tmp}"
47665   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
47666 ' 0
47667   trap 'as_fn_exit 1' 1 2 13 15
47668 }
47669 # Create a (secure) tmp directory for tmp files.
47670
47671 {
47672   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
47673   test -d "$tmp"
47674 }  ||
47675 {
47676   tmp=./conf$$-$RANDOM
47677   (umask 077 && mkdir "$tmp")
47678 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
47679 ac_tmp=$tmp
47680
47681 # Set up the scripts for CONFIG_FILES section.
47682 # No need to generate them if there are no CONFIG_FILES.
47683 # This happens for instance with `./config.status config.h'.
47684 if test -n "$CONFIG_FILES"; then
47685
47686
47687 ac_cr=`echo X | tr X '\015'`
47688 # On cygwin, bash can eat \r inside `` if the user requested igncr.
47689 # But we know of no other shell where ac_cr would be empty at this
47690 # point, so we can use a bashism as a fallback.
47691 if test "x$ac_cr" = x; then
47692   eval ac_cr=\$\'\\r\'
47693 fi
47694 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
47695 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
47696   ac_cs_awk_cr='\\r'
47697 else
47698   ac_cs_awk_cr=$ac_cr
47699 fi
47700
47701 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
47702 _ACEOF
47703
47704
47705 {
47706   echo "cat >conf$$subs.awk <<_ACEOF" &&
47707   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
47708   echo "_ACEOF"
47709 } >conf$$subs.sh ||
47710   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
47711 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
47712 ac_delim='%!_!# '
47713 for ac_last_try in false false false false false :; do
47714   . ./conf$$subs.sh ||
47715     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
47716
47717   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
47718   if test $ac_delim_n = $ac_delim_num; then
47719     break
47720   elif $ac_last_try; then
47721     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
47722   else
47723     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47724   fi
47725 done
47726 rm -f conf$$subs.sh
47727
47728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47729 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
47730 _ACEOF
47731 sed -n '
47732 h
47733 s/^/S["/; s/!.*/"]=/
47734 p
47735 g
47736 s/^[^!]*!//
47737 :repl
47738 t repl
47739 s/'"$ac_delim"'$//
47740 t delim
47741 :nl
47742 h
47743 s/\(.\{148\}\)..*/\1/
47744 t more1
47745 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
47746 p
47747 n
47748 b repl
47749 :more1
47750 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
47751 p
47752 g
47753 s/.\{148\}//
47754 t nl
47755 :delim
47756 h
47757 s/\(.\{148\}\)..*/\1/
47758 t more2
47759 s/["\\]/\\&/g; s/^/"/; s/$/"/
47760 p
47761 b
47762 :more2
47763 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
47764 p
47765 g
47766 s/.\{148\}//
47767 t delim
47768 ' <conf$$subs.awk | sed '
47769 /^[^""]/{
47770   N
47771   s/\n//
47772 }
47773 ' >>$CONFIG_STATUS || ac_write_fail=1
47774 rm -f conf$$subs.awk
47775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47776 _ACAWK
47777 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
47778   for (key in S) S_is_set[key] = 1
47779   FS = "\a"
47780
47781 }
47782 {
47783   line = $ 0
47784   nfields = split(line, field, "@")
47785   substed = 0
47786   len = length(field[1])
47787   for (i = 2; i < nfields; i++) {
47788     key = field[i]
47789     keylen = length(key)
47790     if (S_is_set[key]) {
47791       value = S[key]
47792       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
47793       len += length(value) + length(field[++i])
47794       substed = 1
47795     } else
47796       len += 1 + keylen
47797   }
47798
47799   print line
47800 }
47801
47802 _ACAWK
47803 _ACEOF
47804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47805 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
47806   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
47807 else
47808   cat
47809 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
47810   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
47811 _ACEOF
47812
47813 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
47814 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
47815 # trailing colons and then remove the whole line if VPATH becomes empty
47816 # (actually we leave an empty line to preserve line numbers).
47817 if test "x$srcdir" = x.; then
47818   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
47819 h
47820 s///
47821 s/^/:/
47822 s/[      ]*$/:/
47823 s/:\$(srcdir):/:/g
47824 s/:\${srcdir}:/:/g
47825 s/:@srcdir@:/:/g
47826 s/^:*//
47827 s/:*$//
47828 x
47829 s/\(=[   ]*\).*/\1/
47830 G
47831 s/\n//
47832 s/^[^=]*=[       ]*$//
47833 }'
47834 fi
47835
47836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47837 fi # test -n "$CONFIG_FILES"
47838
47839 # Set up the scripts for CONFIG_HEADERS section.
47840 # No need to generate them if there are no CONFIG_HEADERS.
47841 # This happens for instance with `./config.status Makefile'.
47842 if test -n "$CONFIG_HEADERS"; then
47843 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
47844 BEGIN {
47845 _ACEOF
47846
47847 # Transform confdefs.h into an awk script `defines.awk', embedded as
47848 # here-document in config.status, that substitutes the proper values into
47849 # config.h.in to produce config.h.
47850
47851 # Create a delimiter string that does not exist in confdefs.h, to ease
47852 # handling of long lines.
47853 ac_delim='%!_!# '
47854 for ac_last_try in false false :; do
47855   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
47856   if test -z "$ac_tt"; then
47857     break
47858   elif $ac_last_try; then
47859     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
47860   else
47861     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47862   fi
47863 done
47864
47865 # For the awk script, D is an array of macro values keyed by name,
47866 # likewise P contains macro parameters if any.  Preserve backslash
47867 # newline sequences.
47868
47869 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
47870 sed -n '
47871 s/.\{148\}/&'"$ac_delim"'/g
47872 t rset
47873 :rset
47874 s/^[     ]*#[    ]*define[       ][      ]*/ /
47875 t def
47876 d
47877 :def
47878 s/\\$//
47879 t bsnl
47880 s/["\\]/\\&/g
47881 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
47882 D["\1"]=" \3"/p
47883 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
47884 d
47885 :bsnl
47886 s/["\\]/\\&/g
47887 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
47888 D["\1"]=" \3\\\\\\n"\\/p
47889 t cont
47890 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
47891 t cont
47892 d
47893 :cont
47894 n
47895 s/.\{148\}/&'"$ac_delim"'/g
47896 t clear
47897 :clear
47898 s/\\$//
47899 t bsnlc
47900 s/["\\]/\\&/g; s/^/"/; s/$/"/p
47901 d
47902 :bsnlc
47903 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
47904 b cont
47905 ' <confdefs.h | sed '
47906 s/'"$ac_delim"'/"\\\
47907 "/g' >>$CONFIG_STATUS || ac_write_fail=1
47908
47909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47910   for (key in D) D_is_set[key] = 1
47911   FS = "\a"
47912 }
47913 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
47914   line = \$ 0
47915   split(line, arg, " ")
47916   if (arg[1] == "#") {
47917     defundef = arg[2]
47918     mac1 = arg[3]
47919   } else {
47920     defundef = substr(arg[1], 2)
47921     mac1 = arg[2]
47922   }
47923   split(mac1, mac2, "(") #)
47924   macro = mac2[1]
47925   prefix = substr(line, 1, index(line, defundef) - 1)
47926   if (D_is_set[macro]) {
47927     # Preserve the white space surrounding the "#".
47928     print prefix "define", macro P[macro] D[macro]
47929     next
47930   } else {
47931     # Replace #undef with comments.  This is necessary, for example,
47932     # in the case of _POSIX_SOURCE, which is predefined and required
47933     # on some systems where configure will not decide to define it.
47934     if (defundef == "undef") {
47935       print "/*", prefix defundef, macro, "*/"
47936       next
47937     }
47938   }
47939 }
47940 { print }
47941 _ACAWK
47942 _ACEOF
47943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47944   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
47945 fi # test -n "$CONFIG_HEADERS"
47946
47947
47948 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
47949 shift
47950 for ac_tag
47951 do
47952   case $ac_tag in
47953   :[FHLC]) ac_mode=$ac_tag; continue;;
47954   esac
47955   case $ac_mode$ac_tag in
47956   :[FHL]*:*);;
47957   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
47958   :[FH]-) ac_tag=-:-;;
47959   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
47960   esac
47961   ac_save_IFS=$IFS
47962   IFS=:
47963   set x $ac_tag
47964   IFS=$ac_save_IFS
47965   shift
47966   ac_file=$1
47967   shift
47968
47969   case $ac_mode in
47970   :L) ac_source=$1;;
47971   :[FH])
47972     ac_file_inputs=
47973     for ac_f
47974     do
47975       case $ac_f in
47976       -) ac_f="$ac_tmp/stdin";;
47977       *) # Look for the file first in the build tree, then in the source tree
47978          # (if the path is not absolute).  The absolute path cannot be DOS-style,
47979          # because $ac_f cannot contain `:'.
47980          test -f "$ac_f" ||
47981            case $ac_f in
47982            [\\/$]*) false;;
47983            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
47984            esac ||
47985            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
47986       esac
47987       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
47988       as_fn_append ac_file_inputs " '$ac_f'"
47989     done
47990
47991     # Let's still pretend it is `configure' which instantiates (i.e., don't
47992     # use $as_me), people would be surprised to read:
47993     #    /* config.h.  Generated by config.status.  */
47994     configure_input='Generated from '`
47995           printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
47996         `' by configure.'
47997     if test x"$ac_file" != x-; then
47998       configure_input="$ac_file.  $configure_input"
47999       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
48000 printf "%s\n" "$as_me: creating $ac_file" >&6;}
48001     fi
48002     # Neutralize special characters interpreted by sed in replacement strings.
48003     case $configure_input in #(
48004     *\&* | *\|* | *\\* )
48005        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
48006        sed 's/[\\\\&|]/\\\\&/g'`;; #(
48007     *) ac_sed_conf_input=$configure_input;;
48008     esac
48009
48010     case $ac_tag in
48011     *:-:* | *:-) cat >"$ac_tmp/stdin" \
48012       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
48013     esac
48014     ;;
48015   esac
48016
48017   ac_dir=`$as_dirname -- "$ac_file" ||
48018 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48019          X"$ac_file" : 'X\(//\)[^/]' \| \
48020          X"$ac_file" : 'X\(//\)$' \| \
48021          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
48022 printf "%s\n" X"$ac_file" |
48023     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48024             s//\1/
48025             q
48026           }
48027           /^X\(\/\/\)[^/].*/{
48028             s//\1/
48029             q
48030           }
48031           /^X\(\/\/\)$/{
48032             s//\1/
48033             q
48034           }
48035           /^X\(\/\).*/{
48036             s//\1/
48037             q
48038           }
48039           s/.*/./; q'`
48040   as_dir="$ac_dir"; as_fn_mkdir_p
48041   ac_builddir=.
48042
48043 case "$ac_dir" in
48044 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
48045 *)
48046   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
48047   # A ".." for each directory in $ac_dir_suffix.
48048   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
48049   case $ac_top_builddir_sub in
48050   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
48051   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
48052   esac ;;
48053 esac
48054 ac_abs_top_builddir=$ac_pwd
48055 ac_abs_builddir=$ac_pwd$ac_dir_suffix
48056 # for backward compatibility:
48057 ac_top_builddir=$ac_top_build_prefix
48058
48059 case $srcdir in
48060   .)  # We are building in place.
48061     ac_srcdir=.
48062     ac_top_srcdir=$ac_top_builddir_sub
48063     ac_abs_top_srcdir=$ac_pwd ;;
48064   [\\/]* | ?:[\\/]* )  # Absolute name.
48065     ac_srcdir=$srcdir$ac_dir_suffix;
48066     ac_top_srcdir=$srcdir
48067     ac_abs_top_srcdir=$srcdir ;;
48068   *) # Relative name.
48069     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
48070     ac_top_srcdir=$ac_top_build_prefix$srcdir
48071     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
48072 esac
48073 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
48074
48075
48076   case $ac_mode in
48077   :F)
48078   #
48079   # CONFIG_FILE
48080   #
48081
48082   case $INSTALL in
48083   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
48084   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
48085   esac
48086   ac_MKDIR_P=$MKDIR_P
48087   case $MKDIR_P in
48088   [\\/$]* | ?:[\\/]* ) ;;
48089   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
48090   esac
48091 _ACEOF
48092
48093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48094 # If the template does not know about datarootdir, expand it.
48095 # FIXME: This hack should be removed a few years after 2.60.
48096 ac_datarootdir_hack=; ac_datarootdir_seen=
48097 ac_sed_dataroot='
48098 /datarootdir/ {
48099   p
48100   q
48101 }
48102 /@datadir@/p
48103 /@docdir@/p
48104 /@infodir@/p
48105 /@localedir@/p
48106 /@mandir@/p'
48107 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
48108 *datarootdir*) ac_datarootdir_seen=yes;;
48109 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
48110   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
48111 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
48112 _ACEOF
48113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48114   ac_datarootdir_hack='
48115   s&@datadir@&$datadir&g
48116   s&@docdir@&$docdir&g
48117   s&@infodir@&$infodir&g
48118   s&@localedir@&$localedir&g
48119   s&@mandir@&$mandir&g
48120   s&\\\${datarootdir}&$datarootdir&g' ;;
48121 esac
48122 _ACEOF
48123
48124 # Neutralize VPATH when `$srcdir' = `.'.
48125 # Shell code in configure.ac might set extrasub.
48126 # FIXME: do we really want to maintain this feature?
48127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48128 ac_sed_extra="$ac_vpsub
48129 $extrasub
48130 _ACEOF
48131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48132 :t
48133 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
48134 s|@configure_input@|$ac_sed_conf_input|;t t
48135 s&@top_builddir@&$ac_top_builddir_sub&;t t
48136 s&@top_build_prefix@&$ac_top_build_prefix&;t t
48137 s&@srcdir@&$ac_srcdir&;t t
48138 s&@abs_srcdir@&$ac_abs_srcdir&;t t
48139 s&@top_srcdir@&$ac_top_srcdir&;t t
48140 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
48141 s&@builddir@&$ac_builddir&;t t
48142 s&@abs_builddir@&$ac_abs_builddir&;t t
48143 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
48144 s&@INSTALL@&$ac_INSTALL&;t t
48145 s&@MKDIR_P@&$ac_MKDIR_P&;t t
48146 $ac_datarootdir_hack
48147 "
48148 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
48149   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
48150
48151 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
48152   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
48153   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
48154       "$ac_tmp/out"`; test -z "$ac_out"; } &&
48155   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
48156 which seems to be undefined.  Please make sure it is defined" >&5
48157 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
48158 which seems to be undefined.  Please make sure it is defined" >&2;}
48159
48160   rm -f "$ac_tmp/stdin"
48161   case $ac_file in
48162   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
48163   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
48164   esac \
48165   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
48166  ;;
48167   :H)
48168   #
48169   # CONFIG_HEADER
48170   #
48171   if test x"$ac_file" != x-; then
48172     {
48173       printf "%s\n" "/* $configure_input  */" >&1 \
48174       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
48175     } >"$ac_tmp/config.h" \
48176       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
48177     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
48178       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
48179 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
48180     else
48181       rm -f "$ac_file"
48182       mv "$ac_tmp/config.h" "$ac_file" \
48183         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
48184     fi
48185   else
48186     printf "%s\n" "/* $configure_input  */" >&1 \
48187       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
48188       || as_fn_error $? "could not create -" "$LINENO" 5
48189   fi
48190 # Compute "$ac_file"'s index in $config_headers.
48191 _am_arg="$ac_file"
48192 _am_stamp_count=1
48193 for _am_header in $config_headers :; do
48194   case $_am_header in
48195     $_am_arg | $_am_arg:* )
48196       break ;;
48197     * )
48198       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
48199   esac
48200 done
48201 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
48202 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48203          X"$_am_arg" : 'X\(//\)[^/]' \| \
48204          X"$_am_arg" : 'X\(//\)$' \| \
48205          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
48206 printf "%s\n" X"$_am_arg" |
48207     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48208             s//\1/
48209             q
48210           }
48211           /^X\(\/\/\)[^/].*/{
48212             s//\1/
48213             q
48214           }
48215           /^X\(\/\/\)$/{
48216             s//\1/
48217             q
48218           }
48219           /^X\(\/\).*/{
48220             s//\1/
48221             q
48222           }
48223           s/.*/./; q'`/stamp-h$_am_stamp_count
48224  ;;
48225
48226   :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
48227 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
48228  ;;
48229   esac
48230
48231
48232   case $ac_file$ac_mode in
48233     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
48234   # Older Autoconf quotes --file arguments for eval, but not when files
48235   # are listed without --file.  Let's play safe and only enable the eval
48236   # if we detect the quoting.
48237   # TODO: see whether this extra hack can be removed once we start
48238   # requiring Autoconf 2.70 or later.
48239   case $CONFIG_FILES in #(
48240   *\'*) :
48241     eval set x "$CONFIG_FILES" ;; #(
48242   *) :
48243     set x $CONFIG_FILES ;; #(
48244   *) :
48245      ;;
48246 esac
48247   shift
48248   # Used to flag and report bootstrapping failures.
48249   am_rc=0
48250   for am_mf
48251   do
48252     # Strip MF so we end up with the name of the file.
48253     am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
48254     # Check whether this is an Automake generated Makefile which includes
48255     # dependency-tracking related rules and includes.
48256     # Grep'ing the whole file directly is not great: AIX grep has a line
48257     # limit of 2048, but all sed's we know have understand at least 4000.
48258     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
48259       || continue
48260     am_dirpart=`$as_dirname -- "$am_mf" ||
48261 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48262          X"$am_mf" : 'X\(//\)[^/]' \| \
48263          X"$am_mf" : 'X\(//\)$' \| \
48264          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
48265 printf "%s\n" X"$am_mf" |
48266     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48267             s//\1/
48268             q
48269           }
48270           /^X\(\/\/\)[^/].*/{
48271             s//\1/
48272             q
48273           }
48274           /^X\(\/\/\)$/{
48275             s//\1/
48276             q
48277           }
48278           /^X\(\/\).*/{
48279             s//\1/
48280             q
48281           }
48282           s/.*/./; q'`
48283     am_filepart=`$as_basename -- "$am_mf" ||
48284 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
48285          X"$am_mf" : 'X\(//\)$' \| \
48286          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
48287 printf "%s\n" X/"$am_mf" |
48288     sed '/^.*\/\([^/][^/]*\)\/*$/{
48289             s//\1/
48290             q
48291           }
48292           /^X\/\(\/\/\)$/{
48293             s//\1/
48294             q
48295           }
48296           /^X\/\(\/\).*/{
48297             s//\1/
48298             q
48299           }
48300           s/.*/./; q'`
48301     { echo "$as_me:$LINENO: cd "$am_dirpart" \
48302       && sed -e '/# am--include-marker/d' "$am_filepart" \
48303         | $MAKE -f - am--depfiles" >&5
48304    (cd "$am_dirpart" \
48305       && sed -e '/# am--include-marker/d' "$am_filepart" \
48306         | $MAKE -f - am--depfiles) >&5 2>&5
48307    ac_status=$?
48308    echo "$as_me:$LINENO: \$? = $ac_status" >&5
48309    (exit $ac_status); } || am_rc=$?
48310   done
48311   if test $am_rc -ne 0; then
48312     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
48313 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
48314 as_fn_error $? "Something went wrong bootstrapping makefile fragments
48315     for automatic dependency tracking.  If GNU make was not used, consider
48316     re-running the configure script with MAKE=\"gmake\" (or whatever is
48317     necessary).  You can also try re-running configure with the
48318     '--disable-dependency-tracking' option to at least be able to build
48319     the package (albeit without support for automatic dependency tracking).
48320 See \`config.log' for more details" "$LINENO" 5; }
48321   fi
48322   { am_dirpart=; unset am_dirpart;}
48323   { am_filepart=; unset am_filepart;}
48324   { am_mf=; unset am_mf;}
48325   { am_rc=; unset am_rc;}
48326   rm -f conftest-deps.mk
48327 }
48328  ;;
48329     "libtool":C)
48330
48331     # See if we are running on zsh, and set the options that allow our
48332     # commands through without removal of \ escapes.
48333     if test -n "${ZSH_VERSION+set}"; then
48334       setopt NO_GLOB_SUBST
48335     fi
48336
48337     cfgfile=${ofile}T
48338     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
48339     $RM "$cfgfile"
48340
48341     cat <<_LT_EOF >> "$cfgfile"
48342 #! $SHELL
48343 # Generated automatically by $as_me ($PACKAGE) $VERSION
48344 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
48345
48346 # Provide generalized library-building support services.
48347 # Written by Gordon Matzigkeit, 1996
48348
48349 # Copyright (C) 2014 Free Software Foundation, Inc.
48350 # This is free software; see the source for copying conditions.  There is NO
48351 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
48352
48353 # GNU Libtool is free software; you can redistribute it and/or modify
48354 # it under the terms of the GNU General Public License as published by
48355 # the Free Software Foundation; either version 2 of of the License, or
48356 # (at your option) any later version.
48357 #
48358 # As a special exception to the GNU General Public License, if you
48359 # distribute this file as part of a program or library that is built
48360 # using GNU Libtool, you may include this file under the  same
48361 # distribution terms that you use for the rest of that program.
48362 #
48363 # GNU Libtool is distributed in the hope that it will be useful, but
48364 # WITHOUT ANY WARRANTY; without even the implied warranty of
48365 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
48366 # GNU General Public License for more details.
48367 #
48368 # You should have received a copy of the GNU General Public License
48369 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
48370
48371
48372 # The names of the tagged configurations supported by this script.
48373 available_tags=''
48374
48375 # Configured defaults for sys_lib_dlsearch_path munging.
48376 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
48377
48378 # ### BEGIN LIBTOOL CONFIG
48379
48380 # Which release of libtool.m4 was used?
48381 macro_version=$macro_version
48382 macro_revision=$macro_revision
48383
48384 # Assembler program.
48385 AS=$lt_AS
48386
48387 # DLL creation program.
48388 DLLTOOL=$lt_DLLTOOL
48389
48390 # Object dumper program.
48391 OBJDUMP=$lt_OBJDUMP
48392
48393 # Whether or not to build shared libraries.
48394 build_libtool_libs=$enable_shared
48395
48396 # Whether or not to build static libraries.
48397 build_old_libs=$enable_static
48398
48399 # What type of objects to build.
48400 pic_mode=$pic_mode
48401
48402 # Whether or not to optimize for fast installation.
48403 fast_install=$enable_fast_install
48404
48405 # Shared archive member basename,for filename based shared library versioning on AIX.
48406 shared_archive_member_spec=$shared_archive_member_spec
48407
48408 # Shell to use when invoking shell scripts.
48409 SHELL=$lt_SHELL
48410
48411 # An echo program that protects backslashes.
48412 ECHO=$lt_ECHO
48413
48414 # The PATH separator for the build system.
48415 PATH_SEPARATOR=$lt_PATH_SEPARATOR
48416
48417 # The host system.
48418 host_alias=$host_alias
48419 host=$host
48420 host_os=$host_os
48421
48422 # The build system.
48423 build_alias=$build_alias
48424 build=$build
48425 build_os=$build_os
48426
48427 # A sed program that does not truncate output.
48428 SED=$lt_SED
48429
48430 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
48431 Xsed="\$SED -e 1s/^X//"
48432
48433 # A grep program that handles long lines.
48434 GREP=$lt_GREP
48435
48436 # An ERE matcher.
48437 EGREP=$lt_EGREP
48438
48439 # A literal string matcher.
48440 FGREP=$lt_FGREP
48441
48442 # A BSD- or MS-compatible name lister.
48443 NM=$lt_NM
48444
48445 # Whether we need soft or hard links.
48446 LN_S=$lt_LN_S
48447
48448 # What is the maximum length of a command?
48449 max_cmd_len=$max_cmd_len
48450
48451 # Object file suffix (normally "o").
48452 objext=$ac_objext
48453
48454 # Executable file suffix (normally "").
48455 exeext=$exeext
48456
48457 # whether the shell understands "unset".
48458 lt_unset=$lt_unset
48459
48460 # turn spaces into newlines.
48461 SP2NL=$lt_lt_SP2NL
48462
48463 # turn newlines into spaces.
48464 NL2SP=$lt_lt_NL2SP
48465
48466 # convert \$build file names to \$host format.
48467 to_host_file_cmd=$lt_cv_to_host_file_cmd
48468
48469 # convert \$build files to toolchain format.
48470 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
48471
48472 # Method to check whether dependent libraries are shared objects.
48473 deplibs_check_method=$lt_deplibs_check_method
48474
48475 # Command to use when deplibs_check_method = "file_magic".
48476 file_magic_cmd=$lt_file_magic_cmd
48477
48478 # How to find potential files when deplibs_check_method = "file_magic".
48479 file_magic_glob=$lt_file_magic_glob
48480
48481 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
48482 want_nocaseglob=$lt_want_nocaseglob
48483
48484 # Command to associate shared and link libraries.
48485 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
48486
48487 # The archiver.
48488 AR=$lt_AR
48489
48490 # Flags to create an archive.
48491 AR_FLAGS=$lt_AR_FLAGS
48492
48493 # How to feed a file listing to the archiver.
48494 archiver_list_spec=$lt_archiver_list_spec
48495
48496 # A symbol stripping program.
48497 STRIP=$lt_STRIP
48498
48499 # Commands used to install an old-style archive.
48500 RANLIB=$lt_RANLIB
48501 old_postinstall_cmds=$lt_old_postinstall_cmds
48502 old_postuninstall_cmds=$lt_old_postuninstall_cmds
48503
48504 # Whether to use a lock for old archive extraction.
48505 lock_old_archive_extraction=$lock_old_archive_extraction
48506
48507 # A C compiler.
48508 LTCC=$lt_CC
48509
48510 # LTCC compiler flags.
48511 LTCFLAGS=$lt_CFLAGS
48512
48513 # Take the output of nm and produce a listing of raw symbols and C names.
48514 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
48515
48516 # Transform the output of nm in a proper C declaration.
48517 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
48518
48519 # Transform the output of nm into a list of symbols to manually relocate.
48520 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
48521
48522 # Transform the output of nm in a C name address pair.
48523 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
48524
48525 # Transform the output of nm in a C name address pair when lib prefix is needed.
48526 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
48527
48528 # The name lister interface.
48529 nm_interface=$lt_lt_cv_nm_interface
48530
48531 # Specify filename containing input files for \$NM.
48532 nm_file_list_spec=$lt_nm_file_list_spec
48533
48534 # The root where to search for dependent libraries,and where our libraries should be installed.
48535 lt_sysroot=$lt_sysroot
48536
48537 # Command to truncate a binary pipe.
48538 lt_truncate_bin=$lt_lt_cv_truncate_bin
48539
48540 # The name of the directory that contains temporary libtool files.
48541 objdir=$objdir
48542
48543 # Used to examine libraries when file_magic_cmd begins with "file".
48544 MAGIC_CMD=$MAGIC_CMD
48545
48546 # Must we lock files when doing compilation?
48547 need_locks=$lt_need_locks
48548
48549 # Manifest tool.
48550 MANIFEST_TOOL=$lt_MANIFEST_TOOL
48551
48552 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
48553 DSYMUTIL=$lt_DSYMUTIL
48554
48555 # Tool to change global to local symbols on Mac OS X.
48556 NMEDIT=$lt_NMEDIT
48557
48558 # Tool to manipulate fat objects and archives on Mac OS X.
48559 LIPO=$lt_LIPO
48560
48561 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
48562 OTOOL=$lt_OTOOL
48563
48564 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
48565 OTOOL64=$lt_OTOOL64
48566
48567 # Old archive suffix (normally "a").
48568 libext=$libext
48569
48570 # Shared library suffix (normally ".so").
48571 shrext_cmds=$lt_shrext_cmds
48572
48573 # The commands to extract the exported symbol list from a shared archive.
48574 extract_expsyms_cmds=$lt_extract_expsyms_cmds
48575
48576 # Variables whose values should be saved in libtool wrapper scripts and
48577 # restored at link time.
48578 variables_saved_for_relink=$lt_variables_saved_for_relink
48579
48580 # Do we need the "lib" prefix for modules?
48581 need_lib_prefix=$need_lib_prefix
48582
48583 # Do we need a version for libraries?
48584 need_version=$need_version
48585
48586 # Library versioning type.
48587 version_type=$version_type
48588
48589 # Shared library runtime path variable.
48590 runpath_var=$runpath_var
48591
48592 # Shared library path variable.
48593 shlibpath_var=$shlibpath_var
48594
48595 # Is shlibpath searched before the hard-coded library search path?
48596 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
48597
48598 # Format of library name prefix.
48599 libname_spec=$lt_libname_spec
48600
48601 # List of archive names.  First name is the real one, the rest are links.
48602 # The last name is the one that the linker finds with -lNAME
48603 library_names_spec=$lt_library_names_spec
48604
48605 # The coded name of the library, if different from the real name.
48606 soname_spec=$lt_soname_spec
48607
48608 # Permission mode override for installation of shared libraries.
48609 install_override_mode=$lt_install_override_mode
48610
48611 # Command to use after installation of a shared archive.
48612 postinstall_cmds=$lt_postinstall_cmds
48613
48614 # Command to use after uninstallation of a shared archive.
48615 postuninstall_cmds=$lt_postuninstall_cmds
48616
48617 # Commands used to finish a libtool library installation in a directory.
48618 finish_cmds=$lt_finish_cmds
48619
48620 # As "finish_cmds", except a single script fragment to be evaled but
48621 # not shown.
48622 finish_eval=$lt_finish_eval
48623
48624 # Whether we should hardcode library paths into libraries.
48625 hardcode_into_libs=$hardcode_into_libs
48626
48627 # Compile-time system search path for libraries.
48628 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
48629
48630 # Detected run-time system search path for libraries.
48631 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
48632
48633 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
48634 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
48635
48636 # Whether dlopen is supported.
48637 dlopen_support=$enable_dlopen
48638
48639 # Whether dlopen of programs is supported.
48640 dlopen_self=$enable_dlopen_self
48641
48642 # Whether dlopen of statically linked programs is supported.
48643 dlopen_self_static=$enable_dlopen_self_static
48644
48645 # Commands to strip libraries.
48646 old_striplib=$lt_old_striplib
48647 striplib=$lt_striplib
48648
48649
48650 # The linker used to build libraries.
48651 LD=$lt_LD
48652
48653 # How to create reloadable object files.
48654 reload_flag=$lt_reload_flag
48655 reload_cmds=$lt_reload_cmds
48656
48657 # Commands used to build an old-style archive.
48658 old_archive_cmds=$lt_old_archive_cmds
48659
48660 # A language specific compiler.
48661 CC=$lt_compiler
48662
48663 # Is the compiler the GNU compiler?
48664 with_gcc=$GCC
48665
48666 # Compiler flag to turn off builtin functions.
48667 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
48668
48669 # Additional compiler flags for building library objects.
48670 pic_flag=$lt_lt_prog_compiler_pic
48671
48672 # How to pass a linker flag through the compiler.
48673 wl=$lt_lt_prog_compiler_wl
48674
48675 # Compiler flag to prevent dynamic linking.
48676 link_static_flag=$lt_lt_prog_compiler_static
48677
48678 # Does compiler simultaneously support -c and -o options?
48679 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
48680
48681 # Whether or not to add -lc for building shared libraries.
48682 build_libtool_need_lc=$archive_cmds_need_lc
48683
48684 # Whether or not to disallow shared libs when runtime libs are static.
48685 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
48686
48687 # Compiler flag to allow reflexive dlopens.
48688 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
48689
48690 # Compiler flag to generate shared objects directly from archives.
48691 whole_archive_flag_spec=$lt_whole_archive_flag_spec
48692
48693 # Whether the compiler copes with passing no objects directly.
48694 compiler_needs_object=$lt_compiler_needs_object
48695
48696 # Create an old-style archive from a shared archive.
48697 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
48698
48699 # Create a temporary old-style archive to link instead of a shared archive.
48700 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
48701
48702 # Commands used to build a shared archive.
48703 archive_cmds=$lt_archive_cmds
48704 archive_expsym_cmds=$lt_archive_expsym_cmds
48705
48706 # Commands used to build a loadable module if different from building
48707 # a shared archive.
48708 module_cmds=$lt_module_cmds
48709 module_expsym_cmds=$lt_module_expsym_cmds
48710
48711 # Whether we are building with GNU ld or not.
48712 with_gnu_ld=$lt_with_gnu_ld
48713
48714 # Flag that allows shared libraries with undefined symbols to be built.
48715 allow_undefined_flag=$lt_allow_undefined_flag
48716
48717 # Flag that enforces no undefined symbols.
48718 no_undefined_flag=$lt_no_undefined_flag
48719
48720 # Flag to hardcode \$libdir into a binary during linking.
48721 # This must work even if \$libdir does not exist
48722 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
48723
48724 # Whether we need a single "-rpath" flag with a separated argument.
48725 hardcode_libdir_separator=$lt_hardcode_libdir_separator
48726
48727 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
48728 # DIR into the resulting binary.
48729 hardcode_direct=$hardcode_direct
48730
48731 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
48732 # DIR into the resulting binary and the resulting library dependency is
48733 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
48734 # library is relocated.
48735 hardcode_direct_absolute=$hardcode_direct_absolute
48736
48737 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
48738 # into the resulting binary.
48739 hardcode_minus_L=$hardcode_minus_L
48740
48741 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
48742 # into the resulting binary.
48743 hardcode_shlibpath_var=$hardcode_shlibpath_var
48744
48745 # Set to "yes" if building a shared library automatically hardcodes DIR
48746 # into the library and all subsequent libraries and executables linked
48747 # against it.
48748 hardcode_automatic=$hardcode_automatic
48749
48750 # Set to yes if linker adds runtime paths of dependent libraries
48751 # to runtime path list.
48752 inherit_rpath=$inherit_rpath
48753
48754 # Whether libtool must link a program against all its dependency libraries.
48755 link_all_deplibs=$link_all_deplibs
48756
48757 # Set to "yes" if exported symbols are required.
48758 always_export_symbols=$always_export_symbols
48759
48760 # The commands to list exported symbols.
48761 export_symbols_cmds=$lt_export_symbols_cmds
48762
48763 # Symbols that should not be listed in the preloaded symbols.
48764 exclude_expsyms=$lt_exclude_expsyms
48765
48766 # Symbols that must always be exported.
48767 include_expsyms=$lt_include_expsyms
48768
48769 # Commands necessary for linking programs (against libraries) with templates.
48770 prelink_cmds=$lt_prelink_cmds
48771
48772 # Commands necessary for finishing linking programs.
48773 postlink_cmds=$lt_postlink_cmds
48774
48775 # Specify filename containing input files.
48776 file_list_spec=$lt_file_list_spec
48777
48778 # How to hardcode a shared library path into an executable.
48779 hardcode_action=$hardcode_action
48780
48781 # ### END LIBTOOL CONFIG
48782
48783 _LT_EOF
48784
48785     cat <<'_LT_EOF' >> "$cfgfile"
48786
48787 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
48788
48789 # func_munge_path_list VARIABLE PATH
48790 # -----------------------------------
48791 # VARIABLE is name of variable containing _space_ separated list of
48792 # directories to be munged by the contents of PATH, which is string
48793 # having a format:
48794 # "DIR[:DIR]:"
48795 #       string "DIR[ DIR]" will be prepended to VARIABLE
48796 # ":DIR[:DIR]"
48797 #       string "DIR[ DIR]" will be appended to VARIABLE
48798 # "DIRP[:DIRP]::[DIRA:]DIRA"
48799 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
48800 #       "DIRA[ DIRA]" will be appended to VARIABLE
48801 # "DIR[:DIR]"
48802 #       VARIABLE will be replaced by "DIR[ DIR]"
48803 func_munge_path_list ()
48804 {
48805     case x$2 in
48806     x)
48807         ;;
48808     *:)
48809         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
48810         ;;
48811     x:*)
48812         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
48813         ;;
48814     *::*)
48815         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
48816         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
48817         ;;
48818     *)
48819         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
48820         ;;
48821     esac
48822 }
48823
48824
48825 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
48826 func_cc_basename ()
48827 {
48828     for cc_temp in $*""; do
48829       case $cc_temp in
48830         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
48831         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
48832         \-*) ;;
48833         *) break;;
48834       esac
48835     done
48836     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
48837 }
48838
48839
48840 # ### END FUNCTIONS SHARED WITH CONFIGURE
48841
48842 _LT_EOF
48843
48844   case $host_os in
48845   aix3*)
48846     cat <<\_LT_EOF >> "$cfgfile"
48847 # AIX sometimes has problems with the GCC collect2 program.  For some
48848 # reason, if we set the COLLECT_NAMES environment variable, the problems
48849 # vanish in a puff of smoke.
48850 if test set != "${COLLECT_NAMES+set}"; then
48851   COLLECT_NAMES=
48852   export COLLECT_NAMES
48853 fi
48854 _LT_EOF
48855     ;;
48856   esac
48857
48858
48859
48860 ltmain=$ac_aux_dir/ltmain.sh
48861
48862
48863   # We use sed instead of cat because bash on DJGPP gets confused if
48864   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
48865   # text mode, it properly converts lines to CR/LF.  This bash problem
48866   # is reportedly fixed, but why not run on old versions too?
48867   sed '$q' "$ltmain" >> "$cfgfile" \
48868      || (rm -f "$cfgfile"; exit 1)
48869
48870    mv -f "$cfgfile" "$ofile" ||
48871     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
48872   chmod +x "$ofile"
48873
48874  ;;
48875
48876   esac
48877 done # for ac_tag
48878
48879
48880 as_fn_exit 0
48881 _ACEOF
48882 ac_clean_files=$ac_clean_files_save
48883
48884 test $ac_write_fail = 0 ||
48885   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
48886
48887
48888 # configure is writing to config.log, and then calls config.status.
48889 # config.status does its own redirection, appending to config.log.
48890 # Unfortunately, on DOS this fails, as config.log is still kept open
48891 # by configure, so config.status won't be able to write to it; its
48892 # output is simply discarded.  So we exec the FD to /dev/null,
48893 # effectively closing config.log, so it can be properly (re)opened and
48894 # appended to by config.status.  When coming back to configure, we
48895 # need to make the FD available again.
48896 if test "$no_create" != yes; then
48897   ac_cs_success=:
48898   ac_config_status_args=
48899   test "$silent" = yes &&
48900     ac_config_status_args="$ac_config_status_args --quiet"
48901   exec 5>/dev/null
48902   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
48903   exec 5>>config.log
48904   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
48905   # would make configure fail if this is the last instruction.
48906   $ac_cs_success || as_fn_exit 1
48907 fi
48908
48909 #
48910 # CONFIG_SUBDIRS section.
48911 #
48912 if test "$no_recursion" != yes; then
48913
48914   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
48915   # so they do not pile up.
48916   ac_sub_configure_args=
48917   ac_prev=
48918   eval "set x $ac_configure_args"
48919   shift
48920   for ac_arg
48921   do
48922     if test -n "$ac_prev"; then
48923       ac_prev=
48924       continue
48925     fi
48926     case $ac_arg in
48927     -cache-file | --cache-file | --cache-fil | --cache-fi \
48928     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
48929       ac_prev=cache_file ;;
48930     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
48931     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
48932     | --c=*)
48933       ;;
48934     --config-cache | -C)
48935       ;;
48936     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
48937       ac_prev=srcdir ;;
48938     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
48939       ;;
48940     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
48941       ac_prev=prefix ;;
48942     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
48943       ;;
48944     --disable-option-checking)
48945       ;;
48946     *)
48947       case $ac_arg in
48948       *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
48949       esac
48950       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
48951     esac
48952   done
48953
48954   # Always prepend --prefix to ensure using the same prefix
48955   # in subdir configurations.
48956   ac_arg="--prefix=$prefix"
48957   case $ac_arg in
48958   *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
48959   esac
48960   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
48961
48962   # Pass --silent
48963   if test "$silent" = yes; then
48964     ac_sub_configure_args="--silent $ac_sub_configure_args"
48965   fi
48966
48967   # Always prepend --disable-option-checking to silence warnings, since
48968   # different subdirs can have different --enable and --with options.
48969   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
48970
48971   ac_popdir=`pwd`
48972   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
48973
48974     # Do not complain, so a configure script can configure whichever
48975     # parts of a large source tree are present.
48976     test -d "$srcdir/$ac_dir" || continue
48977
48978     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
48979     printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
48980     printf "%s\n" "$ac_msg" >&6
48981     as_dir="$ac_dir"; as_fn_mkdir_p
48982     ac_builddir=.
48983
48984 case "$ac_dir" in
48985 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
48986 *)
48987   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
48988   # A ".." for each directory in $ac_dir_suffix.
48989   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
48990   case $ac_top_builddir_sub in
48991   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
48992   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
48993   esac ;;
48994 esac
48995 ac_abs_top_builddir=$ac_pwd
48996 ac_abs_builddir=$ac_pwd$ac_dir_suffix
48997 # for backward compatibility:
48998 ac_top_builddir=$ac_top_build_prefix
48999
49000 case $srcdir in
49001   .)  # We are building in place.
49002     ac_srcdir=.
49003     ac_top_srcdir=$ac_top_builddir_sub
49004     ac_abs_top_srcdir=$ac_pwd ;;
49005   [\\/]* | ?:[\\/]* )  # Absolute name.
49006     ac_srcdir=$srcdir$ac_dir_suffix;
49007     ac_top_srcdir=$srcdir
49008     ac_abs_top_srcdir=$srcdir ;;
49009   *) # Relative name.
49010     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
49011     ac_top_srcdir=$ac_top_build_prefix$srcdir
49012     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
49013 esac
49014 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
49015
49016
49017     cd "$ac_dir"
49018
49019     # Check for configure.gnu first; this name is used for a wrapper for
49020     # Metaconfig's "Configure" on case-insensitive file systems.
49021     if test -f "$ac_srcdir/configure.gnu"; then
49022       ac_sub_configure=$ac_srcdir/configure.gnu
49023     elif test -f "$ac_srcdir/configure"; then
49024       ac_sub_configure=$ac_srcdir/configure
49025     else
49026       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
49027 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
49028       ac_sub_configure=
49029     fi
49030
49031     # The recursion is here.
49032     if test -n "$ac_sub_configure"; then
49033       # Make the cache file name correct relative to the subdirectory.
49034       case $cache_file in
49035       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
49036       *) # Relative name.
49037         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
49038       esac
49039
49040       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
49041 printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
49042       # The eval makes quoting arguments work.
49043       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
49044            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
49045         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
49046     fi
49047
49048     cd "$ac_popdir"
49049   done
49050 fi
49051 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
49052   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
49053 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
49054 fi
49055
49056
49057
49058     tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
49059   if test -z "$tmp_cpp"; then
49060     tmp_cpp='cpp'
49061   fi
49062   cat >./tests/configurehelp.pm <<_EOF
49063 # This is a generated file.  Do not edit.
49064
49065 package configurehelp;
49066
49067 use strict;
49068 use warnings;
49069 use Exporter;
49070
49071 use vars qw(
49072     @ISA
49073     @EXPORT_OK
49074     \$Cpreprocessor
49075     );
49076
49077 @ISA = qw(Exporter);
49078
49079 @EXPORT_OK = qw(
49080     \$Cpreprocessor
49081     );
49082
49083 \$Cpreprocessor = '$tmp_cpp';
49084
49085 1;
49086 _EOF
49087
49088
49089
49090 ## ---------------------------------- ##
49091 ##  Start of distclean amending code  ##
49092 ## ---------------------------------- ##
49093
49094 for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
49095 do
49096
49097 if test ! -f "$xc_subdir/Makefile"; then
49098   echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
49099   exit 1
49100 fi
49101
49102 # Fetch dependency tracking file list from Makefile include lines.
49103
49104 xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
49105 xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
49106
49107 # --disable-dependency-tracking might have been used, consequently
49108 # there is nothing to amend without a dependency tracking file list.
49109
49110 if test $xc_cnt_words -gt 0; then
49111
49112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
49113 printf "%s\n" "$as_me: amending $xc_subdir/Makefile" >&6;}
49114
49115 # Build Makefile specific patch hunk.
49116
49117 xc_p="$xc_subdir/xc_patch.tmp"
49118
49119 xc_rm_depfiles=`echo "$xc_inc_lines" \
49120   | $SED 's%include%    -rm -f%' 2>/dev/null`
49121
49122 xc_dep_subdirs=`echo "$xc_inc_lines" \
49123   | $SED 's%include[ ][ ]*%%' 2>/dev/null \
49124   | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
49125   | sort | uniq`
49126
49127 echo "$xc_rm_depfiles" >$xc_p
49128
49129 for xc_dep_dir in $xc_dep_subdirs; do
49130   echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\"            >>$xc_p
49131   echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\"      >>$xc_p
49132   echo "${xc_tab}  rm -rf $xc_dep_dir; \\"                                          >>$xc_p
49133   echo "${xc_tab}fi"                                                                >>$xc_p
49134 done
49135
49136 # Build Makefile patching sed scripts.
49137
49138 xc_s1="$xc_subdir/xc_script_1.tmp"
49139 xc_s2="$xc_subdir/xc_script_2.tmp"
49140 xc_s3="$xc_subdir/xc_script_3.tmp"
49141
49142 cat >$xc_s1 <<\_EOT
49143 /^distclean[ ]*:/,/^[^  ][^     ]*:/{
49144   s/^.*(DEPDIR)/___xc_depdir_line___/
49145 }
49146 /^maintainer-clean[ ]*:/,/^[^   ][^     ]*:/{
49147   s/^.*(DEPDIR)/___xc_depdir_line___/
49148 }
49149 _EOT
49150
49151 cat >$xc_s2 <<\_EOT
49152 /___xc_depdir_line___$/{
49153   N
49154   /___xc_depdir_line___$/D
49155 }
49156 _EOT
49157
49158 cat >$xc_s3 <<_EOT
49159 /^___xc_depdir_line___/{
49160   r $xc_p
49161   d
49162 }
49163 _EOT
49164
49165 # Apply patch to Makefile and cleanup.
49166
49167 $SED -f "$xc_s1" "$xc_subdir/Makefile"      >"$xc_subdir/Makefile.tmp1"
49168 $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
49169 $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
49170
49171 if test -f "$xc_subdir/Makefile.tmp3"; then
49172   mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
49173 fi
49174
49175 test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
49176 test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
49177 test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
49178
49179 test -f "$xc_p"  && rm -f "$xc_p"
49180 test -f "$xc_s1" && rm -f "$xc_s1"
49181 test -f "$xc_s2" && rm -f "$xc_s2"
49182 test -f "$xc_s3" && rm -f "$xc_s3"
49183
49184 fi
49185
49186 done
49187
49188 ## -------------------------------- ##
49189 ##  End of distclean amending code  ##
49190 ## -------------------------------- ##
49191
49192
49193
49194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
49195
49196   Host setup:       ${host}
49197   Install prefix:   ${prefix}
49198   Compiler:         ${CC}
49199    CFLAGS:          ${CFLAGS}
49200    CPPFLAGS:        ${CPPFLAGS}
49201    LDFLAGS:         ${LDFLAGS}
49202    LIBS:            ${LIBS}
49203
49204   curl version:     ${CURLVERSION}
49205   SSL:              ${curl_ssl_msg}
49206   SSH:              ${curl_ssh_msg}
49207   zlib:             ${curl_zlib_msg}
49208   brotli:           ${curl_brotli_msg}
49209   zstd:             ${curl_zstd_msg}
49210   GSS-API:          ${curl_gss_msg}
49211   GSASL:            ${curl_gsasl_msg}
49212   TLS-SRP:          ${curl_tls_srp_msg}
49213   resolver:         ${curl_res_msg}
49214   IPv6:             ${curl_ipv6_msg}
49215   Unix sockets:     ${curl_unix_sockets_msg}
49216   IDN:              ${curl_idn_msg}
49217   Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
49218   Built-in manual:  ${curl_manual_msg}
49219   --libcurl option: ${curl_libcurl_msg}
49220   Verbose errors:   ${curl_verbose_msg}
49221   Code coverage:    ${curl_coverage_msg}
49222   SSPI:             ${curl_sspi_msg}
49223   ca cert bundle:   ${ca}${ca_warning}
49224   ca cert path:     ${capath}${capath_warning}
49225   ca fallback:      ${with_ca_fallback}
49226   LDAP:             ${curl_ldap_msg}
49227   LDAPS:            ${curl_ldaps_msg}
49228   RTSP:             ${curl_rtsp_msg}
49229   RTMP:             ${curl_rtmp_msg}
49230   PSL:              ${curl_psl_msg}
49231   Alt-svc:          ${curl_altsvc_msg}
49232   HSTS:             ${curl_hsts_msg}
49233   HTTP1:            ${curl_h1_msg}
49234   HTTP2:            ${curl_h2_msg}
49235   HTTP3:            ${curl_h3_msg}
49236   ECH:              ${curl_ech_msg}
49237   Protocols:        ${SUPPORT_PROTOCOLS}
49238   Features:         ${SUPPORT_FEATURES}
49239 " >&5
49240 printf "%s\n" "$as_me: Configured to build curl/libcurl:
49241
49242   Host setup:       ${host}
49243   Install prefix:   ${prefix}
49244   Compiler:         ${CC}
49245    CFLAGS:          ${CFLAGS}
49246    CPPFLAGS:        ${CPPFLAGS}
49247    LDFLAGS:         ${LDFLAGS}
49248    LIBS:            ${LIBS}
49249
49250   curl version:     ${CURLVERSION}
49251   SSL:              ${curl_ssl_msg}
49252   SSH:              ${curl_ssh_msg}
49253   zlib:             ${curl_zlib_msg}
49254   brotli:           ${curl_brotli_msg}
49255   zstd:             ${curl_zstd_msg}
49256   GSS-API:          ${curl_gss_msg}
49257   GSASL:            ${curl_gsasl_msg}
49258   TLS-SRP:          ${curl_tls_srp_msg}
49259   resolver:         ${curl_res_msg}
49260   IPv6:             ${curl_ipv6_msg}
49261   Unix sockets:     ${curl_unix_sockets_msg}
49262   IDN:              ${curl_idn_msg}
49263   Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
49264   Built-in manual:  ${curl_manual_msg}
49265   --libcurl option: ${curl_libcurl_msg}
49266   Verbose errors:   ${curl_verbose_msg}
49267   Code coverage:    ${curl_coverage_msg}
49268   SSPI:             ${curl_sspi_msg}
49269   ca cert bundle:   ${ca}${ca_warning}
49270   ca cert path:     ${capath}${capath_warning}
49271   ca fallback:      ${with_ca_fallback}
49272   LDAP:             ${curl_ldap_msg}
49273   LDAPS:            ${curl_ldaps_msg}
49274   RTSP:             ${curl_rtsp_msg}
49275   RTMP:             ${curl_rtmp_msg}
49276   PSL:              ${curl_psl_msg}
49277   Alt-svc:          ${curl_altsvc_msg}
49278   HSTS:             ${curl_hsts_msg}
49279   HTTP1:            ${curl_h1_msg}
49280   HTTP2:            ${curl_h2_msg}
49281   HTTP3:            ${curl_h3_msg}
49282   ECH:              ${curl_ech_msg}
49283   Protocols:        ${SUPPORT_PROTOCOLS}
49284   Features:         ${SUPPORT_FEATURES}
49285 " >&6;}
49286 if test -n "$experimental"; then
49287  cat >&2 << _EOF
49288   WARNING: $experimental enabled but marked EXPERIMENTAL. Use with caution!
49289 _EOF
49290 fi
49291